diff --git a/.drone.sh b/.drone.sh index f837953..c9f8f73 100755 --- a/.drone.sh +++ b/.drone.sh @@ -6,17 +6,19 @@ set -x export CGO_ENABLED=0 # compile for all architectures -GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/amd64/drone github.com/drone/drone-cli/drone -GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm64/drone github.com/drone/drone-cli/drone -GOOS=linux GOARCH=arm go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm/drone github.com/drone/drone-cli/drone -GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/windows/amd64/drone github.com/drone/drone-cli/drone -GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/darwin/amd64/drone github.com/drone/drone-cli/drone +GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/amd64/drone ./drone +GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm64/drone ./drone +GOOS=linux GOARCH=ppc64le go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/ppc64le/drone ./drone +GOOS=linux GOARCH=arm go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm/drone ./drone +GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/windows/amd64/drone.exe ./drone +GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/darwin/amd64/drone ./drone # tar binary files prior to upload tar -cvzf release/drone_linux_amd64.tar.gz -C release/linux/amd64 drone tar -cvzf release/drone_linux_arm64.tar.gz -C release/linux/arm64 drone +tar -cvzf release/drone_linux_ppc64le.tar.gz -C release/linux/ppc64le drone tar -cvzf release/drone_linux_arm.tar.gz -C release/linux/arm drone -tar -cvzf release/drone_windows_amd64.tar.gz -C release/windows/amd64 drone +tar -cvzf release/drone_windows_amd64.tar.gz -C release/windows/amd64 drone.exe tar -cvzf release/drone_darwin_amd64.tar.gz -C release/darwin/amd64 drone # generate shas for tar files diff --git a/.drone.yml b/.drone.yml index 14afd6c..b66df09 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,57 +1,88 @@ -workspace: - base: /go - path: src/github.com/drone/drone-cli +kind: pipeline +type: docker +name: default -pipeline: - build: - image: golang:1.9 - commands: sh .drone.sh +steps: +- name: build + image: golang:1.13 + commands: + - sh .drone.sh - publish_latest: - image: plugins/docker +- name: publish_latest + image: plugins/docker + settings: repo: drone/cli - secrets: [docker_username, docker_password] + username: + from_secret: docker_username + password: + from_secret: docker_password auto_tag: true - when: - event: [push, tag] + when: + event: [push, tag] - publish_alpine: - image: plugins/docker +- name: publish_alpine + image: plugins/docker + settings: repo: drone/cli - secrets: [docker_username, docker_password] + username: + from_secret: docker_username + password: + from_secret: docker_password auto_tag: true auto_tag_suffix: alpine dockerfile: Dockerfile.alpine - when: - event: [push, tag] + when: + event: [push, tag] - publish_linux_arm: - image: plugins/docker +- name: publish_linux_arm + image: plugins/docker + settings: repo: drone/cli - secrets: [docker_username, docker_password] + username: + from_secret: docker_username + password: + from_secret: docker_password auto_tag: true auto_tag_suffix: linux-arm dockerfile: Dockerfile.linux.arm - when: - event: [push, tag] + when: + event: [push, tag] - publish_linux_arm64: - image: plugins/docker +- name: publish_linux_arm64 + image: plugins/docker + settings: repo: drone/cli - secrets: [docker_username, docker_password] + username: + from_secret: docker_username + password: + from_secret: docker_password auto_tag: true auto_tag_suffix: linux-arm64 dockerfile: Dockerfile.linux.arm64 - when: - event: [push, tag] + when: + event: [push, tag] - release: - image: plugins/github-release +- name: publish_linux_ppc64le + image: plugins/docker + settings: + repo: drone/cli + username: + from_secret: docker_username + password: + from_secret: docker_password + auto_tag: true + auto_tag_suffix: linux-ppc64le + dockerfile: Dockerfile.linux.ppc64le + when: + event: [push, tag] + +- name: release + image: plugins/github-release + settings: files: - release/drone_*.tar.gz - release/drone_checksums.txt - secrets: - - source: github_token - target: github_release_api_key - when: - event: tag + api_key: + from_secret: github_token + when: + event: tag diff --git a/.gitignore b/.gitignore index 4591e76..9252a88 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +drone/drone release .env diff --git a/Dockerfile.linux.ppc64le b/Dockerfile.linux.ppc64le new file mode 100644 index 0000000..783b51c --- /dev/null +++ b/Dockerfile.linux.ppc64le @@ -0,0 +1,6 @@ +FROM drone/ca-certs + +COPY release/linux/ppc64le/drone /bin/ + +ENTRYPOINT ["/bin/drone"] + diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 766a48c..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,250 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - name = "github.com/Microsoft/go-winio" - packages = ["."] - revision = "7da180ee92d8bd8bb8c37fc560e673e6557c392f" - version = "v0.4.7" - -[[projects]] - name = "github.com/Sirupsen/logrus" - packages = ["."] - revision = "d682213848ed68c0a260ca37d6dd5ace8423f5ba" - version = "v1.0.4" - -[[projects]] - branch = "master" - name = "github.com/cncd/pipeline" - packages = [ - "pipeline", - "pipeline/backend", - "pipeline/backend/docker", - "pipeline/frontend", - "pipeline/frontend/yaml", - "pipeline/frontend/yaml/compiler", - "pipeline/frontend/yaml/linter", - "pipeline/frontend/yaml/types", - "pipeline/interrupt", - "pipeline/multipart" - ] - revision = "3a09486affc9215ba52f55b1f6e10182458d1aba" - -[[projects]] - name = "github.com/docker/distribution" - packages = ["reference"] - revision = "7dba427612198a11b161a27f9d40bb2dca1ccd20" - -[[projects]] - name = "github.com/docker/docker" - packages = [ - "api/types", - "api/types/blkiodev", - "api/types/container", - "api/types/events", - "api/types/filters", - "api/types/mount", - "api/types/network", - "api/types/reference", - "api/types/registry", - "api/types/strslice", - "api/types/swarm", - "api/types/time", - "api/types/versions", - "api/types/volume", - "client", - "pkg/ioutils", - "pkg/longpath", - "pkg/random", - "pkg/stdcopy", - "pkg/stringid", - "pkg/tlsconfig", - "reference" - ] - revision = "f645ffca04abf2dd6c89ac9057a1eb7d2b0ac338" - -[[projects]] - name = "github.com/docker/go-connections" - packages = [ - "nat", - "sockets", - "tlsconfig" - ] - revision = "eb315e36415380e7c2fdee175262560ff42359da" - -[[projects]] - name = "github.com/docker/go-units" - packages = ["."] - revision = "f2145db703495b2e525c59662db69a7344b00bb8" - -[[projects]] - name = "github.com/docker/libcompose" - packages = ["yaml"] - revision = "1c4bd4542afb20db0b51afd71d9ebceaf206e2dd" - -[[projects]] - name = "github.com/drone/drone-go" - packages = ["drone"] - revision = "7f20e6c113d3ffa2af80401c4eba7d510c8fd875" - -[[projects]] - branch = "master" - name = "github.com/drone/envsubst" - packages = [ - ".", - "parse" - ] - revision = "f4d1a8ef8670afc9eea1fb95ee09a979fd2763a3" - -[[projects]] - name = "github.com/fatih/color" - packages = ["."] - revision = "507f6050b8568533fb3f5504de8e5205fa62a114" - version = "v1.6.0" - -[[projects]] - branch = "master" - name = "github.com/flynn/go-shlex" - packages = ["."] - revision = "3f9db97f856818214da2e1057f8ad84803971cff" - -[[projects]] - name = "github.com/ghodss/yaml" - packages = ["."] - revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7" - version = "v1.0.0" - -[[projects]] - name = "github.com/golang/protobuf" - packages = ["proto"] - revision = "925541529c1fa6821df4e44ce2723319eb2be768" - version = "v1.0.0" - -[[projects]] - branch = "master" - name = "github.com/google/go-jsonnet" - packages = [ - ".", - "ast", - "parser" - ] - revision = "0274286eef945e5e24be6ebfc13a9deefdd312ee" - source = "https://github.com/drone/go-jsonnet.git" - -[[projects]] - branch = "master" - name = "github.com/jackspirou/syscerts" - packages = ["."] - revision = "b68f5469dff16e102bd6a2d5b3e79341c938d736" - -[[projects]] - name = "github.com/joho/godotenv" - packages = [ - ".", - "autoload" - ] - revision = "a79fa1e548e2c689c241d10173efd51e5d689d5b" - version = "v1.2.0" - -[[projects]] - name = "github.com/mattn/go-colorable" - packages = ["."] - revision = "167de6bfdfba052fa6b2d3664c8f5272e23c9072" - version = "v0.0.9" - -[[projects]] - name = "github.com/mattn/go-isatty" - packages = ["."] - revision = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39" - version = "v0.0.3" - -[[projects]] - name = "github.com/opencontainers/go-digest" - packages = ["."] - revision = "279bed98673dd5bef374d3b6e4b09e2af76183bf" - version = "v1.0.0-rc1" - -[[projects]] - branch = "master" - name = "github.com/pkg/browser" - packages = ["."] - revision = "c90ca0c84f15f81c982e32665bffd8d7aac8f097" - -[[projects]] - name = "github.com/pkg/errors" - packages = ["."] - revision = "645ef00459ed84a119197bfb8d8205042c6df63d" - version = "v0.8.0" - -[[projects]] - name = "github.com/urfave/cli" - packages = ["."] - revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1" - version = "v1.20.0" - -[[projects]] - branch = "master" - name = "golang.org/x/crypto" - packages = ["ssh/terminal"] - revision = "650f4a345ab4e5b245a3034b110ebc7299e68186" - -[[projects]] - branch = "master" - name = "golang.org/x/net" - packages = [ - "context", - "context/ctxhttp", - "proxy" - ] - revision = "f5dfe339be1d06f81b22525fe34671ee7d2c8904" - -[[projects]] - branch = "master" - name = "golang.org/x/oauth2" - packages = [ - ".", - "internal" - ] - revision = "543e37812f10c46c622c9575afd7ad22f22a12ba" - -[[projects]] - branch = "master" - name = "golang.org/x/sync" - packages = ["errgroup"] - revision = "fd80eb99c8f653c847d294a001bdf2a3a6f768f5" - -[[projects]] - branch = "master" - name = "golang.org/x/sys" - packages = [ - "unix", - "windows" - ] - revision = "37707fdb30a5b38865cfb95e5aab41707daec7fd" - -[[projects]] - name = "google.golang.org/appengine" - packages = [ - "internal", - "internal/base", - "internal/datastore", - "internal/log", - "internal/remote_api", - "internal/urlfetch", - "urlfetch" - ] - revision = "150dc57a1b433e64154302bdc40b6bb8aefa313a" - version = "v1.0.0" - -[[projects]] - branch = "v2" - name = "gopkg.in/yaml.v2" - packages = ["."] - revision = "d670f9405373e636a5a2765eea47fac0c9bc91a4" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - inputs-digest = "3c2492a2f392e0e4d42f2247aca5631e020aed1e2dea238bb56e27739866927a" - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index a8d9f67..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,74 +0,0 @@ -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] - -[[constraint]] - name = "github.com/cncd/pipeline" - branch = "master" - -[[constraint]] - name = "github.com/drone/drone-go" - revision = "7f20e6c113d3ffa2af80401c4eba7d510c8fd875" - -[[constraint]] - branch = "master" - name = "github.com/drone/envsubst" - -[[constraint]] - branch = "master" - name = "github.com/jackspirou/syscerts" - -[[constraint]] - name = "github.com/joho/godotenv" - version = "1.2.0" - -[[constraint]] - branch = "master" - name = "github.com/pkg/browser" - -[[constraint]] - name = "github.com/urfave/cli" - version = "1.20.0" - -[[constraint]] - branch = "master" - name = "golang.org/x/net" - -[[constraint]] - branch = "master" - name = "golang.org/x/oauth2" - -[[constraint]] - branch = "master" - name = "github.com/google/go-jsonnet" - source = "https://github.com/drone/go-jsonnet.git" - -# -# Some project dependencies hale from the dark ages -# of Go dependnecy management and require that we point -# to specific revisions. -# - -[[override]] - name = "github.com/docker/docker" - revision = "f645ffca04abf2dd6c89ac9057a1eb7d2b0ac338" - -[[override]] - name = "github.com/docker/distribution" - revision = "7dba427612198a11b161a27f9d40bb2dca1ccd20" - -[[override]] - name = "github.com/docker/go-connections" - revision = "eb315e36415380e7c2fdee175262560ff42359da" - -[[override]] - name = "github.com/docker/go-units" - revision = "f2145db703495b2e525c59662db69a7344b00bb8" - -[[override]] - name = "github.com/docker/libcompose" - revision = "1c4bd4542afb20db0b51afd71d9ebceaf206e2dd" - -[prune] - go-tests = true - unused-packages = true - non-go = true diff --git a/README.md b/README.md index 46cb156..d98da53 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ -Command line client for the Drone continuous integration server. Please see the official documentation at http://docs.drone.io/cli-installation/ +# drone-cli + +Command line client for the Drone continuous integration server. + +Documentation:
+https://docs.drone.io/cli + +Technical Support:
+https://discourse.drone.io + +Bug Tracker:
+https://discourse.drone.io/c/bugs diff --git a/drone/autoscale/autoscale_version.go b/drone/autoscale/autoscale_version.go index e806609..96bfe8b 100644 --- a/drone/autoscale/autoscale_version.go +++ b/drone/autoscale/autoscale_version.go @@ -4,9 +4,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var autoscaleVersionCmd = cli.Command{ @@ -15,10 +15,9 @@ var autoscaleVersionCmd = cli.Command{ Action: autoscaleVersion, Flags: []cli.Flag{ cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplAutoscaleVersion, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplAutoscaleVersion, }, }, } @@ -34,7 +33,7 @@ func autoscaleVersion(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/build/build.go b/drone/build/build.go index 287f0ea..92d40c1 100644 --- a/drone/build/build.go +++ b/drone/build/build.go @@ -9,14 +9,14 @@ var Command = cli.Command{ Subcommands: []cli.Command{ buildListCmd, buildLastCmd, - buildLogsCmd, buildInfoCmd, + buildCreateCmd, buildStopCmd, buildStartCmd, buildApproveCmd, buildDeclineCmd, + buildPromoteCmd, + buildRollbackCmd, buildQueueCmd, - buildKillCmd, - buildPsCmd, }, } diff --git a/drone/build/build_approve.go b/drone/build/build_approve.go index 0b87568..eac1987 100644 --- a/drone/build/build_approve.go +++ b/drone/build/build_approve.go @@ -10,8 +10,8 @@ import ( var buildApproveCmd = cli.Command{ Name: "approve", - Usage: "approve a build", - ArgsUsage: " ", + Usage: "approve a build stage", + ArgsUsage: " ", Action: buildApprove, } @@ -25,13 +25,17 @@ func buildApprove(c *cli.Context) (err error) { if err != nil { return err } + stage, err := strconv.Atoi(c.Args().Get(2)) + if err != nil { + return err + } client, err := internal.NewClient(c) if err != nil { return err } - _, err = client.BuildApprove(owner, name, number) + err = client.Approve(owner, name, number, stage) if err != nil { return err } diff --git a/drone/build/build_create.go b/drone/build/build_create.go new file mode 100644 index 0000000..6066e31 --- /dev/null +++ b/drone/build/build_create.go @@ -0,0 +1,56 @@ +package build + +import ( + "os" + "text/template" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var buildCreateCmd = cli.Command{ + Name: "create", + Usage: "create a build", + ArgsUsage: "", + Action: buildCreate, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "commit", + Usage: "source commit", + }, + cli.StringFlag{ + Name: "branch", + Usage: "source branch", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplBuildInfo, + }, + }, +} + +func buildCreate(c *cli.Context) (err error) { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + build, err := client.BuildCreate(owner, name, c.String("commit"), c.String("branch")) + if err != nil { + return err + } + + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, build) +} diff --git a/drone/build/build_decline.go b/drone/build/build_decline.go index a82db6e..38b389d 100644 --- a/drone/build/build_decline.go +++ b/drone/build/build_decline.go @@ -10,8 +10,8 @@ import ( var buildDeclineCmd = cli.Command{ Name: "decline", - Usage: "decline a build", - ArgsUsage: " ", + Usage: "decline a build stage", + ArgsUsage: " ", Action: buildDecline, } @@ -25,13 +25,17 @@ func buildDecline(c *cli.Context) (err error) { if err != nil { return err } + stage, err := strconv.Atoi(c.Args().Get(2)) + if err != nil { + return err + } client, err := internal.NewClient(c) if err != nil { return err } - _, err = client.BuildDecline(owner, name, number) + err = client.Decline(owner, name, number, stage) if err != nil { return err } diff --git a/drone/build/build_info.go b/drone/build/build_info.go index f21c370..0f76933 100644 --- a/drone/build/build_info.go +++ b/drone/build/build_info.go @@ -6,6 +6,7 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -43,7 +44,7 @@ func buildInfo(c *cli.Context) error { if err != nil { return err } - number = build.Number + number = int(build.Number) } else { number, err = strconv.Atoi(buildArg) if err != nil { @@ -56,7 +57,7 @@ func buildInfo(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format")) + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) if err != nil { return err } @@ -67,9 +68,9 @@ func buildInfo(c *cli.Context) error { var tmplBuildInfo = `Number: {{ .Number }} Status: {{ .Status }} Event: {{ .Event }} -Commit: {{ .Commit }} -Branch: {{ .Branch }} +Commit: {{ .After }} +Branch: {{ .Target }} Ref: {{ .Ref }} +Author: {{ .Author }} {{ if .AuthorEmail }}<{{.AuthorEmail}}>{{ end }} Message: {{ .Message }} -Author: {{ .Author }} ` diff --git a/drone/build/build_kill.go b/drone/build/build_kill.go deleted file mode 100644 index 68b9162..0000000 --- a/drone/build/build_kill.go +++ /dev/null @@ -1,42 +0,0 @@ -package build - -import ( - "fmt" - "strconv" - - "github.com/drone/drone-cli/drone/internal" - "github.com/urfave/cli" -) - -var buildKillCmd = cli.Command{ - Name: "kill", - Usage: "force kill a build", - ArgsUsage: " ", - Action: buildKill, - Hidden: true, -} - -func buildKill(c *cli.Context) (err error) { - repo := c.Args().First() - owner, name, err := internal.ParseRepo(repo) - if err != nil { - return err - } - number, err := strconv.Atoi(c.Args().Get(1)) - if err != nil { - return err - } - - client, err := internal.NewClient(c) - if err != nil { - return err - } - - err = client.BuildKill(owner, name, number) - if err != nil { - return err - } - - fmt.Printf("Force killing build %s/%s#%d\n", owner, name, number) - return nil -} diff --git a/drone/build/build_last.go b/drone/build/build_last.go index 6d9b3f5..c380dff 100644 --- a/drone/build/build_last.go +++ b/drone/build/build_last.go @@ -5,6 +5,7 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -44,7 +45,7 @@ func buildLast(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format")) + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) if err != nil { return err } diff --git a/drone/build/build_list.go b/drone/build/build_list.go index 77052bb..48ed5d1 100644 --- a/drone/build/build_list.go +++ b/drone/build/build_list.go @@ -5,6 +5,8 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -36,6 +38,11 @@ var buildListCmd = cli.Command{ Usage: "limit the list size", Value: 25, }, + cli.IntFlag{ + Name: "page", + Usage: "page number", + Value: 1, + }, }, } @@ -51,12 +58,12 @@ func buildList(c *cli.Context) error { return err } - builds, err := client.BuildList(owner, name) + builds, err := client.BuildList(owner, name, drone.ListOptions{Page: c.Int("page")}) if err != nil { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } @@ -71,7 +78,7 @@ func buildList(c *cli.Context) error { if count >= limit { break } - if branch != "" && build.Branch != branch { + if branch != "" && build.Target != branch { continue } if event != "" && build.Event != event { @@ -90,9 +97,9 @@ func buildList(c *cli.Context) error { var tmplBuildList = "\x1b[33mBuild #{{ .Number }} \x1b[0m" + ` Status: {{ .Status }} Event: {{ .Event }} -Commit: {{ .Commit }} -Branch: {{ .Branch }} +Commit: {{ .After }} +Branch: {{ .Target }} Ref: {{ .Ref }} -Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }} +Author: {{ .Author }} {{ if .AuthorEmail }}<{{.AuthorEmail}}>{{ end }} Message: {{ .Message }} ` diff --git a/drone/build/build_logs.go b/drone/build/build_logs.go deleted file mode 100644 index c07ee14..0000000 --- a/drone/build/build_logs.go +++ /dev/null @@ -1,18 +0,0 @@ -package build - -import ( - "fmt" - - "github.com/urfave/cli" -) - -var buildLogsCmd = cli.Command{ - Name: "logs", - Usage: "show build logs", - ArgsUsage: " [build] [job]", - Action: buildLogs, -} - -func buildLogs(c *cli.Context) error { - return fmt.Errorf("Command temporarily disabled. See https://github.com/drone/drone/issues/2005") -} diff --git a/drone/build/build_promote.go b/drone/build/build_promote.go new file mode 100644 index 0000000..51b187f --- /dev/null +++ b/drone/build/build_promote.go @@ -0,0 +1,59 @@ +package build + +import ( + "os" + "strconv" + "text/template" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var buildPromoteCmd = cli.Command{ + Name: "promote", + Usage: "promote a build", + ArgsUsage: " ", + Action: buildPromote, + Flags: []cli.Flag{ + cli.StringSliceFlag{ + Name: "param, p", + Usage: "custom parameters to be injected into the job environment. Format: KEY=value", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplBuildInfo, + }, + }, +} + +func buildPromote(c *cli.Context) (err error) { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + number, err := strconv.Atoi(c.Args().Get(1)) + if err != nil { + return err + } + target := c.Args().Get(2) + params := internal.ParseKeyPair(c.StringSlice("param")) + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + build, err := client.Promote(owner, name, number, target, params) + if err != nil { + return err + } + + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, build) +} diff --git a/drone/build/build_ps.go b/drone/build/build_ps.go deleted file mode 100644 index ba18dfb..0000000 --- a/drone/build/build_ps.go +++ /dev/null @@ -1,82 +0,0 @@ -package build - -import ( - "os" - "strconv" - "text/template" - - "github.com/drone/drone-cli/drone/internal" - "github.com/urfave/cli" -) - -var buildPsCmd = cli.Command{ - Name: "ps", - Usage: "show build steps", - ArgsUsage: " [build]", - Action: buildPs, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplBuildPs, - }, - }, -} - -func buildPs(c *cli.Context) error { - repo := c.Args().First() - - owner, name, err := internal.ParseRepo(repo) - if err != nil { - return err - } - - client, err := internal.NewClient(c) - if err != nil { - return err - } - - buildArg := c.Args().Get(1) - var number int - - if buildArg == "last" || len(buildArg) == 0 { - // Fetch the build number from the last build - build, err := client.BuildLast(owner, name, "") - if err != nil { - return err - } - - number = build.Number - } else { - number, err = strconv.Atoi(buildArg) - if err != nil { - return err - } - } - - build, err := client.Build(owner, name, number) - if err != nil { - return err - } - - tmpl, err := template.New("_").Parse(c.String("format") + "\n") - if err != nil { - return err - } - - for _, proc := range build.Procs { - for _, child := range proc.Children { - if err := tmpl.Execute(os.Stdout, child); err != nil { - return err - } - } - } - - return nil -} - -// template for build ps information -var tmplBuildPs = "\x1b[33mProc #{{ .PID }} \x1b[0m" + ` -Step: {{ .Name }} -State: {{ .State }} -` diff --git a/drone/build/build_queue.go b/drone/build/build_queue.go index 57e2540..0b3217e 100644 --- a/drone/build/build_queue.go +++ b/drone/build/build_queue.go @@ -1,18 +1,18 @@ package build import ( - "fmt" "os" "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) var buildQueueCmd = cli.Command{ Name: "queue", Usage: "show build queue", - ArgsUsage: " ", + ArgsUsage: "", Action: buildQueue, Flags: []cli.Flag{ cli.StringFlag{ @@ -20,44 +20,74 @@ var buildQueueCmd = cli.Command{ Usage: "format output", Value: tmplBuildQueue, }, + cli.StringFlag{ + Name: "repo", + Usage: "repo filter", + }, + cli.StringFlag{ + Name: "branch", + Usage: "branch filter", + }, + cli.StringFlag{ + Name: "event", + Usage: "event filter", + }, + cli.StringFlag{ + Name: "status", + Usage: "status filter", + }, }, } func buildQueue(c *cli.Context) error { - client, err := internal.NewClient(c) if err != nil { return err } - builds, err := client.BuildQueue() + repos, err := client.Incomplete() if err != nil { return err } - if len(builds) == 0 { - fmt.Println("there are no pending or running builds") - return nil - } - - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } - for _, build := range builds { - tmpl.Execute(os.Stdout, build) + slug := c.String("repo") + branch := c.String("branch") + event := c.String("event") + status := c.String("status") + + for _, repo := range repos { + if slug != "" && repo.Slug != slug { + continue + } + if branch != "" && repo.Build.Target != branch { + continue + } + if event != "" && repo.Build.Event != event { + continue + } + if status != "" && repo.Build.Status != status { + continue + } + tmpl.Execute(os.Stdout, repo) } return nil } -// template for build list information -var tmplBuildQueue = "\x1b[33m{{ .FullName }} #{{ .Number }} \x1b[0m" + ` -Status: {{ .Status }} -Event: {{ .Event }} -Commit: {{ .Commit }} -Branch: {{ .Branch }} -Ref: {{ .Ref }} -Author: {{ .Author }} {{ if .Email }}<{{.Email}}>{{ end }} -Message: {{ .Message }} +// template for build queue information +var tmplBuildQueue = "\x1b[33m{{ .Slug }}#{{ .Build.Number }} \x1b[0m" + ` +Name: {{ .Slug }} +Build: {{ .Build.Number }} +Status: {{ .Build.Status }} +Event: {{ .Build.Event }} +Branch: {{ .Build.Target }} +Ref: {{ .Build.Ref }} +Author: {{ .Build.Author }}{{ if .Build.AuthorEmail }} <{{ .Build.AuthorEmail }}>{{ end }} +Created: {{ .Build.Created | time }} +Started: {{ .Build.Started | time }} +Updated: {{ .Build.Updated | time }} ` diff --git a/drone/build/build_rollback.go b/drone/build/build_rollback.go new file mode 100644 index 0000000..22f999e --- /dev/null +++ b/drone/build/build_rollback.go @@ -0,0 +1,47 @@ +package build + +import ( + "strconv" + + "github.com/drone/drone-cli/drone/internal" + "github.com/urfave/cli" +) + +var buildRollbackCmd = cli.Command{ + Name: "rollback", + Usage: "rollback a build", + ArgsUsage: " ", + Action: buildRollback, + Flags: []cli.Flag{ + cli.StringSliceFlag{ + Name: "param, p", + Usage: "custom parameters to be injected into the job environment. Format: KEY=value", + }, + }, +} + +func buildRollback(c *cli.Context) (err error) { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + number, err := strconv.Atoi(c.Args().Get(1)) + if err != nil { + return err + } + target := c.Args().Get(2) + params := internal.ParseKeyPair(c.StringSlice("param")) + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + _, err = client.Rollback(owner, name, number, target, params) + if err != nil { + return err + } + + return nil +} diff --git a/drone/build/build_start.go b/drone/build/build_start.go index d886eb3..9d25614 100644 --- a/drone/build/build_start.go +++ b/drone/build/build_start.go @@ -2,16 +2,18 @@ package build import ( "errors" - "fmt" + "os" "strconv" + "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) var buildStartCmd = cli.Command{ - Name: "start", - Usage: "start a build", + Name: "restart", + Usage: "restart a build", ArgsUsage: " [build]", Action: buildStart, Flags: []cli.Flag{ @@ -19,6 +21,11 @@ var buildStartCmd = cli.Command{ Name: "param, p", Usage: "custom parameters to be injected into the job environment. Format: KEY=value", }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplBuildInfo, + }, }, } @@ -42,7 +49,7 @@ func buildStart(c *cli.Context) (err error) { if err != nil { return err } - number = build.Number + number = int(build.Number) } else { if len(buildArg) == 0 { return errors.New("missing job number") @@ -55,11 +62,14 @@ func buildStart(c *cli.Context) (err error) { params := internal.ParseKeyPair(c.StringSlice("param")) - build, err := client.BuildStart(owner, name, number, params) + build, err := client.BuildRestart(owner, name, number, params) if err != nil { return err } - fmt.Printf("Starting build %s/%s#%d\n", owner, name, build.Number) - return nil + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, build) } diff --git a/drone/build/build_stop.go b/drone/build/build_stop.go index c996174..aa71806 100644 --- a/drone/build/build_stop.go +++ b/drone/build/build_stop.go @@ -11,7 +11,7 @@ import ( var buildStopCmd = cli.Command{ Name: "stop", Usage: "stop a build", - ArgsUsage: " [build] [job]", + ArgsUsage: " [build]", Action: buildStop, } @@ -25,21 +25,17 @@ func buildStop(c *cli.Context) (err error) { if err != nil { return err } - job, _ := strconv.Atoi(c.Args().Get(2)) - if job == 0 { - job = 1 - } client, err := internal.NewClient(c) if err != nil { return err } - err = client.BuildStop(owner, name, number, job) + err = client.BuildCancel(owner, name, number) if err != nil { return err } - fmt.Printf("Stopping build %s/%s#%d.%d\n", owner, name, number, job) + fmt.Printf("Stopping build %s/%s#%d\n", owner, name, number) return nil } diff --git a/drone/convert/convert.go b/drone/convert/convert.go new file mode 100644 index 0000000..d9afa7b --- /dev/null +++ b/drone/convert/convert.go @@ -0,0 +1,49 @@ +package convert + +import ( + "bytes" + "io" + "io/ioutil" + "os" + + "github.com/drone/drone-yaml/yaml/converter" + "github.com/urfave/cli" +) + +// Command exports the convert command. +var Command = cli.Command{ + Name: "convert", + Usage: "convert legacy format", + ArgsUsage: "", + Action: convert, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "save", + Usage: "save result to source", + }, + }, +} + +func convert(c *cli.Context) error { + path := c.Args().First() + if path == "" { + path = ".drone.yml" + } + + raw, err := ioutil.ReadFile(path) + if err != nil { + return err + } + + res, err := converter.Convert(raw, converter.Metadata{Filename: path}) + if err != nil { + return err + } + + if c.Bool("save") { + return ioutil.WriteFile(path, res, 0644) + } + + _, err = io.Copy(os.Stderr, bytes.NewReader(res)) + return err +} diff --git a/drone/cron/cron.go b/drone/cron/cron.go new file mode 100644 index 0000000..d8cf9de --- /dev/null +++ b/drone/cron/cron.go @@ -0,0 +1,16 @@ +package cron + +import "github.com/urfave/cli" + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "cron", + Usage: "manage cron jobs", + Subcommands: []cli.Command{ + cronListCmd, + cronInfoCmd, + cronCreateCmd, + cronDisableCmd, + cronEnableCmd, + }, +} diff --git a/drone/cron/cron_add.go b/drone/cron/cron_add.go new file mode 100644 index 0000000..6f87f14 --- /dev/null +++ b/drone/cron/cron_add.go @@ -0,0 +1,44 @@ +package cron + +import ( + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +var cronCreateCmd = cli.Command{ + Name: "add", + Usage: "adds a cronjob", + ArgsUsage: "[repo/name] [cronjob] [cronexpr]", + Action: cronCreate, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "branch", + Usage: "branch name", + Value: "master", + }, + }, +} + +func cronCreate(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + client, err := internal.NewClient(c) + if err != nil { + return err + } + cron := &drone.Cron{ + Name: c.Args().Get(1), + Expr: c.Args().Get(2), + Branch: c.String("branch"), + } + _, err = client.CronCreate(owner, name, cron) + if err != nil { + return err + } + return nil +} diff --git a/drone/cron/cron_disable.go b/drone/cron/cron_disable.go new file mode 100644 index 0000000..8c2c3ae --- /dev/null +++ b/drone/cron/cron_disable.go @@ -0,0 +1,39 @@ +package cron + +import ( + "errors" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +var cronDisableCmd = cli.Command{ + Name: "disable", + Usage: "disable cron jobs", + ArgsUsage: "[repo/name] [cronjob]", + Action: cronDisable, +} + +func cronDisable(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + client, err := internal.NewClient(c) + if err != nil { + return err + } + cron := c.Args().Get(1) + if cron == "" { + return errors.New("missing cronjob name") + } + disabled := true + in := &drone.CronPatch{ + Disabled: &disabled, + } + _, err = client.CronUpdate(owner, name, cron, in) + return err +} diff --git a/drone/cron/cron_enable.go b/drone/cron/cron_enable.go new file mode 100644 index 0000000..c60f60f --- /dev/null +++ b/drone/cron/cron_enable.go @@ -0,0 +1,39 @@ +package cron + +import ( + "errors" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +var cronEnableCmd = cli.Command{ + Name: "enable", + Usage: "enable cron jobs", + ArgsUsage: "[repo/name] [cronjob]", + Action: cronEnable, +} + +func cronEnable(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + client, err := internal.NewClient(c) + if err != nil { + return err + } + cron := c.Args().Get(1) + if cron == "" { + return errors.New("missing cronjob name") + } + disabled := false + in := &drone.CronPatch{ + Disabled: &disabled, + } + _, err = client.CronUpdate(owner, name, cron, in) + return err +} diff --git a/drone/cron/cron_info.go b/drone/cron/cron_info.go new file mode 100644 index 0000000..c811911 --- /dev/null +++ b/drone/cron/cron_info.go @@ -0,0 +1,47 @@ +package cron + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var cronInfoCmd = cli.Command{ + Name: "info", + Usage: "display cron info", + ArgsUsage: "[repo/name]", + Action: cronInfo, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplCronList, + }, + }, +} + +func cronInfo(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + client, err := internal.NewClient(c) + if err != nil { + return err + } + cronjob := c.Args().Get(1) + cron, err := client.Cron(owner, name, cronjob) + if err != nil { + return err + } + format := c.String("format") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, cron) +} diff --git a/drone/cron/cron_list.go b/drone/cron/cron_list.go new file mode 100644 index 0000000..bf03c27 --- /dev/null +++ b/drone/cron/cron_list.go @@ -0,0 +1,59 @@ +package cron + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var cronListCmd = cli.Command{ + Name: "ls", + Usage: "list cron jobs", + ArgsUsage: "[repo/name]", + Action: cronList, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplCronList, + Hidden: true, + }, + }, +} + +func cronList(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + client, err := internal.NewClient(c) + if err != nil { + return err + } + list, err := client.CronList(owner, name) + if err != nil { + return err + } + format := c.String("format") + "\n" + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + for _, cron := range list { + tmpl.Execute(os.Stdout, cron) + } + return nil +} + +// template for build list information +var tmplCronList = "\x1b[33m{{ .Name }} \x1b[0m" + ` +Expr: {{ .Expr }} +Next: {{ .Next | time }} +{{- if .Disabled }} +Disabled: true +{{- end }} +` diff --git a/drone/deploy/deploy.go b/drone/deploy/deploy.go deleted file mode 100644 index f91dd4d..0000000 --- a/drone/deploy/deploy.go +++ /dev/null @@ -1,125 +0,0 @@ -package deploy - -import ( - "fmt" - "html/template" - "os" - "strconv" - - "github.com/drone/drone-cli/drone/internal" - "github.com/drone/drone-go/drone" - - "github.com/urfave/cli" -) - -// Command exports the deploy command. -var Command = cli.Command{ - Name: "deploy", - Usage: "deploy code", - ArgsUsage: " ", - Action: deploy, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplDeployInfo, - }, - cli.StringFlag{ - Name: "branch", - Usage: "branch filter", - Value: "master", - }, - cli.StringFlag{ - Name: "event", - Usage: "event filter", - Value: drone.EventPush, - }, - cli.StringFlag{ - Name: "status", - Usage: "status filter", - Value: drone.StatusSuccess, - }, - cli.StringSliceFlag{ - Name: "param, p", - Usage: "custom parameters to be injected into the job environment. Format: KEY=value", - }, - }, -} - -func deploy(c *cli.Context) error { - repo := c.Args().First() - owner, name, err := internal.ParseRepo(repo) - if err != nil { - return err - } - - client, err := internal.NewClient(c) - if err != nil { - return err - } - - branch := c.String("branch") - event := c.String("event") - status := c.String("status") - - buildArg := c.Args().Get(1) - var number int - if buildArg == "last" { - // Fetch the build number from the last build - builds, berr := client.BuildList(owner, name) - if berr != nil { - return berr - } - for _, build := range builds { - if branch != "" && build.Branch != branch { - continue - } - if event != "" && build.Event != event { - continue - } - if status != "" && build.Status != status { - continue - } - if build.Number > number { - number = build.Number - } - } - if number == 0 { - return fmt.Errorf("Cannot deploy failure build") - } - } else { - number, err = strconv.Atoi(buildArg) - if err != nil { - return err - } - } - - env := c.Args().Get(2) - if env == "" { - return fmt.Errorf("Please specify the target environment (ie production)") - } - - params := internal.ParseKeyPair(c.StringSlice("param")) - - deploy, err := client.Deploy(owner, name, number, env, params) - if err != nil { - return err - } - - tmpl, err := template.New("_").Parse(c.String("format")) - if err != nil { - return err - } - return tmpl.Execute(os.Stdout, deploy) -} - -// template for deployment information -var tmplDeployInfo = `Number: {{ .Number }} -Status: {{ .Status }} -Commit: {{ .Commit }} -Branch: {{ .Branch }} -Ref: {{ .Ref }} -Message: {{ .Message }} -Author: {{ .Author }} -Target: {{ .Deploy }} -` diff --git a/drone/encrypt/encrypt.go b/drone/encrypt/encrypt.go new file mode 100644 index 0000000..4bee398 --- /dev/null +++ b/drone/encrypt/encrypt.go @@ -0,0 +1,65 @@ +package encrypt + +import ( + "fmt" + "io/ioutil" + "strings" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +// Command is an encryption cli.Command +var Command = cli.Command{ + Name: "encrypt", + Usage: "encrypt a secret", + ArgsUsage: " ", + Action: encryptSecret, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "allow-pull-request", + Usage: "permit read access to pull requests", + }, + cli.BoolFlag{ + Name: "allow-push-on-pull-request", + Usage: "permit write access to pull requests (e.g. allow docker push)", + }, + }, +} + +func encryptSecret(c *cli.Context) error { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + plaintext := c.Args().Get(1) + if strings.HasPrefix(plaintext, "@") { + path := strings.TrimPrefix(plaintext, "@") + data, err := ioutil.ReadFile(path) + if err != nil { + return err + } + plaintext = string(data) + } + + secret := &drone.Secret{ + Data: plaintext, + PullRequest: c.Bool("allow-pull-request"), + PullRequestPush: c.Bool("allow-push-on-pull-request"), + } + encrypted, err := client.Encrypt(owner, name, secret) + if err != nil { + return err + } + fmt.Println(encrypted) + return nil +} diff --git a/drone/encrypt/registry.go b/drone/encrypt/registry.go new file mode 100644 index 0000000..ec774f4 --- /dev/null +++ b/drone/encrypt/registry.go @@ -0,0 +1,77 @@ +package encrypt + +// import ( +// "fmt" +// "io/ioutil" +// "strings" + +// "github.com/drone/drone-cli/drone/internal" +// "github.com/drone/drone-go/drone" + +// "github.com/urfave/cli" +// ) + +// var encryptRegistryCommand = cli.Command{ +// Name: "registry", +// Usage: "encrypt registry credentials", +// ArgsUsage: " ", +// Action: encryptRegistry, +// Flags: []cli.Flag{ +// cli.StringFlag{ +// Name: "username", +// Usage: "registry username", +// }, +// cli.StringFlag{ +// Name: "password", +// Usage: "registry password", +// }, +// cli.StringFlag{ +// Name: "server", +// Usage: "registry server", +// Value: "docker.io", +// }, +// }, +// } + +// func encryptRegistry(c *cli.Context) error { +// repo := c.Args().First() +// owner, name, err := internal.ParseRepo(repo) +// if err != nil { +// return err +// } + +// client, err := internal.NewClient(c) +// if err != nil { +// return err +// } + +// password := c.String("password") +// if strings.HasPrefix(password, "@") { +// data, err := ioutil.ReadFile(password) +// if err != nil { +// return err +// } +// password = string(data) +// } + +// policy := "pull" +// switch { +// case c.Bool("push"): +// policy = "push" +// case c.Bool("push-pull-request"): +// policy = "push-pull-request" +// } + +// registry := &drone.Registry{ +// Address: c.String("server"), +// Username: c.String("username"), +// Password: password, +// Policy: policy, +// } +// encrypted, err := client.EncryptRegistry(owner, name, registry) +// if err != nil { +// return err +// } +// fmt.Println(encrypted) +// return nil +// } diff --git a/drone/exec/_backup/exec.go b/drone/exec/_backup/exec.go new file mode 100644 index 0000000..5cde0f0 --- /dev/null +++ b/drone/exec/_backup/exec.go @@ -0,0 +1,493 @@ +package exec + +import ( + "context" + "io" + "log" + "os" + "path" + "path/filepath" + "runtime" + "strings" + "time" + + "github.com/cncd/pipeline/pipeline" + "github.com/cncd/pipeline/pipeline/backend" + "github.com/cncd/pipeline/pipeline/backend/docker" + "github.com/cncd/pipeline/pipeline/frontend" + "github.com/cncd/pipeline/pipeline/frontend/yaml" + "github.com/cncd/pipeline/pipeline/frontend/yaml/compiler" + "github.com/cncd/pipeline/pipeline/frontend/yaml/linter" + "github.com/cncd/pipeline/pipeline/interrupt" + "github.com/cncd/pipeline/pipeline/multipart" + "github.com/drone/envsubst" + + "github.com/urfave/cli" +) + +// Command exports the exec command. +var Command = cli.Command{ + Name: "exec", + Usage: "execute a local build", + ArgsUsage: "[path/to/.drone.yml]", + Action: func(c *cli.Context) { + if err := exec(c); err != nil { + log.Fatalln(err) + } + }, + Flags: []cli.Flag{ + cli.BoolTFlag{ + Name: "local", + Usage: "build from local directory", + EnvVar: "DRONE_LOCAL", + }, + cli.DurationFlag{ + Name: "timeout", + Usage: "build timeout", + Value: time.Hour, + EnvVar: "DRONE_TIMEOUT", + }, + cli.StringSliceFlag{ + Name: "volumes", + Usage: "build volumes", + EnvVar: "DRONE_VOLUMES", + }, + cli.StringSliceFlag{ + Name: "network", + Usage: "external networks", + EnvVar: "DRONE_NETWORKS", + }, + cli.StringFlag{ + Name: "prefix", + Value: "drone", + Usage: "prefix containers created by drone", + EnvVar: "DRONE_DOCKER_PREFIX", + Hidden: true, + }, + cli.StringSliceFlag{ + Name: "privileged", + Usage: "privileged plugins", + Value: &cli.StringSlice{ + "plugins/docker", + "plugins/acr", + "plugins/ecr", + "plugins/gcr", + "plugins/heroku", + }, + }, + + // + // workspace default + // + cli.StringFlag{ + Name: "workspace-base", + Value: "/drone", + EnvVar: "DRONE_WORKSPACE_BASE", + }, + cli.StringFlag{ + Name: "workspace-path", + Value: "src", + EnvVar: "DRONE_WORKSPACE_PATH", + }, + // + // netrc parameters + // + cli.StringFlag{ + Name: "netrc-username", + EnvVar: "DRONE_NETRC_USERNAME", + }, + cli.StringFlag{ + Name: "netrc-password", + EnvVar: "DRONE_NETRC_PASSWORD", + }, + cli.StringFlag{ + Name: "netrc-machine", + EnvVar: "DRONE_NETRC_MACHINE", + }, + // + // metadata parameters + // + cli.StringFlag{ + Name: "system-arch", + Value: "linux/amd64", + EnvVar: "DRONE_SYSTEM_ARCH", + }, + cli.StringFlag{ + Name: "system-name", + Value: "pipec", + EnvVar: "DRONE_SYSTEM_NAME", + }, + cli.StringFlag{ + Name: "system-link", + Value: "https://github.com/cncd/pipec", + EnvVar: "DRONE_SYSTEM_LINK", + }, + cli.StringFlag{ + Name: "repo-name", + EnvVar: "DRONE_REPO_NAME", + }, + cli.StringFlag{ + Name: "repo-link", + EnvVar: "DRONE_REPO_LINK", + }, + cli.StringFlag{ + Name: "repo-remote-url", + EnvVar: "DRONE_REPO_REMOTE", + }, + cli.StringFlag{ + Name: "repo-private", + EnvVar: "DRONE_REPO_PRIVATE", + }, + cli.IntFlag{ + Name: "build-number", + EnvVar: "DRONE_BUILD_NUMBER", + }, + cli.IntFlag{ + Name: "parent-build-number", + EnvVar: "DRONE_PARENT_BUILD_NUMBER", + }, + cli.Int64Flag{ + Name: "build-created", + EnvVar: "DRONE_BUILD_CREATED", + }, + cli.Int64Flag{ + Name: "build-started", + EnvVar: "DRONE_BUILD_STARTED", + }, + cli.Int64Flag{ + Name: "build-finished", + EnvVar: "DRONE_BUILD_FINISHED", + }, + cli.StringFlag{ + Name: "build-status", + EnvVar: "DRONE_BUILD_STATUS", + }, + cli.StringFlag{ + Name: "build-event", + EnvVar: "DRONE_BUILD_EVENT", + }, + cli.StringFlag{ + Name: "build-link", + EnvVar: "DRONE_BUILD_LINK", + }, + cli.StringFlag{ + Name: "build-target", + EnvVar: "DRONE_BUILD_TARGET", + }, + cli.StringFlag{ + Name: "commit-sha", + EnvVar: "DRONE_COMMIT_SHA", + }, + cli.StringFlag{ + Name: "commit-ref", + EnvVar: "DRONE_COMMIT_REF", + }, + cli.StringFlag{ + Name: "commit-refspec", + EnvVar: "DRONE_COMMIT_REFSPEC", + }, + cli.StringFlag{ + Name: "commit-branch", + EnvVar: "DRONE_COMMIT_BRANCH", + }, + cli.StringFlag{ + Name: "commit-message", + EnvVar: "DRONE_COMMIT_MESSAGE", + }, + cli.StringFlag{ + Name: "commit-author-name", + EnvVar: "DRONE_COMMIT_AUTHOR_NAME", + }, + cli.StringFlag{ + Name: "commit-author-avatar", + EnvVar: "DRONE_COMMIT_AUTHOR_AVATAR", + }, + cli.StringFlag{ + Name: "commit-author-email", + EnvVar: "DRONE_COMMIT_AUTHOR_EMAIL", + }, + cli.IntFlag{ + Name: "prev-build-number", + EnvVar: "DRONE_PREV_BUILD_NUMBER", + }, + cli.Int64Flag{ + Name: "prev-build-created", + EnvVar: "DRONE_PREV_BUILD_CREATED", + }, + cli.Int64Flag{ + Name: "prev-build-started", + EnvVar: "DRONE_PREV_BUILD_STARTED", + }, + cli.Int64Flag{ + Name: "prev-build-finished", + EnvVar: "DRONE_PREV_BUILD_FINISHED", + }, + cli.StringFlag{ + Name: "prev-build-status", + EnvVar: "DRONE_PREV_BUILD_STATUS", + }, + cli.StringFlag{ + Name: "prev-build-event", + EnvVar: "DRONE_PREV_BUILD_EVENT", + }, + cli.StringFlag{ + Name: "prev-build-link", + EnvVar: "DRONE_PREV_BUILD_LINK", + }, + cli.StringFlag{ + Name: "prev-commit-sha", + EnvVar: "DRONE_PREV_COMMIT_SHA", + }, + cli.StringFlag{ + Name: "prev-commit-ref", + EnvVar: "DRONE_PREV_COMMIT_REF", + }, + cli.StringFlag{ + Name: "prev-commit-refspec", + EnvVar: "DRONE_PREV_COMMIT_REFSPEC", + }, + cli.StringFlag{ + Name: "prev-commit-branch", + EnvVar: "DRONE_PREV_COMMIT_BRANCH", + }, + cli.StringFlag{ + Name: "prev-commit-message", + EnvVar: "DRONE_PREV_COMMIT_MESSAGE", + }, + cli.StringFlag{ + Name: "prev-commit-author-name", + EnvVar: "DRONE_PREV_COMMIT_AUTHOR_NAME", + }, + cli.StringFlag{ + Name: "prev-commit-author-avatar", + EnvVar: "DRONE_PREV_COMMIT_AUTHOR_AVATAR", + }, + cli.StringFlag{ + Name: "prev-commit-author-email", + EnvVar: "DRONE_PREV_COMMIT_AUTHOR_EMAIL", + }, + cli.IntFlag{ + Name: "job-number", + EnvVar: "DRONE_JOB_NUMBER", + }, + cli.StringSliceFlag{ + Name: "env, e", + EnvVar: "DRONE_ENV", + }, + }, +} + +func exec(c *cli.Context) error { + file := c.Args().First() + if file == "" { + file = ".drone.yml" + } + + metadata := metadataFromContext(c) + environ := metadata.Environ() + secrets := []compiler.Secret{} + for k, v := range metadata.EnvironDrone() { + environ[k] = v + } + for key, val := range metadata.Job.Matrix { + environ[key] = val + secrets = append(secrets, compiler.Secret{ + Name: key, + Value: val, + }) + } + + droneEnv := make(map[string]string) + for _, env := range c.StringSlice("env") { + envs := strings.SplitN(env, "=", 2) + droneEnv[envs[0]] = envs[1] + } + + tmpl, err := envsubst.ParseFile(file) + if err != nil { + return err + } + confstr, err := tmpl.Execute(func(name string) string { + return environ[name] + }) + if err != nil { + return err + } + + conf, err := yaml.ParseString(confstr) + if err != nil { + return err + } + + // configure volumes for local execution + volumes := c.StringSlice("volumes") + if c.Bool("local") { + var ( + workspaceBase = conf.Workspace.Base + workspacePath = conf.Workspace.Path + ) + if workspaceBase == "" { + workspaceBase = c.String("workspace-base") + } + if workspacePath == "" { + workspacePath = c.String("workspace-path") + } + dir, _ := filepath.Abs(filepath.Dir(file)) + + if runtime.GOOS == "windows" { + dir = convertPathForWindows(dir) + } + volumes = append(volumes, c.String("prefix")+"_default:"+workspaceBase) + volumes = append(volumes, dir+":"+path.Join(workspaceBase, workspacePath)) + } + + // lint the yaml file + if lerr := linter.New(linter.WithTrusted(true)).Lint(conf); lerr != nil { + return lerr + } + + // compiles the yaml file + compiled := compiler.New( + compiler.WithEscalated( + c.StringSlice("privileged")..., + ), + compiler.WithVolumes(volumes...), + compiler.WithWorkspace( + c.String("workspace-base"), + c.String("workspace-path"), + ), + compiler.WithNetworks( + c.StringSlice("network")..., + ), + compiler.WithPrefix( + c.String("prefix"), + ), + compiler.WithProxy(), + compiler.WithLocal( + c.Bool("local"), + ), + compiler.WithNetrc( + c.String("netrc-username"), + c.String("netrc-password"), + c.String("netrc-machine"), + ), + compiler.WithMetadata(metadata), + compiler.WithSecret(secrets...), + compiler.WithEnviron(droneEnv), + ).Compile(conf) + + engine, err := docker.NewEnv() + if err != nil { + return err + } + + ctx, cancel := context.WithTimeout(context.Background(), c.Duration("timeout")) + defer cancel() + ctx = interrupt.WithContext(ctx) + + return pipeline.New(compiled, + pipeline.WithContext(ctx), + pipeline.WithTracer(pipeline.DefaultTracer), + pipeline.WithLogger(defaultLogger), + pipeline.WithEngine(engine), + ).Run() +} + +// return the metadata from the cli context. +func metadataFromContext(c *cli.Context) frontend.Metadata { + return frontend.Metadata{ + Repo: frontend.Repo{ + Name: c.String("repo-name"), + Link: c.String("repo-link"), + Remote: c.String("repo-remote-url"), + Private: c.Bool("repo-private"), + }, + Curr: frontend.Build{ + Number: c.Int("build-number"), + Parent: c.Int("parent-build-number"), + Created: c.Int64("build-created"), + Started: c.Int64("build-started"), + Finished: c.Int64("build-finished"), + Status: c.String("build-status"), + Event: c.String("build-event"), + Link: c.String("build-link"), + Target: c.String("build-target"), + Commit: frontend.Commit{ + Sha: c.String("commit-sha"), + Ref: c.String("commit-ref"), + Refspec: c.String("commit-refspec"), + Branch: c.String("commit-branch"), + Message: c.String("commit-message"), + Author: frontend.Author{ + Name: c.String("commit-author-name"), + Email: c.String("commit-author-email"), + Avatar: c.String("commit-author-avatar"), + }, + }, + }, + Prev: frontend.Build{ + Number: c.Int("prev-build-number"), + Created: c.Int64("prev-build-created"), + Started: c.Int64("prev-build-started"), + Finished: c.Int64("prev-build-finished"), + Status: c.String("prev-build-status"), + Event: c.String("prev-build-event"), + Link: c.String("prev-build-link"), + Commit: frontend.Commit{ + Sha: c.String("prev-commit-sha"), + Ref: c.String("prev-commit-ref"), + Refspec: c.String("prev-commit-refspec"), + Branch: c.String("prev-commit-branch"), + Message: c.String("prev-commit-message"), + Author: frontend.Author{ + Name: c.String("prev-commit-author-name"), + Email: c.String("prev-commit-author-email"), + Avatar: c.String("prev-commit-author-avatar"), + }, + }, + }, + Job: frontend.Job{ + Number: c.Int("job-number"), + Matrix: availableEnvironment(), + }, + Sys: frontend.System{ + Name: c.String("system-name"), + Link: c.String("system-link"), + Arch: c.String("system-arch"), + }, + } +} + +func availableEnvironment() map[string]string { + result := make(map[string]string, 0) + + for _, env := range os.Environ() { + pair := strings.SplitN(env, "=", 2) + result[pair[0]] = pair[1] + } + + return result +} + +func convertPathForWindows(path string) string { + base := filepath.VolumeName(path) + if len(base) == 2 { + path = strings.TrimPrefix(path, base) + base = strings.ToLower(strings.TrimSuffix(base, ":")) + return "/" + base + filepath.ToSlash(path) + } + + return filepath.ToSlash(path) +} + +var defaultLogger = pipeline.LogFunc(func(proc *backend.Step, rc multipart.Reader) error { + part, err := rc.NextPart() + if err != nil { + return err + } + + logstream := NewLineWriter(proc.Alias) + io.Copy(logstream, part) + + return nil +}) diff --git a/drone/exec/line.go b/drone/exec/_backup/line.go similarity index 100% rename from drone/exec/line.go rename to drone/exec/_backup/line.go diff --git a/drone/exec/env.go b/drone/exec/env.go new file mode 100644 index 0000000..08488ff --- /dev/null +++ b/drone/exec/env.go @@ -0,0 +1,73 @@ +package exec + +import ( + "os" + "strings" + + "github.com/urfave/cli" +) + +func getEnv(c *cli.Context) map[string]string { + env := prefixedEnviron( + os.Environ(), + ) + if c.IsSet("branch") { + v := c.String("branch") + env["DRONE_BRANCH"] = v + env["DRONE_COMMIT_BRANCH"] = v + env["DRONE_TARGET_BRANCH"] = v + } + if c.IsSet("event") { + v := c.String("event") + env["DRONE_EVENT"] = v + } + if c.IsSet("instance") { + v := c.String("instance") + env["DRONE_SYSTEM_HOST"] = v + env["DRONE_SYSTEM_HOSTNAME"] = v + } + if c.IsSet("ref") { + v := c.String("ref") + env["DRONE_COMMIT_REF"] = v + } + if c.IsSet("repo") { + v := c.String("repo") + env["DRONE_REPO"] = v + } + if c.IsSet("deploy-to") { + v := c.String("deploy-to") + env["DRONE_DEPLOY_TO"] = v + } + return env +} + +// helper function returns all environment variables +// prefixed with DRONE_. +func prefixedEnviron(environ []string) map[string]string { + envs := map[string]string{} + for _, env := range environ { + if !strings.HasPrefix(env, "DRONE_") { + continue + } + parts := strings.SplitN(env, "=", 2) + if len(parts) != 2 { + continue + } + key := parts[0] + val := parts[1] + envs[key] = val + } + return envs +} + +// helper function combines one or more maps of environment +// variables into a single map. +func combineEnviron(env ...map[string]string) map[string]string { + c := map[string]string{} + for _, e := range env { + for k, v := range e { + c[k] = v + } + } + return c +} diff --git a/drone/exec/exec.go b/drone/exec/exec.go index c1d5df7..4ac4213 100644 --- a/drone/exec/exec.go +++ b/drone/exec/exec.go @@ -2,29 +2,35 @@ package exec import ( "context" - "io" + "errors" + "io/ioutil" "log" + "net/url" "os" - "path" - "path/filepath" - "runtime" - "strings" + "strconv" "time" - "github.com/cncd/pipeline/pipeline" - "github.com/cncd/pipeline/pipeline/backend" - "github.com/cncd/pipeline/pipeline/backend/docker" - "github.com/cncd/pipeline/pipeline/frontend" - "github.com/cncd/pipeline/pipeline/frontend/yaml" - "github.com/cncd/pipeline/pipeline/frontend/yaml/compiler" - "github.com/cncd/pipeline/pipeline/frontend/yaml/linter" - "github.com/cncd/pipeline/pipeline/interrupt" - "github.com/cncd/pipeline/pipeline/multipart" "github.com/drone/envsubst" + "github.com/drone/drone-runtime/engine" + "github.com/drone/drone-runtime/engine/docker" + "github.com/drone/drone-runtime/runtime" + "github.com/drone/drone-runtime/runtime/term" + "github.com/drone/drone-yaml/yaml" + "github.com/drone/drone-yaml/yaml/compiler" + "github.com/drone/drone-yaml/yaml/compiler/transform" + "github.com/drone/drone-yaml/yaml/converter" + "github.com/drone/drone-yaml/yaml/linter" + "github.com/drone/signal" + + "github.com/joho/godotenv" + "github.com/mattn/go-colorable" + "github.com/mattn/go-isatty" "github.com/urfave/cli" ) +var tty = isatty.IsTerminal(os.Stdout.Fd()) + // Command exports the exec command. var Command = cli.Command{ Name: "exec", @@ -36,247 +42,107 @@ var Command = cli.Command{ } }, Flags: []cli.Flag{ - cli.BoolTFlag{ - Name: "local", - Usage: "build from local directory", - EnvVar: "DRONE_LOCAL", - }, - cli.DurationFlag{ - Name: "timeout", - Usage: "build timeout", - Value: time.Hour, - EnvVar: "DRONE_TIMEOUT", + cli.StringFlag{ + Name: "pipeline", + Usage: "Name of the pipeline to execute", }, cli.StringSliceFlag{ - Name: "volumes", - Usage: "build volumes", - EnvVar: "DRONE_VOLUMES", + Name: "include", + Usage: "Name of steps to include", }, cli.StringSliceFlag{ - Name: "network", - Usage: "external networks", - EnvVar: "DRONE_NETWORKS", + Name: "exclude", + Usage: "Name of steps to exclude", }, cli.StringFlag{ - Name: "prefix", - Value: "drone", - Usage: "prefix containers created by drone", - EnvVar: "DRONE_DOCKER_PREFIX", - Hidden: true, + Name: "resume-at", + Usage: "Name of start to resume at", + }, + cli.BoolFlag{ + Name: "clone", + Usage: "enable the clone step", + }, + cli.BoolFlag{ + Name: "trusted", + Usage: "build is trusted", + }, + cli.DurationFlag{ + Name: "timeout", + Usage: "build timeout", + Value: time.Hour, + }, + cli.StringSliceFlag{ + Name: "volume", + Usage: "build volumes", + }, + cli.StringSliceFlag{ + Name: "network", + Usage: "external networks", + }, + cli.StringSliceFlag{ + Name: "registry", + Usage: "registry", + }, + cli.StringFlag{ + Name: "secret-file", + Usage: "secret file, define values that can be used with from_secret", + }, + cli.StringFlag{ + Name: "env-file", + Usage: "env file", }, cli.StringSliceFlag{ Name: "privileged", Usage: "privileged plugins", Value: &cli.StringSlice{ "plugins/docker", - "plugins/gcr", + "plugins/acr", "plugins/ecr", + "plugins/gcr", + "plugins/heroku", }, }, - // - // Please note the below flags are mirrored in the pipec and - // should be kept synchronized. Do not edit directly - // https://github.com/cncd/pipeline/pipec - // - - // - // workspace default - // - cli.StringFlag{ - Name: "workspace-base", - Value: "/drone", - EnvVar: "DRONE_WORKSPACE_BASE", - }, - cli.StringFlag{ - Name: "workspace-path", - Value: "src", - EnvVar: "DRONE_WORKSPACE_PATH", - }, // // netrc parameters // cli.StringFlag{ - Name: "netrc-username", - EnvVar: "DRONE_NETRC_USERNAME", + Name: "netrc-username", }, cli.StringFlag{ - Name: "netrc-password", - EnvVar: "DRONE_NETRC_PASSWORD", + Name: "netrc-password", }, cli.StringFlag{ - Name: "netrc-machine", - EnvVar: "DRONE_NETRC_MACHINE", + Name: "netrc-machine", }, + // - // metadata parameters + // trigger parameters // + cli.StringFlag{ - Name: "system-arch", - Value: "linux/amd64", - EnvVar: "DRONE_SYSTEM_ARCH", + Name: "branch", + Usage: "branch name", }, cli.StringFlag{ - Name: "system-name", - Value: "pipec", - EnvVar: "DRONE_SYSTEM_NAME", + Name: "event", + Usage: "build event name (push, pull_request, etc)", }, cli.StringFlag{ - Name: "system-link", - Value: "https://github.com/cncd/pipec", - EnvVar: "DRONE_SYSTEM_LINK", + Name: "instance", + Usage: "instance hostname (e.g. drone.company.com)", }, cli.StringFlag{ - Name: "repo-name", - EnvVar: "DRONE_REPO_NAME", + Name: "ref", + Usage: "git reference", }, cli.StringFlag{ - Name: "repo-link", - EnvVar: "DRONE_REPO_LINK", + Name: "repo", + Usage: "git repository name (e.g. octocat/hello-world)", }, cli.StringFlag{ - Name: "repo-remote-url", - EnvVar: "DRONE_REPO_REMOTE", - }, - cli.StringFlag{ - Name: "repo-private", - EnvVar: "DRONE_REPO_PRIVATE", - }, - cli.IntFlag{ - Name: "build-number", - EnvVar: "DRONE_BUILD_NUMBER", - }, - cli.IntFlag{ - Name: "parent-build-number", - EnvVar: "DRONE_PARENT_BUILD_NUMBER", - }, - cli.Int64Flag{ - Name: "build-created", - EnvVar: "DRONE_BUILD_CREATED", - }, - cli.Int64Flag{ - Name: "build-started", - EnvVar: "DRONE_BUILD_STARTED", - }, - cli.Int64Flag{ - Name: "build-finished", - EnvVar: "DRONE_BUILD_FINISHED", - }, - cli.StringFlag{ - Name: "build-status", - EnvVar: "DRONE_BUILD_STATUS", - }, - cli.StringFlag{ - Name: "build-event", - EnvVar: "DRONE_BUILD_EVENT", - }, - cli.StringFlag{ - Name: "build-link", - EnvVar: "DRONE_BUILD_LINK", - }, - cli.StringFlag{ - Name: "build-target", - EnvVar: "DRONE_BUILD_TARGET", - }, - cli.StringFlag{ - Name: "commit-sha", - EnvVar: "DRONE_COMMIT_SHA", - }, - cli.StringFlag{ - Name: "commit-ref", - EnvVar: "DRONE_COMMIT_REF", - }, - cli.StringFlag{ - Name: "commit-refspec", - EnvVar: "DRONE_COMMIT_REFSPEC", - }, - cli.StringFlag{ - Name: "commit-branch", - EnvVar: "DRONE_COMMIT_BRANCH", - }, - cli.StringFlag{ - Name: "commit-message", - EnvVar: "DRONE_COMMIT_MESSAGE", - }, - cli.StringFlag{ - Name: "commit-author-name", - EnvVar: "DRONE_COMMIT_AUTHOR_NAME", - }, - cli.StringFlag{ - Name: "commit-author-avatar", - EnvVar: "DRONE_COMMIT_AUTHOR_AVATAR", - }, - cli.StringFlag{ - Name: "commit-author-email", - EnvVar: "DRONE_COMMIT_AUTHOR_EMAIL", - }, - cli.IntFlag{ - Name: "prev-build-number", - EnvVar: "DRONE_PREV_BUILD_NUMBER", - }, - cli.Int64Flag{ - Name: "prev-build-created", - EnvVar: "DRONE_PREV_BUILD_CREATED", - }, - cli.Int64Flag{ - Name: "prev-build-started", - EnvVar: "DRONE_PREV_BUILD_STARTED", - }, - cli.Int64Flag{ - Name: "prev-build-finished", - EnvVar: "DRONE_PREV_BUILD_FINISHED", - }, - cli.StringFlag{ - Name: "prev-build-status", - EnvVar: "DRONE_PREV_BUILD_STATUS", - }, - cli.StringFlag{ - Name: "prev-build-event", - EnvVar: "DRONE_PREV_BUILD_EVENT", - }, - cli.StringFlag{ - Name: "prev-build-link", - EnvVar: "DRONE_PREV_BUILD_LINK", - }, - cli.StringFlag{ - Name: "prev-commit-sha", - EnvVar: "DRONE_PREV_COMMIT_SHA", - }, - cli.StringFlag{ - Name: "prev-commit-ref", - EnvVar: "DRONE_PREV_COMMIT_REF", - }, - cli.StringFlag{ - Name: "prev-commit-refspec", - EnvVar: "DRONE_PREV_COMMIT_REFSPEC", - }, - cli.StringFlag{ - Name: "prev-commit-branch", - EnvVar: "DRONE_PREV_COMMIT_BRANCH", - }, - cli.StringFlag{ - Name: "prev-commit-message", - EnvVar: "DRONE_PREV_COMMIT_MESSAGE", - }, - cli.StringFlag{ - Name: "prev-commit-author-name", - EnvVar: "DRONE_PREV_COMMIT_AUTHOR_NAME", - }, - cli.StringFlag{ - Name: "prev-commit-author-avatar", - EnvVar: "DRONE_PREV_COMMIT_AUTHOR_AVATAR", - }, - cli.StringFlag{ - Name: "prev-commit-author-email", - EnvVar: "DRONE_PREV_COMMIT_AUTHOR_EMAIL", - }, - cli.IntFlag{ - Name: "job-number", - EnvVar: "DRONE_JOB_NUMBER", - }, - cli.StringSliceFlag{ - Name: "env, e", - EnvVar: "DRONE_ENV", + Name: "deploy-to", + Usage: "deployment target (e.g. production)", }, }, } @@ -287,211 +153,204 @@ func exec(c *cli.Context) error { file = ".drone.yml" } - metadata := metadataFromContext(c) - environ := metadata.Environ() - secrets := []compiler.Secret{} - for k, v := range metadata.EnvironDrone() { - environ[k] = v - } - for key, val := range metadata.Job.Matrix { - environ[key] = val - secrets = append(secrets, compiler.Secret{ - Name: key, - Value: val, - }) - } - - drone_env := make(map[string]string) - for _, env := range c.StringSlice("env") { - envs := strings.SplitN(env, "=", 2) - drone_env[envs[0]] = envs[1] - } - - tmpl, err := envsubst.ParseFile(file) + data, err := ioutil.ReadFile(file) if err != nil { return err } - confstr, err := tmpl.Execute(func(name string) string { + + environ := getEnv(c) + dataS, err := envsubst.Eval(string(data), func(name string) string { return environ[name] }) if err != nil { return err } - conf, err := yaml.ParseString(confstr) + // this code is temporarily in place to detect and convert + // the legacy yaml configuration file to the new format. + dataS, err = converter.ConvertString(dataS, converter.Metadata{ + Filename: file, + Ref: c.String("ref"), + }) if err != nil { return err } - // configure volumes for local execution - volumes := c.StringSlice("volumes") - if c.Bool("local") { - var ( - workspaceBase = conf.Workspace.Base - workspacePath = conf.Workspace.Path - ) - if workspaceBase == "" { - workspaceBase = c.String("workspace-base") - } - if workspacePath == "" { - workspacePath = c.String("workspace-path") - } - dir, _ := filepath.Abs(filepath.Dir(file)) - - if runtime.GOOS == "windows" { - dir = convertPathForWindows(dir) - } - volumes = append(volumes, c.String("prefix")+"_default:"+workspaceBase) - volumes = append(volumes, dir+":"+path.Join(workspaceBase, workspacePath)) + manifest, err := yaml.ParseString(dataS) + if err != nil { + return err } - // lint the yaml file - if lerr := linter.New(linter.WithTrusted(true)).Lint(conf); lerr != nil { - return lerr + var pipeline *yaml.Pipeline + filter := c.String("pipeline") + for _, resource := range manifest.Resources { + v, ok := resource.(*yaml.Pipeline) + if !ok { + continue + } + if filter == "" || filter == v.Name { + pipeline = v + break + } + } + if pipeline == nil { + return errors.New("cannot find pipeline") } - // compiles the yaml file - compiled := compiler.New( - compiler.WithEscalated( - c.StringSlice("privileged")..., + trusted := c.Bool("trusted") + err = linter.Lint(pipeline, trusted) + if err != nil { + return err + } + + // the user has the option to disable the git clone + // if the pipeline is being executed on the local + // codebase. + if c.Bool("clone") == false { + pipeline.Clone.Disable = true + } + + comp := new(compiler.Compiler) + comp.PrivilegedFunc = compiler.DindFunc( + c.StringSlice("privileged"), + ) + comp.SkipFunc = compiler.SkipFunc( + compiler.SkipData{ + Branch: environ["DRONE_BRANCH"], + Event: environ["DRONE_EVENT"], + Instance: environ["DRONE_SYSTEM_HOST"], + Ref: environ["DRONE_COMMIT_REF"], + Repo: environ["DRONE_REPO"], + Target: environ["DRONE_DEPLOY_TO"], + }, + ) + transforms := []func(*engine.Spec){ + transform.Include( + c.StringSlice("include"), ), - compiler.WithVolumes(volumes...), - compiler.WithWorkspace( - c.String("workspace-base"), - c.String("workspace-path"), + transform.Exclude( + c.StringSlice("exclude"), ), - compiler.WithNetworks( - c.StringSlice("network")..., + transform.ResumeAt( + c.String("resume-at"), ), - compiler.WithPrefix( - c.String("prefix"), + transform.WithAuths( + toRegistry( + c.StringSlice("registry"), + ), ), - compiler.WithProxy(), - compiler.WithLocal( - c.Bool("local"), + transform.WithEnviron( + readParams( + c.String("env-file"), + ), ), - compiler.WithNetrc( + transform.WithEnviron(environ), + transform.WithLables(nil), + transform.WithLimits(0, 0), + transform.WithNetrc( + c.String("netrc-machine"), c.String("netrc-username"), c.String("netrc-password"), - c.String("netrc-machine"), ), - compiler.WithMetadata(metadata), - compiler.WithSecret(secrets...), - compiler.WithEnviron(drone_env), - ).Compile(conf) + transform.WithNetworks( + c.StringSlice("network"), + ), + transform.WithProxy(), + transform.WithSecrets( + readParams( + c.String("secret-file"), + ), + ), + transform.WithVolumeSlice( + c.StringSlice("volume"), + ), + } + if c.Bool("clone") == false { + pwd, _ := os.Getwd() + comp.WorkspaceMountFunc = compiler.MountHostWorkspace + comp.WorkspaceFunc = compiler.CreateHostWorkspace(pwd) + } + comp.TransformFunc = transform.Combine(transforms...) + ir := comp.Compile(pipeline) + ctx, cancel := context.WithTimeout( + context.Background(), + c.Duration("timeout"), + ) + ctx = signal.WithContext(ctx) + defer cancel() + + // creates a docker-based engine. eventually we will + // include the kubernetes and vmware fusion engines. engine, err := docker.NewEnv() if err != nil { return err } - ctx, cancel := context.WithTimeout(context.Background(), c.Duration("timeout")) - defer cancel() - ctx = interrupt.WithContext(ctx) + // creates a hook to print the step output to stdout, + // with per-step color coding if a tty. + hooks := &runtime.Hook{} + hooks.BeforeEach = func(s *runtime.State) error { + s.Step.Envs["CI_BUILD_STATUS"] = "success" + s.Step.Envs["CI_BUILD_STARTED"] = strconv.FormatInt(s.Runtime.Time, 10) + s.Step.Envs["CI_BUILD_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) + s.Step.Envs["DRONE_BUILD_STATUS"] = "success" + s.Step.Envs["DRONE_BUILD_STARTED"] = strconv.FormatInt(s.Runtime.Time, 10) + s.Step.Envs["DRONE_BUILD_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) - return pipeline.New(compiled, - pipeline.WithContext(ctx), - pipeline.WithTracer(pipeline.DefaultTracer), - pipeline.WithLogger(defaultLogger), - pipeline.WithEngine(engine), - ).Run() -} + s.Step.Envs["CI_JOB_STATUS"] = "success" + s.Step.Envs["CI_JOB_STARTED"] = strconv.FormatInt(s.Runtime.Time, 10) + s.Step.Envs["CI_JOB_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) + s.Step.Envs["DRONE_JOB_STATUS"] = "success" + s.Step.Envs["DRONE_JOB_STARTED"] = strconv.FormatInt(s.Runtime.Time, 10) + s.Step.Envs["DRONE_JOB_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) -// return the metadata from the cli context. -func metadataFromContext(c *cli.Context) frontend.Metadata { - return frontend.Metadata{ - Repo: frontend.Repo{ - Name: c.String("repo-name"), - Link: c.String("repo-link"), - Remote: c.String("repo-remote-url"), - Private: c.Bool("repo-private"), - }, - Curr: frontend.Build{ - Number: c.Int("build-number"), - Parent: c.Int("parent-build-number"), - Created: c.Int64("build-created"), - Started: c.Int64("build-started"), - Finished: c.Int64("build-finished"), - Status: c.String("build-status"), - Event: c.String("build-event"), - Link: c.String("build-link"), - Target: c.String("build-target"), - Commit: frontend.Commit{ - Sha: c.String("commit-sha"), - Ref: c.String("commit-ref"), - Refspec: c.String("commit-refspec"), - Branch: c.String("commit-branch"), - Message: c.String("commit-message"), - Author: frontend.Author{ - Name: c.String("commit-author-name"), - Email: c.String("commit-author-email"), - Avatar: c.String("commit-author-avatar"), - }, - }, - }, - Prev: frontend.Build{ - Number: c.Int("prev-build-number"), - Created: c.Int64("prev-build-created"), - Started: c.Int64("prev-build-started"), - Finished: c.Int64("prev-build-finished"), - Status: c.String("prev-build-status"), - Event: c.String("prev-build-event"), - Link: c.String("prev-build-link"), - Commit: frontend.Commit{ - Sha: c.String("prev-commit-sha"), - Ref: c.String("prev-commit-ref"), - Refspec: c.String("prev-commit-refspec"), - Branch: c.String("prev-commit-branch"), - Message: c.String("prev-commit-message"), - Author: frontend.Author{ - Name: c.String("prev-commit-author-name"), - Email: c.String("prev-commit-author-email"), - Avatar: c.String("prev-commit-author-avatar"), - }, - }, - }, - Job: frontend.Job{ - Number: c.Int("job-number"), - Matrix: availableEnvironment(), - }, - Sys: frontend.System{ - Name: c.String("system-name"), - Link: c.String("system-link"), - Arch: c.String("system-arch"), - }, - } -} - -func availableEnvironment() map[string]string { - result := make(map[string]string, 0) - - for _, env := range os.Environ() { - pair := strings.SplitN(env, "=", 2) - result[pair[0]] = pair[1] + if s.Runtime.Error != nil { + s.Step.Envs["CI_BUILD_STATUS"] = "failure" + s.Step.Envs["CI_JOB_STATUS"] = "failure" + s.Step.Envs["DRONE_BUILD_STATUS"] = "failure" + s.Step.Envs["DRONE_JOB_STATUS"] = "failure" + } + return nil } - return result -} - -func convertPathForWindows(path string) string { - base := filepath.VolumeName(path) - if len(base) == 2 { - path = strings.TrimPrefix(path, base) - base = strings.ToLower(strings.TrimSuffix(base, ":")) - return "/" + base + filepath.ToSlash(path) + hooks.GotLine = term.WriteLine(os.Stdout) + if tty { + hooks.GotLine = term.WriteLinePretty( + colorable.NewColorableStdout(), + ) } - return filepath.ToSlash(path) + return runtime.New( + runtime.WithEngine(engine), + runtime.WithConfig(ir), + runtime.WithHooks(hooks), + ).Run(ctx) } -var defaultLogger = pipeline.LogFunc(func(proc *backend.Step, rc multipart.Reader) error { - part, err := rc.NextPart() - if err != nil { - return err +// helper function converts a slice of urls to a slice +// of docker registry credentials. +func toRegistry(items []string) []*engine.DockerAuth { + auths := []*engine.DockerAuth{} + for _, item := range items { + uri, err := url.Parse(item) + if err != nil { + continue // skip invalid + } + user := uri.User.Username() + pass, _ := uri.User.Password() + uri.User = nil + auths = append(auths, &engine.DockerAuth{ + Address: uri.String(), + Username: user, + Password: pass, + }) } + return auths +} - logstream := NewLineWriter(proc.Alias) - io.Copy(logstream, part) - - return nil -}) +// helper function reads secrets from a key-value file. +func readParams(path string) map[string]string { + data, _ := godotenv.Read(path) + return data +} diff --git a/drone/format/format.go b/drone/format/format.go new file mode 100644 index 0000000..eeb6232 --- /dev/null +++ b/drone/format/format.go @@ -0,0 +1,47 @@ +package format + +import ( + "bytes" + "io" + "io/ioutil" + "os" + + "github.com/drone/drone-yaml/yaml" + "github.com/drone/drone-yaml/yaml/pretty" + "github.com/urfave/cli" +) + +// Command exports the fmt command. +var Command = cli.Command{ + Name: "fmt", + Usage: "format the yaml file", + ArgsUsage: "", + Action: format, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "save", + Usage: "save result to source", + }, + }, +} + +func format(c *cli.Context) error { + path := c.Args().First() + if path == "" { + path = ".drone.yml" + } + + manifest, err := yaml.ParseFile(path) + if err != nil { + return err + } + + buf := new(bytes.Buffer) + pretty.Print(buf, manifest) + + if c.Bool("save") { + return ioutil.WriteFile(path, buf.Bytes(), 0644) + } + _, err = io.Copy(os.Stderr, buf) + return err +} diff --git a/drone/info/info.go b/drone/info/info.go index 3e6047e..58f7b54 100644 --- a/drone/info/info.go +++ b/drone/info/info.go @@ -4,9 +4,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) // Command exports the info command. @@ -17,10 +17,9 @@ var Command = cli.Command{ Action: info, Flags: []cli.Flag{ cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplInfo, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplInfo, }, }, } @@ -36,7 +35,7 @@ func info(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/internal/util.go b/drone/internal/util.go index 9106da2..46c8ec6 100644 --- a/drone/internal/util.go +++ b/drone/internal/util.go @@ -49,6 +49,10 @@ func NewClient(c *cli.Context) (drone.Client, error) { }, ) + auther.CheckRedirect = func(*http.Request, []*http.Request) error { + return fmt.Errorf("Attempting to redirect the requests. Did you configure the correct drone server address?") + } + trans, _ := auther.Transport.(*oauth2.Transport) if len(socks) != 0 && !socksoff { @@ -79,7 +83,7 @@ func NewAutoscaleClient(c *cli.Context) (drone.Client, error) { } autoscaler := c.GlobalString("autoscaler") if autoscaler == "" { - return nil, fmt.Errorf("Please provide the autoscaler address") + return nil, fmt.Errorf("Please provide the autoscaler address.") } client.SetAddress( strings.TrimSuffix(autoscaler, "/"), @@ -91,7 +95,7 @@ func NewAutoscaleClient(c *cli.Context) (drone.Client, error) { func ParseRepo(str string) (user, repo string, err error) { var parts = strings.Split(str, "/") if len(parts) != 2 { - err = fmt.Errorf("Error: Invalid or missing repository. eg octocat/hello-world.") + err = fmt.Errorf("Error: Invalid or missing repository (e.g. octocat/hello-world).") return } user = parts[0] diff --git a/drone/jsonnet/jsonnet.go b/drone/jsonnet/jsonnet.go index c99b0ae..2343f51 100644 --- a/drone/jsonnet/jsonnet.go +++ b/drone/jsonnet/jsonnet.go @@ -1,9 +1,16 @@ package jsonnet import ( + "bytes" + "fmt" + "io" "io/ioutil" "log" + "os" + "strings" + "github.com/drone/drone-yaml/yaml" + "github.com/drone/drone-yaml/yaml/pretty" "github.com/fatih/color" "github.com/google/go-jsonnet" "github.com/urfave/cli" @@ -20,67 +27,120 @@ var Command = cli.Command{ } }, Flags: []cli.Flag{ + cli.StringFlag{ + Name: "source", + Usage: "Source file", + Value: ".drone.jsonnet", + }, + cli.StringFlag{ + Name: "target", + Usage: "target file", + Value: ".drone.yml", + }, cli.BoolFlag{ - Name: "string", - Hidden: true, + Name: "stream", + Usage: "Write output as a YAML stream.", }, - cli.IntFlag{ - Name: "max-stack", - Usage: "number of allowed stack frames", - Value: 500, - }, - cli.IntFlag{ - Name: "max-trace", - Usage: "max length of stack trace before cropping", - Value: 20, + cli.BoolTFlag{ + Name: "format", + Usage: "Write output as formatted YAML", }, cli.BoolFlag{ Name: "stdout", - Usage: "write the json document to stdout", + Usage: "Write output to stdout", + }, + cli.BoolFlag{ + Name: "string", + Usage: "Expect a string, manifest as plain text", + }, + cli.StringSliceFlag{ + Name: "extVar, V", + Usage: "Pass extVars to Jsonnet (can be specified multiple times)", }, }, } func generate(c *cli.Context) error { - input := c.Args().Get(0) - if input == "" { - input = ".drone.jsonnet" - } - output := c.Args().Get(1) - if output == "" { - output = ".drone.yml" - } + source := c.String("source") + target := c.String("target") - snippet, err := ioutil.ReadFile(input) + data, err := ioutil.ReadFile(source) if err != nil { return err } vm := jsonnet.MakeVM() - vm.KeepOrder = true + vm.MaxStack = 500 vm.StringOutput = c.Bool("string") - vm.MaxStack = c.Int("max-stack") - // vm.ExtVar - // vm.ExtCode - // vm.TLAVar - // vm.TLACode - // vm.Importer(&jsonnet.FileImporter{}) - - vm.ErrorFormatter.SetMaxStackTraceSize( - c.Int("max-trace"), - ) + vm.ErrorFormatter.SetMaxStackTraceSize(20) vm.ErrorFormatter.SetColorFormatter( color.New(color.FgRed).Fprintf, ) - raw, err := vm.EvaluateSnippet(input, string(snippet)) - if err != nil { - return err + // register native functions + RegisterNativeFuncs(vm) + + // extVars + vars := c.StringSlice("extVar") + for _, v := range vars { + name, value, err := getVarVal(v) + if err != nil { + return err + } + vm.ExtVar(name, value) } + buf := new(bytes.Buffer) + if c.Bool("stream") { + docs, err := vm.EvaluateSnippetStream(source, string(data)) + if err != nil { + return err + } + for _, doc := range docs { + buf.WriteString("---") + buf.WriteString("\n") + buf.WriteString(doc) + } + } else { + result, err := vm.EvaluateSnippet(source, string(data)) + if err != nil { + return err + } + buf.WriteString(result) + } + + // the yaml file is parsed and formatted by default. This + // can be disabled for --format=false. + if c.BoolT("format") { + manifest, err := yaml.Parse(buf) + if err != nil { + return err + } + buf.Reset() + pretty.Print(buf, manifest) + } + + // the user can optionally write the yaml to stdout. This + // is useful for debugging purposes without mutating an + // existing file. if c.Bool("stdout") { - println(raw) + io.Copy(os.Stdout, buf) return nil } - return ioutil.WriteFile(output, []byte(raw), 0644) + + return ioutil.WriteFile(target, buf.Bytes(), 0644) +} + +// https://github.com/google/go-jsonnet/blob/master/cmd/jsonnet/cmd.go#L149 +func getVarVal(s string) (string, string, error) { + parts := strings.SplitN(s, "=", 2) + name := parts[0] + if len(parts) == 1 { + content, exists := os.LookupEnv(name) + if exists { + return name, content, nil + } + return "", "", fmt.Errorf("environment variable %v was undefined", name) + } + return name, parts[1], nil } diff --git a/drone/jsonnet/nativefuncs.go b/drone/jsonnet/nativefuncs.go new file mode 100644 index 0000000..1e5ad6a --- /dev/null +++ b/drone/jsonnet/nativefuncs.go @@ -0,0 +1,45 @@ +package jsonnet + +import ( + // "bytes" + // "encoding/json" + // "io" + + jsonnet "github.com/google/go-jsonnet" + // jsonnetAst "github.com/google/go-jsonnet/ast" + // "k8s.io/apimachinery/pkg/util/yaml" +) + +// RegisterNativeFuncs adds kubecfg's native jsonnet functions to provided VM +func RegisterNativeFuncs(vm *jsonnet.VM) { + // vm.NativeFunction(&jsonnet.NativeFunction{ + // Name: "parseJson", + // Params: []jsonnetAst.Identifier{"json"}, + // Func: func(args []interface{}) (res interface{}, err error) { + // data := []byte(args[0].(string)) + // err = json.Unmarshal(data, &res) + // return + // }, + // }) + + // vm.NativeFunction(&jsonnet.NativeFunction{ + // Name: "parseYaml", + // Params: []jsonnetAst.Identifier{"yaml"}, + // Func: func(args []interface{}) (res interface{}, err error) { + // ret := []interface{}{} + // data := []byte(args[0].(string)) + // d := yaml.NewYAMLToJSONDecoder(bytes.NewReader(data)) + // for { + // var doc interface{} + // if err := d.Decode(&doc); err != nil { + // if err == io.EOF { + // break + // } + // return nil, err + // } + // ret = append(ret, doc) + // } + // return ret, nil + // }, + // }) +} diff --git a/drone/lint/lint.go b/drone/lint/lint.go new file mode 100644 index 0000000..1c3bcfa --- /dev/null +++ b/drone/lint/lint.go @@ -0,0 +1,41 @@ +package lint + +import ( + "github.com/drone/drone-yaml/yaml" + "github.com/drone/drone-yaml/yaml/linter" + "github.com/urfave/cli" +) + +// Command exports the linter command. +var Command = cli.Command{ + Name: "lint", + Usage: "lint the yaml file", + ArgsUsage: "", + Action: lint, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "trusted", + Usage: "is the yaml trustable", + }, + }, +} + +func lint(c *cli.Context) error { + path := c.Args().First() + if path == "" { + path = ".drone.yml" + } + + manifest, err := yaml.ParseFile(path) + if err != nil { + return err + } + + for _, resource := range manifest.Resources { + if err := linter.Lint(resource, c.Bool("trusted")); err != nil { + return err + } + } + + return nil +} diff --git a/drone/log/log.go b/drone/log/log.go index 37a2c61..5321e59 100644 --- a/drone/log/log.go +++ b/drone/log/log.go @@ -8,5 +8,6 @@ var Command = cli.Command{ Usage: "manage logs", Subcommands: []cli.Command{ logPurgeCmd, + logViewCmd, }, } diff --git a/drone/log/log_purge.go b/drone/log/log_purge.go index 9bb0adb..49fe2eb 100644 --- a/drone/log/log_purge.go +++ b/drone/log/log_purge.go @@ -11,7 +11,7 @@ import ( var logPurgeCmd = cli.Command{ Name: "purge", Usage: "purge a log", - ArgsUsage: " ", + ArgsUsage: " ", Action: logPurge, } @@ -25,13 +25,21 @@ func logPurge(c *cli.Context) (err error) { if err != nil { return err } + stage, err := strconv.Atoi(c.Args().Get(2)) + if err != nil { + return err + } + step, err := strconv.Atoi(c.Args().Get(3)) + if err != nil { + return err + } client, err := internal.NewClient(c) if err != nil { return err } - err = client.LogsPurge(owner, name, number) + err = client.LogsPurge(owner, name, number, stage, step) if err != nil { return err } diff --git a/drone/log/log_view.go b/drone/log/log_view.go new file mode 100644 index 0000000..8879ed2 --- /dev/null +++ b/drone/log/log_view.go @@ -0,0 +1,50 @@ +package log + +import ( + "strconv" + + "github.com/drone/drone-cli/drone/internal" + "github.com/urfave/cli" +) + +var logViewCmd = cli.Command{ + Name: "view", + Usage: "display the step logs", + ArgsUsage: " ", + Action: logView, +} + +func logView(c *cli.Context) (err error) { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + number, err := strconv.Atoi(c.Args().Get(1)) + if err != nil { + return err + } + stage, err := strconv.Atoi(c.Args().Get(2)) + if err != nil { + return err + } + step, err := strconv.Atoi(c.Args().Get(3)) + if err != nil { + return err + } + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + lines, err := client.Logs(owner, name, number, stage, step) + if err != nil { + return err + } + + for _, line := range lines { + print(line.Message) + } + return nil +} diff --git a/drone/main.go b/drone/main.go index 5d27d73..5ce29ac 100644 --- a/drone/main.go +++ b/drone/main.go @@ -6,15 +6,23 @@ import ( "github.com/drone/drone-cli/drone/autoscale" "github.com/drone/drone-cli/drone/build" - "github.com/drone/drone-cli/drone/deploy" + "github.com/drone/drone-cli/drone/convert" + "github.com/drone/drone-cli/drone/cron" + "github.com/drone/drone-cli/drone/encrypt" "github.com/drone/drone-cli/drone/exec" + "github.com/drone/drone-cli/drone/format" "github.com/drone/drone-cli/drone/info" "github.com/drone/drone-cli/drone/jsonnet" + "github.com/drone/drone-cli/drone/lint" "github.com/drone/drone-cli/drone/log" - "github.com/drone/drone-cli/drone/registry" + "github.com/drone/drone-cli/drone/orgsecret" + "github.com/drone/drone-cli/drone/plugins" + "github.com/drone/drone-cli/drone/queue" "github.com/drone/drone-cli/drone/repo" "github.com/drone/drone-cli/drone/secret" "github.com/drone/drone-cli/drone/server" + "github.com/drone/drone-cli/drone/sign" + "github.com/drone/drone-cli/drone/starlark" "github.com/drone/drone-cli/drone/user" _ "github.com/joho/godotenv/autoload" @@ -68,17 +76,25 @@ func main() { } app.Commands = []cli.Command{ build.Command, + cron.Command, log.Command, - deploy.Command, + encrypt.Command, exec.Command, info.Command, - registry.Command, - secret.Command, repo.Command, user.Command, + secret.Command, server.Command, + queue.Command, + orgsecret.Command, autoscale.Command, + format.Command, + convert.Command, + lint.Command, + sign.Command, jsonnet.Command, + starlark.Command, + plugins.Command, } if err := app.Run(os.Args); err != nil { diff --git a/drone/node/node.go b/drone/node/node.go new file mode 100644 index 0000000..a8a458b --- /dev/null +++ b/drone/node/node.go @@ -0,0 +1,24 @@ +package node + +import "github.com/urfave/cli" + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "node", + Usage: "manage nodes", + Hidden: true, + Subcommands: []cli.Command{ + nodeListCmd, + nodeInfoCmd, + nodeCreateCmd, + // nodeUpdateCmd, + // nodeDeleteCmd, + // nodePauseCmd, + // nodeUnpauseCmd, + // nodeLockCmd, + // nodeUnlockCmd, + // nodeInitCmd, + nodeImportCmd, + // nodeKeygenCmd, + }, +} diff --git a/drone/node/node_create.go b/drone/node/node_create.go new file mode 100644 index 0000000..e78eb50 --- /dev/null +++ b/drone/node/node_create.go @@ -0,0 +1,149 @@ +package node + +import ( + "html/template" + "io/ioutil" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var nodeCreateCmd = cli.Command{ + Name: "add", + Usage: "adds a node", + Action: nodeCreate, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "name", + Usage: "node name", + }, + cli.StringFlag{ + Name: "hostname", + Usage: "node hostname or ip address", + }, + cli.StringFlag{ + Name: "ca-key", + Usage: "path to ca key", + }, + cli.StringFlag{ + Name: "ca-cert", + Usage: "path to ca cert", + }, + cli.StringFlag{ + Name: "tls-key", + Usage: "path to tls key", + }, + cli.StringFlag{ + Name: "tls-cert", + Usage: "path to tls cert", + }, + cli.StringFlag{ + Name: "tls-server-name", + Usage: "tls server name", + }, + cli.IntFlag{ + Name: "capacity", + Usage: "node capacity", + Value: 2, + }, + cli.StringFlag{ + Name: "os", + Usage: "node os", + Value: "linux", + }, + cli.StringFlag{ + Name: "arch", + Usage: "node arch", + Value: "amd64", + }, + cli.StringFlag{ + Name: "region", + Usage: "node region", + }, + cli.StringFlag{ + Name: "instance", + Usage: "node instance type", + }, + cli.StringFlag{ + Name: "image", + Usage: "node image (i.e. ami)", + }, + cli.StringFlag{ + Name: "provider", + Usage: "node hosting provider (e.g. amazon)", + }, + cli.BoolFlag{ + Name: "paused", + Usage: "node is paused", + }, + cli.BoolFlag{ + Name: "protected", + Usage: "node is protected from deletion", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplNodeInfo, + }, + }, +} + +func nodeCreate(c *cli.Context) error { + client, err := internal.NewClient(c) + if err != nil { + return err + } + + cakey, err := ioutil.ReadFile(c.String("ca-key")) + if err != nil { + return err + } + cacert, err := ioutil.ReadFile(c.String("ca-cert")) + if err != nil { + return err + } + tlskey, err := ioutil.ReadFile(c.String("tls-key")) + if err != nil { + return err + } + tlscert, err := ioutil.ReadFile(c.String("tls-cert")) + if err != nil { + return err + } + + node := &drone.Node{ + UID: c.String("id"), + Provider: c.String("provider"), + State: c.String("state"), + Name: c.String("name"), + Image: c.String("image"), + Region: c.String("region"), + Size: c.String("instance"), + OS: c.String("os"), + Arch: c.String("arch"), + Address: c.String("hostname"), + Capacity: c.Int("capacity"), + CAKey: cakey, + CACert: cacert, + TLSKey: tlskey, + TLSCert: tlscert, + TLSName: c.String("tls-server-name"), + Paused: c.Bool("paused"), + Protected: c.Bool("protected"), + } + + _, err = client.NodeCreate(node) + if err != nil { + return err + } + + format := c.String("format") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, node) +} diff --git a/drone/node/node_delete.go b/drone/node/node_delete.go new file mode 100644 index 0000000..2b4023a --- /dev/null +++ b/drone/node/node_delete.go @@ -0,0 +1 @@ +package node diff --git a/drone/node/node_import.go b/drone/node/node_import.go new file mode 100644 index 0000000..49a0fe4 --- /dev/null +++ b/drone/node/node_import.go @@ -0,0 +1,192 @@ +package node + +import ( + "encoding/json" + "fmt" + "html/template" + "io/ioutil" + "os" + "os/user" + "path/filepath" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +func getMachineHome() (path string) { + user, err := user.Current() + if err == nil { + return filepath.Join(user.HomeDir, ".docker", "machine") + } + return +} + +var nodeImportCmd = cli.Command{ + Name: "import", + Usage: "import a node from docker-machine", + Action: nodeImport, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "name", + Usage: "node name", + }, + cli.IntFlag{ + Name: "capacity", + Usage: "node capacity", + Value: 2, + }, + cli.StringFlag{ + Name: "os", + Usage: "node os", + Value: "linux", + }, + cli.StringFlag{ + Name: "arch", + Usage: "node arch", + Value: "amd64", + }, + cli.BoolFlag{ + Name: "paused", + Usage: "node is paused", + }, + cli.BoolFlag{ + Name: "protected", + Usage: "node is protected from deletion", + }, + cli.StringFlag{ + Name: "storage-path", + Usage: "docker machine storage path", + Value: getMachineHome(), + EnvVar: "MACHINE_STORAGE_PATH", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplNodeInfo, + }, + }, +} + +func nodeImport(c *cli.Context) error { + client, err := internal.NewClient(c) + if err != nil { + return err + } + + name := c.String("name") + if name == "" { + name = c.Args().First() + } + + home := c.String("storage-path") + base := filepath.Join(home, "machines", name) + + conf := new(machine) + confpath := filepath.Join(base, "config.json") + confdata, err := ioutil.ReadFile(confpath) + if err != nil { + return err + } + + err = json.Unmarshal(confdata, conf) + if err != nil { + return err + } + + cakey, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.CaPrivateKeyPath) + if err != nil { + return err + } + cacert, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.CaCertPath) + if err != nil { + return err + } + tlskey, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.ClientKeyPath) + if err != nil { + return err + } + tlscert, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.ClientCertPath) + if err != nil { + return err + } + + node := &drone.Node{ + UID: fmt.Sprint(conf.Driver.DropletID), + Provider: c.String("provider"), + State: c.String("state"), + Name: conf.Driver.MachineName, + Image: conf.Driver.Image, + Region: conf.Driver.Region, + Size: conf.Driver.Size, + OS: c.String("os"), + Arch: c.String("arch"), + Address: conf.Driver.IPAddress, + Capacity: 2, + CAKey: cakey, + CACert: cacert, + TLSKey: tlskey, + TLSCert: tlscert, + Paused: c.Bool("paused"), + Protected: c.Bool("protected"), + } + + _, err = client.NodeCreate(node) + if err != nil { + return err + } + + format := c.String("format") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, node) +} + +type machine struct { + DriverName string + Driver struct { + IPAddress string `json:"IPAddress"` + MachineName string `json:"MachineName"` + SSHUser string `json:"SSHUser"` + SSHPort int `json:"SSHPort"` + SSHKeyPath string `json:"SSHKeyPath"` + StorePath string `json:"StorePath"` + SwarmMaster bool `json:"SwarmMaster"` + SwarmHost string `json:"SwarmHost"` + SwarmDiscovery string `json:"SwarmDiscovery"` + AccessToken string `json:"AccessToken"` + DropletID int `json:"DropletID"` + DropletName string `json:"DropletName"` + Image string `json:"Image"` + Region string `json:"Region"` + SSHKeyID int `json:"SSHKeyID"` + SSHKeyFingerprint string `json:"SSHKeyFingerprint"` + SSHKey string `json:"SSHKey"` + Size string `json:"Size"` + IPv6 bool `json:"IPv6"` + Backups bool `json:"Backups"` + PrivateNetworking bool `json:"PrivateNetworking"` + UserDataFile string `json:"UserDataFile"` + Monitoring bool `json:"Monitoring"` + Tags string `json:"Tags"` + } + HostOptions struct { + AuthOptions struct { + CertDir string `json:"CertDir"` + CaCertPath string `json:"CaCertPath"` + CaPrivateKeyPath string `json:"CaPrivateKeyPath"` + CaCertRemotePath string `json:"CaCertRemotePath"` + ServerCertPath string `json:"ServerCertPath"` + ServerKeyPath string `json:"ServerKeyPath"` + ClientKeyPath string `json:"ClientKeyPath"` + ServerCertRemotePath string `json:"ServerCertRemotePath"` + ServerKeyRemotePath string `json:"ServerKeyRemotePath"` + ClientCertPath string `json:"ClientCertPath"` + ServerCertSANs []interface{} `json:"ServerCertSANs"` + StorePath string `json:"StorePath"` + } + } +} diff --git a/drone/node/node_import_all.go b/drone/node/node_import_all.go new file mode 100644 index 0000000..c6de72e --- /dev/null +++ b/drone/node/node_import_all.go @@ -0,0 +1,155 @@ +package node + +import ( + "encoding/json" + "fmt" + "html/template" + "io/ioutil" + "os" + "path/filepath" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var nodeImportAllCmd = cli.Command{ + Name: "import-all", + Usage: "import all node from docker-machine", + Action: nodeImportAll, + Flags: []cli.Flag{ + cli.IntFlag{ + Name: "capacity", + Usage: "node capacity", + Value: 2, + }, + cli.StringFlag{ + Name: "os", + Usage: "node os", + Value: "linux", + }, + cli.StringFlag{ + Name: "arch", + Usage: "node arch", + Value: "amd64", + }, + cli.BoolFlag{ + Name: "paused", + Usage: "node is paused", + }, + cli.BoolFlag{ + Name: "protected", + Usage: "node is protected from deletion", + }, + cli.StringFlag{ + Name: "storage-path", + Usage: "docker machine storage path", + Value: getMachineHome(), + EnvVar: "MACHINE_STORAGE_PATH", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplNodeInfo, + }, + }, +} + +func nodeImportAll(c *cli.Context) error { + client, err := internal.NewClient(c) + if err != nil { + return err + } + home := c.String("storage-path") + + matches, err := filepath.Glob(filepath.Join(home, "machines", "*")) + if err != nil { + return err + } + + nodes, err := client.NodeList() + if err != nil { + return err + } + nodeIndex := map[string]*drone.Node{} + for _, node := range nodes { + nodeIndex[node.Name] = node + } + + format := c.String("format") + "\n" + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + + for _, name := range matches { + base := filepath.Join(home, "machines", name) + + // if the node already exists it should be + // ignored by the system. + existing, ok := nodeIndex[name] + if ok { + tmpl.Execute(os.Stdout, existing) + continue + } + + conf := new(machine) + confpath := filepath.Join(base, "config.json") + confdata, err := ioutil.ReadFile(confpath) + if err != nil { + return err + } + + err = json.Unmarshal(confdata, conf) + if err != nil { + return err + } + + cakey, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.CaPrivateKeyPath) + if err != nil { + return err + } + cacert, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.CaCertPath) + if err != nil { + return err + } + tlskey, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.ClientKeyPath) + if err != nil { + return err + } + tlscert, err := ioutil.ReadFile(conf.HostOptions.AuthOptions.ClientCertPath) + if err != nil { + return err + } + + node := &drone.Node{ + UID: fmt.Sprint(conf.Driver.DropletID), + Provider: c.String("provider"), + State: c.String("state"), + Name: conf.Driver.MachineName, + Image: conf.Driver.Image, + Region: conf.Driver.Region, + Size: conf.Driver.Size, + OS: c.String("os"), + Arch: c.String("arch"), + Address: conf.Driver.IPAddress, + Capacity: 2, + CAKey: cakey, + CACert: cacert, + TLSKey: tlskey, + TLSCert: tlscert, + Paused: c.Bool("paused"), + Protected: c.Bool("protected"), + } + + _, err = client.NodeCreate(node) + if err != nil { + return err + } + + tmpl.Execute(os.Stdout, node) + } + + return nil +} diff --git a/drone/node/node_info.go b/drone/node/node_info.go new file mode 100644 index 0000000..63d3548 --- /dev/null +++ b/drone/node/node_info.go @@ -0,0 +1,51 @@ +package node + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var nodeInfoCmd = cli.Command{ + Name: "info", + Usage: "display node info", + Action: nodeInfo, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplNodeInfo, + }, + }, +} + +func nodeInfo(c *cli.Context) error { + client, err := internal.NewClient(c) + if err != nil { + return err + } + name := c.Args().First() + node, err := client.Node(name) + if err != nil { + return err + } + format := c.String("format") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, node) +} + +var tmplNodeInfo = "\x1b[33m{{ .Name }} \x1b[0m" + ` +Address: {{ .Address }} +Region: {{ .Region }} +Instance: {{ .Size }} +OS: {{ .OS }} +Arch: {{ .Arch }} +Locked: {{ .Protected }} +Paused: {{ .Paused }} +` diff --git a/drone/node/node_init.go b/drone/node/node_init.go new file mode 100644 index 0000000..2b4023a --- /dev/null +++ b/drone/node/node_init.go @@ -0,0 +1 @@ +package node diff --git a/drone/node/node_keygen.go b/drone/node/node_keygen.go new file mode 100644 index 0000000..2b4023a --- /dev/null +++ b/drone/node/node_keygen.go @@ -0,0 +1 @@ +package node diff --git a/drone/node/node_list.go b/drone/node/node_list.go new file mode 100644 index 0000000..88416b6 --- /dev/null +++ b/drone/node/node_list.go @@ -0,0 +1,49 @@ +package node + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var nodeListCmd = cli.Command{ + Name: "ls", + Usage: "list nodes", + Action: nodeList, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplNodeList, + }, + }, +} + +func nodeList(c *cli.Context) error { + client, err := internal.NewClient(c) + if err != nil { + return err + } + list, err := client.NodeList() + if err != nil { + return err + } + format := c.String("format") + "\n" + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + for _, cron := range list { + tmpl.Execute(os.Stdout, cron) + } + return nil +} + +// template for node list information +var tmplNodeList = "\x1b[33m{{ .Name }} \x1b[0m" + ` +Address: {{ .Address }} +Platform: {{ .OS }}/{{ .Arch }} +` diff --git a/drone/node/node_update.go b/drone/node/node_update.go new file mode 100644 index 0000000..2b4023a --- /dev/null +++ b/drone/node/node_update.go @@ -0,0 +1 @@ +package node diff --git a/drone/orgsecret/secret.go b/drone/orgsecret/secret.go new file mode 100644 index 0000000..c999c35 --- /dev/null +++ b/drone/orgsecret/secret.go @@ -0,0 +1,16 @@ +package orgsecret + +import "github.com/urfave/cli" + +// Command exports the secret command. +var Command = cli.Command{ + Name: "orgsecret", + Usage: "manage organization secrets", + Subcommands: []cli.Command{ + secretCreateCmd, + secretDeleteCmd, + secretUpdateCmd, + secretInfoCmd, + secretListCmd, + }, +} diff --git a/drone/orgsecret/secret_add.go b/drone/orgsecret/secret_add.go new file mode 100644 index 0000000..1ea1193 --- /dev/null +++ b/drone/orgsecret/secret_add.go @@ -0,0 +1,57 @@ +package orgsecret + +import ( + "io/ioutil" + "strings" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +var secretCreateCmd = cli.Command{ + Name: "add", + Usage: "adds a secret", + ArgsUsage: "[organization] [name] [data]", + Action: secretCreate, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "allow-pull-request", + Usage: "permit read access to pull requests", + }, + cli.BoolFlag{ + Name: "allow-push-on-pull-request", + Usage: "permit write access to pull requests (e.g. allow docker push)", + }, + }, +} + +func secretCreate(c *cli.Context) error { + var ( + namespace = c.Args().First() + name = c.Args().Get(1) + data = c.Args().Get(2) + ) + client, err := internal.NewClient(c) + if err != nil { + return err + } + secret := &drone.Secret{ + Name: name, + Data: data, + PullRequest: c.Bool("allow-pull-request"), + PullRequestPush: c.Bool("allow-push-on-pull-request"), + } + + if strings.HasPrefix(secret.Data, "@") { + path := strings.TrimPrefix(secret.Data, "@") + out, ferr := ioutil.ReadFile(path) + if ferr != nil { + return ferr + } + secret.Data = string(out) + } + _, err = client.OrgSecretCreate(namespace, secret) + return err +} diff --git a/drone/orgsecret/secret_info.go b/drone/orgsecret/secret_info.go new file mode 100644 index 0000000..70696ef --- /dev/null +++ b/drone/orgsecret/secret_info.go @@ -0,0 +1,45 @@ +package orgsecret + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var secretInfoCmd = cli.Command{ + Name: "info", + Usage: "display secret info", + ArgsUsage: "[organization] [name]", + Action: secretInfo, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplSecretList, + }, + }, +} + +func secretInfo(c *cli.Context) error { + var ( + namespace = c.Args().First() + name = c.Args().Get(1) + format = c.String("format") + "\n" + ) + client, err := internal.NewClient(c) + if err != nil { + return err + } + secret, err := client.OrgSecret(namespace, name) + if err != nil { + return err + } + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + return tmpl.Execute(os.Stdout, secret) +} diff --git a/drone/orgsecret/secret_list.go b/drone/orgsecret/secret_list.go new file mode 100644 index 0000000..80460eb --- /dev/null +++ b/drone/orgsecret/secret_list.go @@ -0,0 +1,62 @@ +package orgsecret + +import ( + "html/template" + "os" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var secretListCmd = cli.Command{ + Name: "ls", + Usage: "list secrets", + ArgsUsage: "", + Action: secretList, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "filter", + Usage: "filter output by organization", + }, + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplSecretList, + }, + }, +} + +func secretList(c *cli.Context) error { + filter := c.String("filter") + format := c.String("format") + "\n" + client, err := internal.NewClient(c) + if err != nil { + return err + } + var list []*drone.Secret + if filter == "" { + list, err = client.OrgSecretListAll() + } else { + list, err = client.OrgSecretList(filter) + } + if err != nil { + return err + } + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + for _, secret := range list { + tmpl.Execute(os.Stdout, secret) + } + return nil +} + +// template for secret list items +var tmplSecretList = "\x1b[33m{{ .Name }} \x1b[0m" + ` +Organization: {{ .Namespace }} +Pull Request Read: {{ .PullRequest }} +Pull Request Write: {{ .PullRequestPush }} +` diff --git a/drone/orgsecret/secret_rm.go b/drone/orgsecret/secret_rm.go new file mode 100644 index 0000000..fd9a8b2 --- /dev/null +++ b/drone/orgsecret/secret_rm.go @@ -0,0 +1,27 @@ +package orgsecret + +import ( + "github.com/urfave/cli" + + "github.com/drone/drone-cli/drone/internal" +) + +var secretDeleteCmd = cli.Command{ + Name: "rm", + Usage: "remove a secret", + ArgsUsage: "[organization] [name]", + Action: secretDelete, + Flags: []cli.Flag{}, +} + +func secretDelete(c *cli.Context) error { + var ( + namespace = c.Args().First() + name = c.Args().Get(1) + ) + client, err := internal.NewClient(c) + if err != nil { + return err + } + return client.OrgSecretDelete(namespace, name) +} diff --git a/drone/orgsecret/secret_set.go b/drone/orgsecret/secret_set.go new file mode 100644 index 0000000..5edb1ca --- /dev/null +++ b/drone/orgsecret/secret_set.go @@ -0,0 +1,56 @@ +package orgsecret + +import ( + "io/ioutil" + "strings" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + + "github.com/urfave/cli" +) + +var secretUpdateCmd = cli.Command{ + Name: "update", + Usage: "update a secret", + ArgsUsage: "[organization] [name] [data]", + Action: secretUpdate, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "allow-pull-request", + Usage: "permit read access to pull requests", + }, + cli.BoolFlag{ + Name: "allow-push-on-pull-request", + Usage: "permit write access to pull requests (e.g. allow docker push)", + }, + }, +} + +func secretUpdate(c *cli.Context) error { + var ( + namespace = c.Args().First() + name = c.Args().Get(1) + data = c.Args().Get(2) + ) + client, err := internal.NewClient(c) + if err != nil { + return err + } + secret := &drone.Secret{ + Name: name, + Data: data, + PullRequest: c.Bool("allow-pull-request"), + PullRequestPush: c.Bool("allow-push-on-pull-request"), + } + if strings.HasPrefix(secret.Data, "@") { + path := strings.TrimPrefix(secret.Data, "@") + out, ferr := ioutil.ReadFile(path) + if ferr != nil { + return ferr + } + secret.Data = string(out) + } + _, err = client.OrgSecretUpdate(namespace, secret) + return err +} diff --git a/drone/plugins/admit/admit.go b/drone/plugins/admit/admit.go new file mode 100644 index 0000000..4f60efd --- /dev/null +++ b/drone/plugins/admit/admit.go @@ -0,0 +1,64 @@ +package admit + +import ( + "context" + + "github.com/drone/drone-go/drone" + "github.com/drone/drone-go/plugin/admission" + "github.com/urfave/cli" +) + +// Command exports the admission command set. +var Command = cli.Command{ + Name: "admit", + Usage: "test user admission", + ArgsUsage: "user", + Action: admit, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "user", + Usage: "username", + }, + + cli.StringFlag{ + Name: "endpoint", + Usage: "plugin endpoint", + EnvVar: "DRONE_ADMISSION_ENDPOINT", + }, + cli.StringFlag{ + Name: "secret", + Usage: "plugin secret", + EnvVar: "DRONE_ADMISSION_SECRET", + }, + cli.StringFlag{ + Name: "ssl-skip-verify", + Usage: "plugin ssl verification disabled", + EnvVar: "DRONE_ADMISSION_SKIP_VERIFY", + }, + }, +} + +func admit(c *cli.Context) error { + login := c.String("user") + if login == "" { + login = c.Args().First() + } + + req := &admission.Request{ + User: drone.User{ + Login: login, + }, + } + + client := admission.Client( + c.String("endpoint"), + c.String("secret"), + c.Bool("ssl-skip-verify"), + ) + _, err := client.Admit(context.Background(), req) + if err != nil { + return err + } + + return nil +} diff --git a/drone/plugins/config/config.go b/drone/plugins/config/config.go new file mode 100644 index 0000000..1dbffa9 --- /dev/null +++ b/drone/plugins/config/config.go @@ -0,0 +1,12 @@ +package config + +import "github.com/urfave/cli" + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "config", + Usage: "config plugin helpers", + Subcommands: []cli.Command{ + configFindCmd, + }, +} diff --git a/drone/plugins/config/get.go b/drone/plugins/config/get.go new file mode 100644 index 0000000..0e38a1a --- /dev/null +++ b/drone/plugins/config/get.go @@ -0,0 +1,106 @@ +package config + +import ( + "context" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/drone-go/plugin/config" + "github.com/urfave/cli" +) + +var configFindCmd = cli.Command{ + Name: "get", + Usage: "get the pipeline configuration", + ArgsUsage: "[repo/name]", + Action: configFind, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "ref", + Usage: "git reference", + Value: "refs/heads/master", + }, + cli.StringFlag{ + Name: "source", + Usage: "source branch", + Value: "master", + }, + cli.StringFlag{ + Name: "target", + Usage: "target branch", + Value: "master", + }, + cli.StringFlag{ + Name: "before", + Usage: "commit sha before the change", + }, + cli.StringFlag{ + Name: "after", + Usage: "commit sha after the change", + }, + cli.StringFlag{ + Name: "path", + Usage: "configuration file path", + Value: ".drone.jsonnet", + }, + + // TODO(bradrydzewski) these parameters should + // be defined globally for all plugin commands. + + cli.StringFlag{ + Name: "endpoint", + Usage: "plugin endpoint", + EnvVar: "DRONE_YAML_ENDPOINT", + }, + cli.StringFlag{ + Name: "secret", + Usage: "plugin secret", + EnvVar: "DRONE_YAML_SECRET", + }, + cli.StringFlag{ + Name: "ssl-skip-verify", + Usage: "plugin ssl verification disabled", + EnvVar: "DRONE_YAML_SKIP_VERIFY", + }, + }, +} + +func configFind(c *cli.Context) error { + slug := c.Args().First() + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + + repo := drone.Repo{ + Namespace: owner, + Name: name, + Slug: slug, + Config: c.String("path"), + } + + build := drone.Build{ + Ref: c.String("ref"), + Before: c.String("before"), + After: c.String("after"), + Source: c.String("source"), + Target: c.String("target"), + } + + req := &config.Request{ + Repo: repo, + Build: build, + } + + client := config.Client( + c.String("endpoint"), + c.String("secret"), + c.Bool("ssl-skip-verify"), + ) + res, err := client.Find(context.Background(), req) + if err != nil { + return err + } + println(res.Data) + return nil +} diff --git a/drone/plugins/convert/convert.go b/drone/plugins/convert/convert.go new file mode 100644 index 0000000..aa3a88a --- /dev/null +++ b/drone/plugins/convert/convert.go @@ -0,0 +1,122 @@ +package convert + +import ( + "context" + "io/ioutil" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/drone-go/plugin/converter" + "github.com/urfave/cli" +) + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "convert", + Usage: "convert the pipeline configuration", + ArgsUsage: "[repo/name]", + Action: convert, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "path", + Usage: "path to the configuration file", + }, + cli.StringFlag{ + Name: "ref", + Usage: "git reference", + Value: "refs/heads/master", + }, + cli.StringFlag{ + Name: "source", + Usage: "source branch", + Value: "master", + }, + cli.StringFlag{ + Name: "target", + Usage: "target branch", + Value: "master", + }, + cli.StringFlag{ + Name: "before", + Usage: "commit sha before the change", + }, + cli.StringFlag{ + Name: "after", + Usage: "commit sha after the change", + }, + cli.StringFlag{ + Name: "repository", + Usage: "repository name", + }, + + // TODO(bradrydzewski) these parameters should + // be defined globally for all plugin commands. + + cli.StringFlag{ + Name: "endpoint", + Usage: "plugin endpoint", + EnvVar: "DRONE_CONVERT_ENDPOINT", + }, + cli.StringFlag{ + Name: "secret", + Usage: "plugin secret", + EnvVar: "DRONE_CONVERT_SECRET", + }, + cli.StringFlag{ + Name: "ssl-skip-verify", + Usage: "plugin ssl verification disabled", + EnvVar: "DRONE_CONVERT_SKIP_VERIFY", + }, + }, +} + +func convert(c *cli.Context) error { + slug := c.String("repository") + owner, name, _ := internal.ParseRepo(slug) + + path := c.String("path") + if path == "" { + path = c.Args().First() + } + + raw, err := ioutil.ReadFile(path) + if err != nil { + return err + } + + req := &converter.Request{ + Repo: drone.Repo{ + Namespace: owner, + Name: name, + Slug: slug, + Config: path, + }, + Build: drone.Build{ + Ref: c.String("ref"), + Before: c.String("before"), + After: c.String("after"), + Source: c.String("source"), + Target: c.String("target"), + }, + Config: drone.Config{ + Data: string(raw), + }, + } + + client := converter.Client( + c.String("endpoint"), + c.String("secret"), + c.Bool("ssl-skip-verify"), + ) + res, err := client.Convert(context.Background(), req) + if err != nil { + return err + } + switch { + case res == nil: + println(string(raw)) + case res != nil: + println(res.Data) + } + return nil +} diff --git a/drone/plugins/plugins.go b/drone/plugins/plugins.go new file mode 100644 index 0000000..34b2ab5 --- /dev/null +++ b/drone/plugins/plugins.go @@ -0,0 +1,24 @@ +package plugins + +import ( + "github.com/drone/drone-cli/drone/plugins/admit" + "github.com/drone/drone-cli/drone/plugins/config" + "github.com/drone/drone-cli/drone/plugins/convert" + "github.com/drone/drone-cli/drone/plugins/registry" + "github.com/drone/drone-cli/drone/plugins/secret" + + "github.com/urfave/cli" +) + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "plugins", + Usage: "plugin helper functions", + Subcommands: []cli.Command{ + admit.Command, + config.Command, + convert.Command, + secret.Command, + registry.Command, + }, +} diff --git a/drone/plugins/registry/list.go b/drone/plugins/registry/list.go new file mode 100644 index 0000000..7b15ce9 --- /dev/null +++ b/drone/plugins/registry/list.go @@ -0,0 +1,123 @@ +package registry + +import ( + "context" + "os" + "text/template" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/drone-go/plugin/registry" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var registryListCmd = cli.Command{ + Name: "list", + Usage: "list the registry credentials", + Action: registryList, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "ref", + Usage: "git reference", + Value: "refs/heads/master", + }, + cli.StringFlag{ + Name: "source", + Usage: "source branch", + }, + cli.StringFlag{ + Name: "target", + Usage: "target branch", + }, + cli.StringFlag{ + Name: "before", + Usage: "commit sha before the change", + }, + cli.StringFlag{ + Name: "after", + Usage: "commit sha after the change", + }, + cli.StringFlag{ + Name: "event", + Usage: "build event", + }, + cli.StringFlag{ + Name: "repo", + Usage: "repository name", + }, + + // TODO(bradrydzewski) these parameters should + // be defined globally for all plugin commands. + + cli.StringFlag{ + Name: "endpoint", + Usage: "plugin endpoint", + EnvVar: "DRONE_REGISTRY_ENDPOINT", + }, + cli.StringFlag{ + Name: "secret", + Usage: "plugin secret", + EnvVar: "DRONE_REGISTRY_SECRET", + }, + cli.StringFlag{ + Name: "ssl-skip-verify", + Usage: "plugin ssl verification disabled", + EnvVar: "DRONE_REGISTRY_VERIFY", + }, + cli.StringFlag{ + Name: "format", + Value: tmplList, + }, + }, +} + +func registryList(c *cli.Context) error { + slug := c.String("repo") + owner, name, _ := internal.ParseRepo(slug) + + repo := drone.Repo{ + Namespace: owner, + Name: name, + Slug: slug, + } + + build := drone.Build{ + Ref: c.String("ref"), + Before: c.String("before"), + After: c.String("after"), + Source: c.String("source"), + Target: c.String("target"), + Event: c.String("event"), + } + + req := ®istry.Request{ + Repo: repo, + Build: build, + } + + client := registry.Client( + c.String("endpoint"), + c.String("secret"), + c.Bool("ssl-skip-verify"), + ) + list, err := client.List(context.Background(), req) + if err != nil { + return err + } + + format := c.String("format") + "\n" + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) + if err != nil { + return err + } + for _, item := range list { + tmpl.Execute(os.Stdout, item) + } + return nil +} + +var tmplList = "\x1b[33m{{ .Address }} \x1b[0m" + ` +Username: {{ .Username }} +Password: {{ .Password }} +` diff --git a/drone/registry/registry.go b/drone/plugins/registry/registry.go similarity index 63% rename from drone/registry/registry.go rename to drone/plugins/registry/registry.go index 60855a3..e10b240 100644 --- a/drone/registry/registry.go +++ b/drone/plugins/registry/registry.go @@ -5,12 +5,8 @@ import "github.com/urfave/cli" // Command exports the registry command set. var Command = cli.Command{ Name: "registry", - Usage: "manage registries", + Usage: "registry plugin helpers", Subcommands: []cli.Command{ - registryCreateCmd, - registryDeleteCmd, - registryUpdateCmd, - registryInfoCmd, registryListCmd, }, } diff --git a/drone/plugins/secret/get.go b/drone/plugins/secret/get.go new file mode 100644 index 0000000..7d00647 --- /dev/null +++ b/drone/plugins/secret/get.go @@ -0,0 +1,112 @@ +package secret + +import ( + "context" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" + "github.com/drone/drone-go/plugin/secret" + "github.com/urfave/cli" +) + +var secretFindCmd = cli.Command{ + Name: "get", + Usage: "get the named secret", + ArgsUsage: "secret", + Action: secretFind, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "ref", + Usage: "git reference", + Value: "refs/heads/master", + }, + cli.StringFlag{ + Name: "source", + Usage: "source branch", + }, + cli.StringFlag{ + Name: "target", + Usage: "target branch", + }, + cli.StringFlag{ + Name: "before", + Usage: "commit sha before the change", + }, + cli.StringFlag{ + Name: "after", + Usage: "commit sha after the change", + }, + cli.StringFlag{ + Name: "event", + Usage: "build event", + }, + cli.StringFlag{ + Name: "repo", + Usage: "repository name", + }, + + // TODO(bradrydzewski) these parameters should + // be defined globally for all plugin commands. + + cli.StringFlag{ + Name: "endpoint", + Usage: "plugin endpoint", + EnvVar: "DRONE_SECRET_ENDPOINT", + }, + cli.StringFlag{ + Name: "secret", + Usage: "plugin secret", + EnvVar: "DRONE_SECRET_SECRET", + }, + cli.StringFlag{ + Name: "ssl-skip-verify", + Usage: "plugin ssl verification disabled", + EnvVar: "DRONE_SECRET_VERIFY", + }, + }, +} + +func secretFind(c *cli.Context) error { + path := c.Args().First() + key := c.Args().Get(1) + + slug := c.String("repo") + owner, name, err := internal.ParseRepo(slug) + if err != nil { + return err + } + + repo := drone.Repo{ + Namespace: owner, + Name: name, + Slug: slug, + } + + build := drone.Build{ + Ref: c.String("ref"), + Before: c.String("before"), + After: c.String("after"), + Source: c.String("source"), + Target: c.String("target"), + Event: c.String("event"), + } + + req := &secret.Request{ + Path: path, + Name: key, + Repo: repo, + Build: build, + } + + client := secret.Client( + c.String("endpoint"), + c.String("secret"), + c.Bool("ssl-skip-verify"), + ) + res, err := client.Find(context.Background(), req) + if err != nil { + return err + } + println(res.Data) + return nil +} diff --git a/drone/plugins/secret/secret.go b/drone/plugins/secret/secret.go new file mode 100644 index 0000000..0732dfb --- /dev/null +++ b/drone/plugins/secret/secret.go @@ -0,0 +1,12 @@ +package secret + +import "github.com/urfave/cli" + +// Command exports the registry command set. +var Command = cli.Command{ + Name: "secret", + Usage: "secret plugin helpers", + Subcommands: []cli.Command{ + secretFindCmd, + }, +} diff --git a/drone/queue/queue.go b/drone/queue/queue.go new file mode 100644 index 0000000..881ccb1 --- /dev/null +++ b/drone/queue/queue.go @@ -0,0 +1,14 @@ +package queue + +import "github.com/urfave/cli" + +// Command exports the queue command set. +var Command = cli.Command{ + Name: "queue", + Usage: "queue operations", + Subcommands: []cli.Command{ + queueListCmd, + queuePauseCmd, + queueResumeCmd, + }, +} diff --git a/drone/queue/queue_list.go b/drone/queue/queue_list.go new file mode 100644 index 0000000..e7ba541 --- /dev/null +++ b/drone/queue/queue_list.go @@ -0,0 +1,59 @@ +package queue + +import ( + "fmt" + "os" + "text/template" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" +) + +var queueListCmd = cli.Command{ + Name: "ls", + Usage: "list queue items", + Action: queueList, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "format", + Usage: "format output", + Value: tmplStage, + }, + }, +} + +func queueList(c *cli.Context) (err error) { + client, err := internal.NewClient(c) + if err != nil { + return err + } + builds, err := client.Queue() + if err != nil { + return err + } + + if len(builds) == 0 { + fmt.Println("there are no pending or running builds") + return nil + } + + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") + if err != nil { + return err + } + + for _, build := range builds { + tmpl.Execute(os.Stdout, build) + } + return nil +} + +var tmplStage = "\x1b[33mitem #{{ .ID }} \x1b[0m" + ` +Status: {{ .Status }} +Machine: {{ .Machine }} +OS: {{ .OS }} +Arch: {{ .Arch }} +Variant: {{ .Variant }} +Version: {{ .Kernel }} +` diff --git a/drone/queue/queue_pause.go b/drone/queue/queue_pause.go new file mode 100644 index 0000000..a4c9806 --- /dev/null +++ b/drone/queue/queue_pause.go @@ -0,0 +1,20 @@ +package queue + +import ( + "github.com/drone/drone-cli/drone/internal" + "github.com/urfave/cli" +) + +var queuePauseCmd = cli.Command{ + Name: "pause", + Usage: "pause queue operations", + Action: queuePause, +} + +func queuePause(c *cli.Context) (err error) { + client, err := internal.NewClient(c) + if err != nil { + return err + } + return client.QueuePause() +} diff --git a/drone/queue/queue_resume.go b/drone/queue/queue_resume.go new file mode 100644 index 0000000..2a22d0c --- /dev/null +++ b/drone/queue/queue_resume.go @@ -0,0 +1,20 @@ +package queue + +import ( + "github.com/drone/drone-cli/drone/internal" + "github.com/urfave/cli" +) + +var queueResumeCmd = cli.Command{ + Name: "resume", + Usage: "resume queue operations", + Action: queueResume, +} + +func queueResume(c *cli.Context) (err error) { + client, err := internal.NewClient(c) + if err != nil { + return err + } + return client.QueueResume() +} diff --git a/drone/registry/registry_add.go b/drone/registry/registry_add.go deleted file mode 100644 index b13ba06..0000000 --- a/drone/registry/registry_add.go +++ /dev/null @@ -1,75 +0,0 @@ -package registry - -import ( - "io/ioutil" - "strings" - - "github.com/drone/drone-cli/drone/internal" - "github.com/drone/drone-go/drone" - - "github.com/urfave/cli" -) - -var registryCreateCmd = cli.Command{ - Name: "add", - Usage: "adds a registry", - ArgsUsage: "[repo/name]", - Action: registryCreate, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "repository", - Usage: "repository name (e.g. octocat/hello-world)", - }, - cli.StringFlag{ - Name: "hostname", - Usage: "registry hostname", - Value: "docker.io", - }, - cli.StringFlag{ - Name: "username", - Usage: "registry username", - }, - cli.StringFlag{ - Name: "password", - Usage: "registry password", - }, - }, -} - -func registryCreate(c *cli.Context) error { - var ( - hostname = c.String("hostname") - username = c.String("username") - password = c.String("password") - reponame = c.String("repository") - ) - if reponame == "" { - reponame = c.Args().First() - } - owner, name, err := internal.ParseRepo(reponame) - if err != nil { - return err - } - client, err := internal.NewClient(c) - if err != nil { - return err - } - registry := &drone.Registry{ - Address: hostname, - Username: username, - Password: password, - } - if strings.HasPrefix(registry.Password, "@") { - path := strings.TrimPrefix(registry.Password, "@") - out, ferr := ioutil.ReadFile(path) - if ferr != nil { - return ferr - } - registry.Password = string(out) - } - _, err = client.RegistryCreate(owner, name, registry) - if err != nil { - return err - } - return nil -} diff --git a/drone/registry/registry_info.go b/drone/registry/registry_info.go deleted file mode 100644 index ef94e70..0000000 --- a/drone/registry/registry_info.go +++ /dev/null @@ -1,62 +0,0 @@ -package registry - -import ( - "html/template" - "os" - - "github.com/drone/drone-cli/drone/internal" - - "github.com/urfave/cli" -) - -var registryInfoCmd = cli.Command{ - Name: "info", - Usage: "display registry info", - ArgsUsage: "[repo/name]", - Action: registryInfo, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "repository", - Usage: "repository name (e.g. octocat/hello-world)", - }, - cli.StringFlag{ - Name: "hostname", - Usage: "registry hostname", - Value: "docker.io", - }, - cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplRegistryList, - Hidden: true, - }, - }, -} - -func registryInfo(c *cli.Context) error { - var ( - hostname = c.String("hostname") - reponame = c.String("repository") - format = c.String("format") + "\n" - ) - if reponame == "" { - reponame = c.Args().First() - } - owner, name, err := internal.ParseRepo(reponame) - if err != nil { - return err - } - client, err := internal.NewClient(c) - if err != nil { - return err - } - registry, err := client.Registry(owner, name, hostname) - if err != nil { - return err - } - tmpl, err := template.New("_").Parse(format) - if err != nil { - return err - } - return tmpl.Execute(os.Stdout, registry) -} diff --git a/drone/registry/registry_list.go b/drone/registry/registry_list.go deleted file mode 100644 index 93faf5d..0000000 --- a/drone/registry/registry_list.go +++ /dev/null @@ -1,65 +0,0 @@ -package registry - -import ( - "html/template" - "os" - - "github.com/urfave/cli" - - "github.com/drone/drone-cli/drone/internal" -) - -var registryListCmd = cli.Command{ - Name: "ls", - Usage: "list registries", - ArgsUsage: "[repo/name]", - Action: registryList, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "repository", - Usage: "repository name (e.g. octocat/hello-world)", - }, - cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplRegistryList, - Hidden: true, - }, - }, -} - -func registryList(c *cli.Context) error { - var ( - format = c.String("format") + "\n" - reponame = c.String("repository") - ) - if reponame == "" { - reponame = c.Args().First() - } - owner, name, err := internal.ParseRepo(reponame) - if err != nil { - return err - } - client, err := internal.NewClient(c) - if err != nil { - return err - } - list, err := client.RegistryList(owner, name) - if err != nil { - return err - } - tmpl, err := template.New("_").Parse(format) - if err != nil { - return err - } - for _, registry := range list { - tmpl.Execute(os.Stdout, registry) - } - return nil -} - -// template for build list information -var tmplRegistryList = "\x1b[33m{{ .Address }} \x1b[0m" + ` -Username: {{ .Username }} -Email: {{ .Email }} -` diff --git a/drone/registry/registry_rm.go b/drone/registry/registry_rm.go deleted file mode 100644 index d91522e..0000000 --- a/drone/registry/registry_rm.go +++ /dev/null @@ -1,44 +0,0 @@ -package registry - -import ( - "github.com/drone/drone-cli/drone/internal" - - "github.com/urfave/cli" -) - -var registryDeleteCmd = cli.Command{ - Name: "rm", - Usage: "remove a registry", - ArgsUsage: "[repo/name]", - Action: registryDelete, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "repository", - Usage: "repository name (e.g. octocat/hello-world)", - }, - cli.StringFlag{ - Name: "hostname", - Usage: "registry hostname", - Value: "docker.io", - }, - }, -} - -func registryDelete(c *cli.Context) error { - var ( - hostname = c.String("hostname") - reponame = c.String("repository") - ) - if reponame == "" { - reponame = c.Args().First() - } - owner, name, err := internal.ParseRepo(reponame) - if err != nil { - return err - } - client, err := internal.NewClient(c) - if err != nil { - return err - } - return client.RegistryDelete(owner, name, hostname) -} diff --git a/drone/registry/registry_set.go b/drone/registry/registry_set.go deleted file mode 100644 index 9e60270..0000000 --- a/drone/registry/registry_set.go +++ /dev/null @@ -1,75 +0,0 @@ -package registry - -import ( - "io/ioutil" - "strings" - - "github.com/drone/drone-cli/drone/internal" - "github.com/drone/drone-go/drone" - - "github.com/urfave/cli" -) - -var registryUpdateCmd = cli.Command{ - Name: "update", - Usage: "update a registry", - ArgsUsage: "[repo/name]", - Action: registryUpdate, - Flags: []cli.Flag{ - cli.StringFlag{ - Name: "repository", - Usage: "repository name (e.g. octocat/hello-world)", - }, - cli.StringFlag{ - Name: "hostname", - Usage: "registry hostname", - Value: "docker.io", - }, - cli.StringFlag{ - Name: "username", - Usage: "registry username", - }, - cli.StringFlag{ - Name: "password", - Usage: "registry password", - }, - }, -} - -func registryUpdate(c *cli.Context) error { - var ( - hostname = c.String("hostname") - username = c.String("username") - password = c.String("password") - reponame = c.String("repository") - ) - if reponame == "" { - reponame = c.Args().First() - } - owner, name, err := internal.ParseRepo(reponame) - if err != nil { - return err - } - client, err := internal.NewClient(c) - if err != nil { - return err - } - registry := &drone.Registry{ - Address: hostname, - Username: username, - Password: password, - } - if strings.HasPrefix(registry.Password, "@") { - path := strings.TrimPrefix(registry.Password, "@") - out, ferr := ioutil.ReadFile(path) - if ferr != nil { - return ferr - } - registry.Password = string(out) - } - _, err = client.RegistryUpdate(owner, name, registry) - if err != nil { - return err - } - return nil -} diff --git a/drone/repo/repo_add.go b/drone/repo/repo_add.go index 378d5c0..066ccde 100644 --- a/drone/repo/repo_add.go +++ b/drone/repo/repo_add.go @@ -8,8 +8,8 @@ import ( ) var repoAddCmd = cli.Command{ - Name: "add", - Usage: "add a repository", + Name: "enable", + Usage: "enable a repository", ArgsUsage: "", Action: repoAdd, } @@ -26,7 +26,7 @@ func repoAdd(c *cli.Context) error { return err } - if _, err := client.RepoPost(owner, name); err != nil { + if _, err := client.RepoEnable(owner, name); err != nil { return err } fmt.Printf("Successfully activated repository %s/%s\n", owner, name) diff --git a/drone/repo/repo_info.go b/drone/repo/repo_info.go index f85eead..b78eded 100644 --- a/drone/repo/repo_info.go +++ b/drone/repo/repo_info.go @@ -5,6 +5,7 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -39,7 +40,7 @@ func repoInfo(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format")) + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format")) if err != nil { return err } @@ -47,13 +48,12 @@ func repoInfo(c *cli.Context) error { } // template for repo information -var tmplRepoInfo = `Owner: {{ .Owner }} +var tmplRepoInfo = `Owner: {{ .Namespace }} Repo: {{ .Name }} -Type: {{ .Kind }} Config: {{ .Config }} Visibility: {{ .Visibility }} -Private: {{ .IsPrivate }} -Trusted: {{ .IsTrusted }} -Gated: {{ .IsGated }} -Remote: {{ .Clone }} +Private: {{ .Private }} +Trusted: {{ .Trusted }} +Protected: {{ .Protected }} +Remote: {{ .HTTPURL }} ` diff --git a/drone/repo/repo_list.go b/drone/repo/repo_list.go index 3e1ef48..2150286 100644 --- a/drone/repo/repo_list.go +++ b/drone/repo/repo_list.go @@ -5,6 +5,7 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -23,6 +24,10 @@ var repoListCmd = cli.Command{ Name: "org", Usage: "filter by organization", }, + cli.BoolFlag{ + Name: "active", + Usage: "filter active repositories only", + }, }, } @@ -37,14 +42,17 @@ func repoList(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } - org := c.String("org") + org, active := c.String("org"), c.Bool("active") for _, repo := range repos { - if org != "" && org != repo.Owner { + if org != "" && org != repo.Namespace { + continue + } + if !repo.Active && active { continue } tmpl.Execute(os.Stdout, repo) @@ -53,4 +61,4 @@ func repoList(c *cli.Context) error { } // template for repository list items -var tmplRepoList = `{{ .FullName }}` +var tmplRepoList = `{{ .Slug }}` diff --git a/drone/repo/repo_rm.go b/drone/repo/repo_rm.go index bc6caf0..f53a62a 100644 --- a/drone/repo/repo_rm.go +++ b/drone/repo/repo_rm.go @@ -9,8 +9,8 @@ import ( ) var repoRemoveCmd = cli.Command{ - Name: "rm", - Usage: "remove a repository", + Name: "disable", + Usage: "disable a repository", ArgsUsage: "", Action: repoRemove, } @@ -27,7 +27,7 @@ func repoRemove(c *cli.Context) error { return err } - if err := client.RepoDel(owner, name); err != nil { + if err := client.RepoDisable(owner, name); err != nil { return err } fmt.Printf("Successfully removed repository %s/%s\n", owner, name) diff --git a/drone/repo/repo_sync.go b/drone/repo/repo_sync.go index 3c7cbaa..e468c7b 100644 --- a/drone/repo/repo_sync.go +++ b/drone/repo/repo_sync.go @@ -5,6 +5,7 @@ import ( "text/template" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" "github.com/urfave/cli" ) @@ -28,21 +29,17 @@ func repoSync(c *cli.Context) error { return err } - repos, err := client.RepoListOpts(true, true) + repos, err := client.RepoListSync() if err != nil || len(repos) == 0 { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } - org := c.String("org") for _, repo := range repos { - if org != "" && org != repo.Owner { - continue - } tmpl.Execute(os.Stdout, repo) } return nil diff --git a/drone/repo/repo_update.go b/drone/repo/repo_update.go index 0b6e73d..801113e 100644 --- a/drone/repo/repo_update.go +++ b/drone/repo/repo_update.go @@ -21,8 +21,8 @@ var repoUpdateCmd = cli.Command{ Usage: "repository is trusted", }, cli.BoolFlag{ - Name: "gated", - Usage: "repository is gated", + Name: "protected", + Usage: "repository is protected", }, cli.DurationFlag{ Name: "timeout", @@ -32,6 +32,22 @@ var repoUpdateCmd = cli.Command{ Name: "visibility", Usage: "repository visibility", }, + cli.BoolFlag{ + Name: "ignore-forks", + Usage: "ignore forks", + }, + cli.BoolFlag{ + Name: "ignore-pull-requests", + Usage: "ignore pull requests", + }, + cli.BoolFlag{ + Name: "auto-cancel-pull-requests", + Usage: "automatically cancel pending pull request builds", + }, + cli.BoolFlag{ + Name: "auto-cancel-pushes", + Usage: "automatically cancel pending push builds", + }, cli.StringFlag{ Name: "config", Usage: "repository configuration path (e.g. .drone.yml)", @@ -64,17 +80,21 @@ func repoUpdate(c *cli.Context) error { config = c.String("config") timeout = c.Duration("timeout") trusted = c.Bool("trusted") - gated = c.Bool("gated") + protected = c.Bool("protected") + ignoreForks = c.Bool("ignore-forks") + ignorePulls = c.Bool("ignore-pull-requests") + cancelPulls = c.Bool("auto-cancel-pull-requests") + cancelPush = c.Bool("auto-cancel-pushes") buildCounter = c.Int("build-counter") unsafe = c.Bool("unsafe") ) patch := new(drone.RepoPatch) if c.IsSet("trusted") { - patch.IsTrusted = &trusted + patch.Trusted = &trusted } - if c.IsSet("gated") { - patch.IsGated = &gated + if c.IsSet("protected") { + patch.Protected = &protected } if c.IsSet("timeout") { v := int64(timeout / time.Minute) @@ -83,6 +103,18 @@ func repoUpdate(c *cli.Context) error { if c.IsSet("config") { patch.Config = &config } + if c.IsSet("ignore-forks") { + patch.IgnoreForks = &ignoreForks + } + if c.IsSet("ignore-pull-requests") { + patch.IgnorePulls = &ignorePulls + } + if c.IsSet("auto-cancel-pull-requests") { + patch.CancelPulls = &cancelPulls + } + if c.IsSet("auto-cancel-pushes") { + patch.CancelPush = &cancelPush + } if c.IsSet("visibility") { switch visibility { case "public", "private", "internal": @@ -93,10 +125,10 @@ func repoUpdate(c *cli.Context) error { fmt.Printf("Setting the build counter is an unsafe operation that could put your repository in an inconsistent state. Please use --unsafe to proceed") } if c.IsSet("build-counter") && unsafe { - patch.BuildCounter = &buildCounter + patch.Counter = &buildCounter } - if _, err := client.RepoPatch(owner, name, patch); err != nil { + if _, err := client.RepoUpdate(owner, name, patch); err != nil { return err } fmt.Printf("Successfully updated repository %s/%s\n", owner, name) diff --git a/drone/secret/secret_add.go b/drone/secret/secret_add.go index e40fd0f..f538889 100644 --- a/drone/secret/secret_add.go +++ b/drone/secret/secret_add.go @@ -25,16 +25,16 @@ var secretCreateCmd = cli.Command{ Usage: "secret name", }, cli.StringFlag{ - Name: "value", + Name: "data", Usage: "secret value", }, - cli.StringSliceFlag{ - Name: "event", - Usage: "secret limited to these events", + cli.BoolFlag{ + Name: "allow-pull-request", + Usage: "permit read access to pull requests", }, - cli.StringSliceFlag{ - Name: "image", - Usage: "secret limited to these images", + cli.BoolFlag{ + Name: "allow-push-on-pull-request", + Usage: "permit write access to pull requests (e.g. allow docker push)", }, }, } @@ -53,28 +53,20 @@ func secretCreate(c *cli.Context) error { return err } secret := &drone.Secret{ - Name: c.String("name"), - Value: c.String("value"), - Images: c.StringSlice("image"), - Events: c.StringSlice("event"), + Name: c.String("name"), + Data: c.String("data"), + PullRequest: c.Bool("allow-pull-request"), + PullRequestPush: c.Bool("allow-push-on-pull-request"), } - if len(secret.Events) == 0 { - secret.Events = defaultSecretEvents - } - if strings.HasPrefix(secret.Value, "@") { - path := strings.TrimPrefix(secret.Value, "@") + + if strings.HasPrefix(secret.Data, "@") { + path := strings.TrimPrefix(secret.Data, "@") out, ferr := ioutil.ReadFile(path) if ferr != nil { return ferr } - secret.Value = string(out) + secret.Data = string(out) } _, err = client.SecretCreate(owner, name, secret) return err } - -var defaultSecretEvents = []string{ - drone.EventPush, - drone.EventTag, - drone.EventDeploy, -} diff --git a/drone/secret/secret_info.go b/drone/secret/secret_info.go index ac6af78..b2a5fcc 100644 --- a/drone/secret/secret_info.go +++ b/drone/secret/secret_info.go @@ -5,9 +5,9 @@ import ( "html/template" "os" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var secretInfoCmd = cli.Command{ @@ -25,10 +25,9 @@ var secretInfoCmd = cli.Command{ Usage: "secret name", }, cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplSecretList, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplSecretList, }, }, } @@ -57,7 +56,7 @@ func secretInfo(c *cli.Context) error { if err != nil { return err } - tmpl, err := template.New("_").Funcs(secretFuncMap).Parse(format) + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) if err != nil { return err } diff --git a/drone/secret/secret_list.go b/drone/secret/secret_list.go index b18beb1..0b1c721 100644 --- a/drone/secret/secret_list.go +++ b/drone/secret/secret_list.go @@ -3,11 +3,10 @@ package secret import ( "html/template" "os" - "strings" - - "github.com/urfave/cli" "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var secretListCmd = cli.Command{ @@ -21,10 +20,9 @@ var secretListCmd = cli.Command{ Usage: "repository name (e.g. octocat/hello-world)", }, cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplSecretList, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplSecretList, }, }, } @@ -49,28 +47,18 @@ func secretList(c *cli.Context) error { if err != nil { return err } - tmpl, err := template.New("_").Funcs(secretFuncMap).Parse(format) + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(format) if err != nil { return err } - for _, registry := range list { - tmpl.Execute(os.Stdout, registry) + for _, secret := range list { + tmpl.Execute(os.Stdout, secret) } return nil } // template for secret list items var tmplSecretList = "\x1b[33m{{ .Name }} \x1b[0m" + ` -Events: {{ list .Events }} -{{- if .Images }} -Images: {{ list .Images }} -{{- else }} -Images: -{{- end }} +Pull Request Read: {{ .PullRequest }} +Pull Request Write: {{ .PullRequestPush }} ` - -var secretFuncMap = template.FuncMap{ - "list": func(s []string) string { - return strings.Join(s, ", ") - }, -} diff --git a/drone/secret/secret_set.go b/drone/secret/secret_set.go index 78adbea..14c16b0 100644 --- a/drone/secret/secret_set.go +++ b/drone/secret/secret_set.go @@ -25,16 +25,16 @@ var secretUpdateCmd = cli.Command{ Usage: "secret name", }, cli.StringFlag{ - Name: "value", + Name: "data", Usage: "secret value", }, - cli.StringSliceFlag{ - Name: "event", - Usage: "secret limited to these events", + cli.BoolFlag{ + Name: "allow-pull-request", + Usage: "permit read access to pull requests", }, - cli.StringSliceFlag{ - Name: "image", - Usage: "secret limited to these images", + cli.BoolFlag{ + Name: "allow-push-on-pull-request", + Usage: "permit write access to pull requests (e.g. allow docker push)", }, }, } @@ -53,18 +53,18 @@ func secretUpdate(c *cli.Context) error { return err } secret := &drone.Secret{ - Name: c.String("name"), - Value: c.String("value"), - Images: c.StringSlice("image"), - Events: c.StringSlice("event"), + Name: c.String("name"), + Data: c.String("data"), + PullRequest: c.Bool("allow-pull-request"), + PullRequestPush: c.Bool("allow-push-on-pull-request"), } - if strings.HasPrefix(secret.Value, "@") { - path := strings.TrimPrefix(secret.Value, "@") + if strings.HasPrefix(secret.Data, "@") { + path := strings.TrimPrefix(secret.Data, "@") out, ferr := ioutil.ReadFile(path) if ferr != nil { return ferr } - secret.Value = string(out) + secret.Data = string(out) } _, err = client.SecretUpdate(owner, name, secret) return err diff --git a/drone/server/server_create.go b/drone/server/server_create.go index 791dd31..b5ec78a 100644 --- a/drone/server/server_create.go +++ b/drone/server/server_create.go @@ -4,21 +4,20 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var serverCreateCmd = cli.Command{ Name: "create", - Usage: "crate a new server", + Usage: "create a new server", Action: serverCreate, Flags: []cli.Flag{ cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplServerCreate, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplServerCreate, }, }, } @@ -34,7 +33,7 @@ func serverCreate(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/server/server_destroy.go b/drone/server/server_destroy.go index ebe71fb..ff6fa2a 100644 --- a/drone/server/server_destroy.go +++ b/drone/server/server_destroy.go @@ -5,9 +5,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var serverDestroyCmd = cli.Command{ @@ -17,10 +17,13 @@ var serverDestroyCmd = cli.Command{ Action: serverDestroy, Flags: []cli.Flag{ cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplServerDestroy, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplServerDestroy, + }, + cli.BoolFlag{ + Name: "force", + Usage: "force destroy", }, }, } @@ -36,7 +39,7 @@ func serverDestroy(c *cli.Context) error { return fmt.Errorf("Missing or invalid server name") } - err = client.ServerDelete(name) + err = client.ServerDelete(name, c.Bool("force")) if err != nil { return err } @@ -46,7 +49,7 @@ func serverDestroy(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/server/server_env.go b/drone/server/server_env.go index be0bf98..252af98 100644 --- a/drone/server/server_env.go +++ b/drone/server/server_env.go @@ -9,10 +9,10 @@ import ( "path" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var serverEnvCmd = cli.Command{ @@ -108,7 +108,7 @@ func serverEnv(c *cli.Context) error { }) } -var shellT = template.Must(template.New("_").Parse(` +var shellT = template.Must(template.New("_").Funcs(funcmap.Funcs).Parse(` {{- if eq .Shell "fish" -}} sex -x DOCKER_TLS "1"; set -x DOCKER_TLS_VERIFY ""; diff --git a/drone/server/server_info.go b/drone/server/server_info.go index 41f3570..40fd979 100644 --- a/drone/server/server_info.go +++ b/drone/server/server_info.go @@ -5,9 +5,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var serverInfoCmd = cli.Command{ @@ -17,10 +17,9 @@ var serverInfoCmd = cli.Command{ Action: serverInfo, Flags: []cli.Flag{ cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplServerInfo, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplServerInfo, }, }, } @@ -41,7 +40,7 @@ func serverInfo(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/server/server_list.go b/drone/server/server_list.go index 95f539c..caccbdd 100644 --- a/drone/server/server_list.go +++ b/drone/server/server_list.go @@ -8,10 +8,10 @@ import ( "time" "github.com/docker/go-units" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" "github.com/drone/drone-go/drone" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var serverListCmd = cli.Command{ @@ -20,23 +20,26 @@ var serverListCmd = cli.Command{ ArgsUsage: " ", Action: serverList, Flags: []cli.Flag{ + cli.StringFlag{ + Name: "s, state", + Usage: "filter by state", + }, cli.BoolFlag{ - Name: "a", + Name: "a, all", Usage: "include stopped servers", }, cli.BoolFlag{ - Name: "l", + Name: "l, long", Usage: "list in long format", }, cli.BoolTFlag{ - Name: "H", - Usage: "include columne headers", + Name: "H, headers", + Usage: "include column headers", }, cli.StringFlag{ - Name: "format", - Usage: "format output", - Value: tmplServerList, - Hidden: true, + Name: "format", + Usage: "format output", + Value: tmplServerList, }, cli.BoolFlag{ Name: "la", @@ -50,6 +53,7 @@ func serverList(c *cli.Context) error { if err != nil { return err } + s := c.String("s") a := c.Bool("a") l := c.Bool("l") h := c.BoolT("H") @@ -65,11 +69,11 @@ func serverList(c *cli.Context) error { } if l && h { - printLong(servers, a, h) + printLong(servers, s, a, h) return nil } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } @@ -78,12 +82,17 @@ func serverList(c *cli.Context) error { if !a && server.State == "stopped" { continue } + + if s != "" && s != server.State { + continue + } + tmpl.Execute(os.Stdout, server) } return nil } -func printLong(servers []*drone.Server, a, h bool) { +func printLong(servers []*drone.Server, s string, a, h bool) { w := tabwriter.NewWriter(os.Stdout, 0, 0, 4, ' ', 0) if h { fmt.Fprintln(w, "Name\tAddress\tState\tCreated") @@ -92,6 +101,9 @@ func printLong(servers []*drone.Server, a, h bool) { if !a && server.State == "stopped" { continue } + if s != "" && s != server.State { + continue + } fmt.Fprintf(w, "%s\t%s\t%s\t%s ago\n", server.Name, server.Address, diff --git a/drone/sign/sign.go b/drone/sign/sign.go new file mode 100644 index 0000000..7c9728c --- /dev/null +++ b/drone/sign/sign.go @@ -0,0 +1,63 @@ +package sign + +import ( + "fmt" + "io/ioutil" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-yaml/yaml/signer" + "github.com/urfave/cli" +) + +// Command exports the sign command. +var Command = cli.Command{ + Name: "sign", + Usage: "sign the yaml file", + ArgsUsage: "", + Action: format, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "save", + Usage: "save result to source", + }, + }, +} + +func format(c *cli.Context) error { + repo := c.Args().First() + owner, name, err := internal.ParseRepo(repo) + if err != nil { + return err + } + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + path := c.Args().Get(1) + if path == "" { + path = ".drone.yml" + } + + data, err := ioutil.ReadFile(path) + if err != nil { + return err + } + + hmac, err := client.Sign(owner, name, string(data)) + if err != nil { + return err + } + + if c.Bool("save") == false { + fmt.Println(hmac) + return nil + } + + data, err = signer.WriteTo(data, hmac) + if err != nil { + return err + } + return ioutil.WriteFile(path, data, 0644) +} diff --git a/drone/starlark/samples/docker.py b/drone/starlark/samples/docker.py new file mode 100644 index 0000000..decbc7f --- /dev/null +++ b/drone/starlark/samples/docker.py @@ -0,0 +1,8 @@ +def docker(repo): + return { + 'name': 'docker', + 'image': 'plugins/docker', + 'settings': { + 'repo': repo, + }, + } \ No newline at end of file diff --git a/drone/starlark/samples/pipeline.py b/drone/starlark/samples/pipeline.py new file mode 100644 index 0000000..ebb19d2 --- /dev/null +++ b/drone/starlark/samples/pipeline.py @@ -0,0 +1,33 @@ +# cd drone/starlark/samples +# drone script --source pipeline.py --stdout + +load('docker.py', 'docker') + +def build(version): + return { + 'name': 'build', + 'image': 'golang:%s' % version, + 'commands': [ + 'go build', + 'go test', + ] + } + +def main(ctx): + if ctx['build']['message'].find('[skip build]'): + return { + 'kind': 'pipeline', + 'name': 'publish_only', + 'steps': [ + docker('octocat/hello-world'), + ], + } + return { + 'kind': 'pipeline', + 'name': 'build_and_publish', + 'steps': [ + build('1.11'), + build('1.12'), + docker('octocat/hello-world'), + ], + } diff --git a/drone/starlark/starlark.go b/drone/starlark/starlark.go new file mode 100644 index 0000000..94d1e01 --- /dev/null +++ b/drone/starlark/starlark.go @@ -0,0 +1,317 @@ +package starlark + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "log" + "os" + + "github.com/drone/drone-yaml/yaml" + "github.com/drone/drone-yaml/yaml/pretty" + + "github.com/urfave/cli" + "go.starlark.net/starlark" + "go.starlark.net/starlarkstruct" +) + +// Command exports the jsonnet command. +var Command = cli.Command{ + Name: "starlark", + Usage: "generate .drone.yml from starlark", + ArgsUsage: "[path/to/.drone.star]", + Action: func(c *cli.Context) { + if err := generate(c); err != nil { + if err, ok := err.(*starlark.EvalError); ok { + log.Fatalf("starlark evaluation error:\n%s", err.Backtrace()) + } + log.Fatalln(err) + } + }, + Flags: []cli.Flag{ + cli.StringFlag{ + Name: "source", + Usage: "Source file", + Value: ".drone.star", + }, + cli.StringFlag{ + Name: "target", + Usage: "target file", + Value: ".drone.yml", + }, + cli.BoolTFlag{ + Name: "format", + Usage: "Write output as formatted YAML", + }, + cli.BoolFlag{ + Name: "stdout", + Usage: "Write output to stdout", + }, + // + // Drone Parameters + // + cli.StringFlag{ + Name: "repo.name", + Usage: "repository name", + }, + cli.StringFlag{ + Name: "repo.namespace", + Usage: "repository namespace", + }, + cli.StringFlag{ + Name: "repo.slug", + Usage: "repository slug", + }, + + cli.StringFlag{ + Name: "build.event", + Usage: "build event", + Value: "push", + }, + cli.StringFlag{ + Name: "build.branch", + Usage: "build branch", + Value: "master", + }, + cli.StringFlag{ + Name: "build.source", + Usage: "build source branch", + Value: "master", + }, + cli.StringFlag{ + Name: "build.target", + Usage: "build target branch", + Value: "master", + }, + cli.StringFlag{ + Name: "build.ref", + Usage: "build ref", + Value: "refs/heads/master", + }, + cli.StringFlag{ + Name: "build.commit", + Usage: "build commit sha", + }, + cli.StringFlag{ + Name: "build.message", + Usage: "build commit message", + }, + }, +} + +func generate(c *cli.Context) error { + source := c.String("source") + target := c.String("target") + + data, err := ioutil.ReadFile(source) + if err != nil { + return err + } + + thread := &starlark.Thread{ + Name: "drone", + Print: func(_ *starlark.Thread, msg string) { fmt.Println(msg) }, + Load: makeLoad(), + } + globals, err := starlark.ExecFile(thread, source, data, nil) + if err != nil { + return err + } + + mainVal, ok := globals["main"] + if !ok { + return fmt.Errorf("no main function found") + } + main, ok := mainVal.(starlark.Callable) + if !ok { + return fmt.Errorf("main must be a function") + } + + // TODO this needs to be flushed out. + repo := starlark.StringDict{ + "name": starlark.String(c.String("repo.name")), + "namespace": starlark.String(c.String("repo.namespace")), + "slug": starlark.String(c.String("repo.slug")), + } + + build := starlark.StringDict{ + "event": starlark.String(c.String("build.event")), + "branch": starlark.String(c.String("build.branch")), + "source": starlark.String(c.String("build.source_branch")), + "target": starlark.String(c.String("build.target_branch")), + "ref": starlark.String(c.String("build.ref")), + "commit": starlark.String(c.String("build.commit")), + "message": starlark.String(c.String("build.message")), + } + + args := starlark.Tuple([]starlark.Value{ + starlarkstruct.FromStringDict( + starlark.String("context"), + starlark.StringDict{ + "repo": starlarkstruct.FromStringDict(starlark.String("repo"), repo), + "build": starlarkstruct.FromStringDict(starlark.String("build"), build), + }, + ), + }) + mainVal, err = starlark.Call(thread, main, args, nil) + if err != nil { + return err + } + + buf := new(bytes.Buffer) + switch v := mainVal.(type) { + case *starlark.List: + for i := 0; i < v.Len(); i++ { + item := v.Index(i) + buf.WriteString("---\n") + err = writeJSON(buf, item) + if err != nil { + return err + } + buf.WriteString("\n") + } + case *starlark.Dict: + buf.WriteString("---\n") + err = writeJSON(buf, v) + if err != nil { + return err + } + default: + return fmt.Errorf("invalid return type (got a %s)", mainVal.Type()) + } + + // if the user disables pretty printing, the yaml is printed + // to the console or written to the file in json format. + if c.BoolT("format") == false { + if c.Bool("stdout") { + io.Copy(os.Stdout, buf) + return nil + } + return ioutil.WriteFile(target, buf.Bytes(), 0644) + } + + manifest, err := yaml.Parse(buf) + if err != nil { + return err + } + buf.Reset() + pretty.Print(buf, manifest) + + // the user can optionally write the yaml to stdout. This + // is useful for debugging purposes without mutating an + // existing file. + if c.Bool("stdout") { + io.Copy(os.Stdout, buf) + return nil + } + return ioutil.WriteFile(target, buf.Bytes(), 0644) +} + +// Adapted from skycfg: +// https://github.com/stripe/skycfg/blob/eaa524101c2a0807c13ed5d2e52576fefc146ec3/internal/go/skycfg/json_write.go#L45 +func writeJSON(out *bytes.Buffer, v starlark.Value) error { + if marshaler, ok := v.(json.Marshaler); ok { + jsonData, err := marshaler.MarshalJSON() + if err != nil { + return err + } + out.Write(jsonData) + return nil + } + + switch v := v.(type) { + case starlark.NoneType: + out.WriteString("null") + case starlark.Bool: + fmt.Fprintf(out, "%t", v) + case starlark.Int: + out.WriteString(v.String()) + case starlark.Float: + fmt.Fprintf(out, "%g", v) + case starlark.String: + s := string(v) + if goQuoteIsSafe(s) { + fmt.Fprintf(out, "%q", s) + } else { + // vanishingly rare for text strings + data, _ := json.Marshal(s) + out.Write(data) + } + case starlark.Indexable: // Tuple, List + out.WriteByte('[') + for i, n := 0, starlark.Len(v); i < n; i++ { + if i > 0 { + out.WriteString(", ") + } + if err := writeJSON(out, v.Index(i)); err != nil { + return err + } + } + out.WriteByte(']') + case *starlark.Dict: + out.WriteByte('{') + for i, itemPair := range v.Items() { + key := itemPair[0] + value := itemPair[1] + if i > 0 { + out.WriteString(", ") + } + if err := writeJSON(out, key); err != nil { + return err + } + out.WriteString(": ") + if err := writeJSON(out, value); err != nil { + return err + } + } + out.WriteByte('}') + default: + return fmt.Errorf("TypeError: value %s (type `%s') can't be converted to JSON.", v.String(), v.Type()) + } + return nil +} + +func goQuoteIsSafe(s string) bool { + for _, r := range s { + // JSON doesn't like Go's \xHH escapes for ASCII control codes, + // nor its \UHHHHHHHH escapes for runes >16 bits. + if r < 0x20 || r >= 0x10000 { + return false + } + } + return true +} + +// https://github.com/google/starlark-go/blob/4eb76950c5f02ec5bcfd3ca898231a6543942fd9/repl/repl.go#L175 +func makeLoad() func(thread *starlark.Thread, module string) (starlark.StringDict, error) { + type entry struct { + globals starlark.StringDict + err error + } + + var cache = make(map[string]*entry) + + return func(thread *starlark.Thread, module string) (starlark.StringDict, error) { + e, ok := cache[module] + if e == nil { + if ok { + // request for package whose loading is in progress + return nil, fmt.Errorf("cycle in load graph") + } + + // Add a placeholder to indicate "load in progress". + cache[module] = nil + + // Load it. + thread := &starlark.Thread{Name: "exec " + module, Load: thread.Load} + globals, err := starlark.ExecFile(thread, module, nil, nil) + e = &entry{globals, err} + + // Update the cache. + cache[module] = e + } + return e.globals, e.err + } +} diff --git a/drone/user/user.go b/drone/user/user.go index 03a4672..35112ce 100644 --- a/drone/user/user.go +++ b/drone/user/user.go @@ -10,6 +10,8 @@ var Command = cli.Command{ userListCmd, userInfoCmd, userAddCmd, + userUpdateCmd, userRemoveCmd, + userBlockCmd, }, } diff --git a/drone/user/user_add.go b/drone/user/user_add.go index 531fab6..549aa8a 100644 --- a/drone/user/user_add.go +++ b/drone/user/user_add.go @@ -14,6 +14,20 @@ var userAddCmd = cli.Command{ Usage: "adds a user", ArgsUsage: "", Action: userAdd, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "admin", + Usage: "admin privileged", + }, + cli.BoolFlag{ + Name: "machine", + Usage: "machine account", + }, + cli.StringFlag{ + Name: "token", + Usage: "api token", + }, + }, } func userAdd(c *cli.Context) error { @@ -24,10 +38,19 @@ func userAdd(c *cli.Context) error { return err } - user, err := client.UserPost(&drone.User{Login: login}) + in := &drone.User{ + Login: login, + Admin: c.Bool("admin"), + Machine: c.Bool("machine"), + Token: c.String("token"), + } + user, err := client.UserCreate(in) if err != nil { return err } fmt.Printf("Successfully added user %s\n", user.Login) + if user.Token != "" { + fmt.Printf("Generated account token %s\n", user.Token) + } return nil } diff --git a/drone/user/user_block.go b/drone/user/user_block.go new file mode 100644 index 0000000..12b9bf3 --- /dev/null +++ b/drone/user/user_block.go @@ -0,0 +1,37 @@ +package user + +import ( + "fmt" + + "github.com/urfave/cli" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" +) + +var userBlockCmd = cli.Command{ + Name: "block", + Usage: "block a user", + ArgsUsage: "", + Action: userBlock, +} + +func userBlock(c *cli.Context) error { + login := c.Args().First() + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + active := false + opts := &drone.UserPatch{ + Active: &active, + } + _, err = client.UserUpdate(login, opts) + if err != nil { + return err + } + fmt.Printf("Successfully blocked user %s\n", login) + return nil +} diff --git a/drone/user/user_info.go b/drone/user/user_info.go index a7f3860..b052a90 100644 --- a/drone/user/user_info.go +++ b/drone/user/user_info.go @@ -5,9 +5,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var userInfoCmd = cli.Command{ @@ -40,7 +40,7 @@ func userInfo(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } @@ -49,4 +49,8 @@ func userInfo(c *cli.Context) error { // template for user information var tmplUserInfo = `User: {{ .Login }} -Email: {{ .Email }}` +Email: {{ .Email }} +Admin: {{ .Admin }} +Active: {{ .Active }} +Machine: {{ .Machine }} +` diff --git a/drone/user/user_list.go b/drone/user/user_list.go index 803d5ee..8cb5be9 100644 --- a/drone/user/user_list.go +++ b/drone/user/user_list.go @@ -4,9 +4,9 @@ import ( "os" "text/template" - "github.com/urfave/cli" - "github.com/drone/drone-cli/drone/internal" + "github.com/drone/funcmap" + "github.com/urfave/cli" ) var userListCmd = cli.Command{ @@ -34,7 +34,7 @@ func userList(c *cli.Context) error { return err } - tmpl, err := template.New("_").Parse(c.String("format") + "\n") + tmpl, err := template.New("_").Funcs(funcmap.Funcs).Parse(c.String("format") + "\n") if err != nil { return err } diff --git a/drone/user/user_rm.go b/drone/user/user_rm.go index b422dc3..a733e9a 100644 --- a/drone/user/user_rm.go +++ b/drone/user/user_rm.go @@ -23,7 +23,7 @@ func userRemove(c *cli.Context) error { return err } - if err := client.UserDel(login); err != nil { + if err := client.UserDelete(login); err != nil { return err } fmt.Printf("Successfully removed user %s\n", login) diff --git a/drone/user/user_update.go b/drone/user/user_update.go new file mode 100644 index 0000000..c977d48 --- /dev/null +++ b/drone/user/user_update.go @@ -0,0 +1,51 @@ +package user + +import ( + "fmt" + + "github.com/urfave/cli" + + "github.com/drone/drone-cli/drone/internal" + "github.com/drone/drone-go/drone" +) + +var userUpdateCmd = cli.Command{ + Name: "update", + Usage: "update a user", + ArgsUsage: "", + Action: userUpdate, + Flags: []cli.Flag{ + cli.BoolFlag{ + Name: "active", + Usage: "user is active", + }, + cli.BoolFlag{ + Name: "admin", + Usage: "user is an admin", + }, + }, +} + +func userUpdate(c *cli.Context) error { + login := c.Args().First() + + client, err := internal.NewClient(c) + if err != nil { + return err + } + + opts := &drone.UserPatch{} + if c.IsSet("active") { + v := c.Bool("active") + opts.Active = &v + } + if c.IsSet("admin") { + v := c.Bool("admin") + opts.Admin = &v + } + if _, err := client.UserUpdate(login, opts); err != nil { + return err + } + fmt.Printf("Successfully updated user %s\n", login) + return nil +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..98f99f1 --- /dev/null +++ b/go.mod @@ -0,0 +1,44 @@ +module github.com/drone/drone-cli + +go 1.12 + +require ( + docker.io/go-docker v1.0.0 + github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e + github.com/Microsoft/go-winio v0.4.11 + github.com/bmatcuk/doublestar v1.1.1 + github.com/buildkite/yaml v2.1.0+incompatible + github.com/docker/distribution v2.7.1+incompatible + github.com/docker/go-connections v0.3.0 + github.com/docker/go-units v0.3.3 + github.com/drone/drone-go v1.3.0 + github.com/drone/drone-runtime v1.0.7-0.20190729070836-38f28a11afe8 + github.com/drone/drone-yaml v0.0.0-20190729072335-70fa398b3560 + github.com/drone/envsubst v1.0.1 + github.com/drone/funcmap v0.0.0-20190918184546-d4ef6e88376d + github.com/drone/signal v1.0.0 + github.com/fatih/color v1.7.0 + github.com/ghodss/yaml v1.0.0 + github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 + github.com/golang/protobuf v1.2.0 + github.com/google/go-cmp v0.3.1 // indirect + github.com/google/go-jsonnet v0.11.2 + github.com/jackspirou/syscerts v0.0.0-20160531025014-b68f5469dff1 + github.com/joho/godotenv v1.3.0 + github.com/mattn/go-colorable v0.0.9 + github.com/mattn/go-isatty v0.0.4 + github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4 + github.com/opencontainers/go-digest v1.0.0-rc1 + github.com/opencontainers/image-spec v1.0.1 + github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 + github.com/pkg/errors v0.8.0 + github.com/urfave/cli v1.20.0 + github.com/vinzenz/yaml v0.0.0-20170920082545-91409cdd725d + go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 + golang.org/x/net v0.0.0-20181005035420-146acd28ed58 + golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 + golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f + golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c + google.golang.org/appengine v1.3.0 + gopkg.in/yaml.v2 v2.2.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..7752d8a --- /dev/null +++ b/go.sum @@ -0,0 +1,133 @@ +docker.io/go-docker v1.0.0 h1:VdXS/aNYQxyA9wdLD5z8Q8Ro688/hG8HzKxYVEVbE6s= +docker.io/go-docker v1.0.0/go.mod h1:7tiAn5a0LFmjbPDbyTPOaTTOuG1ZRNXdPA6RvKY+fpY= +github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e h1:rl2Aq4ZODqTDkeSqQBy+fzpZPamacO1Srp8zq7jf2Sc= +github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e/go.mod h1:Xa6lInWHNQnuWoF0YPSsx+INFA9qk7/7pTjwb3PInkY= +github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/bmatcuk/doublestar v1.1.1 h1:YroD6BJCZBYx06yYFEWvUuKVWQn3vLLQAVmDmvTSaiQ= +github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= +github.com/buildkite/yaml v0.0.0-20181016232759-0caa5f0796e3/go.mod h1:5hCug3EZaHXU3FdCA3gJm0YTNi+V+ooA2qNTiVpky4A= +github.com/buildkite/yaml v2.1.0+incompatible h1:xirI+ql5GzfikVNDmt+yeiXpf/v1Gt03qXTtT5WXdr8= +github.com/buildkite/yaml v2.1.0+incompatible/go.mod h1:UoU8vbcwu1+vjZq01+KrpSeLBgQQIjL/H7Y6KwikUrI= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/docker/distribution v0.0.0-20170726174610-edc3ab29cdff/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug= +github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/go-connections v0.3.0 h1:3lOnM9cSzgGwx8VfK/NGOW5fLQ0GjIlCkaktF+n1M6o= +github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk= +github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/drone/drone-go v0.0.0-20190809073937-cba78c0895aa h1:XRCcOdGaOUd74BZRO4T0XZeEo5h4j/dkod7TV6JI0pk= +github.com/drone/drone-go v0.0.0-20190809073937-cba78c0895aa/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-go v1.0.6 h1:YbMwEwlE3HC4InN0bT21EDvzImct5dGG1I56dSdUhjI= +github.com/drone/drone-go v1.0.6/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-go v1.0.7-0.20190918192642-21c14e63f89a h1:GgG6EpzcAx9GavIZONS10tm32kvaz4FYpggWOCvwE7M= +github.com/drone/drone-go v1.0.7-0.20190918192642-21c14e63f89a/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-go v1.0.7-0.20191002153459-173e210cf8d6 h1:qwBSqbhs6hLMsqALZ/CUEqZawlK1Sui4Bn1nNTJfDHY= +github.com/drone/drone-go v1.0.7-0.20191002153459-173e210cf8d6/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-go v1.2.0 h1:Gnp79mJHf4Q5Kwkw2nIRQcj7ZAA/kqKNEz5dJ3n/0Uk= +github.com/drone/drone-go v1.2.0/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-go v1.3.0 h1:eIk79qCiw+hzmDFYSofZKrR7E0tPs7Vm13kKH80n0zs= +github.com/drone/drone-go v1.3.0/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4= +github.com/drone/drone-runtime v0.0.0-20190729082142-807d0aeaa221/go.mod h1:+osgwGADc/nyl40J0fdsf8Z09bgcBZXvXXnLOY48zYs= +github.com/drone/drone-runtime v1.0.7-0.20190729070836-38f28a11afe8 h1:lcS2z7+ZySmVM+XJJjBZZPTcn6IB1BSfLWtDGyco3xo= +github.com/drone/drone-runtime v1.0.7-0.20190729070836-38f28a11afe8/go.mod h1:+osgwGADc/nyl40J0fdsf8Z09bgcBZXvXXnLOY48zYs= +github.com/drone/drone-yaml v0.0.0-20190729072335-70fa398b3560 h1:3QL4NnDpGtaXpgI9eNd6N2k5WK8W388CzD67ZTuuZQg= +github.com/drone/drone-yaml v0.0.0-20190729072335-70fa398b3560/go.mod h1:rCLISp/rqZ50s6G4nKsm971tRSzolxzqqXfgjDqPYoE= +github.com/drone/envsubst v1.0.1 h1:NOOStingM2sbBwsIUeQkKUz8ShwCUzmqMxWrpXItfPE= +github.com/drone/envsubst v1.0.1/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0= +github.com/drone/funcmap v0.0.0-20190918184546-d4ef6e88376d h1:/IO7UVVu191Jc0DajV4cDVoO+91cuppvgxg2MZl+AXI= +github.com/drone/funcmap v0.0.0-20190918184546-d4ef6e88376d/go.mod h1:Hph0/pT6ZxbujnE1Z6/08p5I0XXuOsppqF6NQlGOK0E= +github.com/drone/signal v1.0.0 h1:NrnM2M/4yAuU/tXs6RP1a1ZfxnaHwYkd0kJurA1p6uI= +github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc= +github.com/fatih/color v1.7.0 h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 h1:zDlw+wgyXdfkRuvFCdEDUiPLmZp2cvf/dWHazY0a5VM= +github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-jsonnet v0.11.2 h1:oSCkvGPE72ouWJLOajr4p0clGFCOFmwhqo52faGsudk= +github.com/google/go-jsonnet v0.11.2/go.mod h1:gVu3UVSfOt5fRFq+dh9duBqXa5905QY8S1QvMNcEIVs= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/googleapis/gnostic v0.2.0/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY= +github.com/gregjones/httpcache v0.0.0-20181110185634-c63ab54fda8f/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= +github.com/jackspirou/syscerts v0.0.0-20160531025014-b68f5469dff1 h1:9Xm8CKtMZIXgcopfdWk/qZ1rt0HjMgfMR9nxxSeK6vk= +github.com/jackspirou/syscerts v0.0.0-20160531025014-b68f5469dff1/go.mod h1:zuHl3Hh+e9P6gmBPvcqR1HjkaWHC/csgyskg6IaFKFo= +github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= +github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4 h1:dnMxwus89s86tI8rcGVp2HwZzlz7c5o92VOy7dSckBQ= +github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4/go.mod h1:cojhOHk1gbMeklOyDP2oKKLftefXoJreOQGOrXk+Z38= +github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ= +github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s= +github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI= +github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= +github.com/petar/GoLLRB v0.0.0-20130427215148-53be0d36a84c/go.mod h1:HUpKUBZnpzkdx0kD/+Yfuft+uD3zHGtXF/XJB14TUr4= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98= +github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= +github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/vinzenz/yaml v0.0.0-20170920081652-35282ab071f9/go.mod h1:mb5taDqMnJiZNRQ3+02W2IFG+oEz1+dTuCXkp4jpkfo= +github.com/vinzenz/yaml v0.0.0-20170920082545-91409cdd725d h1:3wDi6J5APMqaHBVPuVd7RmHD2gRTfqbdcVSpCNoUWtk= +github.com/vinzenz/yaml v0.0.0-20170920082545-91409cdd725d/go.mod h1:mb5taDqMnJiZNRQ3+02W2IFG+oEz1+dTuCXkp4jpkfo= +go.starlark.net v0.0.0-20190219202100-4eb76950c5f0 h1:3QD1YY1gYmY6Jb/Lsra7ct+T7FewBaX3k9YXqpziB08= +go.starlark.net v0.0.0-20190219202100-4eb76950c5f0/go.mod h1:c1/X6cHgvdXj6pUlmWKMkuqRnW4K8x2vwt6JAaaircg= +go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 h1:+FNtrFTmVw0YZGpBGX56XDee331t6JAXeK2bcyhLOOc= +go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181005035420-146acd28ed58 h1:otZG8yDCO4LVps5+9bxOeNiCvgmOyt96J3roHTYs7oE= +golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20181003184128-c57b0facaced/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 h1:uESlIz09WIHT2I+pasSXcpLYqYK8wHcdCetU3VuMBJE= +golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f h1:wMNYb4v58l5UBM7MYRLPG6ZhfOqbKu7X5eyFl8ZhKvA= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20181005133103-4497e2df6f9e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +k8s.io/api v0.0.0-20181130031204-d04500c8c3dd/go.mod h1:iuAfoD4hCxJ8Onx9kaTIt30j7jUFS00AXQi6QMi99vA= +k8s.io/apimachinery v0.0.0-20181201231028-18a5ff3097b4/go.mod h1:ccL7Eh7zubPUSh9A3USN90/OzHNSVN6zxzde07TDCL0= +k8s.io/client-go v9.0.0+incompatible/go.mod h1:7vJpHMYJwNQCWgzmNV+VYUl1zCObLyodBc8nIyt8L5s= +k8s.io/klog v0.1.0/go.mod h1:Gq+BEi5rUBO/HRz0bTSXDUcqjScdoY3a9IHpCEIOOfk= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= diff --git a/vendor/github.com/Microsoft/go-winio/LICENSE b/vendor/github.com/Microsoft/go-winio/LICENSE deleted file mode 100644 index b8b569d..0000000 --- a/vendor/github.com/Microsoft/go-winio/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/vendor/github.com/Microsoft/go-winio/archive/tar/LICENSE b/vendor/github.com/Microsoft/go-winio/archive/tar/LICENSE deleted file mode 100644 index 7448756..0000000 --- a/vendor/github.com/Microsoft/go-winio/archive/tar/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/Microsoft/go-winio/backup.go b/vendor/github.com/Microsoft/go-winio/backup.go deleted file mode 100644 index 2be34af..0000000 --- a/vendor/github.com/Microsoft/go-winio/backup.go +++ /dev/null @@ -1,280 +0,0 @@ -// +build windows - -package winio - -import ( - "encoding/binary" - "errors" - "fmt" - "io" - "io/ioutil" - "os" - "runtime" - "syscall" - "unicode/utf16" -) - -//sys backupRead(h syscall.Handle, b []byte, bytesRead *uint32, abort bool, processSecurity bool, context *uintptr) (err error) = BackupRead -//sys backupWrite(h syscall.Handle, b []byte, bytesWritten *uint32, abort bool, processSecurity bool, context *uintptr) (err error) = BackupWrite - -const ( - BackupData = uint32(iota + 1) - BackupEaData - BackupSecurity - BackupAlternateData - BackupLink - BackupPropertyData - BackupObjectId - BackupReparseData - BackupSparseBlock - BackupTxfsData -) - -const ( - StreamSparseAttributes = uint32(8) -) - -const ( - WRITE_DAC = 0x40000 - WRITE_OWNER = 0x80000 - ACCESS_SYSTEM_SECURITY = 0x1000000 -) - -// BackupHeader represents a backup stream of a file. -type BackupHeader struct { - Id uint32 // The backup stream ID - Attributes uint32 // Stream attributes - Size int64 // The size of the stream in bytes - Name string // The name of the stream (for BackupAlternateData only). - Offset int64 // The offset of the stream in the file (for BackupSparseBlock only). -} - -type win32StreamId struct { - StreamId uint32 - Attributes uint32 - Size uint64 - NameSize uint32 -} - -// BackupStreamReader reads from a stream produced by the BackupRead Win32 API and produces a series -// of BackupHeader values. -type BackupStreamReader struct { - r io.Reader - bytesLeft int64 -} - -// NewBackupStreamReader produces a BackupStreamReader from any io.Reader. -func NewBackupStreamReader(r io.Reader) *BackupStreamReader { - return &BackupStreamReader{r, 0} -} - -// Next returns the next backup stream and prepares for calls to Read(). It skips the remainder of the current stream if -// it was not completely read. -func (r *BackupStreamReader) Next() (*BackupHeader, error) { - if r.bytesLeft > 0 { - if s, ok := r.r.(io.Seeker); ok { - // Make sure Seek on io.SeekCurrent sometimes succeeds - // before trying the actual seek. - if _, err := s.Seek(0, io.SeekCurrent); err == nil { - if _, err = s.Seek(r.bytesLeft, io.SeekCurrent); err != nil { - return nil, err - } - r.bytesLeft = 0 - } - } - if _, err := io.Copy(ioutil.Discard, r); err != nil { - return nil, err - } - } - var wsi win32StreamId - if err := binary.Read(r.r, binary.LittleEndian, &wsi); err != nil { - return nil, err - } - hdr := &BackupHeader{ - Id: wsi.StreamId, - Attributes: wsi.Attributes, - Size: int64(wsi.Size), - } - if wsi.NameSize != 0 { - name := make([]uint16, int(wsi.NameSize/2)) - if err := binary.Read(r.r, binary.LittleEndian, name); err != nil { - return nil, err - } - hdr.Name = syscall.UTF16ToString(name) - } - if wsi.StreamId == BackupSparseBlock { - if err := binary.Read(r.r, binary.LittleEndian, &hdr.Offset); err != nil { - return nil, err - } - hdr.Size -= 8 - } - r.bytesLeft = hdr.Size - return hdr, nil -} - -// Read reads from the current backup stream. -func (r *BackupStreamReader) Read(b []byte) (int, error) { - if r.bytesLeft == 0 { - return 0, io.EOF - } - if int64(len(b)) > r.bytesLeft { - b = b[:r.bytesLeft] - } - n, err := r.r.Read(b) - r.bytesLeft -= int64(n) - if err == io.EOF { - err = io.ErrUnexpectedEOF - } else if r.bytesLeft == 0 && err == nil { - err = io.EOF - } - return n, err -} - -// BackupStreamWriter writes a stream compatible with the BackupWrite Win32 API. -type BackupStreamWriter struct { - w io.Writer - bytesLeft int64 -} - -// NewBackupStreamWriter produces a BackupStreamWriter on top of an io.Writer. -func NewBackupStreamWriter(w io.Writer) *BackupStreamWriter { - return &BackupStreamWriter{w, 0} -} - -// WriteHeader writes the next backup stream header and prepares for calls to Write(). -func (w *BackupStreamWriter) WriteHeader(hdr *BackupHeader) error { - if w.bytesLeft != 0 { - return fmt.Errorf("missing %d bytes", w.bytesLeft) - } - name := utf16.Encode([]rune(hdr.Name)) - wsi := win32StreamId{ - StreamId: hdr.Id, - Attributes: hdr.Attributes, - Size: uint64(hdr.Size), - NameSize: uint32(len(name) * 2), - } - if hdr.Id == BackupSparseBlock { - // Include space for the int64 block offset - wsi.Size += 8 - } - if err := binary.Write(w.w, binary.LittleEndian, &wsi); err != nil { - return err - } - if len(name) != 0 { - if err := binary.Write(w.w, binary.LittleEndian, name); err != nil { - return err - } - } - if hdr.Id == BackupSparseBlock { - if err := binary.Write(w.w, binary.LittleEndian, hdr.Offset); err != nil { - return err - } - } - w.bytesLeft = hdr.Size - return nil -} - -// Write writes to the current backup stream. -func (w *BackupStreamWriter) Write(b []byte) (int, error) { - if w.bytesLeft < int64(len(b)) { - return 0, fmt.Errorf("too many bytes by %d", int64(len(b))-w.bytesLeft) - } - n, err := w.w.Write(b) - w.bytesLeft -= int64(n) - return n, err -} - -// BackupFileReader provides an io.ReadCloser interface on top of the BackupRead Win32 API. -type BackupFileReader struct { - f *os.File - includeSecurity bool - ctx uintptr -} - -// NewBackupFileReader returns a new BackupFileReader from a file handle. If includeSecurity is true, -// Read will attempt to read the security descriptor of the file. -func NewBackupFileReader(f *os.File, includeSecurity bool) *BackupFileReader { - r := &BackupFileReader{f, includeSecurity, 0} - return r -} - -// Read reads a backup stream from the file by calling the Win32 API BackupRead(). -func (r *BackupFileReader) Read(b []byte) (int, error) { - var bytesRead uint32 - err := backupRead(syscall.Handle(r.f.Fd()), b, &bytesRead, false, r.includeSecurity, &r.ctx) - if err != nil { - return 0, &os.PathError{"BackupRead", r.f.Name(), err} - } - runtime.KeepAlive(r.f) - if bytesRead == 0 { - return 0, io.EOF - } - return int(bytesRead), nil -} - -// Close frees Win32 resources associated with the BackupFileReader. It does not close -// the underlying file. -func (r *BackupFileReader) Close() error { - if r.ctx != 0 { - backupRead(syscall.Handle(r.f.Fd()), nil, nil, true, false, &r.ctx) - runtime.KeepAlive(r.f) - r.ctx = 0 - } - return nil -} - -// BackupFileWriter provides an io.WriteCloser interface on top of the BackupWrite Win32 API. -type BackupFileWriter struct { - f *os.File - includeSecurity bool - ctx uintptr -} - -// NewBackupFileWriter returns a new BackupFileWriter from a file handle. If includeSecurity is true, -// Write() will attempt to restore the security descriptor from the stream. -func NewBackupFileWriter(f *os.File, includeSecurity bool) *BackupFileWriter { - w := &BackupFileWriter{f, includeSecurity, 0} - return w -} - -// Write restores a portion of the file using the provided backup stream. -func (w *BackupFileWriter) Write(b []byte) (int, error) { - var bytesWritten uint32 - err := backupWrite(syscall.Handle(w.f.Fd()), b, &bytesWritten, false, w.includeSecurity, &w.ctx) - if err != nil { - return 0, &os.PathError{"BackupWrite", w.f.Name(), err} - } - runtime.KeepAlive(w.f) - if int(bytesWritten) != len(b) { - return int(bytesWritten), errors.New("not all bytes could be written") - } - return len(b), nil -} - -// Close frees Win32 resources associated with the BackupFileWriter. It does not -// close the underlying file. -func (w *BackupFileWriter) Close() error { - if w.ctx != 0 { - backupWrite(syscall.Handle(w.f.Fd()), nil, nil, true, false, &w.ctx) - runtime.KeepAlive(w.f) - w.ctx = 0 - } - return nil -} - -// OpenForBackup opens a file or directory, potentially skipping access checks if the backup -// or restore privileges have been acquired. -// -// If the file opened was a directory, it cannot be used with Readdir(). -func OpenForBackup(path string, access uint32, share uint32, createmode uint32) (*os.File, error) { - winPath, err := syscall.UTF16FromString(path) - if err != nil { - return nil, err - } - h, err := syscall.CreateFile(&winPath[0], access, share, nil, createmode, syscall.FILE_FLAG_BACKUP_SEMANTICS|syscall.FILE_FLAG_OPEN_REPARSE_POINT, 0) - if err != nil { - err = &os.PathError{Op: "open", Path: path, Err: err} - return nil, err - } - return os.NewFile(uintptr(h), path), nil -} diff --git a/vendor/github.com/Microsoft/go-winio/ea.go b/vendor/github.com/Microsoft/go-winio/ea.go deleted file mode 100644 index b37e930..0000000 --- a/vendor/github.com/Microsoft/go-winio/ea.go +++ /dev/null @@ -1,137 +0,0 @@ -package winio - -import ( - "bytes" - "encoding/binary" - "errors" -) - -type fileFullEaInformation struct { - NextEntryOffset uint32 - Flags uint8 - NameLength uint8 - ValueLength uint16 -} - -var ( - fileFullEaInformationSize = binary.Size(&fileFullEaInformation{}) - - errInvalidEaBuffer = errors.New("invalid extended attribute buffer") - errEaNameTooLarge = errors.New("extended attribute name too large") - errEaValueTooLarge = errors.New("extended attribute value too large") -) - -// ExtendedAttribute represents a single Windows EA. -type ExtendedAttribute struct { - Name string - Value []byte - Flags uint8 -} - -func parseEa(b []byte) (ea ExtendedAttribute, nb []byte, err error) { - var info fileFullEaInformation - err = binary.Read(bytes.NewReader(b), binary.LittleEndian, &info) - if err != nil { - err = errInvalidEaBuffer - return - } - - nameOffset := fileFullEaInformationSize - nameLen := int(info.NameLength) - valueOffset := nameOffset + int(info.NameLength) + 1 - valueLen := int(info.ValueLength) - nextOffset := int(info.NextEntryOffset) - if valueLen+valueOffset > len(b) || nextOffset < 0 || nextOffset > len(b) { - err = errInvalidEaBuffer - return - } - - ea.Name = string(b[nameOffset : nameOffset+nameLen]) - ea.Value = b[valueOffset : valueOffset+valueLen] - ea.Flags = info.Flags - if info.NextEntryOffset != 0 { - nb = b[info.NextEntryOffset:] - } - return -} - -// DecodeExtendedAttributes decodes a list of EAs from a FILE_FULL_EA_INFORMATION -// buffer retrieved from BackupRead, ZwQueryEaFile, etc. -func DecodeExtendedAttributes(b []byte) (eas []ExtendedAttribute, err error) { - for len(b) != 0 { - ea, nb, err := parseEa(b) - if err != nil { - return nil, err - } - - eas = append(eas, ea) - b = nb - } - return -} - -func writeEa(buf *bytes.Buffer, ea *ExtendedAttribute, last bool) error { - if int(uint8(len(ea.Name))) != len(ea.Name) { - return errEaNameTooLarge - } - if int(uint16(len(ea.Value))) != len(ea.Value) { - return errEaValueTooLarge - } - entrySize := uint32(fileFullEaInformationSize + len(ea.Name) + 1 + len(ea.Value)) - withPadding := (entrySize + 3) &^ 3 - nextOffset := uint32(0) - if !last { - nextOffset = withPadding - } - info := fileFullEaInformation{ - NextEntryOffset: nextOffset, - Flags: ea.Flags, - NameLength: uint8(len(ea.Name)), - ValueLength: uint16(len(ea.Value)), - } - - err := binary.Write(buf, binary.LittleEndian, &info) - if err != nil { - return err - } - - _, err = buf.Write([]byte(ea.Name)) - if err != nil { - return err - } - - err = buf.WriteByte(0) - if err != nil { - return err - } - - _, err = buf.Write(ea.Value) - if err != nil { - return err - } - - _, err = buf.Write([]byte{0, 0, 0}[0 : withPadding-entrySize]) - if err != nil { - return err - } - - return nil -} - -// EncodeExtendedAttributes encodes a list of EAs into a FILE_FULL_EA_INFORMATION -// buffer for use with BackupWrite, ZwSetEaFile, etc. -func EncodeExtendedAttributes(eas []ExtendedAttribute) ([]byte, error) { - var buf bytes.Buffer - for i := range eas { - last := false - if i == len(eas)-1 { - last = true - } - - err := writeEa(&buf, &eas[i], last) - if err != nil { - return nil, err - } - } - return buf.Bytes(), nil -} diff --git a/vendor/github.com/Microsoft/go-winio/file.go b/vendor/github.com/Microsoft/go-winio/file.go deleted file mode 100644 index 4334ff1..0000000 --- a/vendor/github.com/Microsoft/go-winio/file.go +++ /dev/null @@ -1,307 +0,0 @@ -// +build windows - -package winio - -import ( - "errors" - "io" - "runtime" - "sync" - "sync/atomic" - "syscall" - "time" -) - -//sys cancelIoEx(file syscall.Handle, o *syscall.Overlapped) (err error) = CancelIoEx -//sys createIoCompletionPort(file syscall.Handle, port syscall.Handle, key uintptr, threadCount uint32) (newport syscall.Handle, err error) = CreateIoCompletionPort -//sys getQueuedCompletionStatus(port syscall.Handle, bytes *uint32, key *uintptr, o **ioOperation, timeout uint32) (err error) = GetQueuedCompletionStatus -//sys setFileCompletionNotificationModes(h syscall.Handle, flags uint8) (err error) = SetFileCompletionNotificationModes - -type atomicBool int32 - -func (b *atomicBool) isSet() bool { return atomic.LoadInt32((*int32)(b)) != 0 } -func (b *atomicBool) setFalse() { atomic.StoreInt32((*int32)(b), 0) } -func (b *atomicBool) setTrue() { atomic.StoreInt32((*int32)(b), 1) } -func (b *atomicBool) swap(new bool) bool { - var newInt int32 - if new { - newInt = 1 - } - return atomic.SwapInt32((*int32)(b), newInt) == 1 -} - -const ( - cFILE_SKIP_COMPLETION_PORT_ON_SUCCESS = 1 - cFILE_SKIP_SET_EVENT_ON_HANDLE = 2 -) - -var ( - ErrFileClosed = errors.New("file has already been closed") - ErrTimeout = &timeoutError{} -) - -type timeoutError struct{} - -func (e *timeoutError) Error() string { return "i/o timeout" } -func (e *timeoutError) Timeout() bool { return true } -func (e *timeoutError) Temporary() bool { return true } - -type timeoutChan chan struct{} - -var ioInitOnce sync.Once -var ioCompletionPort syscall.Handle - -// ioResult contains the result of an asynchronous IO operation -type ioResult struct { - bytes uint32 - err error -} - -// ioOperation represents an outstanding asynchronous Win32 IO -type ioOperation struct { - o syscall.Overlapped - ch chan ioResult -} - -func initIo() { - h, err := createIoCompletionPort(syscall.InvalidHandle, 0, 0, 0xffffffff) - if err != nil { - panic(err) - } - ioCompletionPort = h - go ioCompletionProcessor(h) -} - -// win32File implements Reader, Writer, and Closer on a Win32 handle without blocking in a syscall. -// It takes ownership of this handle and will close it if it is garbage collected. -type win32File struct { - handle syscall.Handle - wg sync.WaitGroup - wgLock sync.RWMutex - closing atomicBool - readDeadline deadlineHandler - writeDeadline deadlineHandler -} - -type deadlineHandler struct { - setLock sync.Mutex - channel timeoutChan - channelLock sync.RWMutex - timer *time.Timer - timedout atomicBool -} - -// makeWin32File makes a new win32File from an existing file handle -func makeWin32File(h syscall.Handle) (*win32File, error) { - f := &win32File{handle: h} - ioInitOnce.Do(initIo) - _, err := createIoCompletionPort(h, ioCompletionPort, 0, 0xffffffff) - if err != nil { - return nil, err - } - err = setFileCompletionNotificationModes(h, cFILE_SKIP_COMPLETION_PORT_ON_SUCCESS|cFILE_SKIP_SET_EVENT_ON_HANDLE) - if err != nil { - return nil, err - } - f.readDeadline.channel = make(timeoutChan) - f.writeDeadline.channel = make(timeoutChan) - return f, nil -} - -func MakeOpenFile(h syscall.Handle) (io.ReadWriteCloser, error) { - return makeWin32File(h) -} - -// closeHandle closes the resources associated with a Win32 handle -func (f *win32File) closeHandle() { - f.wgLock.Lock() - // Atomically set that we are closing, releasing the resources only once. - if !f.closing.swap(true) { - f.wgLock.Unlock() - // cancel all IO and wait for it to complete - cancelIoEx(f.handle, nil) - f.wg.Wait() - // at this point, no new IO can start - syscall.Close(f.handle) - f.handle = 0 - } else { - f.wgLock.Unlock() - } -} - -// Close closes a win32File. -func (f *win32File) Close() error { - f.closeHandle() - return nil -} - -// prepareIo prepares for a new IO operation. -// The caller must call f.wg.Done() when the IO is finished, prior to Close() returning. -func (f *win32File) prepareIo() (*ioOperation, error) { - f.wgLock.RLock() - if f.closing.isSet() { - f.wgLock.RUnlock() - return nil, ErrFileClosed - } - f.wg.Add(1) - f.wgLock.RUnlock() - c := &ioOperation{} - c.ch = make(chan ioResult) - return c, nil -} - -// ioCompletionProcessor processes completed async IOs forever -func ioCompletionProcessor(h syscall.Handle) { - for { - var bytes uint32 - var key uintptr - var op *ioOperation - err := getQueuedCompletionStatus(h, &bytes, &key, &op, syscall.INFINITE) - if op == nil { - panic(err) - } - op.ch <- ioResult{bytes, err} - } -} - -// asyncIo processes the return value from ReadFile or WriteFile, blocking until -// the operation has actually completed. -func (f *win32File) asyncIo(c *ioOperation, d *deadlineHandler, bytes uint32, err error) (int, error) { - if err != syscall.ERROR_IO_PENDING { - return int(bytes), err - } - - if f.closing.isSet() { - cancelIoEx(f.handle, &c.o) - } - - var timeout timeoutChan - if d != nil { - d.channelLock.Lock() - timeout = d.channel - d.channelLock.Unlock() - } - - var r ioResult - select { - case r = <-c.ch: - err = r.err - if err == syscall.ERROR_OPERATION_ABORTED { - if f.closing.isSet() { - err = ErrFileClosed - } - } - case <-timeout: - cancelIoEx(f.handle, &c.o) - r = <-c.ch - err = r.err - if err == syscall.ERROR_OPERATION_ABORTED { - err = ErrTimeout - } - } - - // runtime.KeepAlive is needed, as c is passed via native - // code to ioCompletionProcessor, c must remain alive - // until the channel read is complete. - runtime.KeepAlive(c) - return int(r.bytes), err -} - -// Read reads from a file handle. -func (f *win32File) Read(b []byte) (int, error) { - c, err := f.prepareIo() - if err != nil { - return 0, err - } - defer f.wg.Done() - - if f.readDeadline.timedout.isSet() { - return 0, ErrTimeout - } - - var bytes uint32 - err = syscall.ReadFile(f.handle, b, &bytes, &c.o) - n, err := f.asyncIo(c, &f.readDeadline, bytes, err) - runtime.KeepAlive(b) - - // Handle EOF conditions. - if err == nil && n == 0 && len(b) != 0 { - return 0, io.EOF - } else if err == syscall.ERROR_BROKEN_PIPE { - return 0, io.EOF - } else { - return n, err - } -} - -// Write writes to a file handle. -func (f *win32File) Write(b []byte) (int, error) { - c, err := f.prepareIo() - if err != nil { - return 0, err - } - defer f.wg.Done() - - if f.writeDeadline.timedout.isSet() { - return 0, ErrTimeout - } - - var bytes uint32 - err = syscall.WriteFile(f.handle, b, &bytes, &c.o) - n, err := f.asyncIo(c, &f.writeDeadline, bytes, err) - runtime.KeepAlive(b) - return n, err -} - -func (f *win32File) SetReadDeadline(deadline time.Time) error { - return f.readDeadline.set(deadline) -} - -func (f *win32File) SetWriteDeadline(deadline time.Time) error { - return f.writeDeadline.set(deadline) -} - -func (f *win32File) Flush() error { - return syscall.FlushFileBuffers(f.handle) -} - -func (d *deadlineHandler) set(deadline time.Time) error { - d.setLock.Lock() - defer d.setLock.Unlock() - - if d.timer != nil { - if !d.timer.Stop() { - <-d.channel - } - d.timer = nil - } - d.timedout.setFalse() - - select { - case <-d.channel: - d.channelLock.Lock() - d.channel = make(chan struct{}) - d.channelLock.Unlock() - default: - } - - if deadline.IsZero() { - return nil - } - - timeoutIO := func() { - d.timedout.setTrue() - close(d.channel) - } - - now := time.Now() - duration := deadline.Sub(now) - if deadline.After(now) { - // Deadline is in the future, set a timer to wait - d.timer = time.AfterFunc(duration, timeoutIO) - } else { - // Deadline is in the past. Cancel all pending IO now. - timeoutIO() - } - return nil -} diff --git a/vendor/github.com/Microsoft/go-winio/fileinfo.go b/vendor/github.com/Microsoft/go-winio/fileinfo.go deleted file mode 100644 index b1d60ab..0000000 --- a/vendor/github.com/Microsoft/go-winio/fileinfo.go +++ /dev/null @@ -1,60 +0,0 @@ -// +build windows - -package winio - -import ( - "os" - "runtime" - "syscall" - "unsafe" -) - -//sys getFileInformationByHandleEx(h syscall.Handle, class uint32, buffer *byte, size uint32) (err error) = GetFileInformationByHandleEx -//sys setFileInformationByHandle(h syscall.Handle, class uint32, buffer *byte, size uint32) (err error) = SetFileInformationByHandle - -const ( - fileBasicInfo = 0 - fileIDInfo = 0x12 -) - -// FileBasicInfo contains file access time and file attributes information. -type FileBasicInfo struct { - CreationTime, LastAccessTime, LastWriteTime, ChangeTime syscall.Filetime - FileAttributes uintptr // includes padding -} - -// GetFileBasicInfo retrieves times and attributes for a file. -func GetFileBasicInfo(f *os.File) (*FileBasicInfo, error) { - bi := &FileBasicInfo{} - if err := getFileInformationByHandleEx(syscall.Handle(f.Fd()), fileBasicInfo, (*byte)(unsafe.Pointer(bi)), uint32(unsafe.Sizeof(*bi))); err != nil { - return nil, &os.PathError{Op: "GetFileInformationByHandleEx", Path: f.Name(), Err: err} - } - runtime.KeepAlive(f) - return bi, nil -} - -// SetFileBasicInfo sets times and attributes for a file. -func SetFileBasicInfo(f *os.File, bi *FileBasicInfo) error { - if err := setFileInformationByHandle(syscall.Handle(f.Fd()), fileBasicInfo, (*byte)(unsafe.Pointer(bi)), uint32(unsafe.Sizeof(*bi))); err != nil { - return &os.PathError{Op: "SetFileInformationByHandle", Path: f.Name(), Err: err} - } - runtime.KeepAlive(f) - return nil -} - -// FileIDInfo contains the volume serial number and file ID for a file. This pair should be -// unique on a system. -type FileIDInfo struct { - VolumeSerialNumber uint64 - FileID [16]byte -} - -// GetFileID retrieves the unique (volume, file ID) pair for a file. -func GetFileID(f *os.File) (*FileIDInfo, error) { - fileID := &FileIDInfo{} - if err := getFileInformationByHandleEx(syscall.Handle(f.Fd()), fileIDInfo, (*byte)(unsafe.Pointer(fileID)), uint32(unsafe.Sizeof(*fileID))); err != nil { - return nil, &os.PathError{Op: "GetFileInformationByHandleEx", Path: f.Name(), Err: err} - } - runtime.KeepAlive(f) - return fileID, nil -} diff --git a/vendor/github.com/Microsoft/go-winio/pipe.go b/vendor/github.com/Microsoft/go-winio/pipe.go deleted file mode 100644 index 82cbe7a..0000000 --- a/vendor/github.com/Microsoft/go-winio/pipe.go +++ /dev/null @@ -1,424 +0,0 @@ -// +build windows - -package winio - -import ( - "errors" - "io" - "net" - "os" - "syscall" - "time" - "unsafe" -) - -//sys connectNamedPipe(pipe syscall.Handle, o *syscall.Overlapped) (err error) = ConnectNamedPipe -//sys createNamedPipe(name string, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *syscall.SecurityAttributes) (handle syscall.Handle, err error) [failretval==syscall.InvalidHandle] = CreateNamedPipeW -//sys createFile(name string, access uint32, mode uint32, sa *syscall.SecurityAttributes, createmode uint32, attrs uint32, templatefile syscall.Handle) (handle syscall.Handle, err error) [failretval==syscall.InvalidHandle] = CreateFileW -//sys waitNamedPipe(name string, timeout uint32) (err error) = WaitNamedPipeW -//sys getNamedPipeInfo(pipe syscall.Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error) = GetNamedPipeInfo -//sys getNamedPipeHandleState(pipe syscall.Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) = GetNamedPipeHandleStateW -//sys localAlloc(uFlags uint32, length uint32) (ptr uintptr) = LocalAlloc - -const ( - cERROR_PIPE_BUSY = syscall.Errno(231) - cERROR_NO_DATA = syscall.Errno(232) - cERROR_PIPE_CONNECTED = syscall.Errno(535) - cERROR_SEM_TIMEOUT = syscall.Errno(121) - - cPIPE_ACCESS_DUPLEX = 0x3 - cFILE_FLAG_FIRST_PIPE_INSTANCE = 0x80000 - cSECURITY_SQOS_PRESENT = 0x100000 - cSECURITY_ANONYMOUS = 0 - - cPIPE_REJECT_REMOTE_CLIENTS = 0x8 - - cPIPE_UNLIMITED_INSTANCES = 255 - - cNMPWAIT_USE_DEFAULT_WAIT = 0 - cNMPWAIT_NOWAIT = 1 - - cPIPE_TYPE_MESSAGE = 4 - - cPIPE_READMODE_MESSAGE = 2 -) - -var ( - // ErrPipeListenerClosed is returned for pipe operations on listeners that have been closed. - // This error should match net.errClosing since docker takes a dependency on its text. - ErrPipeListenerClosed = errors.New("use of closed network connection") - - errPipeWriteClosed = errors.New("pipe has been closed for write") -) - -type win32Pipe struct { - *win32File - path string -} - -type win32MessageBytePipe struct { - win32Pipe - writeClosed bool - readEOF bool -} - -type pipeAddress string - -func (f *win32Pipe) LocalAddr() net.Addr { - return pipeAddress(f.path) -} - -func (f *win32Pipe) RemoteAddr() net.Addr { - return pipeAddress(f.path) -} - -func (f *win32Pipe) SetDeadline(t time.Time) error { - f.SetReadDeadline(t) - f.SetWriteDeadline(t) - return nil -} - -// CloseWrite closes the write side of a message pipe in byte mode. -func (f *win32MessageBytePipe) CloseWrite() error { - if f.writeClosed { - return errPipeWriteClosed - } - err := f.win32File.Flush() - if err != nil { - return err - } - _, err = f.win32File.Write(nil) - if err != nil { - return err - } - f.writeClosed = true - return nil -} - -// Write writes bytes to a message pipe in byte mode. Zero-byte writes are ignored, since -// they are used to implement CloseWrite(). -func (f *win32MessageBytePipe) Write(b []byte) (int, error) { - if f.writeClosed { - return 0, errPipeWriteClosed - } - if len(b) == 0 { - return 0, nil - } - return f.win32File.Write(b) -} - -// Read reads bytes from a message pipe in byte mode. A read of a zero-byte message on a message -// mode pipe will return io.EOF, as will all subsequent reads. -func (f *win32MessageBytePipe) Read(b []byte) (int, error) { - if f.readEOF { - return 0, io.EOF - } - n, err := f.win32File.Read(b) - if err == io.EOF { - // If this was the result of a zero-byte read, then - // it is possible that the read was due to a zero-size - // message. Since we are simulating CloseWrite with a - // zero-byte message, ensure that all future Read() calls - // also return EOF. - f.readEOF = true - } - return n, err -} - -func (s pipeAddress) Network() string { - return "pipe" -} - -func (s pipeAddress) String() string { - return string(s) -} - -// DialPipe connects to a named pipe by path, timing out if the connection -// takes longer than the specified duration. If timeout is nil, then the timeout -// is the default timeout established by the pipe server. -func DialPipe(path string, timeout *time.Duration) (net.Conn, error) { - var absTimeout time.Time - if timeout != nil { - absTimeout = time.Now().Add(*timeout) - } - var err error - var h syscall.Handle - for { - h, err = createFile(path, syscall.GENERIC_READ|syscall.GENERIC_WRITE, 0, nil, syscall.OPEN_EXISTING, syscall.FILE_FLAG_OVERLAPPED|cSECURITY_SQOS_PRESENT|cSECURITY_ANONYMOUS, 0) - if err != cERROR_PIPE_BUSY { - break - } - now := time.Now() - var ms uint32 - if absTimeout.IsZero() { - ms = cNMPWAIT_USE_DEFAULT_WAIT - } else if now.After(absTimeout) { - ms = cNMPWAIT_NOWAIT - } else { - ms = uint32(absTimeout.Sub(now).Nanoseconds() / 1000 / 1000) - } - err = waitNamedPipe(path, ms) - if err != nil { - if err == cERROR_SEM_TIMEOUT { - return nil, ErrTimeout - } - break - } - } - if err != nil { - return nil, &os.PathError{Op: "open", Path: path, Err: err} - } - - var flags uint32 - err = getNamedPipeInfo(h, &flags, nil, nil, nil) - if err != nil { - return nil, err - } - - var state uint32 - err = getNamedPipeHandleState(h, &state, nil, nil, nil, nil, 0) - if err != nil { - return nil, err - } - - if state&cPIPE_READMODE_MESSAGE != 0 { - return nil, &os.PathError{Op: "open", Path: path, Err: errors.New("message readmode pipes not supported")} - } - - f, err := makeWin32File(h) - if err != nil { - syscall.Close(h) - return nil, err - } - - // If the pipe is in message mode, return a message byte pipe, which - // supports CloseWrite(). - if flags&cPIPE_TYPE_MESSAGE != 0 { - return &win32MessageBytePipe{ - win32Pipe: win32Pipe{win32File: f, path: path}, - }, nil - } - return &win32Pipe{win32File: f, path: path}, nil -} - -type acceptResponse struct { - f *win32File - err error -} - -type win32PipeListener struct { - firstHandle syscall.Handle - path string - securityDescriptor []byte - config PipeConfig - acceptCh chan (chan acceptResponse) - closeCh chan int - doneCh chan int -} - -func makeServerPipeHandle(path string, securityDescriptor []byte, c *PipeConfig, first bool) (syscall.Handle, error) { - var flags uint32 = cPIPE_ACCESS_DUPLEX | syscall.FILE_FLAG_OVERLAPPED - if first { - flags |= cFILE_FLAG_FIRST_PIPE_INSTANCE - } - - var mode uint32 = cPIPE_REJECT_REMOTE_CLIENTS - if c.MessageMode { - mode |= cPIPE_TYPE_MESSAGE - } - - sa := &syscall.SecurityAttributes{} - sa.Length = uint32(unsafe.Sizeof(*sa)) - if securityDescriptor != nil { - len := uint32(len(securityDescriptor)) - sa.SecurityDescriptor = localAlloc(0, len) - defer localFree(sa.SecurityDescriptor) - copy((*[0xffff]byte)(unsafe.Pointer(sa.SecurityDescriptor))[:], securityDescriptor) - } - h, err := createNamedPipe(path, flags, mode, cPIPE_UNLIMITED_INSTANCES, uint32(c.OutputBufferSize), uint32(c.InputBufferSize), 0, sa) - if err != nil { - return 0, &os.PathError{Op: "open", Path: path, Err: err} - } - return h, nil -} - -func (l *win32PipeListener) makeServerPipe() (*win32File, error) { - h, err := makeServerPipeHandle(l.path, l.securityDescriptor, &l.config, false) - if err != nil { - return nil, err - } - f, err := makeWin32File(h) - if err != nil { - syscall.Close(h) - return nil, err - } - return f, nil -} - -func (l *win32PipeListener) makeConnectedServerPipe() (*win32File, error) { - p, err := l.makeServerPipe() - if err != nil { - return nil, err - } - - // Wait for the client to connect. - ch := make(chan error) - go func(p *win32File) { - ch <- connectPipe(p) - }(p) - - select { - case err = <-ch: - if err != nil { - p.Close() - p = nil - } - case <-l.closeCh: - // Abort the connect request by closing the handle. - p.Close() - p = nil - err = <-ch - if err == nil || err == ErrFileClosed { - err = ErrPipeListenerClosed - } - } - return p, err -} - -func (l *win32PipeListener) listenerRoutine() { - closed := false - for !closed { - select { - case <-l.closeCh: - closed = true - case responseCh := <-l.acceptCh: - var ( - p *win32File - err error - ) - for { - p, err = l.makeConnectedServerPipe() - // If the connection was immediately closed by the client, try - // again. - if err != cERROR_NO_DATA { - break - } - } - responseCh <- acceptResponse{p, err} - closed = err == ErrPipeListenerClosed - } - } - syscall.Close(l.firstHandle) - l.firstHandle = 0 - // Notify Close() and Accept() callers that the handle has been closed. - close(l.doneCh) -} - -// PipeConfig contain configuration for the pipe listener. -type PipeConfig struct { - // SecurityDescriptor contains a Windows security descriptor in SDDL format. - SecurityDescriptor string - - // MessageMode determines whether the pipe is in byte or message mode. In either - // case the pipe is read in byte mode by default. The only practical difference in - // this implementation is that CloseWrite() is only supported for message mode pipes; - // CloseWrite() is implemented as a zero-byte write, but zero-byte writes are only - // transferred to the reader (and returned as io.EOF in this implementation) - // when the pipe is in message mode. - MessageMode bool - - // InputBufferSize specifies the size the input buffer, in bytes. - InputBufferSize int32 - - // OutputBufferSize specifies the size the input buffer, in bytes. - OutputBufferSize int32 -} - -// ListenPipe creates a listener on a Windows named pipe path, e.g. \\.\pipe\mypipe. -// The pipe must not already exist. -func ListenPipe(path string, c *PipeConfig) (net.Listener, error) { - var ( - sd []byte - err error - ) - if c == nil { - c = &PipeConfig{} - } - if c.SecurityDescriptor != "" { - sd, err = SddlToSecurityDescriptor(c.SecurityDescriptor) - if err != nil { - return nil, err - } - } - h, err := makeServerPipeHandle(path, sd, c, true) - if err != nil { - return nil, err - } - // Immediately open and then close a client handle so that the named pipe is - // created but not currently accepting connections. - h2, err := createFile(path, 0, 0, nil, syscall.OPEN_EXISTING, cSECURITY_SQOS_PRESENT|cSECURITY_ANONYMOUS, 0) - if err != nil { - syscall.Close(h) - return nil, err - } - syscall.Close(h2) - l := &win32PipeListener{ - firstHandle: h, - path: path, - securityDescriptor: sd, - config: *c, - acceptCh: make(chan (chan acceptResponse)), - closeCh: make(chan int), - doneCh: make(chan int), - } - go l.listenerRoutine() - return l, nil -} - -func connectPipe(p *win32File) error { - c, err := p.prepareIo() - if err != nil { - return err - } - defer p.wg.Done() - - err = connectNamedPipe(p.handle, &c.o) - _, err = p.asyncIo(c, nil, 0, err) - if err != nil && err != cERROR_PIPE_CONNECTED { - return err - } - return nil -} - -func (l *win32PipeListener) Accept() (net.Conn, error) { - ch := make(chan acceptResponse) - select { - case l.acceptCh <- ch: - response := <-ch - err := response.err - if err != nil { - return nil, err - } - if l.config.MessageMode { - return &win32MessageBytePipe{ - win32Pipe: win32Pipe{win32File: response.f, path: l.path}, - }, nil - } - return &win32Pipe{win32File: response.f, path: l.path}, nil - case <-l.doneCh: - return nil, ErrPipeListenerClosed - } -} - -func (l *win32PipeListener) Close() error { - select { - case l.closeCh <- 1: - <-l.doneCh - case <-l.doneCh: - } - return nil -} - -func (l *win32PipeListener) Addr() net.Addr { - return pipeAddress(l.path) -} diff --git a/vendor/github.com/Microsoft/go-winio/privilege.go b/vendor/github.com/Microsoft/go-winio/privilege.go deleted file mode 100644 index 9c83d36..0000000 --- a/vendor/github.com/Microsoft/go-winio/privilege.go +++ /dev/null @@ -1,202 +0,0 @@ -// +build windows - -package winio - -import ( - "bytes" - "encoding/binary" - "fmt" - "runtime" - "sync" - "syscall" - "unicode/utf16" - - "golang.org/x/sys/windows" -) - -//sys adjustTokenPrivileges(token windows.Token, releaseAll bool, input *byte, outputSize uint32, output *byte, requiredSize *uint32) (success bool, err error) [true] = advapi32.AdjustTokenPrivileges -//sys impersonateSelf(level uint32) (err error) = advapi32.ImpersonateSelf -//sys revertToSelf() (err error) = advapi32.RevertToSelf -//sys openThreadToken(thread syscall.Handle, accessMask uint32, openAsSelf bool, token *windows.Token) (err error) = advapi32.OpenThreadToken -//sys getCurrentThread() (h syscall.Handle) = GetCurrentThread -//sys lookupPrivilegeValue(systemName string, name string, luid *uint64) (err error) = advapi32.LookupPrivilegeValueW -//sys lookupPrivilegeName(systemName string, luid *uint64, buffer *uint16, size *uint32) (err error) = advapi32.LookupPrivilegeNameW -//sys lookupPrivilegeDisplayName(systemName string, name *uint16, buffer *uint16, size *uint32, languageId *uint32) (err error) = advapi32.LookupPrivilegeDisplayNameW - -const ( - SE_PRIVILEGE_ENABLED = 2 - - ERROR_NOT_ALL_ASSIGNED syscall.Errno = 1300 - - SeBackupPrivilege = "SeBackupPrivilege" - SeRestorePrivilege = "SeRestorePrivilege" -) - -const ( - securityAnonymous = iota - securityIdentification - securityImpersonation - securityDelegation -) - -var ( - privNames = make(map[string]uint64) - privNameMutex sync.Mutex -) - -// PrivilegeError represents an error enabling privileges. -type PrivilegeError struct { - privileges []uint64 -} - -func (e *PrivilegeError) Error() string { - s := "" - if len(e.privileges) > 1 { - s = "Could not enable privileges " - } else { - s = "Could not enable privilege " - } - for i, p := range e.privileges { - if i != 0 { - s += ", " - } - s += `"` - s += getPrivilegeName(p) - s += `"` - } - return s -} - -// RunWithPrivilege enables a single privilege for a function call. -func RunWithPrivilege(name string, fn func() error) error { - return RunWithPrivileges([]string{name}, fn) -} - -// RunWithPrivileges enables privileges for a function call. -func RunWithPrivileges(names []string, fn func() error) error { - privileges, err := mapPrivileges(names) - if err != nil { - return err - } - runtime.LockOSThread() - defer runtime.UnlockOSThread() - token, err := newThreadToken() - if err != nil { - return err - } - defer releaseThreadToken(token) - err = adjustPrivileges(token, privileges, SE_PRIVILEGE_ENABLED) - if err != nil { - return err - } - return fn() -} - -func mapPrivileges(names []string) ([]uint64, error) { - var privileges []uint64 - privNameMutex.Lock() - defer privNameMutex.Unlock() - for _, name := range names { - p, ok := privNames[name] - if !ok { - err := lookupPrivilegeValue("", name, &p) - if err != nil { - return nil, err - } - privNames[name] = p - } - privileges = append(privileges, p) - } - return privileges, nil -} - -// EnableProcessPrivileges enables privileges globally for the process. -func EnableProcessPrivileges(names []string) error { - return enableDisableProcessPrivilege(names, SE_PRIVILEGE_ENABLED) -} - -// DisableProcessPrivileges disables privileges globally for the process. -func DisableProcessPrivileges(names []string) error { - return enableDisableProcessPrivilege(names, 0) -} - -func enableDisableProcessPrivilege(names []string, action uint32) error { - privileges, err := mapPrivileges(names) - if err != nil { - return err - } - - p, _ := windows.GetCurrentProcess() - var token windows.Token - err = windows.OpenProcessToken(p, windows.TOKEN_ADJUST_PRIVILEGES|windows.TOKEN_QUERY, &token) - if err != nil { - return err - } - - defer token.Close() - return adjustPrivileges(token, privileges, action) -} - -func adjustPrivileges(token windows.Token, privileges []uint64, action uint32) error { - var b bytes.Buffer - binary.Write(&b, binary.LittleEndian, uint32(len(privileges))) - for _, p := range privileges { - binary.Write(&b, binary.LittleEndian, p) - binary.Write(&b, binary.LittleEndian, action) - } - prevState := make([]byte, b.Len()) - reqSize := uint32(0) - success, err := adjustTokenPrivileges(token, false, &b.Bytes()[0], uint32(len(prevState)), &prevState[0], &reqSize) - if !success { - return err - } - if err == ERROR_NOT_ALL_ASSIGNED { - return &PrivilegeError{privileges} - } - return nil -} - -func getPrivilegeName(luid uint64) string { - var nameBuffer [256]uint16 - bufSize := uint32(len(nameBuffer)) - err := lookupPrivilegeName("", &luid, &nameBuffer[0], &bufSize) - if err != nil { - return fmt.Sprintf("", luid) - } - - var displayNameBuffer [256]uint16 - displayBufSize := uint32(len(displayNameBuffer)) - var langID uint32 - err = lookupPrivilegeDisplayName("", &nameBuffer[0], &displayNameBuffer[0], &displayBufSize, &langID) - if err != nil { - return fmt.Sprintf("", string(utf16.Decode(nameBuffer[:bufSize]))) - } - - return string(utf16.Decode(displayNameBuffer[:displayBufSize])) -} - -func newThreadToken() (windows.Token, error) { - err := impersonateSelf(securityImpersonation) - if err != nil { - return 0, err - } - - var token windows.Token - err = openThreadToken(getCurrentThread(), syscall.TOKEN_ADJUST_PRIVILEGES|syscall.TOKEN_QUERY, false, &token) - if err != nil { - rerr := revertToSelf() - if rerr != nil { - panic(rerr) - } - return 0, err - } - return token, nil -} - -func releaseThreadToken(h windows.Token) { - err := revertToSelf() - if err != nil { - panic(err) - } - h.Close() -} diff --git a/vendor/github.com/Microsoft/go-winio/reparse.go b/vendor/github.com/Microsoft/go-winio/reparse.go deleted file mode 100644 index fc1ee4d..0000000 --- a/vendor/github.com/Microsoft/go-winio/reparse.go +++ /dev/null @@ -1,128 +0,0 @@ -package winio - -import ( - "bytes" - "encoding/binary" - "fmt" - "strings" - "unicode/utf16" - "unsafe" -) - -const ( - reparseTagMountPoint = 0xA0000003 - reparseTagSymlink = 0xA000000C -) - -type reparseDataBuffer struct { - ReparseTag uint32 - ReparseDataLength uint16 - Reserved uint16 - SubstituteNameOffset uint16 - SubstituteNameLength uint16 - PrintNameOffset uint16 - PrintNameLength uint16 -} - -// ReparsePoint describes a Win32 symlink or mount point. -type ReparsePoint struct { - Target string - IsMountPoint bool -} - -// UnsupportedReparsePointError is returned when trying to decode a non-symlink or -// mount point reparse point. -type UnsupportedReparsePointError struct { - Tag uint32 -} - -func (e *UnsupportedReparsePointError) Error() string { - return fmt.Sprintf("unsupported reparse point %x", e.Tag) -} - -// DecodeReparsePoint decodes a Win32 REPARSE_DATA_BUFFER structure containing either a symlink -// or a mount point. -func DecodeReparsePoint(b []byte) (*ReparsePoint, error) { - tag := binary.LittleEndian.Uint32(b[0:4]) - return DecodeReparsePointData(tag, b[8:]) -} - -func DecodeReparsePointData(tag uint32, b []byte) (*ReparsePoint, error) { - isMountPoint := false - switch tag { - case reparseTagMountPoint: - isMountPoint = true - case reparseTagSymlink: - default: - return nil, &UnsupportedReparsePointError{tag} - } - nameOffset := 8 + binary.LittleEndian.Uint16(b[4:6]) - if !isMountPoint { - nameOffset += 4 - } - nameLength := binary.LittleEndian.Uint16(b[6:8]) - name := make([]uint16, nameLength/2) - err := binary.Read(bytes.NewReader(b[nameOffset:nameOffset+nameLength]), binary.LittleEndian, &name) - if err != nil { - return nil, err - } - return &ReparsePoint{string(utf16.Decode(name)), isMountPoint}, nil -} - -func isDriveLetter(c byte) bool { - return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') -} - -// EncodeReparsePoint encodes a Win32 REPARSE_DATA_BUFFER structure describing a symlink or -// mount point. -func EncodeReparsePoint(rp *ReparsePoint) []byte { - // Generate an NT path and determine if this is a relative path. - var ntTarget string - relative := false - if strings.HasPrefix(rp.Target, `\\?\`) { - ntTarget = `\??\` + rp.Target[4:] - } else if strings.HasPrefix(rp.Target, `\\`) { - ntTarget = `\??\UNC\` + rp.Target[2:] - } else if len(rp.Target) >= 2 && isDriveLetter(rp.Target[0]) && rp.Target[1] == ':' { - ntTarget = `\??\` + rp.Target - } else { - ntTarget = rp.Target - relative = true - } - - // The paths must be NUL-terminated even though they are counted strings. - target16 := utf16.Encode([]rune(rp.Target + "\x00")) - ntTarget16 := utf16.Encode([]rune(ntTarget + "\x00")) - - size := int(unsafe.Sizeof(reparseDataBuffer{})) - 8 - size += len(ntTarget16)*2 + len(target16)*2 - - tag := uint32(reparseTagMountPoint) - if !rp.IsMountPoint { - tag = reparseTagSymlink - size += 4 // Add room for symlink flags - } - - data := reparseDataBuffer{ - ReparseTag: tag, - ReparseDataLength: uint16(size), - SubstituteNameOffset: 0, - SubstituteNameLength: uint16((len(ntTarget16) - 1) * 2), - PrintNameOffset: uint16(len(ntTarget16) * 2), - PrintNameLength: uint16((len(target16) - 1) * 2), - } - - var b bytes.Buffer - binary.Write(&b, binary.LittleEndian, &data) - if !rp.IsMountPoint { - flags := uint32(0) - if relative { - flags |= 1 - } - binary.Write(&b, binary.LittleEndian, flags) - } - - binary.Write(&b, binary.LittleEndian, ntTarget16) - binary.Write(&b, binary.LittleEndian, target16) - return b.Bytes() -} diff --git a/vendor/github.com/Microsoft/go-winio/sd.go b/vendor/github.com/Microsoft/go-winio/sd.go deleted file mode 100644 index db1b370..0000000 --- a/vendor/github.com/Microsoft/go-winio/sd.go +++ /dev/null @@ -1,98 +0,0 @@ -// +build windows - -package winio - -import ( - "syscall" - "unsafe" -) - -//sys lookupAccountName(systemName *uint16, accountName string, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) = advapi32.LookupAccountNameW -//sys convertSidToStringSid(sid *byte, str **uint16) (err error) = advapi32.ConvertSidToStringSidW -//sys convertStringSecurityDescriptorToSecurityDescriptor(str string, revision uint32, sd *uintptr, size *uint32) (err error) = advapi32.ConvertStringSecurityDescriptorToSecurityDescriptorW -//sys convertSecurityDescriptorToStringSecurityDescriptor(sd *byte, revision uint32, secInfo uint32, sddl **uint16, sddlSize *uint32) (err error) = advapi32.ConvertSecurityDescriptorToStringSecurityDescriptorW -//sys localFree(mem uintptr) = LocalFree -//sys getSecurityDescriptorLength(sd uintptr) (len uint32) = advapi32.GetSecurityDescriptorLength - -const ( - cERROR_NONE_MAPPED = syscall.Errno(1332) -) - -type AccountLookupError struct { - Name string - Err error -} - -func (e *AccountLookupError) Error() string { - if e.Name == "" { - return "lookup account: empty account name specified" - } - var s string - switch e.Err { - case cERROR_NONE_MAPPED: - s = "not found" - default: - s = e.Err.Error() - } - return "lookup account " + e.Name + ": " + s -} - -type SddlConversionError struct { - Sddl string - Err error -} - -func (e *SddlConversionError) Error() string { - return "convert " + e.Sddl + ": " + e.Err.Error() -} - -// LookupSidByName looks up the SID of an account by name -func LookupSidByName(name string) (sid string, err error) { - if name == "" { - return "", &AccountLookupError{name, cERROR_NONE_MAPPED} - } - - var sidSize, sidNameUse, refDomainSize uint32 - err = lookupAccountName(nil, name, nil, &sidSize, nil, &refDomainSize, &sidNameUse) - if err != nil && err != syscall.ERROR_INSUFFICIENT_BUFFER { - return "", &AccountLookupError{name, err} - } - sidBuffer := make([]byte, sidSize) - refDomainBuffer := make([]uint16, refDomainSize) - err = lookupAccountName(nil, name, &sidBuffer[0], &sidSize, &refDomainBuffer[0], &refDomainSize, &sidNameUse) - if err != nil { - return "", &AccountLookupError{name, err} - } - var strBuffer *uint16 - err = convertSidToStringSid(&sidBuffer[0], &strBuffer) - if err != nil { - return "", &AccountLookupError{name, err} - } - sid = syscall.UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(strBuffer))[:]) - localFree(uintptr(unsafe.Pointer(strBuffer))) - return sid, nil -} - -func SddlToSecurityDescriptor(sddl string) ([]byte, error) { - var sdBuffer uintptr - err := convertStringSecurityDescriptorToSecurityDescriptor(sddl, 1, &sdBuffer, nil) - if err != nil { - return nil, &SddlConversionError{sddl, err} - } - defer localFree(sdBuffer) - sd := make([]byte, getSecurityDescriptorLength(sdBuffer)) - copy(sd, (*[0xffff]byte)(unsafe.Pointer(sdBuffer))[:len(sd)]) - return sd, nil -} - -func SecurityDescriptorToSddl(sd []byte) (string, error) { - var sddl *uint16 - // The returned string length seems to including an aribtrary number of terminating NULs. - // Don't use it. - err := convertSecurityDescriptorToStringSecurityDescriptor(&sd[0], 1, 0xff, &sddl, nil) - if err != nil { - return "", err - } - defer localFree(uintptr(unsafe.Pointer(sddl))) - return syscall.UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(sddl))[:]), nil -} diff --git a/vendor/github.com/Microsoft/go-winio/syscall.go b/vendor/github.com/Microsoft/go-winio/syscall.go deleted file mode 100644 index 20d64cf..0000000 --- a/vendor/github.com/Microsoft/go-winio/syscall.go +++ /dev/null @@ -1,3 +0,0 @@ -package winio - -//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go diff --git a/vendor/github.com/Microsoft/go-winio/zsyscall_windows.go b/vendor/github.com/Microsoft/go-winio/zsyscall_windows.go deleted file mode 100644 index 3f52763..0000000 --- a/vendor/github.com/Microsoft/go-winio/zsyscall_windows.go +++ /dev/null @@ -1,520 +0,0 @@ -// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT - -package winio - -import ( - "syscall" - "unsafe" - - "golang.org/x/sys/windows" -) - -var _ unsafe.Pointer - -// Do the interface allocations only once for common -// Errno values. -const ( - errnoERROR_IO_PENDING = 997 -) - -var ( - errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING) -) - -// errnoErr returns common boxed Errno values, to prevent -// allocations at runtime. -func errnoErr(e syscall.Errno) error { - switch e { - case 0: - return nil - case errnoERROR_IO_PENDING: - return errERROR_IO_PENDING - } - // TODO: add more here, after collecting data on the common - // error values see on Windows. (perhaps when running - // all.bat?) - return e -} - -var ( - modkernel32 = windows.NewLazySystemDLL("kernel32.dll") - modadvapi32 = windows.NewLazySystemDLL("advapi32.dll") - - procCancelIoEx = modkernel32.NewProc("CancelIoEx") - procCreateIoCompletionPort = modkernel32.NewProc("CreateIoCompletionPort") - procGetQueuedCompletionStatus = modkernel32.NewProc("GetQueuedCompletionStatus") - procSetFileCompletionNotificationModes = modkernel32.NewProc("SetFileCompletionNotificationModes") - procConnectNamedPipe = modkernel32.NewProc("ConnectNamedPipe") - procCreateNamedPipeW = modkernel32.NewProc("CreateNamedPipeW") - procCreateFileW = modkernel32.NewProc("CreateFileW") - procWaitNamedPipeW = modkernel32.NewProc("WaitNamedPipeW") - procGetNamedPipeInfo = modkernel32.NewProc("GetNamedPipeInfo") - procGetNamedPipeHandleStateW = modkernel32.NewProc("GetNamedPipeHandleStateW") - procLocalAlloc = modkernel32.NewProc("LocalAlloc") - procLookupAccountNameW = modadvapi32.NewProc("LookupAccountNameW") - procConvertSidToStringSidW = modadvapi32.NewProc("ConvertSidToStringSidW") - procConvertStringSecurityDescriptorToSecurityDescriptorW = modadvapi32.NewProc("ConvertStringSecurityDescriptorToSecurityDescriptorW") - procConvertSecurityDescriptorToStringSecurityDescriptorW = modadvapi32.NewProc("ConvertSecurityDescriptorToStringSecurityDescriptorW") - procLocalFree = modkernel32.NewProc("LocalFree") - procGetSecurityDescriptorLength = modadvapi32.NewProc("GetSecurityDescriptorLength") - procGetFileInformationByHandleEx = modkernel32.NewProc("GetFileInformationByHandleEx") - procSetFileInformationByHandle = modkernel32.NewProc("SetFileInformationByHandle") - procAdjustTokenPrivileges = modadvapi32.NewProc("AdjustTokenPrivileges") - procImpersonateSelf = modadvapi32.NewProc("ImpersonateSelf") - procRevertToSelf = modadvapi32.NewProc("RevertToSelf") - procOpenThreadToken = modadvapi32.NewProc("OpenThreadToken") - procGetCurrentThread = modkernel32.NewProc("GetCurrentThread") - procLookupPrivilegeValueW = modadvapi32.NewProc("LookupPrivilegeValueW") - procLookupPrivilegeNameW = modadvapi32.NewProc("LookupPrivilegeNameW") - procLookupPrivilegeDisplayNameW = modadvapi32.NewProc("LookupPrivilegeDisplayNameW") - procBackupRead = modkernel32.NewProc("BackupRead") - procBackupWrite = modkernel32.NewProc("BackupWrite") -) - -func cancelIoEx(file syscall.Handle, o *syscall.Overlapped) (err error) { - r1, _, e1 := syscall.Syscall(procCancelIoEx.Addr(), 2, uintptr(file), uintptr(unsafe.Pointer(o)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func createIoCompletionPort(file syscall.Handle, port syscall.Handle, key uintptr, threadCount uint32) (newport syscall.Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCreateIoCompletionPort.Addr(), 4, uintptr(file), uintptr(port), uintptr(key), uintptr(threadCount), 0, 0) - newport = syscall.Handle(r0) - if newport == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getQueuedCompletionStatus(port syscall.Handle, bytes *uint32, key *uintptr, o **ioOperation, timeout uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetQueuedCompletionStatus.Addr(), 5, uintptr(port), uintptr(unsafe.Pointer(bytes)), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(o)), uintptr(timeout), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func setFileCompletionNotificationModes(h syscall.Handle, flags uint8) (err error) { - r1, _, e1 := syscall.Syscall(procSetFileCompletionNotificationModes.Addr(), 2, uintptr(h), uintptr(flags), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func connectNamedPipe(pipe syscall.Handle, o *syscall.Overlapped) (err error) { - r1, _, e1 := syscall.Syscall(procConnectNamedPipe.Addr(), 2, uintptr(pipe), uintptr(unsafe.Pointer(o)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func createNamedPipe(name string, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *syscall.SecurityAttributes) (handle syscall.Handle, err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(name) - if err != nil { - return - } - return _createNamedPipe(_p0, flags, pipeMode, maxInstances, outSize, inSize, defaultTimeout, sa) -} - -func _createNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *syscall.SecurityAttributes) (handle syscall.Handle, err error) { - r0, _, e1 := syscall.Syscall9(procCreateNamedPipeW.Addr(), 8, uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(pipeMode), uintptr(maxInstances), uintptr(outSize), uintptr(inSize), uintptr(defaultTimeout), uintptr(unsafe.Pointer(sa)), 0) - handle = syscall.Handle(r0) - if handle == syscall.InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func createFile(name string, access uint32, mode uint32, sa *syscall.SecurityAttributes, createmode uint32, attrs uint32, templatefile syscall.Handle) (handle syscall.Handle, err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(name) - if err != nil { - return - } - return _createFile(_p0, access, mode, sa, createmode, attrs, templatefile) -} - -func _createFile(name *uint16, access uint32, mode uint32, sa *syscall.SecurityAttributes, createmode uint32, attrs uint32, templatefile syscall.Handle) (handle syscall.Handle, err error) { - r0, _, e1 := syscall.Syscall9(procCreateFileW.Addr(), 7, uintptr(unsafe.Pointer(name)), uintptr(access), uintptr(mode), uintptr(unsafe.Pointer(sa)), uintptr(createmode), uintptr(attrs), uintptr(templatefile), 0, 0) - handle = syscall.Handle(r0) - if handle == syscall.InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func waitNamedPipe(name string, timeout uint32) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(name) - if err != nil { - return - } - return _waitNamedPipe(_p0, timeout) -} - -func _waitNamedPipe(name *uint16, timeout uint32) (err error) { - r1, _, e1 := syscall.Syscall(procWaitNamedPipeW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(timeout), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getNamedPipeInfo(pipe syscall.Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetNamedPipeInfo.Addr(), 5, uintptr(pipe), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(outSize)), uintptr(unsafe.Pointer(inSize)), uintptr(unsafe.Pointer(maxInstances)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getNamedPipeHandleState(pipe syscall.Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procGetNamedPipeHandleStateW.Addr(), 7, uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(curInstances)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)), uintptr(unsafe.Pointer(userName)), uintptr(maxUserNameSize), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func localAlloc(uFlags uint32, length uint32) (ptr uintptr) { - r0, _, _ := syscall.Syscall(procLocalAlloc.Addr(), 2, uintptr(uFlags), uintptr(length), 0) - ptr = uintptr(r0) - return -} - -func lookupAccountName(systemName *uint16, accountName string, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(accountName) - if err != nil { - return - } - return _lookupAccountName(systemName, _p0, sid, sidSize, refDomain, refDomainSize, sidNameUse) -} - -func _lookupAccountName(systemName *uint16, accountName *uint16, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procLookupAccountNameW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(accountName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sidSize)), uintptr(unsafe.Pointer(refDomain)), uintptr(unsafe.Pointer(refDomainSize)), uintptr(unsafe.Pointer(sidNameUse)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func convertSidToStringSid(sid *byte, str **uint16) (err error) { - r1, _, e1 := syscall.Syscall(procConvertSidToStringSidW.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(str)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func convertStringSecurityDescriptorToSecurityDescriptor(str string, revision uint32, sd *uintptr, size *uint32) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(str) - if err != nil { - return - } - return _convertStringSecurityDescriptorToSecurityDescriptor(_p0, revision, sd, size) -} - -func _convertStringSecurityDescriptorToSecurityDescriptor(str *uint16, revision uint32, sd *uintptr, size *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procConvertStringSecurityDescriptorToSecurityDescriptorW.Addr(), 4, uintptr(unsafe.Pointer(str)), uintptr(revision), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(size)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func convertSecurityDescriptorToStringSecurityDescriptor(sd *byte, revision uint32, secInfo uint32, sddl **uint16, sddlSize *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procConvertSecurityDescriptorToStringSecurityDescriptorW.Addr(), 5, uintptr(unsafe.Pointer(sd)), uintptr(revision), uintptr(secInfo), uintptr(unsafe.Pointer(sddl)), uintptr(unsafe.Pointer(sddlSize)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func localFree(mem uintptr) { - syscall.Syscall(procLocalFree.Addr(), 1, uintptr(mem), 0, 0) - return -} - -func getSecurityDescriptorLength(sd uintptr) (len uint32) { - r0, _, _ := syscall.Syscall(procGetSecurityDescriptorLength.Addr(), 1, uintptr(sd), 0, 0) - len = uint32(r0) - return -} - -func getFileInformationByHandleEx(h syscall.Handle, class uint32, buffer *byte, size uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetFileInformationByHandleEx.Addr(), 4, uintptr(h), uintptr(class), uintptr(unsafe.Pointer(buffer)), uintptr(size), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func setFileInformationByHandle(h syscall.Handle, class uint32, buffer *byte, size uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procSetFileInformationByHandle.Addr(), 4, uintptr(h), uintptr(class), uintptr(unsafe.Pointer(buffer)), uintptr(size), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func adjustTokenPrivileges(token windows.Token, releaseAll bool, input *byte, outputSize uint32, output *byte, requiredSize *uint32) (success bool, err error) { - var _p0 uint32 - if releaseAll { - _p0 = 1 - } else { - _p0 = 0 - } - r0, _, e1 := syscall.Syscall6(procAdjustTokenPrivileges.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(input)), uintptr(outputSize), uintptr(unsafe.Pointer(output)), uintptr(unsafe.Pointer(requiredSize))) - success = r0 != 0 - if true { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func impersonateSelf(level uint32) (err error) { - r1, _, e1 := syscall.Syscall(procImpersonateSelf.Addr(), 1, uintptr(level), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func revertToSelf() (err error) { - r1, _, e1 := syscall.Syscall(procRevertToSelf.Addr(), 0, 0, 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func openThreadToken(thread syscall.Handle, accessMask uint32, openAsSelf bool, token *windows.Token) (err error) { - var _p0 uint32 - if openAsSelf { - _p0 = 1 - } else { - _p0 = 0 - } - r1, _, e1 := syscall.Syscall6(procOpenThreadToken.Addr(), 4, uintptr(thread), uintptr(accessMask), uintptr(_p0), uintptr(unsafe.Pointer(token)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getCurrentThread() (h syscall.Handle) { - r0, _, _ := syscall.Syscall(procGetCurrentThread.Addr(), 0, 0, 0, 0) - h = syscall.Handle(r0) - return -} - -func lookupPrivilegeValue(systemName string, name string, luid *uint64) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(systemName) - if err != nil { - return - } - var _p1 *uint16 - _p1, err = syscall.UTF16PtrFromString(name) - if err != nil { - return - } - return _lookupPrivilegeValue(_p0, _p1, luid) -} - -func _lookupPrivilegeValue(systemName *uint16, name *uint16, luid *uint64) (err error) { - r1, _, e1 := syscall.Syscall(procLookupPrivilegeValueW.Addr(), 3, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(luid))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func lookupPrivilegeName(systemName string, luid *uint64, buffer *uint16, size *uint32) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(systemName) - if err != nil { - return - } - return _lookupPrivilegeName(_p0, luid, buffer, size) -} - -func _lookupPrivilegeName(systemName *uint16, luid *uint64, buffer *uint16, size *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procLookupPrivilegeNameW.Addr(), 4, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(luid)), uintptr(unsafe.Pointer(buffer)), uintptr(unsafe.Pointer(size)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func lookupPrivilegeDisplayName(systemName string, name *uint16, buffer *uint16, size *uint32, languageId *uint32) (err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(systemName) - if err != nil { - return - } - return _lookupPrivilegeDisplayName(_p0, name, buffer, size, languageId) -} - -func _lookupPrivilegeDisplayName(systemName *uint16, name *uint16, buffer *uint16, size *uint32, languageId *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procLookupPrivilegeDisplayNameW.Addr(), 5, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(buffer)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(languageId)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func backupRead(h syscall.Handle, b []byte, bytesRead *uint32, abort bool, processSecurity bool, context *uintptr) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - var _p1 uint32 - if abort { - _p1 = 1 - } else { - _p1 = 0 - } - var _p2 uint32 - if processSecurity { - _p2 = 1 - } else { - _p2 = 0 - } - r1, _, e1 := syscall.Syscall9(procBackupRead.Addr(), 7, uintptr(h), uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(unsafe.Pointer(bytesRead)), uintptr(_p1), uintptr(_p2), uintptr(unsafe.Pointer(context)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func backupWrite(h syscall.Handle, b []byte, bytesWritten *uint32, abort bool, processSecurity bool, context *uintptr) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - var _p1 uint32 - if abort { - _p1 = 1 - } else { - _p1 = 0 - } - var _p2 uint32 - if processSecurity { - _p2 = 1 - } else { - _p2 = 0 - } - r1, _, e1 := syscall.Syscall9(procBackupWrite.Addr(), 7, uintptr(h), uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(unsafe.Pointer(bytesWritten)), uintptr(_p1), uintptr(_p2), uintptr(unsafe.Pointer(context)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} diff --git a/vendor/github.com/Sirupsen/logrus/LICENSE b/vendor/github.com/Sirupsen/logrus/LICENSE deleted file mode 100644 index f090cb4..0000000 --- a/vendor/github.com/Sirupsen/logrus/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Simon Eskildsen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/vendor/github.com/Sirupsen/logrus/alt_exit.go b/vendor/github.com/Sirupsen/logrus/alt_exit.go deleted file mode 100644 index 8af9063..0000000 --- a/vendor/github.com/Sirupsen/logrus/alt_exit.go +++ /dev/null @@ -1,64 +0,0 @@ -package logrus - -// The following code was sourced and modified from the -// https://github.com/tebeka/atexit package governed by the following license: -// -// Copyright (c) 2012 Miki Tebeka . -// -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do so, -// subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -import ( - "fmt" - "os" -) - -var handlers = []func(){} - -func runHandler(handler func()) { - defer func() { - if err := recover(); err != nil { - fmt.Fprintln(os.Stderr, "Error: Logrus exit handler error:", err) - } - }() - - handler() -} - -func runHandlers() { - for _, handler := range handlers { - runHandler(handler) - } -} - -// Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code) -func Exit(code int) { - runHandlers() - os.Exit(code) -} - -// RegisterExitHandler adds a Logrus Exit handler, call logrus.Exit to invoke -// all handlers. The handlers will also be invoked when any Fatal log entry is -// made. -// -// This method is useful when a caller wishes to use logrus to log a fatal -// message but also needs to gracefully shutdown. An example usecase could be -// closing database connections, or sending a alert that the application is -// closing. -func RegisterExitHandler(handler func()) { - handlers = append(handlers, handler) -} diff --git a/vendor/github.com/Sirupsen/logrus/doc.go b/vendor/github.com/Sirupsen/logrus/doc.go deleted file mode 100644 index da67aba..0000000 --- a/vendor/github.com/Sirupsen/logrus/doc.go +++ /dev/null @@ -1,26 +0,0 @@ -/* -Package logrus is a structured logger for Go, completely API compatible with the standard library logger. - - -The simplest way to use Logrus is simply the package-level exported logger: - - package main - - import ( - log "github.com/sirupsen/logrus" - ) - - func main() { - log.WithFields(log.Fields{ - "animal": "walrus", - "number": 1, - "size": 10, - }).Info("A walrus appears") - } - -Output: - time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 - -For a full guide visit https://github.com/sirupsen/logrus -*/ -package logrus diff --git a/vendor/github.com/Sirupsen/logrus/entry.go b/vendor/github.com/Sirupsen/logrus/entry.go deleted file mode 100644 index 1fad45e..0000000 --- a/vendor/github.com/Sirupsen/logrus/entry.go +++ /dev/null @@ -1,279 +0,0 @@ -package logrus - -import ( - "bytes" - "fmt" - "os" - "sync" - "time" -) - -var bufferPool *sync.Pool - -func init() { - bufferPool = &sync.Pool{ - New: func() interface{} { - return new(bytes.Buffer) - }, - } -} - -// Defines the key when adding errors using WithError. -var ErrorKey = "error" - -// An entry is the final or intermediate Logrus logging entry. It contains all -// the fields passed with WithField{,s}. It's finally logged when Debug, Info, -// Warn, Error, Fatal or Panic is called on it. These objects can be reused and -// passed around as much as you wish to avoid field duplication. -type Entry struct { - Logger *Logger - - // Contains all the fields set by the user. - Data Fields - - // Time at which the log entry was created - Time time.Time - - // Level the log entry was logged at: Debug, Info, Warn, Error, Fatal or Panic - // This field will be set on entry firing and the value will be equal to the one in Logger struct field. - Level Level - - // Message passed to Debug, Info, Warn, Error, Fatal or Panic - Message string - - // When formatter is called in entry.log(), an Buffer may be set to entry - Buffer *bytes.Buffer -} - -func NewEntry(logger *Logger) *Entry { - return &Entry{ - Logger: logger, - // Default is three fields, give a little extra room - Data: make(Fields, 5), - } -} - -// Returns the string representation from the reader and ultimately the -// formatter. -func (entry *Entry) String() (string, error) { - serialized, err := entry.Logger.Formatter.Format(entry) - if err != nil { - return "", err - } - str := string(serialized) - return str, nil -} - -// Add an error as single field (using the key defined in ErrorKey) to the Entry. -func (entry *Entry) WithError(err error) *Entry { - return entry.WithField(ErrorKey, err) -} - -// Add a single field to the Entry. -func (entry *Entry) WithField(key string, value interface{}) *Entry { - return entry.WithFields(Fields{key: value}) -} - -// Add a map of fields to the Entry. -func (entry *Entry) WithFields(fields Fields) *Entry { - data := make(Fields, len(entry.Data)+len(fields)) - for k, v := range entry.Data { - data[k] = v - } - for k, v := range fields { - data[k] = v - } - return &Entry{Logger: entry.Logger, Data: data} -} - -// This function is not declared with a pointer value because otherwise -// race conditions will occur when using multiple goroutines -func (entry Entry) log(level Level, msg string) { - var buffer *bytes.Buffer - entry.Time = time.Now() - entry.Level = level - entry.Message = msg - - entry.Logger.mu.Lock() - err := entry.Logger.Hooks.Fire(level, &entry) - entry.Logger.mu.Unlock() - if err != nil { - entry.Logger.mu.Lock() - fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err) - entry.Logger.mu.Unlock() - } - buffer = bufferPool.Get().(*bytes.Buffer) - buffer.Reset() - defer bufferPool.Put(buffer) - entry.Buffer = buffer - serialized, err := entry.Logger.Formatter.Format(&entry) - entry.Buffer = nil - if err != nil { - entry.Logger.mu.Lock() - fmt.Fprintf(os.Stderr, "Failed to obtain reader, %v\n", err) - entry.Logger.mu.Unlock() - } else { - entry.Logger.mu.Lock() - _, err = entry.Logger.Out.Write(serialized) - if err != nil { - fmt.Fprintf(os.Stderr, "Failed to write to log, %v\n", err) - } - entry.Logger.mu.Unlock() - } - - // To avoid Entry#log() returning a value that only would make sense for - // panic() to use in Entry#Panic(), we avoid the allocation by checking - // directly here. - if level <= PanicLevel { - panic(&entry) - } -} - -func (entry *Entry) Debug(args ...interface{}) { - if entry.Logger.level() >= DebugLevel { - entry.log(DebugLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Print(args ...interface{}) { - entry.Info(args...) -} - -func (entry *Entry) Info(args ...interface{}) { - if entry.Logger.level() >= InfoLevel { - entry.log(InfoLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Warn(args ...interface{}) { - if entry.Logger.level() >= WarnLevel { - entry.log(WarnLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Warning(args ...interface{}) { - entry.Warn(args...) -} - -func (entry *Entry) Error(args ...interface{}) { - if entry.Logger.level() >= ErrorLevel { - entry.log(ErrorLevel, fmt.Sprint(args...)) - } -} - -func (entry *Entry) Fatal(args ...interface{}) { - if entry.Logger.level() >= FatalLevel { - entry.log(FatalLevel, fmt.Sprint(args...)) - } - Exit(1) -} - -func (entry *Entry) Panic(args ...interface{}) { - if entry.Logger.level() >= PanicLevel { - entry.log(PanicLevel, fmt.Sprint(args...)) - } - panic(fmt.Sprint(args...)) -} - -// Entry Printf family functions - -func (entry *Entry) Debugf(format string, args ...interface{}) { - if entry.Logger.level() >= DebugLevel { - entry.Debug(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Infof(format string, args ...interface{}) { - if entry.Logger.level() >= InfoLevel { - entry.Info(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Printf(format string, args ...interface{}) { - entry.Infof(format, args...) -} - -func (entry *Entry) Warnf(format string, args ...interface{}) { - if entry.Logger.level() >= WarnLevel { - entry.Warn(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Warningf(format string, args ...interface{}) { - entry.Warnf(format, args...) -} - -func (entry *Entry) Errorf(format string, args ...interface{}) { - if entry.Logger.level() >= ErrorLevel { - entry.Error(fmt.Sprintf(format, args...)) - } -} - -func (entry *Entry) Fatalf(format string, args ...interface{}) { - if entry.Logger.level() >= FatalLevel { - entry.Fatal(fmt.Sprintf(format, args...)) - } - Exit(1) -} - -func (entry *Entry) Panicf(format string, args ...interface{}) { - if entry.Logger.level() >= PanicLevel { - entry.Panic(fmt.Sprintf(format, args...)) - } -} - -// Entry Println family functions - -func (entry *Entry) Debugln(args ...interface{}) { - if entry.Logger.level() >= DebugLevel { - entry.Debug(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Infoln(args ...interface{}) { - if entry.Logger.level() >= InfoLevel { - entry.Info(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Println(args ...interface{}) { - entry.Infoln(args...) -} - -func (entry *Entry) Warnln(args ...interface{}) { - if entry.Logger.level() >= WarnLevel { - entry.Warn(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Warningln(args ...interface{}) { - entry.Warnln(args...) -} - -func (entry *Entry) Errorln(args ...interface{}) { - if entry.Logger.level() >= ErrorLevel { - entry.Error(entry.sprintlnn(args...)) - } -} - -func (entry *Entry) Fatalln(args ...interface{}) { - if entry.Logger.level() >= FatalLevel { - entry.Fatal(entry.sprintlnn(args...)) - } - Exit(1) -} - -func (entry *Entry) Panicln(args ...interface{}) { - if entry.Logger.level() >= PanicLevel { - entry.Panic(entry.sprintlnn(args...)) - } -} - -// Sprintlnn => Sprint no newline. This is to get the behavior of how -// fmt.Sprintln where spaces are always added between operands, regardless of -// their type. Instead of vendoring the Sprintln implementation to spare a -// string allocation, we do the simplest thing. -func (entry *Entry) sprintlnn(args ...interface{}) string { - msg := fmt.Sprintln(args...) - return msg[:len(msg)-1] -} diff --git a/vendor/github.com/Sirupsen/logrus/exported.go b/vendor/github.com/Sirupsen/logrus/exported.go deleted file mode 100644 index 013183e..0000000 --- a/vendor/github.com/Sirupsen/logrus/exported.go +++ /dev/null @@ -1,193 +0,0 @@ -package logrus - -import ( - "io" -) - -var ( - // std is the name of the standard logger in stdlib `log` - std = New() -) - -func StandardLogger() *Logger { - return std -} - -// SetOutput sets the standard logger output. -func SetOutput(out io.Writer) { - std.mu.Lock() - defer std.mu.Unlock() - std.Out = out -} - -// SetFormatter sets the standard logger formatter. -func SetFormatter(formatter Formatter) { - std.mu.Lock() - defer std.mu.Unlock() - std.Formatter = formatter -} - -// SetLevel sets the standard logger level. -func SetLevel(level Level) { - std.mu.Lock() - defer std.mu.Unlock() - std.SetLevel(level) -} - -// GetLevel returns the standard logger level. -func GetLevel() Level { - std.mu.Lock() - defer std.mu.Unlock() - return std.level() -} - -// AddHook adds a hook to the standard logger hooks. -func AddHook(hook Hook) { - std.mu.Lock() - defer std.mu.Unlock() - std.Hooks.Add(hook) -} - -// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key. -func WithError(err error) *Entry { - return std.WithField(ErrorKey, err) -} - -// WithField creates an entry from the standard logger and adds a field to -// it. If you want multiple fields, use `WithFields`. -// -// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal -// or Panic on the Entry it returns. -func WithField(key string, value interface{}) *Entry { - return std.WithField(key, value) -} - -// WithFields creates an entry from the standard logger and adds multiple -// fields to it. This is simply a helper for `WithField`, invoking it -// once for each field. -// -// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal -// or Panic on the Entry it returns. -func WithFields(fields Fields) *Entry { - return std.WithFields(fields) -} - -// Debug logs a message at level Debug on the standard logger. -func Debug(args ...interface{}) { - std.Debug(args...) -} - -// Print logs a message at level Info on the standard logger. -func Print(args ...interface{}) { - std.Print(args...) -} - -// Info logs a message at level Info on the standard logger. -func Info(args ...interface{}) { - std.Info(args...) -} - -// Warn logs a message at level Warn on the standard logger. -func Warn(args ...interface{}) { - std.Warn(args...) -} - -// Warning logs a message at level Warn on the standard logger. -func Warning(args ...interface{}) { - std.Warning(args...) -} - -// Error logs a message at level Error on the standard logger. -func Error(args ...interface{}) { - std.Error(args...) -} - -// Panic logs a message at level Panic on the standard logger. -func Panic(args ...interface{}) { - std.Panic(args...) -} - -// Fatal logs a message at level Fatal on the standard logger. -func Fatal(args ...interface{}) { - std.Fatal(args...) -} - -// Debugf logs a message at level Debug on the standard logger. -func Debugf(format string, args ...interface{}) { - std.Debugf(format, args...) -} - -// Printf logs a message at level Info on the standard logger. -func Printf(format string, args ...interface{}) { - std.Printf(format, args...) -} - -// Infof logs a message at level Info on the standard logger. -func Infof(format string, args ...interface{}) { - std.Infof(format, args...) -} - -// Warnf logs a message at level Warn on the standard logger. -func Warnf(format string, args ...interface{}) { - std.Warnf(format, args...) -} - -// Warningf logs a message at level Warn on the standard logger. -func Warningf(format string, args ...interface{}) { - std.Warningf(format, args...) -} - -// Errorf logs a message at level Error on the standard logger. -func Errorf(format string, args ...interface{}) { - std.Errorf(format, args...) -} - -// Panicf logs a message at level Panic on the standard logger. -func Panicf(format string, args ...interface{}) { - std.Panicf(format, args...) -} - -// Fatalf logs a message at level Fatal on the standard logger. -func Fatalf(format string, args ...interface{}) { - std.Fatalf(format, args...) -} - -// Debugln logs a message at level Debug on the standard logger. -func Debugln(args ...interface{}) { - std.Debugln(args...) -} - -// Println logs a message at level Info on the standard logger. -func Println(args ...interface{}) { - std.Println(args...) -} - -// Infoln logs a message at level Info on the standard logger. -func Infoln(args ...interface{}) { - std.Infoln(args...) -} - -// Warnln logs a message at level Warn on the standard logger. -func Warnln(args ...interface{}) { - std.Warnln(args...) -} - -// Warningln logs a message at level Warn on the standard logger. -func Warningln(args ...interface{}) { - std.Warningln(args...) -} - -// Errorln logs a message at level Error on the standard logger. -func Errorln(args ...interface{}) { - std.Errorln(args...) -} - -// Panicln logs a message at level Panic on the standard logger. -func Panicln(args ...interface{}) { - std.Panicln(args...) -} - -// Fatalln logs a message at level Fatal on the standard logger. -func Fatalln(args ...interface{}) { - std.Fatalln(args...) -} diff --git a/vendor/github.com/Sirupsen/logrus/formatter.go b/vendor/github.com/Sirupsen/logrus/formatter.go deleted file mode 100644 index b183ff5..0000000 --- a/vendor/github.com/Sirupsen/logrus/formatter.go +++ /dev/null @@ -1,45 +0,0 @@ -package logrus - -import "time" - -const defaultTimestampFormat = time.RFC3339 - -// The Formatter interface is used to implement a custom Formatter. It takes an -// `Entry`. It exposes all the fields, including the default ones: -// -// * `entry.Data["msg"]`. The message passed from Info, Warn, Error .. -// * `entry.Data["time"]`. The timestamp. -// * `entry.Data["level"]. The level the entry was logged at. -// -// Any additional fields added with `WithField` or `WithFields` are also in -// `entry.Data`. Format is expected to return an array of bytes which are then -// logged to `logger.Out`. -type Formatter interface { - Format(*Entry) ([]byte, error) -} - -// This is to not silently overwrite `time`, `msg` and `level` fields when -// dumping it. If this code wasn't there doing: -// -// logrus.WithField("level", 1).Info("hello") -// -// Would just silently drop the user provided level. Instead with this code -// it'll logged as: -// -// {"level": "info", "fields.level": 1, "msg": "hello", "time": "..."} -// -// It's not exported because it's still using Data in an opinionated way. It's to -// avoid code duplication between the two default formatters. -func prefixFieldClashes(data Fields) { - if t, ok := data["time"]; ok { - data["fields.time"] = t - } - - if m, ok := data["msg"]; ok { - data["fields.msg"] = m - } - - if l, ok := data["level"]; ok { - data["fields.level"] = l - } -} diff --git a/vendor/github.com/Sirupsen/logrus/hooks.go b/vendor/github.com/Sirupsen/logrus/hooks.go deleted file mode 100644 index 3f151cd..0000000 --- a/vendor/github.com/Sirupsen/logrus/hooks.go +++ /dev/null @@ -1,34 +0,0 @@ -package logrus - -// A hook to be fired when logging on the logging levels returned from -// `Levels()` on your implementation of the interface. Note that this is not -// fired in a goroutine or a channel with workers, you should handle such -// functionality yourself if your call is non-blocking and you don't wish for -// the logging calls for levels returned from `Levels()` to block. -type Hook interface { - Levels() []Level - Fire(*Entry) error -} - -// Internal type for storing the hooks on a logger instance. -type LevelHooks map[Level][]Hook - -// Add a hook to an instance of logger. This is called with -// `log.Hooks.Add(new(MyHook))` where `MyHook` implements the `Hook` interface. -func (hooks LevelHooks) Add(hook Hook) { - for _, level := range hook.Levels() { - hooks[level] = append(hooks[level], hook) - } -} - -// Fire all the hooks for the passed level. Used by `entry.log` to fire -// appropriate hooks for a log entry. -func (hooks LevelHooks) Fire(level Level, entry *Entry) error { - for _, hook := range hooks[level] { - if err := hook.Fire(entry); err != nil { - return err - } - } - - return nil -} diff --git a/vendor/github.com/Sirupsen/logrus/json_formatter.go b/vendor/github.com/Sirupsen/logrus/json_formatter.go deleted file mode 100644 index fb01c1b..0000000 --- a/vendor/github.com/Sirupsen/logrus/json_formatter.go +++ /dev/null @@ -1,79 +0,0 @@ -package logrus - -import ( - "encoding/json" - "fmt" -) - -type fieldKey string - -// FieldMap allows customization of the key names for default fields. -type FieldMap map[fieldKey]string - -// Default key names for the default fields -const ( - FieldKeyMsg = "msg" - FieldKeyLevel = "level" - FieldKeyTime = "time" -) - -func (f FieldMap) resolve(key fieldKey) string { - if k, ok := f[key]; ok { - return k - } - - return string(key) -} - -// JSONFormatter formats logs into parsable json -type JSONFormatter struct { - // TimestampFormat sets the format used for marshaling timestamps. - TimestampFormat string - - // DisableTimestamp allows disabling automatic timestamps in output - DisableTimestamp bool - - // FieldMap allows users to customize the names of keys for default fields. - // As an example: - // formatter := &JSONFormatter{ - // FieldMap: FieldMap{ - // FieldKeyTime: "@timestamp", - // FieldKeyLevel: "@level", - // FieldKeyMsg: "@message", - // }, - // } - FieldMap FieldMap -} - -// Format renders a single log entry -func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { - data := make(Fields, len(entry.Data)+3) - for k, v := range entry.Data { - switch v := v.(type) { - case error: - // Otherwise errors are ignored by `encoding/json` - // https://github.com/sirupsen/logrus/issues/137 - data[k] = v.Error() - default: - data[k] = v - } - } - prefixFieldClashes(data) - - timestampFormat := f.TimestampFormat - if timestampFormat == "" { - timestampFormat = defaultTimestampFormat - } - - if !f.DisableTimestamp { - data[f.FieldMap.resolve(FieldKeyTime)] = entry.Time.Format(timestampFormat) - } - data[f.FieldMap.resolve(FieldKeyMsg)] = entry.Message - data[f.FieldMap.resolve(FieldKeyLevel)] = entry.Level.String() - - serialized, err := json.Marshal(data) - if err != nil { - return nil, fmt.Errorf("Failed to marshal fields to JSON, %v", err) - } - return append(serialized, '\n'), nil -} diff --git a/vendor/github.com/Sirupsen/logrus/logger.go b/vendor/github.com/Sirupsen/logrus/logger.go deleted file mode 100644 index fdaf8a6..0000000 --- a/vendor/github.com/Sirupsen/logrus/logger.go +++ /dev/null @@ -1,323 +0,0 @@ -package logrus - -import ( - "io" - "os" - "sync" - "sync/atomic" -) - -type Logger struct { - // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a - // file, or leave it default which is `os.Stderr`. You can also set this to - // something more adventorous, such as logging to Kafka. - Out io.Writer - // Hooks for the logger instance. These allow firing events based on logging - // levels and log entries. For example, to send errors to an error tracking - // service, log to StatsD or dump the core on fatal errors. - Hooks LevelHooks - // All log entries pass through the formatter before logged to Out. The - // included formatters are `TextFormatter` and `JSONFormatter` for which - // TextFormatter is the default. In development (when a TTY is attached) it - // logs with colors, but to a file it wouldn't. You can easily implement your - // own that implements the `Formatter` interface, see the `README` or included - // formatters for examples. - Formatter Formatter - // The logging level the logger should log at. This is typically (and defaults - // to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be - // logged. - Level Level - // Used to sync writing to the log. Locking is enabled by Default - mu MutexWrap - // Reusable empty entry - entryPool sync.Pool -} - -type MutexWrap struct { - lock sync.Mutex - disabled bool -} - -func (mw *MutexWrap) Lock() { - if !mw.disabled { - mw.lock.Lock() - } -} - -func (mw *MutexWrap) Unlock() { - if !mw.disabled { - mw.lock.Unlock() - } -} - -func (mw *MutexWrap) Disable() { - mw.disabled = true -} - -// Creates a new logger. Configuration should be set by changing `Formatter`, -// `Out` and `Hooks` directly on the default logger instance. You can also just -// instantiate your own: -// -// var log = &Logger{ -// Out: os.Stderr, -// Formatter: new(JSONFormatter), -// Hooks: make(LevelHooks), -// Level: logrus.DebugLevel, -// } -// -// It's recommended to make this a global instance called `log`. -func New() *Logger { - return &Logger{ - Out: os.Stderr, - Formatter: new(TextFormatter), - Hooks: make(LevelHooks), - Level: InfoLevel, - } -} - -func (logger *Logger) newEntry() *Entry { - entry, ok := logger.entryPool.Get().(*Entry) - if ok { - return entry - } - return NewEntry(logger) -} - -func (logger *Logger) releaseEntry(entry *Entry) { - logger.entryPool.Put(entry) -} - -// Adds a field to the log entry, note that it doesn't log until you call -// Debug, Print, Info, Warn, Fatal or Panic. It only creates a log entry. -// If you want multiple fields, use `WithFields`. -func (logger *Logger) WithField(key string, value interface{}) *Entry { - entry := logger.newEntry() - defer logger.releaseEntry(entry) - return entry.WithField(key, value) -} - -// Adds a struct of fields to the log entry. All it does is call `WithField` for -// each `Field`. -func (logger *Logger) WithFields(fields Fields) *Entry { - entry := logger.newEntry() - defer logger.releaseEntry(entry) - return entry.WithFields(fields) -} - -// Add an error as single field to the log entry. All it does is call -// `WithError` for the given `error`. -func (logger *Logger) WithError(err error) *Entry { - entry := logger.newEntry() - defer logger.releaseEntry(entry) - return entry.WithError(err) -} - -func (logger *Logger) Debugf(format string, args ...interface{}) { - if logger.level() >= DebugLevel { - entry := logger.newEntry() - entry.Debugf(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Infof(format string, args ...interface{}) { - if logger.level() >= InfoLevel { - entry := logger.newEntry() - entry.Infof(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Printf(format string, args ...interface{}) { - entry := logger.newEntry() - entry.Printf(format, args...) - logger.releaseEntry(entry) -} - -func (logger *Logger) Warnf(format string, args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warnf(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Warningf(format string, args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warnf(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Errorf(format string, args ...interface{}) { - if logger.level() >= ErrorLevel { - entry := logger.newEntry() - entry.Errorf(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Fatalf(format string, args ...interface{}) { - if logger.level() >= FatalLevel { - entry := logger.newEntry() - entry.Fatalf(format, args...) - logger.releaseEntry(entry) - } - Exit(1) -} - -func (logger *Logger) Panicf(format string, args ...interface{}) { - if logger.level() >= PanicLevel { - entry := logger.newEntry() - entry.Panicf(format, args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Debug(args ...interface{}) { - if logger.level() >= DebugLevel { - entry := logger.newEntry() - entry.Debug(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Info(args ...interface{}) { - if logger.level() >= InfoLevel { - entry := logger.newEntry() - entry.Info(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Print(args ...interface{}) { - entry := logger.newEntry() - entry.Info(args...) - logger.releaseEntry(entry) -} - -func (logger *Logger) Warn(args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warn(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Warning(args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warn(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Error(args ...interface{}) { - if logger.level() >= ErrorLevel { - entry := logger.newEntry() - entry.Error(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Fatal(args ...interface{}) { - if logger.level() >= FatalLevel { - entry := logger.newEntry() - entry.Fatal(args...) - logger.releaseEntry(entry) - } - Exit(1) -} - -func (logger *Logger) Panic(args ...interface{}) { - if logger.level() >= PanicLevel { - entry := logger.newEntry() - entry.Panic(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Debugln(args ...interface{}) { - if logger.level() >= DebugLevel { - entry := logger.newEntry() - entry.Debugln(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Infoln(args ...interface{}) { - if logger.level() >= InfoLevel { - entry := logger.newEntry() - entry.Infoln(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Println(args ...interface{}) { - entry := logger.newEntry() - entry.Println(args...) - logger.releaseEntry(entry) -} - -func (logger *Logger) Warnln(args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warnln(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Warningln(args ...interface{}) { - if logger.level() >= WarnLevel { - entry := logger.newEntry() - entry.Warnln(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Errorln(args ...interface{}) { - if logger.level() >= ErrorLevel { - entry := logger.newEntry() - entry.Errorln(args...) - logger.releaseEntry(entry) - } -} - -func (logger *Logger) Fatalln(args ...interface{}) { - if logger.level() >= FatalLevel { - entry := logger.newEntry() - entry.Fatalln(args...) - logger.releaseEntry(entry) - } - Exit(1) -} - -func (logger *Logger) Panicln(args ...interface{}) { - if logger.level() >= PanicLevel { - entry := logger.newEntry() - entry.Panicln(args...) - logger.releaseEntry(entry) - } -} - -//When file is opened with appending mode, it's safe to -//write concurrently to a file (within 4k message on Linux). -//In these cases user can choose to disable the lock. -func (logger *Logger) SetNoLock() { - logger.mu.Disable() -} - -func (logger *Logger) level() Level { - return Level(atomic.LoadUint32((*uint32)(&logger.Level))) -} - -func (logger *Logger) SetLevel(level Level) { - atomic.StoreUint32((*uint32)(&logger.Level), uint32(level)) -} - -func (logger *Logger) AddHook(hook Hook) { - logger.mu.Lock() - defer logger.mu.Unlock() - logger.Hooks.Add(hook) -} diff --git a/vendor/github.com/Sirupsen/logrus/logrus.go b/vendor/github.com/Sirupsen/logrus/logrus.go deleted file mode 100644 index dd38999..0000000 --- a/vendor/github.com/Sirupsen/logrus/logrus.go +++ /dev/null @@ -1,143 +0,0 @@ -package logrus - -import ( - "fmt" - "log" - "strings" -) - -// Fields type, used to pass to `WithFields`. -type Fields map[string]interface{} - -// Level type -type Level uint32 - -// Convert the Level to a string. E.g. PanicLevel becomes "panic". -func (level Level) String() string { - switch level { - case DebugLevel: - return "debug" - case InfoLevel: - return "info" - case WarnLevel: - return "warning" - case ErrorLevel: - return "error" - case FatalLevel: - return "fatal" - case PanicLevel: - return "panic" - } - - return "unknown" -} - -// ParseLevel takes a string level and returns the Logrus log level constant. -func ParseLevel(lvl string) (Level, error) { - switch strings.ToLower(lvl) { - case "panic": - return PanicLevel, nil - case "fatal": - return FatalLevel, nil - case "error": - return ErrorLevel, nil - case "warn", "warning": - return WarnLevel, nil - case "info": - return InfoLevel, nil - case "debug": - return DebugLevel, nil - } - - var l Level - return l, fmt.Errorf("not a valid logrus Level: %q", lvl) -} - -// A constant exposing all logging levels -var AllLevels = []Level{ - PanicLevel, - FatalLevel, - ErrorLevel, - WarnLevel, - InfoLevel, - DebugLevel, -} - -// These are the different logging levels. You can set the logging level to log -// on your instance of logger, obtained with `logrus.New()`. -const ( - // PanicLevel level, highest level of severity. Logs and then calls panic with the - // message passed to Debug, Info, ... - PanicLevel Level = iota - // FatalLevel level. Logs and then calls `os.Exit(1)`. It will exit even if the - // logging level is set to Panic. - FatalLevel - // ErrorLevel level. Logs. Used for errors that should definitely be noted. - // Commonly used for hooks to send errors to an error tracking service. - ErrorLevel - // WarnLevel level. Non-critical entries that deserve eyes. - WarnLevel - // InfoLevel level. General operational entries about what's going on inside the - // application. - InfoLevel - // DebugLevel level. Usually only enabled when debugging. Very verbose logging. - DebugLevel -) - -// Won't compile if StdLogger can't be realized by a log.Logger -var ( - _ StdLogger = &log.Logger{} - _ StdLogger = &Entry{} - _ StdLogger = &Logger{} -) - -// StdLogger is what your logrus-enabled library should take, that way -// it'll accept a stdlib logger and a logrus logger. There's no standard -// interface, this is the closest we get, unfortunately. -type StdLogger interface { - Print(...interface{}) - Printf(string, ...interface{}) - Println(...interface{}) - - Fatal(...interface{}) - Fatalf(string, ...interface{}) - Fatalln(...interface{}) - - Panic(...interface{}) - Panicf(string, ...interface{}) - Panicln(...interface{}) -} - -// The FieldLogger interface generalizes the Entry and Logger types -type FieldLogger interface { - WithField(key string, value interface{}) *Entry - WithFields(fields Fields) *Entry - WithError(err error) *Entry - - Debugf(format string, args ...interface{}) - Infof(format string, args ...interface{}) - Printf(format string, args ...interface{}) - Warnf(format string, args ...interface{}) - Warningf(format string, args ...interface{}) - Errorf(format string, args ...interface{}) - Fatalf(format string, args ...interface{}) - Panicf(format string, args ...interface{}) - - Debug(args ...interface{}) - Info(args ...interface{}) - Print(args ...interface{}) - Warn(args ...interface{}) - Warning(args ...interface{}) - Error(args ...interface{}) - Fatal(args ...interface{}) - Panic(args ...interface{}) - - Debugln(args ...interface{}) - Infoln(args ...interface{}) - Println(args ...interface{}) - Warnln(args ...interface{}) - Warningln(args ...interface{}) - Errorln(args ...interface{}) - Fatalln(args ...interface{}) - Panicln(args ...interface{}) -} diff --git a/vendor/github.com/Sirupsen/logrus/terminal_bsd.go b/vendor/github.com/Sirupsen/logrus/terminal_bsd.go deleted file mode 100644 index d7b3893..0000000 --- a/vendor/github.com/Sirupsen/logrus/terminal_bsd.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build darwin freebsd openbsd netbsd dragonfly -// +build !appengine - -package logrus - -import "golang.org/x/sys/unix" - -const ioctlReadTermios = unix.TIOCGETA - -type Termios unix.Termios diff --git a/vendor/github.com/Sirupsen/logrus/terminal_check_appengine.go b/vendor/github.com/Sirupsen/logrus/terminal_check_appengine.go deleted file mode 100644 index 2403de9..0000000 --- a/vendor/github.com/Sirupsen/logrus/terminal_check_appengine.go +++ /dev/null @@ -1,11 +0,0 @@ -// +build appengine - -package logrus - -import ( - "io" -) - -func checkIfTerminal(w io.Writer) bool { - return true -} diff --git a/vendor/github.com/Sirupsen/logrus/terminal_check_notappengine.go b/vendor/github.com/Sirupsen/logrus/terminal_check_notappengine.go deleted file mode 100644 index 116bcb4..0000000 --- a/vendor/github.com/Sirupsen/logrus/terminal_check_notappengine.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build !appengine - -package logrus - -import ( - "io" - "os" - - "golang.org/x/crypto/ssh/terminal" -) - -func checkIfTerminal(w io.Writer) bool { - switch v := w.(type) { - case *os.File: - return terminal.IsTerminal(int(v.Fd())) - default: - return false - } -} diff --git a/vendor/github.com/Sirupsen/logrus/terminal_linux.go b/vendor/github.com/Sirupsen/logrus/terminal_linux.go deleted file mode 100644 index 88d7298..0000000 --- a/vendor/github.com/Sirupsen/logrus/terminal_linux.go +++ /dev/null @@ -1,14 +0,0 @@ -// Based on ssh/terminal: -// Copyright 2013 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. - -// +build !appengine - -package logrus - -import "golang.org/x/sys/unix" - -const ioctlReadTermios = unix.TCGETS - -type Termios unix.Termios diff --git a/vendor/github.com/Sirupsen/logrus/text_formatter.go b/vendor/github.com/Sirupsen/logrus/text_formatter.go deleted file mode 100644 index 61b21ca..0000000 --- a/vendor/github.com/Sirupsen/logrus/text_formatter.go +++ /dev/null @@ -1,178 +0,0 @@ -package logrus - -import ( - "bytes" - "fmt" - "sort" - "strings" - "sync" - "time" -) - -const ( - nocolor = 0 - red = 31 - green = 32 - yellow = 33 - blue = 36 - gray = 37 -) - -var ( - baseTimestamp time.Time -) - -func init() { - baseTimestamp = time.Now() -} - -// TextFormatter formats logs into text -type TextFormatter struct { - // Set to true to bypass checking for a TTY before outputting colors. - ForceColors bool - - // Force disabling colors. - DisableColors bool - - // Disable timestamp logging. useful when output is redirected to logging - // system that already adds timestamps. - DisableTimestamp bool - - // Enable logging the full timestamp when a TTY is attached instead of just - // the time passed since beginning of execution. - FullTimestamp bool - - // TimestampFormat to use for display when a full timestamp is printed - TimestampFormat string - - // The fields are sorted by default for a consistent output. For applications - // that log extremely frequently and don't use the JSON formatter this may not - // be desired. - DisableSorting bool - - // QuoteEmptyFields will wrap empty fields in quotes if true - QuoteEmptyFields bool - - // Whether the logger's out is to a terminal - isTerminal bool - - sync.Once -} - -func (f *TextFormatter) init(entry *Entry) { - if entry.Logger != nil { - f.isTerminal = checkIfTerminal(entry.Logger.Out) - } -} - -// Format renders a single log entry -func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { - var b *bytes.Buffer - keys := make([]string, 0, len(entry.Data)) - for k := range entry.Data { - keys = append(keys, k) - } - - if !f.DisableSorting { - sort.Strings(keys) - } - if entry.Buffer != nil { - b = entry.Buffer - } else { - b = &bytes.Buffer{} - } - - prefixFieldClashes(entry.Data) - - f.Do(func() { f.init(entry) }) - - isColored := (f.ForceColors || f.isTerminal) && !f.DisableColors - - timestampFormat := f.TimestampFormat - if timestampFormat == "" { - timestampFormat = defaultTimestampFormat - } - if isColored { - f.printColored(b, entry, keys, timestampFormat) - } else { - if !f.DisableTimestamp { - f.appendKeyValue(b, "time", entry.Time.Format(timestampFormat)) - } - f.appendKeyValue(b, "level", entry.Level.String()) - if entry.Message != "" { - f.appendKeyValue(b, "msg", entry.Message) - } - for _, key := range keys { - f.appendKeyValue(b, key, entry.Data[key]) - } - } - - b.WriteByte('\n') - return b.Bytes(), nil -} - -func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, keys []string, timestampFormat string) { - var levelColor int - switch entry.Level { - case DebugLevel: - levelColor = gray - case WarnLevel: - levelColor = yellow - case ErrorLevel, FatalLevel, PanicLevel: - levelColor = red - default: - levelColor = blue - } - - levelText := strings.ToUpper(entry.Level.String())[0:4] - - if f.DisableTimestamp { - fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m %-44s ", levelColor, levelText, entry.Message) - } else if !f.FullTimestamp { - fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%04d] %-44s ", levelColor, levelText, int(entry.Time.Sub(baseTimestamp)/time.Second), entry.Message) - } else { - fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%s] %-44s ", levelColor, levelText, entry.Time.Format(timestampFormat), entry.Message) - } - for _, k := range keys { - v := entry.Data[k] - fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=", levelColor, k) - f.appendValue(b, v) - } -} - -func (f *TextFormatter) needsQuoting(text string) bool { - if f.QuoteEmptyFields && len(text) == 0 { - return true - } - for _, ch := range text { - if !((ch >= 'a' && ch <= 'z') || - (ch >= 'A' && ch <= 'Z') || - (ch >= '0' && ch <= '9') || - ch == '-' || ch == '.' || ch == '_' || ch == '/' || ch == '@' || ch == '^' || ch == '+') { - return true - } - } - return false -} - -func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, value interface{}) { - if b.Len() > 0 { - b.WriteByte(' ') - } - b.WriteString(key) - b.WriteByte('=') - f.appendValue(b, value) -} - -func (f *TextFormatter) appendValue(b *bytes.Buffer, value interface{}) { - stringVal, ok := value.(string) - if !ok { - stringVal = fmt.Sprint(value) - } - - if !f.needsQuoting(stringVal) { - b.WriteString(stringVal) - } else { - b.WriteString(fmt.Sprintf("%q", stringVal)) - } -} diff --git a/vendor/github.com/Sirupsen/logrus/writer.go b/vendor/github.com/Sirupsen/logrus/writer.go deleted file mode 100644 index 7bdebed..0000000 --- a/vendor/github.com/Sirupsen/logrus/writer.go +++ /dev/null @@ -1,62 +0,0 @@ -package logrus - -import ( - "bufio" - "io" - "runtime" -) - -func (logger *Logger) Writer() *io.PipeWriter { - return logger.WriterLevel(InfoLevel) -} - -func (logger *Logger) WriterLevel(level Level) *io.PipeWriter { - return NewEntry(logger).WriterLevel(level) -} - -func (entry *Entry) Writer() *io.PipeWriter { - return entry.WriterLevel(InfoLevel) -} - -func (entry *Entry) WriterLevel(level Level) *io.PipeWriter { - reader, writer := io.Pipe() - - var printFunc func(args ...interface{}) - - switch level { - case DebugLevel: - printFunc = entry.Debug - case InfoLevel: - printFunc = entry.Info - case WarnLevel: - printFunc = entry.Warn - case ErrorLevel: - printFunc = entry.Error - case FatalLevel: - printFunc = entry.Fatal - case PanicLevel: - printFunc = entry.Panic - default: - printFunc = entry.Print - } - - go entry.writerScanner(reader, printFunc) - runtime.SetFinalizer(writer, writerFinalizer) - - return writer -} - -func (entry *Entry) writerScanner(reader *io.PipeReader, printFunc func(args ...interface{})) { - scanner := bufio.NewScanner(reader) - for scanner.Scan() { - printFunc(scanner.Text()) - } - if err := scanner.Err(); err != nil { - entry.Errorf("Error while reading from Writer: %s", err) - } - reader.Close() -} - -func writerFinalizer(writer *io.PipeWriter) { - writer.Close() -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/backend/backend.go b/vendor/github.com/cncd/pipeline/pipeline/backend/backend.go deleted file mode 100644 index ef83310..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/backend/backend.go +++ /dev/null @@ -1,21 +0,0 @@ -package backend - -import "io" - -// Engine defines a container orchestration backend and is used -// to create and manage container resources. -type Engine interface { - // Setup the pipeline environment. - Setup(*Config) error - // Start the pipeline step. - Exec(*Step) error - // Kill the pipeline step. - Kill(*Step) error - // Wait for the pipeline step to complete and returns - // the completion results. - Wait(*Step) (*State, error) - // Tail the pipeline step logs. - Tail(*Step) (io.ReadCloser, error) - // Destroy the pipeline environment. - Destroy(*Config) error -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/convert.go b/vendor/github.com/cncd/pipeline/pipeline/backend/docker/convert.go deleted file mode 100644 index 724ad09..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/convert.go +++ /dev/null @@ -1,145 +0,0 @@ -package docker - -import ( - "encoding/base64" - "encoding/json" - "strings" - - "github.com/cncd/pipeline/pipeline/backend" - - "github.com/docker/docker/api/types/container" -) - -// returns a container configuration. -func toConfig(proc *backend.Step) *container.Config { - config := &container.Config{ - Image: proc.Image, - Labels: proc.Labels, - WorkingDir: proc.WorkingDir, - AttachStdout: true, - AttachStderr: true, - } - if len(proc.Environment) != 0 { - config.Env = toEnv(proc.Environment) - } - if len(proc.Command) != 0 { - config.Cmd = proc.Command - } - if len(proc.Entrypoint) != 0 { - config.Entrypoint = proc.Entrypoint - } - if len(proc.Volumes) != 0 { - config.Volumes = toVol(proc.Volumes) - } - return config -} - -// returns a container host configuration. -func toHostConfig(proc *backend.Step) *container.HostConfig { - config := &container.HostConfig{ - Resources: container.Resources{ - CPUQuota: proc.CPUQuota, - CPUShares: proc.CPUShares, - CpusetCpus: proc.CPUSet, - Memory: proc.MemLimit, - MemorySwap: proc.MemSwapLimit, - }, - LogConfig: container.LogConfig{ - Type: "json-file", - }, - Privileged: proc.Privileged, - ShmSize: proc.ShmSize, - Sysctls: proc.Sysctls, - } - - // if len(proc.VolumesFrom) != 0 { - // config.VolumesFrom = proc.VolumesFrom - // } - if len(proc.NetworkMode) != 0 { - config.NetworkMode = container.NetworkMode(proc.NetworkMode) - } - if len(proc.IpcMode) != 0 { - config.IpcMode = container.IpcMode(proc.IpcMode) - } - if len(proc.DNS) != 0 { - config.DNS = proc.DNS - } - if len(proc.DNSSearch) != 0 { - config.DNSSearch = proc.DNSSearch - } - if len(proc.ExtraHosts) != 0 { - config.ExtraHosts = proc.ExtraHosts - } - if len(proc.Devices) != 0 { - config.Devices = toDev(proc.Devices) - } - if len(proc.Volumes) != 0 { - config.Binds = proc.Volumes - } - config.Tmpfs = map[string]string{} - for _, path := range proc.Tmpfs { - if strings.Index(path, ":") == -1 { - config.Tmpfs[path] = "" - continue - } - parts := strings.Split(path, ":") - config.Tmpfs[parts[0]] = parts[1] - } - // if proc.OomKillDisable { - // config.OomKillDisable = &proc.OomKillDisable - // } - - return config -} - -// helper function that converts a slice of volume paths to a set of -// unique volume names. -func toVol(paths []string) map[string]struct{} { - set := map[string]struct{}{} - for _, path := range paths { - parts := strings.Split(path, ":") - if len(parts) < 2 { - continue - } - set[parts[1]] = struct{}{} - } - return set -} - -// helper function that converts a key value map of environment variables to a -// string slice in key=value format. -func toEnv(env map[string]string) []string { - var envs []string - for k, v := range env { - envs = append(envs, k+"="+v) - } - return envs -} - -// helper function that converts a slice of device paths to a slice of -// container.DeviceMapping. -func toDev(paths []string) []container.DeviceMapping { - var devices []container.DeviceMapping - for _, path := range paths { - parts := strings.Split(path, ":") - if len(parts) < 2 { - continue - } - devices = append(devices, container.DeviceMapping{ - PathOnHost: parts[0], - PathInContainer: parts[1], - CgroupPermissions: "rwm", - }) - } - return devices -} - -// helper function that serializes the auth configuration as JSON -// base64 payload. -func encodeAuthToBase64(authConfig backend.Auth) (string, error) { - buf, err := json.Marshal(authConfig) - if err != nil { - return "", err - } - return base64.URLEncoding.EncodeToString(buf), nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/docker.go b/vendor/github.com/cncd/pipeline/pipeline/backend/docker/docker.go deleted file mode 100644 index e7c67d6..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/docker.go +++ /dev/null @@ -1,204 +0,0 @@ -package docker - -import ( - "context" - "io" - "io/ioutil" - - "github.com/cncd/pipeline/pipeline/backend" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/network" - "github.com/docker/docker/api/types/volume" - "github.com/docker/docker/client" - "github.com/docker/docker/pkg/stdcopy" -) - -type engine struct { - client client.APIClient -} - -// New returns a new Docker Engine using the given client. -func New(cli client.APIClient) backend.Engine { - return &engine{ - client: cli, - } -} - -// NewEnv returns a new Docker Engine using the client connection -// environment variables. -func NewEnv() (backend.Engine, error) { - cli, err := client.NewEnvClient() - if err != nil { - return nil, err - } - return New(cli), nil -} - -func (e *engine) Setup(conf *backend.Config) error { - for _, vol := range conf.Volumes { - _, err := e.client.VolumeCreate(noContext, volume.VolumesCreateBody{ - Name: vol.Name, - Driver: vol.Driver, - DriverOpts: vol.DriverOpts, - // Labels: defaultLabels, - }) - if err != nil { - return err - } - } - for _, network := range conf.Networks { - _, err := e.client.NetworkCreate(noContext, network.Name, types.NetworkCreate{ - Driver: network.Driver, - Options: network.DriverOpts, - // Labels: defaultLabels, - }) - if err != nil { - return err - } - } - return nil -} - -func (e *engine) Exec(proc *backend.Step) error { - ctx := context.Background() - - config := toConfig(proc) - hostConfig := toHostConfig(proc) - - // create pull options with encoded authorization credentials. - pullopts := types.ImagePullOptions{} - if proc.AuthConfig.Username != "" && proc.AuthConfig.Password != "" { - pullopts.RegistryAuth, _ = encodeAuthToBase64(proc.AuthConfig) - } - - // automatically pull the latest version of the image if requested - // by the process configuration. - if proc.Pull { - rc, perr := e.client.ImagePull(ctx, config.Image, pullopts) - if perr == nil { - io.Copy(ioutil.Discard, rc) - rc.Close() - } - // fix for drone/drone#1917 - if perr != nil && proc.AuthConfig.Password != "" { - return perr - } - } - - _, err := e.client.ContainerCreate(ctx, config, hostConfig, nil, proc.Name) - if client.IsErrImageNotFound(err) { - // automatically pull and try to re-create the image if the - // failure is caused because the image does not exist. - rc, perr := e.client.ImagePull(ctx, config.Image, pullopts) - if perr != nil { - return perr - } - io.Copy(ioutil.Discard, rc) - rc.Close() - - _, err = e.client.ContainerCreate(ctx, config, hostConfig, nil, proc.Name) - } - if err != nil { - return err - } - - if len(proc.NetworkMode) == 0 { - for _, net := range proc.Networks { - err = e.client.NetworkConnect(ctx, net.Name, proc.Name, &network.EndpointSettings{ - Aliases: net.Aliases, - }) - if err != nil { - return err - } - } - } - - // if proc.Network != "host" { // or bridge, overlay, none, internal, container: .... - // err = e.client.NetworkConnect(ctx, proc.Network, proc.Name, &network.EndpointSettings{ - // Aliases: proc.NetworkAliases, - // }) - // if err != nil { - // return err - // } - // } - - return e.client.ContainerStart(ctx, proc.Name, startOpts) -} - -func (e *engine) Kill(proc *backend.Step) error { - return e.client.ContainerKill(noContext, proc.Name, "9") -} - -func (e *engine) Wait(proc *backend.Step) (*backend.State, error) { - _, err := e.client.ContainerWait(noContext, proc.Name) - if err != nil { - // todo - } - - info, err := e.client.ContainerInspect(noContext, proc.Name) - if err != nil { - return nil, err - } - if info.State.Running { - // todo - } - - return &backend.State{ - Exited: true, - ExitCode: info.State.ExitCode, - OOMKilled: info.State.OOMKilled, - }, nil -} - -func (e *engine) Tail(proc *backend.Step) (io.ReadCloser, error) { - logs, err := e.client.ContainerLogs(noContext, proc.Name, logsOpts) - if err != nil { - return nil, err - } - rc, wc := io.Pipe() - - go func() { - stdcopy.StdCopy(wc, wc, logs) - logs.Close() - wc.Close() - rc.Close() - }() - return rc, nil -} - -func (e *engine) Destroy(conf *backend.Config) error { - for _, stage := range conf.Stages { - for _, step := range stage.Steps { - e.client.ContainerKill(noContext, step.Name, "9") - e.client.ContainerRemove(noContext, step.Name, removeOpts) - } - } - for _, volume := range conf.Volumes { - e.client.VolumeRemove(noContext, volume.Name, true) - } - for _, network := range conf.Networks { - e.client.NetworkRemove(noContext, network.Name) - } - return nil -} - -var ( - noContext = context.Background() - - startOpts = types.ContainerStartOptions{} - - removeOpts = types.ContainerRemoveOptions{ - RemoveVolumes: true, - RemoveLinks: false, - Force: false, - } - - logsOpts = types.ContainerLogsOptions{ - Follow: true, - ShowStdout: true, - ShowStderr: true, - Details: false, - Timestamps: false, - } -) diff --git a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/pool.go b/vendor/github.com/cncd/pipeline/pipeline/backend/docker/pool.go deleted file mode 100644 index 37fd97a..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/backend/docker/pool.go +++ /dev/null @@ -1,44 +0,0 @@ -package docker - -// import ( -// "context" -// -// "github.com/cncd/pipeline/pipeline/backend" -// ) -// -// // Pool manages a pool of Docker clients. -// type Pool struct { -// queue chan (backend.Engine) -// } -// -// // NewPool returns a Pool. -// func NewPool(engines ...backend.Engine) *Pool { -// return &Pool{ -// queue: make(chan backend.Engine, len(engines)), -// } -// } -// -// // Reserve requests the next available Docker client in the pool. -// func (p *Pool) Reserve(c context.Context) backend.Engine { -// select { -// case <-c.Done(): -// case engine := <-p.queue: -// return engine -// } -// return nil -// } -// -// // Release releases the Docker client back to the pool. -// func (p *Pool) Release(engine backend.Engine) { -// p.queue <- engine -// } - -// pool := docker.Pool( -// docker.FromEnvironmentMust(), -// docker.FromEnvironmentMust(), -// docker.FromEnvironmentMust(), -// docker.FromEnvironmentMust(), -// ) -// -// client := pool.Reserve() -// defer pool.Release(client) diff --git a/vendor/github.com/cncd/pipeline/pipeline/backend/types.go b/vendor/github.com/cncd/pipeline/pipeline/backend/types.go deleted file mode 100644 index e9132d4..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/backend/types.go +++ /dev/null @@ -1,116 +0,0 @@ -package backend - -type ( - // Config defines the runtime configuration of a pipeline. - Config struct { - Stages []*Stage `json:"pipeline"` // pipeline stages - Networks []*Network `json:"networks"` // network definitions - Volumes []*Volume `json:"volumes"` // volume definitions - Secrets []*Secret `json:"secrets"` // secret definitions - } - - // Stage denotes a collection of one or more steps. - Stage struct { - Name string `json:"name,omitempty"` - Alias string `json:"alias,omitempty"` - Steps []*Step `json:"steps,omitempty"` - } - - // Step defines a container process. - Step struct { - Name string `json:"name"` - Alias string `json:"alias,omitempty"` - Image string `json:"image,omitempty"` - Pull bool `json:"pull,omitempty"` - Detached bool `json:"detach,omitempty"` - Privileged bool `json:"privileged,omitempty"` - WorkingDir string `json:"working_dir,omitempty"` - Environment map[string]string `json:"environment,omitempty"` - Labels map[string]string `json:"labels,omitempty"` - Entrypoint []string `json:"entrypoint,omitempty"` - Command []string `json:"command,omitempty"` - ExtraHosts []string `json:"extra_hosts,omitempty"` - Volumes []string `json:"volumes,omitempty"` - Tmpfs []string `json:"tmpfs,omitempty"` - Devices []string `json:"devices,omitempty"` - Networks []Conn `json:"networks,omitempty"` - DNS []string `json:"dns,omitempty"` - DNSSearch []string `json:"dns_search,omitempty"` - MemSwapLimit int64 `json:"memswap_limit,omitempty"` - MemLimit int64 `json:"mem_limit,omitempty"` - ShmSize int64 `json:"shm_size,omitempty"` - CPUQuota int64 `json:"cpu_quota,omitempty"` - CPUShares int64 `json:"cpu_shares,omitempty"` - CPUSet string `json:"cpu_set,omitempty"` - OnFailure bool `json:"on_failure,omitempty"` - OnSuccess bool `json:"on_success,omitempty"` - AuthConfig Auth `json:"auth_config,omitempty"` - NetworkMode string `json:"network_mode,omitempty"` - IpcMode string `json:"ipc_mode,omitempty"` - Sysctls map[string]string `json:"sysctls,omitempty"` - } - - // Auth defines registry authentication credentials. - Auth struct { - Username string `json:"username,omitempty"` - Password string `json:"password,omitempty"` - Email string `json:"email,omitempty"` - } - - // Conn defines a container network connection. - Conn struct { - Name string `json:"name"` - Aliases []string `json:"aliases"` - } - - // Network defines a container network. - Network struct { - Name string `json:"name,omitempty"` - Driver string `json:"driver,omitempty"` - DriverOpts map[string]string `json:"driver_opts,omitempty"` - } - - // Volume defines a container volume. - Volume struct { - Name string `json:"name,omitempty"` - Driver string `json:"driver,omitempty"` - DriverOpts map[string]string `json:"driver_opts,omitempty"` - } - - // Secret defines a runtime secret - Secret struct { - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` - Mount string `json:"mount,omitempty"` - Mask bool `json:"mask,omitempty"` - } - - // State defines a container state. - State struct { - // Container exit code - ExitCode int `json:"exit_code"` - // Container exited, true or false - Exited bool `json:"exited"` - // Container is oom killed, true or false - OOMKilled bool `json:"oom_killed"` - } - - // // State defines the pipeline and process state. - // State struct { - // Pipeline struct { - // // Current pipeline step - // Step *Step `json:"step"` - // // Current pipeline error state - // Error error `json:"error"` - // } - // - // Process struct { - // // Container exit code - // ExitCode int `json:"exit_code"` - // // Container exited, true or false - // Exited bool `json:"exited"` - // // Container is oom killed, true or false - // OOMKilled bool `json:"oom_killed"` - // } - // } -) diff --git a/vendor/github.com/cncd/pipeline/pipeline/error.go b/vendor/github.com/cncd/pipeline/pipeline/error.go deleted file mode 100644 index bee2ac0..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/error.go +++ /dev/null @@ -1,38 +0,0 @@ -package pipeline - -import ( - "errors" - "fmt" -) - -var ( - // ErrSkip is used as a return value when container execution should be - // skipped at runtime. It is not returned as an error by any function. - ErrSkip = errors.New("Skipped") - - // ErrCancel is used as a return value when the container execution receives - // a cancellation signal from the context. - ErrCancel = errors.New("Cancelled") -) - -// An ExitError reports an unsuccessful exit. -type ExitError struct { - Name string - Code int -} - -// Error returns the error message in string format. -func (e *ExitError) Error() string { - return fmt.Sprintf("%s : exit code %d", e.Name, e.Code) -} - -// An OomError reports the process received an OOMKill from the kernel. -type OomError struct { - Name string - Code int -} - -// Error reteurns the error message in string format. -func (e *OomError) Error() string { - return fmt.Sprintf("%s : received oom kill", e.Name) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/metadata.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/metadata.go deleted file mode 100644 index 6c82514..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/metadata.go +++ /dev/null @@ -1,224 +0,0 @@ -package frontend - -import ( - "fmt" - "regexp" - "strconv" - "strings" -) - -// Event types corresponding to scm hooks. -const ( - EventPush = "push" - EventPull = "pull_request" - EventTag = "tag" - EventDeploy = "deployment" -) - -type ( - // Metadata defines runtime m. - Metadata struct { - ID string `json:"id,omitempty"` - Repo Repo `json:"repo,omitempty"` - Curr Build `json:"curr,omitempty"` - Prev Build `json:"prev,omitempty"` - Job Job `json:"job,omitempty"` - Sys System `json:"sys,omitempty"` - } - - // Repo defines runtime metadata for a repository. - Repo struct { - Name string `json:"name,omitempty"` - Link string `json:"link,omitempty"` - Remote string `json:"remote,omitempty"` - Private bool `json:"private,omitempty"` - Secrets []Secret `json:"secrets,omitempty"` - Branch string `json:"default_branch,omitempty"` - } - - // Build defines runtime metadata for a build. - Build struct { - Number int `json:"number,omitempty"` - Created int64 `json:"created,omitempty"` - Started int64 `json:"started,omitempty"` - Finished int64 `json:"finished,omitempty"` - Timeout int64 `json:"timeout,omitempty"` - Status string `json:"status,omitempty"` - Event string `json:"event,omitempty"` - Link string `json:"link,omitempty"` - Target string `json:"target,omitempty"` - Trusted bool `json:"trusted,omitempty"` - Commit Commit `json:"commit,omitempty"` - Parent int `json:"parent,omitempty"` - } - - // Commit defines runtime metadata for a commit. - Commit struct { - Sha string `json:"sha,omitempty"` - Ref string `json:"ref,omitempty"` - Refspec string `json:"refspec,omitempty"` - Branch string `json:"branch,omitempty"` - Message string `json:"message,omitempty"` - Author Author `json:"author,omitempty"` - } - - // Author defines runtime metadata for a commit author. - Author struct { - Name string `json:"name,omitempty"` - Email string `json:"email,omitempty"` - Avatar string `json:"avatar,omitempty"` - } - - // Job defines runtime metadata for a job. - Job struct { - Number int `json:"number,omitempty"` - Matrix map[string]string `json:"matrix,omitempty"` - } - - // Secret defines a runtime secret - Secret struct { - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` - Mount string `json:"mount,omitempty"` - Mask bool `json:"mask,omitempty"` - } - - // System defines runtime metadata for a ci/cd system. - System struct { - Name string `json:"name,omitempty"` - Host string `json:"host,omitempty"` - Link string `json:"link,omitempty"` - Arch string `json:"arch,omitempty"` - Version string `json:"version,omitempty"` - } -) - -// Environ returns the metadata as a map of environment variables. -func (m *Metadata) Environ() map[string]string { - params := map[string]string{ - "CI_REPO": m.Repo.Name, - "CI_REPO_NAME": m.Repo.Name, - "CI_REPO_LINK": m.Repo.Link, - "CI_REPO_REMOTE": m.Repo.Remote, - "CI_REMOTE_URL": m.Repo.Remote, - "CI_REPO_PRIVATE": strconv.FormatBool(m.Repo.Private), - "CI_BUILD_NUMBER": strconv.Itoa(m.Curr.Number), - "CI_PARENT_BUILD_NUMBER": strconv.Itoa(m.Curr.Parent), - "CI_BUILD_CREATED": strconv.FormatInt(m.Curr.Created, 10), - "CI_BUILD_STARTED": strconv.FormatInt(m.Curr.Started, 10), - "CI_BUILD_FINISHED": strconv.FormatInt(m.Curr.Finished, 10), - "CI_BUILD_STATUS": m.Curr.Status, - "CI_BUILD_EVENT": m.Curr.Event, - "CI_BUILD_LINK": m.Curr.Link, - "CI_BUILD_TARGET": m.Curr.Target, - "CI_COMMIT_SHA": m.Curr.Commit.Sha, - "CI_COMMIT_REF": m.Curr.Commit.Ref, - "CI_COMMIT_REFSPEC": m.Curr.Commit.Refspec, - "CI_COMMIT_BRANCH": m.Curr.Commit.Branch, - "CI_COMMIT_MESSAGE": m.Curr.Commit.Message, - "CI_COMMIT_AUTHOR": m.Curr.Commit.Author.Name, - "CI_COMMIT_AUTHOR_NAME": m.Curr.Commit.Author.Name, - "CI_COMMIT_AUTHOR_EMAIL": m.Curr.Commit.Author.Email, - "CI_COMMIT_AUTHOR_AVATAR": m.Curr.Commit.Author.Avatar, - "CI_PREV_BUILD_NUMBER": strconv.Itoa(m.Prev.Number), - "CI_PREV_BUILD_CREATED": strconv.FormatInt(m.Prev.Created, 10), - "CI_PREV_BUILD_STARTED": strconv.FormatInt(m.Prev.Started, 10), - "CI_PREV_BUILD_FINISHED": strconv.FormatInt(m.Prev.Finished, 10), - "CI_PREV_BUILD_STATUS": m.Prev.Status, - "CI_PREV_BUILD_EVENT": m.Prev.Event, - "CI_PREV_BUILD_LINK": m.Prev.Link, - "CI_PREV_COMMIT_SHA": m.Prev.Commit.Sha, - "CI_PREV_COMMIT_REF": m.Prev.Commit.Ref, - "CI_PREV_COMMIT_REFSPEC": m.Prev.Commit.Refspec, - "CI_PREV_COMMIT_BRANCH": m.Prev.Commit.Branch, - "CI_PREV_COMMIT_MESSAGE": m.Prev.Commit.Message, - "CI_PREV_COMMIT_AUTHOR": m.Prev.Commit.Author.Name, - "CI_PREV_COMMIT_AUTHOR_NAME": m.Prev.Commit.Author.Name, - "CI_PREV_COMMIT_AUTHOR_EMAIL": m.Prev.Commit.Author.Email, - "CI_PREV_COMMIT_AUTHOR_AVATAR": m.Prev.Commit.Author.Avatar, - "CI_JOB_NUMBER": strconv.Itoa(m.Job.Number), - "CI_SYSTEM": m.Sys.Name, - "CI_SYSTEM_NAME": m.Sys.Name, - "CI_SYSTEM_LINK": m.Sys.Link, - "CI_SYSTEM_HOST": m.Sys.Host, - "CI_SYSTEM_ARCH": m.Sys.Arch, - "CI_SYSTEM_VERSION": m.Sys.Version, - "CI": m.Sys.Name, - } - if m.Curr.Event == EventTag { - params["CI_TAG"] = strings.TrimPrefix(m.Curr.Commit.Ref, "refs/tags/") - } - if m.Curr.Event == EventPull { - params["CI_PULL_REQUEST"] = pullRegexp.FindString(m.Curr.Commit.Ref) - } - return params -} - -// EnvironDrone returns metadata as a map of DRONE_ environment variables. -// TODO: This is here for backward compatibility and will eventually be removed. -func (m *Metadata) EnvironDrone() map[string]string { - // MISSING PARAMETERS - // * DRONE_REPO_TRUSTED - // * DRONE_YAML_VERIFIED - // * DRONE_YAML_VERIFIED - var ( - owner string - name string - - parts = strings.Split(m.Repo.Name, "/") - ) - if len(parts) == 2 { - owner = strings.Split(m.Repo.Name, "/")[0] - name = strings.Split(m.Repo.Name, "/")[1] - } else { - name = m.Repo.Name - } - params := map[string]string{ - "CI": "drone", - "DRONE": "true", - "DRONE_ARCH": "linux/amd64", - "DRONE_REPO": m.Repo.Name, - "DRONE_REPO_SCM": "git", - "DRONE_REPO_OWNER": owner, - "DRONE_REPO_NAME": name, - "DRONE_REPO_LINK": m.Repo.Link, - "DRONE_REPO_BRANCH": m.Repo.Branch, - "DRONE_REPO_PRIVATE": fmt.Sprintf("%v", m.Repo.Private), - "DRONE_REPO_TRUSTED": "false", // TODO should this be added? - "DRONE_REMOTE_URL": m.Repo.Remote, - "DRONE_COMMIT_SHA": m.Curr.Commit.Sha, - "DRONE_COMMIT_REF": m.Curr.Commit.Ref, - "DRONE_COMMIT_REFSPEC": m.Curr.Commit.Refspec, - "DRONE_COMMIT_BRANCH": m.Curr.Commit.Branch, - "DRONE_COMMIT_LINK": m.Curr.Link, - "DRONE_COMMIT_MESSAGE": m.Curr.Commit.Message, - "DRONE_COMMIT_AUTHOR": m.Curr.Commit.Author.Name, - "DRONE_COMMIT_AUTHOR_EMAIL": m.Curr.Commit.Author.Email, - "DRONE_COMMIT_AUTHOR_AVATAR": m.Curr.Commit.Author.Avatar, - "DRONE_BUILD_NUMBER": fmt.Sprintf("%d", m.Curr.Number), - "DRONE_PARENT_BUILD_NUMBER": fmt.Sprintf("%d", m.Curr.Parent), - "DRONE_BUILD_EVENT": m.Curr.Event, - "DRONE_BUILD_LINK": fmt.Sprintf("%s/%s/%d", m.Sys.Link, m.Repo.Name, m.Curr.Number), - "DRONE_BUILD_CREATED": fmt.Sprintf("%d", m.Curr.Created), - "DRONE_BUILD_STARTED": fmt.Sprintf("%d", m.Curr.Started), - "DRONE_BUILD_FINISHED": fmt.Sprintf("%d", m.Curr.Finished), - "DRONE_JOB_NUMBER": fmt.Sprintf("%d", m.Job.Number), - "DRONE_JOB_STARTED": fmt.Sprintf("%d", m.Curr.Started), // ISSUE: no job started - "DRONE_BRANCH": m.Curr.Commit.Branch, - "DRONE_COMMIT": m.Curr.Commit.Sha, - "DRONE_VERSION": m.Sys.Version, - "DRONE_DEPLOY_TO": m.Curr.Target, - "DRONE_PREV_BUILD_STATUS": m.Prev.Status, - "DRONE_PREV_BUILD_NUMBER": fmt.Sprintf("%v", m.Prev.Number), - "DRONE_PREV_COMMIT_SHA": m.Prev.Commit.Sha, - } - if m.Curr.Event == EventTag || strings.HasPrefix(m.Curr.Commit.Ref, "refs/tags/") { - params["DRONE_TAG"] = strings.TrimPrefix(m.Curr.Commit.Ref, "refs/tags/") - } - if m.Curr.Event == EventPull { - params["DRONE_PULL_REQUEST"] = pullRegexp.FindString(m.Curr.Commit.Ref) - } - return params -} - -var pullRegexp = regexp.MustCompile("\\d+") diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/cacher.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/cacher.go deleted file mode 100644 index df4f0f7..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/cacher.go +++ /dev/null @@ -1,105 +0,0 @@ -package compiler - -import ( - "path" - "strings" - - "github.com/cncd/pipeline/pipeline/frontend/yaml" - - libcompose "github.com/docker/libcompose/yaml" -) - -// Cacher defines a compiler transform that can be used -// to implement default caching for a repository. -type Cacher interface { - Restore(repo, branch string, mounts []string) *yaml.Container - Rebuild(repo, branch string, mounts []string) *yaml.Container -} - -type volumeCacher struct { - base string -} - -func (c *volumeCacher) Restore(repo, branch string, mounts []string) *yaml.Container { - return &yaml.Container{ - Name: "rebuild_cache", - Image: "plugins/volume-cache:1.0.0", - Vargs: map[string]interface{}{ - "mount": mounts, - "path": "/cache", - "restore": true, - "file": strings.Replace(branch, "/", "_", -1) + ".tar", - "fallback_to": "master.tar", - }, - Volumes: libcompose.Volumes{ - Volumes: []*libcompose.Volume{ - { - Source: path.Join(c.base, repo), - Destination: "/cache", - // TODO add access mode - }, - }, - }, - } -} - -func (c *volumeCacher) Rebuild(repo, branch string, mounts []string) *yaml.Container { - return &yaml.Container{ - Name: "rebuild_cache", - Image: "plugins/volume-cache:1.0.0", - Vargs: map[string]interface{}{ - "mount": mounts, - "path": "/cache", - "rebuild": true, - "flush": true, - "file": strings.Replace(branch, "/", "_", -1) + ".tar", - }, - Volumes: libcompose.Volumes{ - Volumes: []*libcompose.Volume{ - { - Source: path.Join(c.base, repo), - Destination: "/cache", - // TODO add access mode - }, - }, - }, - } -} - -type s3Cacher struct { - bucket string - access string - secret string - region string -} - -func (c *s3Cacher) Restore(repo, branch string, mounts []string) *yaml.Container { - return &yaml.Container{ - Name: "rebuild_cache", - Image: "plugins/s3-cache:latest", - Vargs: map[string]interface{}{ - "mount": mounts, - "access_key": c.access, - "secret_key": c.secret, - "bucket": c.bucket, - "region": c.region, - "rebuild": true, - }, - } -} - -func (c *s3Cacher) Rebuild(repo, branch string, mounts []string) *yaml.Container { - return &yaml.Container{ - Name: "rebuild_cache", - Image: "plugins/s3-cache:latest", - Vargs: map[string]interface{}{ - "mount": mounts, - "access_key": c.access, - "secret_key": c.secret, - "bucket": c.bucket, - "region": c.region, - "rebuild": true, - "flush": true, - }, - } -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go deleted file mode 100644 index 95798ee..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/compiler.go +++ /dev/null @@ -1,216 +0,0 @@ -package compiler - -import ( - "fmt" - - "github.com/cncd/pipeline/pipeline/backend" - "github.com/cncd/pipeline/pipeline/frontend" - "github.com/cncd/pipeline/pipeline/frontend/yaml" -) - -// TODO(bradrydzewski) compiler should handle user-defined volumes from YAML -// TODO(bradrydzewski) compiler should handle user-defined networks from YAML - -type Registry struct { - Hostname string - Username string - Password string - Email string - Token string -} - -type Secret struct { - Name string - Value string - Match []string -} - -type ResourceLimit struct { - MemSwapLimit int64 - MemLimit int64 - ShmSize int64 - CPUQuota int64 - CPUShares int64 - CPUSet string -} - -// Compiler compiles the yaml -type Compiler struct { - local bool - escalated []string - prefix string - volumes []string - networks []string - env map[string]string - base string - path string - metadata frontend.Metadata - registries []Registry - secrets map[string]Secret - cacher Cacher - reslimit ResourceLimit -} - -// New creates a new Compiler with options. -func New(opts ...Option) *Compiler { - compiler := &Compiler{ - env: map[string]string{}, - secrets: map[string]Secret{}, - } - for _, opt := range opts { - opt(compiler) - } - return compiler -} - -// Compile compiles the YAML configuration to the pipeline intermediate -// representation configuration format. -func (c *Compiler) Compile(conf *yaml.Config) *backend.Config { - config := new(backend.Config) - - // create a default volume - config.Volumes = append(config.Volumes, &backend.Volume{ - Name: fmt.Sprintf("%s_default", c.prefix), - Driver: "local", - }) - - // create a default network - config.Networks = append(config.Networks, &backend.Network{ - Name: fmt.Sprintf("%s_default", c.prefix), - Driver: "bridge", - }) - - // overrides the default workspace paths when specified - // in the YAML file. - if len(conf.Workspace.Base) != 0 { - c.base = conf.Workspace.Base - } - if len(conf.Workspace.Path) != 0 { - c.path = conf.Workspace.Path - } - - // add default clone step - if c.local == false && len(conf.Clone.Containers) == 0 { - container := &yaml.Container{ - Name: "clone", - Image: "plugins/git:latest", - Vargs: map[string]interface{}{"depth": "0"}, - } - switch c.metadata.Sys.Arch { - case "linux/arm": - container.Image = "plugins/git:linux-arm" - case "linux/arm64": - container.Image = "plugins/git:linux-arm64" - } - name := fmt.Sprintf("%s_clone", c.prefix) - step := c.createProcess(name, container, "clone") - - stage := new(backend.Stage) - stage.Name = name - stage.Alias = "clone" - stage.Steps = append(stage.Steps, step) - - config.Stages = append(config.Stages, stage) - } else if c.local == false { - for i, container := range conf.Clone.Containers { - if !container.Constraints.Match(c.metadata) { - continue - } - stage := new(backend.Stage) - stage.Name = fmt.Sprintf("%s_clone_%v", c.prefix, i) - stage.Alias = container.Name - - name := fmt.Sprintf("%s_clone_%d", c.prefix, i) - step := c.createProcess(name, container, "clone") - stage.Steps = append(stage.Steps, step) - - config.Stages = append(config.Stages, stage) - } - } - - c.setupCache(conf, config) - - // add services steps - if len(conf.Services.Containers) != 0 { - stage := new(backend.Stage) - stage.Name = fmt.Sprintf("%s_services", c.prefix) - stage.Alias = "services" - - for i, container := range conf.Services.Containers { - if !container.Constraints.Match(c.metadata) { - continue - } - - name := fmt.Sprintf("%s_services_%d", c.prefix, i) - step := c.createProcess(name, container, "services") - stage.Steps = append(stage.Steps, step) - - } - config.Stages = append(config.Stages, stage) - } - - // add pipeline steps. 1 pipeline step per stage, at the moment - var stage *backend.Stage - var group string - for i, container := range conf.Pipeline.Containers { - //Skip if local and should not run local - if c.local && !container.Constraints.Local.Bool() { - continue - } - - if !container.Constraints.Match(c.metadata) { - continue - } - - if stage == nil || group != container.Group || container.Group == "" { - group = container.Group - - stage = new(backend.Stage) - stage.Name = fmt.Sprintf("%s_stage_%v", c.prefix, i) - stage.Alias = container.Name - config.Stages = append(config.Stages, stage) - } - - name := fmt.Sprintf("%s_step_%d", c.prefix, i) - step := c.createProcess(name, container, "pipeline") - stage.Steps = append(stage.Steps, step) - } - - c.setupCacheRebuild(conf, config) - - return config -} - -func (c *Compiler) setupCache(conf *yaml.Config, ir *backend.Config) { - if c.local || len(conf.Cache) == 0 || c.cacher == nil { - return - } - - container := c.cacher.Restore(c.metadata.Repo.Name, c.metadata.Curr.Commit.Branch, conf.Cache) - name := fmt.Sprintf("%s_restore_cache", c.prefix) - step := c.createProcess(name, container, "cache") - - stage := new(backend.Stage) - stage.Name = name - stage.Alias = "restore_cache" - stage.Steps = append(stage.Steps, step) - - ir.Stages = append(ir.Stages, stage) -} - -func (c *Compiler) setupCacheRebuild(conf *yaml.Config, ir *backend.Config) { - if c.local || len(conf.Cache) == 0 || c.metadata.Curr.Event != "push" || c.cacher == nil { - return - } - container := c.cacher.Rebuild(c.metadata.Repo.Name, c.metadata.Curr.Commit.Branch, conf.Cache) - - name := fmt.Sprintf("%s_rebuild_cache", c.prefix) - step := c.createProcess(name, container, "cache") - - stage := new(backend.Stage) - stage.Name = name - stage.Alias = "rebuild_cache" - stage.Steps = append(stage.Steps, step) - - ir.Stages = append(ir.Stages, stage) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/convert.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/convert.go deleted file mode 100644 index ee39c9b..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/convert.go +++ /dev/null @@ -1,181 +0,0 @@ -package compiler - -import ( - "fmt" - "path" - "strings" - - "github.com/cncd/pipeline/pipeline/backend" - "github.com/cncd/pipeline/pipeline/frontend/yaml" -) - -func (c *Compiler) createProcess(name string, container *yaml.Container, section string) *backend.Step { - var ( - detached bool - workingdir string - - workspace = fmt.Sprintf("%s_default:%s", c.prefix, c.base) - privileged = container.Privileged - entrypoint = container.Entrypoint - command = container.Command - image = expandImage(container.Image) - network_mode = container.NetworkMode - ipc_mode = container.IpcMode - // network = container.Network - ) - - networks := []backend.Conn{ - backend.Conn{ - Name: fmt.Sprintf("%s_default", c.prefix), - Aliases: []string{container.Name}, - }, - } - for _, network := range c.networks { - networks = append(networks, backend.Conn{ - Name: network, - }) - } - - var volumes []string - if !c.local { - volumes = append(volumes, workspace) - } - volumes = append(volumes, c.volumes...) - for _, volume := range container.Volumes.Volumes { - volumes = append(volumes, volume.String()) - } - - // append default environment variables - environment := map[string]string{} - for k, v := range container.Environment { - environment[k] = v - } - for k, v := range c.env { - switch v { - case "", "0", "false": - continue - default: - environment[k] = v - } - } - - environment["CI_WORKSPACE"] = path.Join(c.base, c.path) - // TODO: This is here for backward compatibility and will eventually be removed. - environment["DRONE_WORKSPACE"] = path.Join(c.base, c.path) - - if section == "services" || container.Detached { - detached = true - } - - if detached == false || len(container.Commands) != 0 { - workingdir = path.Join(c.base, c.path) - } - - if detached == false { - paramsToEnv(container.Vargs, environment) - } - - if len(container.Commands) != 0 { - if c.metadata.Sys.Arch == "windows/amd64" { - // TODO provide windows implementation - entrypoint = []string{"/bin/sh", "-c"} - command = []string{"echo $CI_SCRIPT | base64 -d | /bin/sh -e"} - environment["CI_SCRIPT"] = generateScriptWindows(container.Commands) - environment["HOME"] = "/root" - environment["SHELL"] = "/bin/sh" - } else { - entrypoint = []string{"/bin/sh", "-c"} - command = []string{"echo $CI_SCRIPT | base64 -d | /bin/sh -e"} - environment["CI_SCRIPT"] = generateScriptPosix(container.Commands) - environment["HOME"] = "/root" - environment["SHELL"] = "/bin/sh" - } - } - - if matchImage(container.Image, c.escalated...) { - privileged = true - entrypoint = []string{} - command = []string{} - } - - authConfig := backend.Auth{ - Username: container.AuthConfig.Username, - Password: container.AuthConfig.Password, - Email: container.AuthConfig.Email, - } - for _, registry := range c.registries { - if matchHostname(image, registry.Hostname) { - authConfig.Username = registry.Username - authConfig.Password = registry.Password - authConfig.Email = registry.Email - break - } - } - - for _, requested := range container.Secrets.Secrets { - secret, ok := c.secrets[strings.ToLower(requested.Source)] - if ok && (len(secret.Match) == 0 || matchImage(image, secret.Match...)) { - environment[strings.ToUpper(requested.Target)] = secret.Value - } - } - - memSwapLimit := int64(container.MemSwapLimit) - if c.reslimit.MemSwapLimit != 0 { - memSwapLimit = c.reslimit.MemSwapLimit - } - memLimit := int64(container.MemLimit) - if c.reslimit.MemLimit != 0 { - memLimit = c.reslimit.MemLimit - } - shmSize := int64(container.ShmSize) - if c.reslimit.ShmSize != 0 { - shmSize = c.reslimit.ShmSize - } - cpuQuota := int64(container.CPUQuota) - if c.reslimit.CPUQuota != 0 { - cpuQuota = c.reslimit.CPUQuota - } - cpuShares := int64(container.CPUShares) - if c.reslimit.CPUShares != 0 { - cpuShares = c.reslimit.CPUShares - } - cpuSet := container.CPUSet - if c.reslimit.CPUSet != "" { - cpuSet = c.reslimit.CPUSet - } - - return &backend.Step{ - Name: name, - Alias: container.Name, - Image: image, - Pull: container.Pull, - Detached: detached, - Privileged: privileged, - WorkingDir: workingdir, - Environment: environment, - Labels: container.Labels, - Entrypoint: entrypoint, - Command: command, - ExtraHosts: container.ExtraHosts, - Volumes: volumes, - Tmpfs: container.Tmpfs, - Devices: container.Devices, - Networks: networks, - DNS: container.DNS, - DNSSearch: container.DNSSearch, - MemSwapLimit: memSwapLimit, - MemLimit: memLimit, - ShmSize: shmSize, - Sysctls: container.Sysctls, - CPUQuota: cpuQuota, - CPUShares: cpuShares, - CPUSet: cpuSet, - AuthConfig: authConfig, - OnSuccess: container.Constraints.Status.Match("success"), - OnFailure: (len(container.Constraints.Status.Include)+ - len(container.Constraints.Status.Exclude) != 0) && - container.Constraints.Status.Match("failure"), - NetworkMode: network_mode, - IpcMode: ipc_mode, - } -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/image.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/image.go deleted file mode 100644 index 939e8d2..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/image.go +++ /dev/null @@ -1,46 +0,0 @@ -package compiler - -import ( - "github.com/docker/docker/reference" -) - -// trimImage returns the short image name without tag. -func trimImage(name string) string { - ref, err := reference.ParseNamed(name) - if err != nil { - return name - } - return reference.TrimNamed(ref).String() -} - -// expandImage returns the fully qualified image name. -func expandImage(name string) string { - ref, err := reference.ParseNamed(name) - if err != nil { - return name - } - return reference.WithDefaultTag(ref).String() -} - -// matchImage returns true if the image name matches -// an image in the list. Note the image tag is not used -// in the matching logic. -func matchImage(from string, to ...string) bool { - from = trimImage(from) - for _, match := range to { - if from == trimImage(match) { - return true - } - } - return false -} - -// matchHostname returns true if the image hostname -// matches the specified hostname. -func matchHostname(image, hostname string) bool { - ref, err := reference.ParseNamed(image) - if err != nil { - return false - } - return ref.Hostname() == hostname -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/option.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/option.go deleted file mode 100644 index 4dd7e9e..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/option.go +++ /dev/null @@ -1,249 +0,0 @@ -package compiler - -import ( - "net/url" - "os" - "path/filepath" - "strings" - - "github.com/cncd/pipeline/pipeline/frontend" -) - -// Option configures a compiler option. -type Option func(*Compiler) - -// WithOption configures the compiler with the given option if -// boolean b evaluates to true. -func WithOption(option Option, b bool) Option { - switch { - case b: - return option - default: - return func(compiler *Compiler) {} - } -} - -// WithVolumes configutes the compiler with default volumes that -// are mounted to each container in the pipeline. -func WithVolumes(volumes ...string) Option { - return func(compiler *Compiler) { - compiler.volumes = volumes - } -} - -// WithRegistry configures the compiler with registry credentials -// that should be used to download images. -func WithRegistry(registries ...Registry) Option { - return func(compiler *Compiler) { - compiler.registries = registries - } -} - -// WithSecret configures the compiler with external secrets -// to be injected into the container at runtime. -func WithSecret(secrets ...Secret) Option { - return func(compiler *Compiler) { - for _, secret := range secrets { - compiler.secrets[strings.ToLower(secret.Name)] = secret - } - } -} - -// WithMetadata configutes the compiler with the repostiory, build -// and system metadata. The metadata is used to remove steps from -// the compiled pipeline configuration that should be skipped. The -// metadata is also added to each container as environment variables. -func WithMetadata(metadata frontend.Metadata) Option { - return func(compiler *Compiler) { - compiler.metadata = metadata - - for k, v := range metadata.Environ() { - compiler.env[k] = v - } - // TODO this is present for backward compatibility and should - // be removed in a future version. - for k, v := range metadata.EnvironDrone() { - compiler.env[k] = v - } - } -} - -// WithNetrc configures the compiler with netrc authentication -// credentials added by default to every container in the pipeline. -func WithNetrc(username, password, machine string) Option { - return WithEnviron( - map[string]string{ - "CI_NETRC_USERNAME": username, - "CI_NETRC_PASSWORD": password, - "CI_NETRC_MACHINE": machine, - - // TODO: This is present for backward compatibility and should - // be removed in a future version. - "DRONE_NETRC_USERNAME": username, - "DRONE_NETRC_PASSWORD": password, - "DRONE_NETRC_MACHINE": machine, - }, - ) -} - -// WithWorkspace configures the compiler with the workspace base -// and path. The workspace base is a volume created at runtime and -// mounted into all containers in the pipeline. The base and path -// are joined to provide the working directory for all build and -// plugin steps in the pipeline. -func WithWorkspace(base, path string) Option { - return func(compiler *Compiler) { - compiler.base = base - compiler.path = path - } -} - -// WithWorkspaceFromURL configures the compiler with the workspace -// base and path based on the repository url. -func WithWorkspaceFromURL(base, link string) Option { - path := "src" - parsed, err := url.Parse(link) - if err == nil { - path = filepath.Join(path, parsed.Hostname(), parsed.Path) - } - return WithWorkspace(base, path) -} - -// WithEscalated configures the compiler to automatically execute -// images as privileged containers if the match the given list. -func WithEscalated(images ...string) Option { - return func(compiler *Compiler) { - compiler.escalated = images - } -} - -// WithPrefix configures the compiler with the prefix. The prefix is -// used to prefix container, volume and network names to avoid -// collision at runtime. -func WithPrefix(prefix string) Option { - return func(compiler *Compiler) { - compiler.prefix = prefix - } -} - -// WithLocal configures the compiler with the local flag. The local -// flag indicates the pipeline execution is running in a local development -// environment with a mounted local working directory. -func WithLocal(local bool) Option { - return func(compiler *Compiler) { - compiler.local = local - } -} - -// WithEnviron configures the compiler with environment variables -// added by default to every container in the pipeline. -func WithEnviron(env map[string]string) Option { - return func(compiler *Compiler) { - for k, v := range env { - compiler.env[k] = v - } - } -} - -// WithCacher configures the compiler with default cache settings. -func WithCacher(cacher Cacher) Option { - return func(compiler *Compiler) { - compiler.cacher = cacher - } -} - -// WithVolumeCacher configures the compiler with default local volume -// caching enabled. -func WithVolumeCacher(base string) Option { - return func(compiler *Compiler) { - compiler.cacher = &volumeCacher{base: base} - } -} - -// WithS3Cacher configures the compiler with default amazon s3 -// caching enabled. -func WithS3Cacher(access, secret, region, bucket string) Option { - return func(compiler *Compiler) { - compiler.cacher = &s3Cacher{ - access: access, - secret: secret, - bucket: bucket, - region: region, - } - } -} - -// WithProxy configures the compiler with HTTP_PROXY, HTTPS_PROXY, -// and NO_PROXY environment variables added by default to every -// container in the pipeline. -func WithProxy() Option { - return WithEnviron( - map[string]string{ - "no_proxy": noProxy, - "NO_PROXY": noProxy, - "http_proxy": httpProxy, - "HTTP_PROXY": httpProxy, - "HTTPS_PROXY": httpsProxy, - "https_proxy": httpsProxy, - }, - ) -} - -// WithNetworks configures the compiler with additionnal networks -// to be connected to build containers -func WithNetworks(networks ...string) Option { - return func(compiler *Compiler) { - compiler.networks = networks - } -} - -// WithResourceLimit configures the compiler with default resource limits that -// are applied each container in the pipeline. -func WithResourceLimit(swap, mem, shmsize, cpuQuota, cpuShares int64, cpuSet string) Option { - return func(compiler *Compiler) { - compiler.reslimit = ResourceLimit{ - MemSwapLimit: swap, - MemLimit: mem, - ShmSize: shmsize, - CPUQuota: cpuQuota, - CPUShares: cpuShares, - CPUSet: cpuSet, - } - } -} - -// TODO(bradrydzewski) consider an alternate approach to -// WithProxy where the proxy strings are passed directly -// to the function as named parameters. - -// func WithProxy2(http, https, none string) Option { -// return WithEnviron( -// map[string]string{ -// "no_proxy": none, -// "NO_PROXY": none, -// "http_proxy": http, -// "HTTP_PROXY": http, -// "HTTPS_PROXY": https, -// "https_proxy": https, -// }, -// ) -// } - -var ( - noProxy = getenv("no_proxy") - httpProxy = getenv("https_proxy") - httpsProxy = getenv("https_proxy") -) - -// getenv returns the named environment variable. -func getenv(name string) (value string) { - name = strings.ToUpper(name) - if value := os.Getenv(name); value != "" { - return value - } - name = strings.ToLower(name) - if value := os.Getenv(name); value != "" { - return value - } - return -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/params.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/params.go deleted file mode 100644 index 5fe2390..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/params.go +++ /dev/null @@ -1,65 +0,0 @@ -package compiler - -import ( - "fmt" - "reflect" - "strconv" - "strings" - - json "github.com/ghodss/yaml" - "gopkg.in/yaml.v2" -) - -// paramsToEnv uses reflection to convert a map[string]interface to a list -// of environment variables. -func paramsToEnv(from map[string]interface{}, to map[string]string) error { - for k, v := range from { - if v == nil { - continue - } - - t := reflect.TypeOf(v) - vv := reflect.ValueOf(v) - - k = "PLUGIN_" + strings.ToUpper(k) - - switch t.Kind() { - case reflect.Bool: - to[k] = strconv.FormatBool(vv.Bool()) - - case reflect.String: - to[k] = vv.String() - - case reflect.Int, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int8: - to[k] = fmt.Sprintf("%v", vv.Int()) - - case reflect.Float32, reflect.Float64: - to[k] = fmt.Sprintf("%v", vv.Float()) - - case reflect.Map: - yml, _ := yaml.Marshal(vv.Interface()) - out, _ := json.YAMLToJSON(yml) - to[k] = string(out) - - case reflect.Slice: - out, err := yaml.Marshal(vv.Interface()) - if err != nil { - return err - } - - in := []string{} - err = yaml.Unmarshal(out, &in) - if err == nil { - to[k] = strings.Join(in, ",") - } else { - out, err = json.YAMLToJSON(out) - if err != nil { - return err - } - to[k] = string(out) - } - } - } - - return nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_posix.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_posix.go deleted file mode 100644 index 7db43f3..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_posix.go +++ /dev/null @@ -1,56 +0,0 @@ -package compiler - -import ( - "bytes" - "encoding/base64" - "fmt" - "strings" -) - -// generateScriptPosix is a helper function that generates a build script -// for a linux container using the given -func generateScriptPosix(commands []string) string { - var buf bytes.Buffer - for _, command := range commands { - escaped := fmt.Sprintf("%q", command) - escaped = strings.Replace(escaped, "$", `\$`, -1) - buf.WriteString(fmt.Sprintf( - traceScript, - escaped, - command, - )) - } - script := fmt.Sprintf( - setupScript, - buf.String(), - ) - return base64.StdEncoding.EncodeToString([]byte(script)) -} - -// setupScript is a helper script this is added to the build to ensure -// a minimum set of environment variables are set correctly. -// TODO: Unsetting DRONE_* is present for backward compatibility and should -// be removed in a future version. -const setupScript = ` -if [ -n "$CI_NETRC_MACHINE" ]; then -cat < $HOME/.netrc -machine $CI_NETRC_MACHINE -login $CI_NETRC_USERNAME -password $CI_NETRC_PASSWORD -EOF -chmod 0600 $HOME/.netrc -fi -unset CI_NETRC_USERNAME -unset CI_NETRC_PASSWORD -unset CI_SCRIPT -unset DRONE_NETRC_USERNAME -unset DRONE_NETRC_PASSWORD -%s -` - -// traceScript is a helper script that is added to the build script -// to trace a command. -const traceScript = ` -echo + %s -%s -` diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_win.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_win.go deleted file mode 100644 index f4bdaaf..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/compiler/script_win.go +++ /dev/null @@ -1,5 +0,0 @@ -package compiler - -func generateScriptWindows(commands []string) string { - return "" -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/config.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/config.go deleted file mode 100644 index e5d52f8..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/config.go +++ /dev/null @@ -1,69 +0,0 @@ -package yaml - -import ( - "io" - "io/ioutil" - "os" - - libcompose "github.com/docker/libcompose/yaml" - "gopkg.in/yaml.v2" -) - -type ( - // Config defines a pipeline configuration. - Config struct { - Cache libcompose.Stringorslice - Platform string - Branches Constraint - Workspace Workspace - Clone Containers - Pipeline Containers - Services Containers - Networks Networks - Volumes Volumes - Labels libcompose.SliceorMap - } - - // Workspace defines a pipeline workspace. - Workspace struct { - Base string - Path string - } -) - -// Parse parses the configuration from bytes b. -func Parse(r io.Reader) (*Config, error) { - out, err := ioutil.ReadAll(r) - if err != nil { - return nil, err - } - return ParseBytes(out) -} - -// ParseBytes parses the configuration from bytes b. -func ParseBytes(b []byte) (*Config, error) { - out := new(Config) - err := yaml.Unmarshal(b, out) - if err != nil { - return nil, err - } - - return out, nil -} - -// ParseString parses the configuration from string s. -func ParseString(s string) (*Config, error) { - return ParseBytes( - []byte(s), - ) -} - -// ParseFile parses the configuration from path p. -func ParseFile(p string) (*Config, error) { - f, err := os.Open(p) - if err != nil { - return nil, err - } - defer f.Close() - return Parse(f) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/constraint.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/constraint.go deleted file mode 100644 index 1b1c8b1..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/constraint.go +++ /dev/null @@ -1,157 +0,0 @@ -package yaml - -import ( - "path/filepath" - - "github.com/cncd/pipeline/pipeline/frontend" - "github.com/cncd/pipeline/pipeline/frontend/yaml/types" - libcompose "github.com/docker/libcompose/yaml" -) - -type ( - // Constraints defines a set of runtime constraints. - Constraints struct { - Ref Constraint - Repo Constraint - Instance Constraint - Platform Constraint - Environment Constraint - Event Constraint - Branch Constraint - Status Constraint - Matrix ConstraintMap - Local types.BoolTrue - } - - // Constraint defines a runtime constraint. - Constraint struct { - Include []string - Exclude []string - } - - // ConstraintMap defines a runtime constraint map. - ConstraintMap struct { - Include map[string]string - Exclude map[string]string - } -) - -// Match returns true if all constraints match the given input. If a single -// constraint fails a false value is returned. -func (c *Constraints) Match(metadata frontend.Metadata) bool { - return c.Platform.Match(metadata.Sys.Arch) && - c.Environment.Match(metadata.Curr.Target) && - c.Event.Match(metadata.Curr.Event) && - c.Branch.Match(metadata.Curr.Commit.Branch) && - c.Repo.Match(metadata.Repo.Name) && - c.Ref.Match(metadata.Curr.Commit.Ref) && - c.Instance.Match(metadata.Sys.Host) && - c.Matrix.Match(metadata.Job.Matrix) -} - -// Match returns true if the string matches the include patterns and does not -// match any of the exclude patterns. -func (c *Constraint) Match(v string) bool { - if c.Excludes(v) { - return false - } - if c.Includes(v) { - return true - } - if len(c.Include) == 0 { - return true - } - return false -} - -// Includes returns true if the string matches the include patterns. -func (c *Constraint) Includes(v string) bool { - for _, pattern := range c.Include { - if ok, _ := filepath.Match(pattern, v); ok { - return true - } - } - return false -} - -// Excludes returns true if the string matches the exclude patterns. -func (c *Constraint) Excludes(v string) bool { - for _, pattern := range c.Exclude { - if ok, _ := filepath.Match(pattern, v); ok { - return true - } - } - return false -} - -// UnmarshalYAML unmarshals the constraint. -func (c *Constraint) UnmarshalYAML(unmarshal func(interface{}) error) error { - var out1 = struct { - Include libcompose.Stringorslice - Exclude libcompose.Stringorslice - }{} - - var out2 libcompose.Stringorslice - - unmarshal(&out1) - unmarshal(&out2) - - c.Exclude = out1.Exclude - c.Include = append( - out1.Include, - out2..., - ) - return nil -} - -// Match returns true if the params matches the include key values and does not -// match any of the exclude key values. -func (c *ConstraintMap) Match(params map[string]string) bool { - // when no includes or excludes automatically match - if len(c.Include) == 0 && len(c.Exclude) == 0 { - return true - } - // exclusions are processed first. So we can include everything and then - // selectively include others. - if len(c.Exclude) != 0 { - var matches int - - for key, val := range c.Exclude { - if params[key] == val { - matches++ - } - } - if matches == len(c.Exclude) { - return false - } - } - for key, val := range c.Include { - if params[key] != val { - return false - } - } - return true -} - -// UnmarshalYAML unmarshals the constraint map. -func (c *ConstraintMap) UnmarshalYAML(unmarshal func(interface{}) error) error { - out1 := struct { - Include map[string]string - Exclude map[string]string - }{ - Include: map[string]string{}, - Exclude: map[string]string{}, - } - - out2 := map[string]string{} - - unmarshal(&out1) - unmarshal(&out2) - - c.Include = out1.Include - c.Exclude = out1.Exclude - for k, v := range out2 { - c.Include[k] = v - } - return nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/container.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/container.go deleted file mode 100644 index e5975e8..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/container.go +++ /dev/null @@ -1,84 +0,0 @@ -package yaml - -import ( - "fmt" - - libcompose "github.com/docker/libcompose/yaml" - "gopkg.in/yaml.v2" -) - -type ( - // AuthConfig defines registry authentication credentials. - AuthConfig struct { - Username string - Password string - Email string - } - - // Containers denotes an ordered collection of containers. - Containers struct { - Containers []*Container - } - - // Container defines a container. - Container struct { - AuthConfig AuthConfig `yaml:"auth_config,omitempty"` - CapAdd []string `yaml:"cap_add,omitempty"` - CapDrop []string `yaml:"cap_drop,omitempty"` - Command libcompose.Command `yaml:"command,omitempty"` - Commands libcompose.Stringorslice `yaml:"commands,omitempty"` - CPUQuota libcompose.StringorInt `yaml:"cpu_quota,omitempty"` - CPUSet string `yaml:"cpuset,omitempty"` - CPUShares libcompose.StringorInt `yaml:"cpu_shares,omitempty"` - Detached bool `yaml:"detach,omitempty"` - Devices []string `yaml:"devices,omitempty"` - Tmpfs []string `yaml:"tmpfs,omitempty"` - DNS libcompose.Stringorslice `yaml:"dns,omitempty"` - DNSSearch libcompose.Stringorslice `yaml:"dns_search,omitempty"` - Entrypoint libcompose.Command `yaml:"entrypoint,omitempty"` - Environment libcompose.SliceorMap `yaml:"environment,omitempty"` - ExtraHosts []string `yaml:"extra_hosts,omitempty"` - Group string `yaml:"group,omitempty"` - Image string `yaml:"image,omitempty"` - Isolation string `yaml:"isolation,omitempty"` - Labels libcompose.SliceorMap `yaml:"labels,omitempty"` - MemLimit libcompose.MemStringorInt `yaml:"mem_limit,omitempty"` - MemSwapLimit libcompose.MemStringorInt `yaml:"memswap_limit,omitempty"` - MemSwappiness libcompose.MemStringorInt `yaml:"mem_swappiness,omitempty"` - Name string `yaml:"name,omitempty"` - NetworkMode string `yaml:"network_mode,omitempty"` - IpcMode string `yaml:"ipc_mode,omitempty"` - Networks libcompose.Networks `yaml:"networks,omitempty"` - Privileged bool `yaml:"privileged,omitempty"` - Pull bool `yaml:"pull,omitempty"` - ShmSize libcompose.MemStringorInt `yaml:"shm_size,omitempty"` - Ulimits libcompose.Ulimits `yaml:"ulimits,omitempty"` - Volumes libcompose.Volumes `yaml:"volumes,omitempty"` - Secrets Secrets `yaml:"secrets,omitempty"` - Sysctls libcompose.SliceorMap `yaml:"sysctls,omitempty"` - Constraints Constraints `yaml:"when,omitempty"` - Vargs map[string]interface{} `yaml:",inline"` - } -) - -// UnmarshalYAML implements the Unmarshaller interface. -func (c *Containers) UnmarshalYAML(unmarshal func(interface{}) error) error { - slice := yaml.MapSlice{} - if err := unmarshal(&slice); err != nil { - return err - } - - for _, s := range slice { - container := Container{} - out, _ := yaml.Marshal(s.Value) - - if err := yaml.Unmarshal(out, &container); err != nil { - return err - } - if container.Name == "" { - container.Name = fmt.Sprintf("%v", s.Key) - } - c.Containers = append(c.Containers, &container) - } - return nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/linter.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/linter.go deleted file mode 100644 index a458e7e..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/linter.go +++ /dev/null @@ -1,143 +0,0 @@ -package linter - -import ( - "fmt" - - "github.com/cncd/pipeline/pipeline/frontend/yaml" -) - -const ( - blockClone uint8 = iota - blockPipeline - blockServices -) - -// A Linter lints a pipeline configuration. -type Linter struct { - trusted bool -} - -// New creates a new Linter with options. -func New(opts ...Option) *Linter { - linter := new(Linter) - for _, opt := range opts { - opt(linter) - } - return linter -} - -// Lint lints the configuration. -func (l *Linter) Lint(c *yaml.Config) error { - if len(c.Pipeline.Containers) == 0 { - return fmt.Errorf("Invalid or missing pipeline section") - } - if err := l.lint(c.Clone.Containers, blockClone); err != nil { - return err - } - if err := l.lint(c.Pipeline.Containers, blockPipeline); err != nil { - return err - } - if err := l.lint(c.Services.Containers, blockServices); err != nil { - return err - } - return nil -} - -func (l *Linter) lint(containers []*yaml.Container, block uint8) error { - for _, container := range containers { - if err := l.lintImage(container); err != nil { - return err - } - if l.trusted == false { - if err := l.lintTrusted(container); err != nil { - return err - } - } - if block != blockServices && !container.Detached { - if err := l.lintEntrypoint(container); err != nil { - return err - } - } - if err := l.lintCommands(container); err != nil { - return err - } - } - return nil -} - -func (l *Linter) lintImage(c *yaml.Container) error { - if len(c.Image) == 0 { - return fmt.Errorf("Invalid or missing image") - } - return nil -} - -func (l *Linter) lintCommands(c *yaml.Container) error { - if len(c.Commands) == 0 { - return nil - } - if len(c.Vargs) != 0 { - var keys []string - for key := range c.Vargs { - keys = append(keys, key) - } - return fmt.Errorf("Cannot configure both commands and custom attributes %v", keys) - } - if len(c.Entrypoint) != 0 { - return fmt.Errorf("Cannot configure both commands and entrypoint attributes") - } - if len(c.Command) != 0 { - return fmt.Errorf("Cannot configure both commands and command attributes") - } - return nil -} - -func (l *Linter) lintEntrypoint(c *yaml.Container) error { - if len(c.Entrypoint) != 0 { - return fmt.Errorf("Cannot override container entrypoint") - } - if len(c.Command) != 0 { - return fmt.Errorf("Cannot override container command") - } - return nil -} - -func (l *Linter) lintTrusted(c *yaml.Container) error { - if c.Privileged { - return fmt.Errorf("Insufficient privileges to use privileged mode") - } - if c.ShmSize != 0 { - return fmt.Errorf("Insufficient privileges to override shm_size") - } - if len(c.DNS) != 0 { - return fmt.Errorf("Insufficient privileges to use custom dns") - } - if len(c.DNSSearch) != 0 { - return fmt.Errorf("Insufficient privileges to use dns_search") - } - if len(c.Devices) != 0 { - return fmt.Errorf("Insufficient privileges to use devices") - } - if len(c.ExtraHosts) != 0 { - return fmt.Errorf("Insufficient privileges to use extra_hosts") - } - if len(c.NetworkMode) != 0 { - return fmt.Errorf("Insufficient privileges to use network_mode") - } - if len(c.IpcMode) != 0 { - return fmt.Errorf("Insufficient privileges to use ipc_mode") - } - if len(c.Sysctls) != 0 { - return fmt.Errorf("Insufficient privileges to use sysctls") - } - if c.Networks.Networks != nil && len(c.Networks.Networks) != 0 { - return fmt.Errorf("Insufficient privileges to use networks") - } - if c.Volumes.Volumes != nil && len(c.Volumes.Volumes) != 0 { - return fmt.Errorf("Insufficient privileges to use volumes") - } - if len(c.Tmpfs) != 0 { - return fmt.Errorf("Insufficient privileges to use tmpfs") - } - return nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/option.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/option.go deleted file mode 100644 index 3e1a67e..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/linter/option.go +++ /dev/null @@ -1,11 +0,0 @@ -package linter - -// Option configures a linting option. -type Option func(*Linter) - -// WithTrusted adds the trusted option to the linter. -func WithTrusted(trusted bool) Option { - return func(linter *Linter) { - linter.trusted = trusted - } -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/network.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/network.go deleted file mode 100644 index d6a2c21..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/network.go +++ /dev/null @@ -1,48 +0,0 @@ -package yaml - -import ( - "fmt" - - "gopkg.in/yaml.v2" -) - -type ( - // Networks defines a collection of networks. - Networks struct { - Networks []*Network - } - - // Network defines a container network. - Network struct { - Name string `yaml:"name,omitempty"` - Driver string `yaml:"driver,omitempty"` - DriverOpts map[string]string `yaml:"driver_opts,omitempty"` - } -) - -// UnmarshalYAML implements the Unmarshaller interface. -func (n *Networks) UnmarshalYAML(unmarshal func(interface{}) error) error { - slice := yaml.MapSlice{} - err := unmarshal(&slice) - if err != nil { - return err - } - - for _, s := range slice { - nn := Network{} - out, _ := yaml.Marshal(s.Value) - - err = yaml.Unmarshal(out, &nn) - if err != nil { - return err - } - if nn.Name == "" { - nn.Name = fmt.Sprintf("%v", s.Key) - } - if nn.Driver == "" { - nn.Driver = "bridge" - } - n.Networks = append(n.Networks, &nn) - } - return err -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/secret.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/secret.go deleted file mode 100644 index 69ba73d..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/secret.go +++ /dev/null @@ -1,30 +0,0 @@ -package yaml - -type ( - // Secrets defines a collection of secrets. - Secrets struct { - Secrets []*Secret - } - - // Secret defines a container secret. - Secret struct { - Source string `yaml:"source"` - Target string `yaml:"target"` - } -) - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *Secrets) UnmarshalYAML(unmarshal func(interface{}) error) error { - var strslice []string - err := unmarshal(&strslice) - if err == nil { - for _, str := range strslice { - s.Secrets = append(s.Secrets, &Secret{ - Source: str, - Target: str, - }) - } - return nil - } - return unmarshal(&s.Secrets) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/types/bool.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/types/bool.go deleted file mode 100644 index 868ff3b..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/types/bool.go +++ /dev/null @@ -1,28 +0,0 @@ -package types - -import "strconv" - -// BoolTrue is a custom Yaml boolean type that defaults to true. -type BoolTrue struct { - value bool -} - -// UnmarshalYAML implements custom Yaml unmarshaling. -func (b *BoolTrue) UnmarshalYAML(unmarshal func(interface{}) error) error { - var s string - err := unmarshal(&s) - if err != nil { - return err - } - - value, err := strconv.ParseBool(s) - if err == nil { - b.value = !value - } - return nil -} - -// Bool returns the bool value. -func (b BoolTrue) Bool() bool { - return !b.value -} \ No newline at end of file diff --git a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/volume.go b/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/volume.go deleted file mode 100644 index 3468485..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/frontend/yaml/volume.go +++ /dev/null @@ -1,48 +0,0 @@ -package yaml - -import ( - "fmt" - - "gopkg.in/yaml.v2" -) - -type ( - // Volumes defines a collection of volumes. - Volumes struct { - Volumes []*Volume - } - - // Volume defines a container volume. - Volume struct { - Name string `yaml:"name,omitempty"` - Driver string `yaml:"driver,omitempty"` - DriverOpts map[string]string `yaml:"driver_opts,omitempty"` - } -) - -// UnmarshalYAML implements the Unmarshaller interface. -func (v *Volumes) UnmarshalYAML(unmarshal func(interface{}) error) error { - slice := yaml.MapSlice{} - err := unmarshal(&slice) - if err != nil { - return err - } - - for _, s := range slice { - vv := Volume{} - out, _ := yaml.Marshal(s.Value) - - err = yaml.Unmarshal(out, &vv) - if err != nil { - return err - } - if vv.Name == "" { - vv.Name = fmt.Sprintf("%v", s.Key) - } - if vv.Driver == "" { - vv.Driver = "local" - } - v.Volumes = append(v.Volumes, &vv) - } - return err -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/interrupt/interrupt.go b/vendor/github.com/cncd/pipeline/pipeline/interrupt/interrupt.go deleted file mode 100644 index 0296d75..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/interrupt/interrupt.go +++ /dev/null @@ -1,36 +0,0 @@ -package interrupt - -import ( - "context" - "os" - "os/signal" -) - -// WithContext returns a copy of parent context whose Done channel is closed -// when an os interrupt signal is received. -func WithContext(ctx context.Context) context.Context { - return WithContextFunc(ctx, func() { - println("ctrl+c received, terminating process") - }) -} - -// WithContextFunc returns a copy of parent context that is cancelled when -// an os interrupt signal is received. The callback function f is invoked -// before cancellation. -func WithContextFunc(ctx context.Context, f func()) context.Context { - ctx, cancel := context.WithCancel(ctx) - go func() { - c := make(chan os.Signal) - signal.Notify(c, os.Interrupt) - defer signal.Stop(c) - - select { - case <-ctx.Done(): - case <-c: - f() - cancel() - } - }() - - return ctx -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/logger.go b/vendor/github.com/cncd/pipeline/pipeline/logger.go deleted file mode 100644 index d55734e..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/logger.go +++ /dev/null @@ -1,20 +0,0 @@ -package pipeline - -import ( - "github.com/cncd/pipeline/pipeline/backend" - "github.com/cncd/pipeline/pipeline/multipart" -) - -// Logger handles the process logging. -type Logger interface { - Log(*backend.Step, multipart.Reader) error -} - -// LogFunc type is an adapter to allow the use of an ordinary -// function for process logging. -type LogFunc func(*backend.Step, multipart.Reader) error - -// Log calls f(proc, r). -func (f LogFunc) Log(step *backend.Step, r multipart.Reader) error { - return f(step, r) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/multipart/doc.go b/vendor/github.com/cncd/pipeline/pipeline/multipart/doc.go deleted file mode 100644 index 56a9c26..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/multipart/doc.go +++ /dev/null @@ -1 +0,0 @@ -package multipart diff --git a/vendor/github.com/cncd/pipeline/pipeline/multipart/reader.go b/vendor/github.com/cncd/pipeline/pipeline/multipart/reader.go deleted file mode 100644 index 3ff9e3c..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/multipart/reader.go +++ /dev/null @@ -1,103 +0,0 @@ -package multipart - -import ( - "bufio" - "bytes" - "io" - "mime/multipart" - "net/textproto" -) - -type ( - // Reader is an iterator over parts in a multipart log stream. - Reader interface { - // NextPart returns the next part in the multipart or - // an error. When there are no more parts, the error - // io.EOF is returned. - NextPart() (Part, error) - } - - // A Part represents a single part in a multipart body. - Part interface { - io.Reader - - // Header returns the headers of the body with the - // keys canonicalized. - Header() textproto.MIMEHeader - - // FileName returns the filename parameter of the - // Content-Disposition header. - FileName() string - - // FormName returns the name parameter if p has a - // Content-Disposition of type form-data. - FormName() string - } -) - -// New returns a new multipart Reader. -func New(r io.Reader) Reader { - buf := bufio.NewReader(r) - out, _ := buf.Peek(8) - - if bytes.Equal(out, []byte("PIPELINE")) { - return &multipartReader{ - reader: multipart.NewReader(buf, "boundary"), - } - } - return &textReader{ - reader: buf, - } -} - -// -// wraps the stdlib multi-part reader -// - -type multipartReader struct { - reader *multipart.Reader -} - -func (r *multipartReader) NextPart() (Part, error) { - next, err := r.reader.NextPart() - if err != nil { - return nil, err - } - part := new(part) - part.Reader = next - part.filename = next.FileName() - part.formname = next.FormName() - part.header = next.Header - return part, nil -} - -// -// wraps a simple io.Reader to satisfy the multi-part interface -// - -type textReader struct { - reader io.Reader - done bool -} - -func (r *textReader) NextPart() (Part, error) { - if r.done { - return nil, io.EOF - } - r.done = true - p := new(part) - p.Reader = r.reader - return p, nil -} - -type part struct { - io.Reader - - filename string - formname string - header textproto.MIMEHeader -} - -func (p *part) Header() textproto.MIMEHeader { return p.header } -func (p *part) FileName() string { return p.filename } -func (p *part) FormName() string { return p.filename } diff --git a/vendor/github.com/cncd/pipeline/pipeline/option.go b/vendor/github.com/cncd/pipeline/pipeline/option.go deleted file mode 100644 index 4b23329..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/option.go +++ /dev/null @@ -1,38 +0,0 @@ -package pipeline - -import ( - "context" - - "github.com/cncd/pipeline/pipeline/backend" -) - -// Option configures a runtime option. -type Option func(*Runtime) - -// WithEngine returns an option configured with a runtime engine. -func WithEngine(engine backend.Engine) Option { - return func(r *Runtime) { - r.engine = engine - } -} - -// WithLogger returns an option configured with a runtime logger. -func WithLogger(logger Logger) Option { - return func(r *Runtime) { - r.logger = logger - } -} - -// WithTracer returns an option configured with a runtime tracer. -func WithTracer(tracer Tracer) Option { - return func(r *Runtime) { - r.tracer = tracer - } -} - -// WithContext returns an option configured with a context. -func WithContext(ctx context.Context) Option { - return func(r *Runtime) { - r.ctx = ctx - } -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/parse.go b/vendor/github.com/cncd/pipeline/pipeline/parse.go deleted file mode 100644 index 89d6417..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/parse.go +++ /dev/null @@ -1,37 +0,0 @@ -package pipeline - -import ( - "encoding/json" - "io" - "os" - "strings" - - "github.com/cncd/pipeline/pipeline/backend" -) - -// Parse parses the pipeline config from an io.Reader. -func Parse(r io.Reader) (*backend.Config, error) { - cfg := new(backend.Config) - err := json.NewDecoder(r).Decode(cfg) - if err != nil { - return nil, err - } - return cfg, nil -} - -// ParseFile parses the pipeline config from a file. -func ParseFile(path string) (*backend.Config, error) { - f, err := os.Open(path) - if err != nil { - return nil, err - } - defer f.Close() - return Parse(f) -} - -// ParseString parses the pipeline config from a string. -func ParseString(s string) (*backend.Config, error) { - return Parse( - strings.NewReader(s), - ) -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/pipeline.go b/vendor/github.com/cncd/pipeline/pipeline/pipeline.go deleted file mode 100644 index be6970f..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/pipeline.go +++ /dev/null @@ -1,175 +0,0 @@ -package pipeline - -import ( - "context" - "time" - - "golang.org/x/sync/errgroup" - - "github.com/cncd/pipeline/pipeline/backend" - "github.com/cncd/pipeline/pipeline/multipart" -) - -type ( - // State defines the pipeline and process state. - State struct { - // Global state of the pipeline. - Pipeline struct { - // Pipeline time started - Time int64 `json:"time"` - // Current pipeline step - Step *backend.Step `json:"step"` - // Current pipeline error state - Error error `json:"error"` - } - - // Current process state. - Process *backend.State - } -) - -// Runtime is a configuration runtime. -type Runtime struct { - err error - spec *backend.Config - engine backend.Engine - started int64 - - ctx context.Context - tracer Tracer - logger Logger -} - -// New returns a new runtime using the specified runtime -// configuration and runtime engine. -func New(spec *backend.Config, opts ...Option) *Runtime { - r := new(Runtime) - r.spec = spec - r.ctx = context.Background() - for _, opts := range opts { - opts(r) - } - return r -} - -// Run starts the runtime and waits for it to complete. -func (r *Runtime) Run() error { - defer func() { - r.engine.Destroy(r.spec) - }() - - r.started = time.Now().Unix() - if err := r.engine.Setup(r.spec); err != nil { - return err - } - - for _, stage := range r.spec.Stages { - select { - case <-r.ctx.Done(): - return ErrCancel - case err := <-r.execAll(stage.Steps): - if err != nil { - r.err = err - } - } - } - - return r.err -} - -// -// -// - -func (r *Runtime) execAll(procs []*backend.Step) <-chan error { - var g errgroup.Group - done := make(chan error) - - for _, proc := range procs { - proc := proc - g.Go(func() error { - return r.exec(proc) - }) - } - - go func() { - done <- g.Wait() - close(done) - }() - return done -} - -// -// -// - -func (r *Runtime) exec(proc *backend.Step) error { - switch { - case r.err != nil && proc.OnFailure == false: - return nil - case r.err == nil && proc.OnSuccess == false: - return nil - } - - if r.tracer != nil { - state := new(State) - state.Pipeline.Time = r.started - state.Pipeline.Error = r.err - state.Pipeline.Step = proc - state.Process = new(backend.State) // empty - if err := r.tracer.Trace(state); err == ErrSkip { - return nil - } else if err != nil { - return err - } - } - - if err := r.engine.Exec(proc); err != nil { - return err - } - - if r.logger != nil { - rc, err := r.engine.Tail(proc) - if err != nil { - return err - } - - go func() { - r.logger.Log(proc, multipart.New(rc)) - rc.Close() - }() - } - - if proc.Detached { - return nil - } - - wait, err := r.engine.Wait(proc) - if err != nil { - return err - } - - if r.tracer != nil { - state := new(State) - state.Pipeline.Time = r.started - state.Pipeline.Error = r.err - state.Pipeline.Step = proc - state.Process = wait - if err := r.tracer.Trace(state); err != nil { - return err - } - } - - if wait.OOMKilled { - return &OomError{ - Name: proc.Name, - Code: wait.ExitCode, - } - } else if wait.ExitCode != 0 { - return &ExitError{ - Name: proc.Name, - Code: wait.ExitCode, - } - } - return nil -} diff --git a/vendor/github.com/cncd/pipeline/pipeline/tracer.go b/vendor/github.com/cncd/pipeline/pipeline/tracer.go deleted file mode 100644 index 14e3a19..0000000 --- a/vendor/github.com/cncd/pipeline/pipeline/tracer.go +++ /dev/null @@ -1,45 +0,0 @@ -package pipeline - -import ( - "strconv" - "time" -) - -// Tracer handles process tracing. -type Tracer interface { - Trace(*State) error -} - -// TraceFunc type is an adapter to allow the use of ordinary -// functions as a Tracer. -type TraceFunc func(*State) error - -// Trace calls f(proc, state). -func (f TraceFunc) Trace(state *State) error { - return f(state) -} - -// DefaultTracer provides a tracer that updates the CI_ enviornment -// variables to include the correct timestamp and status. -// TODO(bradrydzewski) find either a new home or better name for this. -var DefaultTracer = TraceFunc(func(state *State) error { - if state.Process.Exited { - return nil - } - if state.Pipeline.Step.Environment == nil { - return nil - } - state.Pipeline.Step.Environment["CI_BUILD_STATUS"] = "success" - state.Pipeline.Step.Environment["CI_BUILD_STARTED"] = strconv.FormatInt(state.Pipeline.Time, 10) - state.Pipeline.Step.Environment["CI_BUILD_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) - - state.Pipeline.Step.Environment["CI_JOB_STATUS"] = "success" - state.Pipeline.Step.Environment["CI_JOB_STARTED"] = strconv.FormatInt(state.Pipeline.Time, 10) - state.Pipeline.Step.Environment["CI_JOB_FINISHED"] = strconv.FormatInt(time.Now().Unix(), 10) - - if state.Pipeline.Error != nil { - state.Pipeline.Step.Environment["CI_BUILD_STATUS"] = "failure" - state.Pipeline.Step.Environment["CI_JOB_STATUS"] = "failure" - } - return nil -}) diff --git a/vendor/github.com/docker/distribution/AUTHORS b/vendor/github.com/docker/distribution/AUTHORS deleted file mode 100644 index 252ff8a..0000000 --- a/vendor/github.com/docker/distribution/AUTHORS +++ /dev/null @@ -1,182 +0,0 @@ -a-palchikov -Aaron Lehmann -Aaron Schlesinger -Aaron Vinson -Adam Duke -Adam Enger -Adrian Mouat -Ahmet Alp Balkan -Alex Chan -Alex Elman -Alexey Gladkov -allencloud -amitshukla -Amy Lindburg -Andrew Hsu -Andrew Meredith -Andrew T Nguyen -Andrey Kostov -Andy Goldstein -Anis Elleuch -Anton Tiurin -Antonio Mercado -Antonio Murdaca -Anusha Ragunathan -Arien Holthuizen -Arnaud Porterie -Arthur Baars -Asuka Suzuki -Avi Miller -Ayose Cazorla -BadZen -Ben Bodenmiller -Ben Firshman -bin liu -Brian Bland -burnettk -Carson A -Cezar Sa Espinola -Charles Smith -Chris Dillon -cuiwei13 -cyli -Daisuke Fujita -Daniel Huhn -Darren Shepherd -Dave Trombley -Dave Tucker -David Lawrence -David Verhasselt -David Xia -davidli -Dejan Golja -Derek McGowan -Diogo Mónica -DJ Enriquez -Donald Huang -Doug Davis -Edgar Lee -Eric Yang -Fabio Berchtold -Fabio Huser -farmerworking -Felix Yan -Florentin Raud -Frank Chen -Frederick F. Kautz IV -gabriell nascimento -Gleb Schukin -harche -Henri Gomez -Hu Keping -Hua Wang -HuKeping -Ian Babrou -igayoso -Jack Griffin -James Findley -Jason Freidman -Jason Heiss -Jeff Nickoloff -Jess Frazelle -Jessie Frazelle -jhaohai -Jianqing Wang -Jihoon Chung -Joao Fernandes -John Mulhausen -John Starks -Jon Johnson -Jon Poler -Jonathan Boulle -Jordan Liggitt -Josh Chorlton -Josh Hawn -Julien Fernandez -Ke Xu -Keerthan Mala -Kelsey Hightower -Kenneth Lim -Kenny Leung -Li Yi -Liu Hua -liuchang0812 -Lloyd Ramey -Louis Kottmann -Luke Carpenter -Marcus Martins -Mary Anthony -Matt Bentley -Matt Duch -Matt Moore -Matt Robenolt -Matthew Green -Michael Prokop -Michal Minar -Michal Minář -Mike Brown -Miquel Sabaté -Misty Stanley-Jones -Misty Stanley-Jones -Morgan Bauer -moxiegirl -Nathan Sullivan -nevermosby -Nghia Tran -Nikita Tarasov -Noah Treuhaft -Nuutti Kotivuori -Oilbeater -Olivier Gambier -Olivier Jacques -Omer Cohen -Patrick Devine -Phil Estes -Philip Misiowiec -Pierre-Yves Ritschard -Qiao Anran -Randy Barlow -Richard Scothern -Rodolfo Carvalho -Rusty Conover -Sean Boran -Sebastiaan van Stijn -Sebastien Coavoux -Serge Dubrouski -Sharif Nassar -Shawn Falkner-Horine -Shreyas Karnik -Simon Thulbourn -spacexnice -Spencer Rinehart -Stan Hu -Stefan Majewsky -Stefan Weil -Stephen J Day -Sungho Moon -Sven Dowideit -Sylvain Baubeau -Ted Reed -tgic -Thomas Sjögren -Tianon Gravi -Tibor Vass -Tonis Tiigi -Tony Holdstock-Brown -Trevor Pounds -Troels Thomsen -Victor Vieux -Victoria Bialas -Vincent Batts -Vincent Demeester -Vincent Giersch -W. Trevor King -weiyuan.yl -xg.song -xiekeyang -Yann ROBERT -yaoyao.xyy -yuexiao-wang -yuzou -zhouhaibing089 -姜继忠 diff --git a/vendor/github.com/docker/distribution/LICENSE b/vendor/github.com/docker/distribution/LICENSE deleted file mode 100644 index e06d208..0000000 --- a/vendor/github.com/docker/distribution/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/vendor/github.com/docker/distribution/reference/helpers.go b/vendor/github.com/docker/distribution/reference/helpers.go deleted file mode 100644 index dd7ee0e..0000000 --- a/vendor/github.com/docker/distribution/reference/helpers.go +++ /dev/null @@ -1,12 +0,0 @@ -package reference - -// IsNameOnly returns true if reference only contains a repo name. -func IsNameOnly(ref Named) bool { - if _, ok := ref.(NamedTagged); ok { - return false - } - if _, ok := ref.(Canonical); ok { - return false - } - return true -} diff --git a/vendor/github.com/docker/distribution/reference/normalize.go b/vendor/github.com/docker/distribution/reference/normalize.go deleted file mode 100644 index b19a34e..0000000 --- a/vendor/github.com/docker/distribution/reference/normalize.go +++ /dev/null @@ -1,22 +0,0 @@ -package reference - -var ( - defaultTag = "latest" -) - -// EnsureTagged adds the default tag "latest" to a reference if it only has -// a repo name. -func EnsureTagged(ref Named) NamedTagged { - namedTagged, ok := ref.(NamedTagged) - if !ok { - namedTagged, err := WithTag(ref, defaultTag) - if err != nil { - // Default tag must be valid, to create a NamedTagged - // type with non-validated input the WithTag function - // should be used instead - panic(err) - } - return namedTagged - } - return namedTagged -} diff --git a/vendor/github.com/docker/distribution/reference/reference.go b/vendor/github.com/docker/distribution/reference/reference.go deleted file mode 100644 index 52da523..0000000 --- a/vendor/github.com/docker/distribution/reference/reference.go +++ /dev/null @@ -1,370 +0,0 @@ -// Package reference provides a general type to represent any way of referencing images within the registry. -// Its main purpose is to abstract tags and digests (content-addressable hash). -// -// Grammar -// -// reference := name [ ":" tag ] [ "@" digest ] -// name := [hostname '/'] component ['/' component]* -// hostname := hostcomponent ['.' hostcomponent]* [':' port-number] -// hostcomponent := /([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])/ -// port-number := /[0-9]+/ -// component := alpha-numeric [separator alpha-numeric]* -// alpha-numeric := /[a-z0-9]+/ -// separator := /[_.]|__|[-]*/ -// -// tag := /[\w][\w.-]{0,127}/ -// -// digest := digest-algorithm ":" digest-hex -// digest-algorithm := digest-algorithm-component [ digest-algorithm-separator digest-algorithm-component ] -// digest-algorithm-separator := /[+.-_]/ -// digest-algorithm-component := /[A-Za-z][A-Za-z0-9]*/ -// digest-hex := /[0-9a-fA-F]{32,}/ ; At least 128 bit digest value -package reference - -import ( - "errors" - "fmt" - "path" - "strings" - - "github.com/opencontainers/go-digest" -) - -const ( - // NameTotalLengthMax is the maximum total number of characters in a repository name. - NameTotalLengthMax = 255 -) - -var ( - // ErrReferenceInvalidFormat represents an error while trying to parse a string as a reference. - ErrReferenceInvalidFormat = errors.New("invalid reference format") - - // ErrTagInvalidFormat represents an error while trying to parse a string as a tag. - ErrTagInvalidFormat = errors.New("invalid tag format") - - // ErrDigestInvalidFormat represents an error while trying to parse a string as a tag. - ErrDigestInvalidFormat = errors.New("invalid digest format") - - // ErrNameContainsUppercase is returned for invalid repository names that contain uppercase characters. - ErrNameContainsUppercase = errors.New("repository name must be lowercase") - - // ErrNameEmpty is returned for empty, invalid repository names. - ErrNameEmpty = errors.New("repository name must have at least one component") - - // ErrNameTooLong is returned when a repository name is longer than NameTotalLengthMax. - ErrNameTooLong = fmt.Errorf("repository name must not be more than %v characters", NameTotalLengthMax) -) - -// Reference is an opaque object reference identifier that may include -// modifiers such as a hostname, name, tag, and digest. -type Reference interface { - // String returns the full reference - String() string -} - -// Field provides a wrapper type for resolving correct reference types when -// working with encoding. -type Field struct { - reference Reference -} - -// AsField wraps a reference in a Field for encoding. -func AsField(reference Reference) Field { - return Field{reference} -} - -// Reference unwraps the reference type from the field to -// return the Reference object. This object should be -// of the appropriate type to further check for different -// reference types. -func (f Field) Reference() Reference { - return f.reference -} - -// MarshalText serializes the field to byte text which -// is the string of the reference. -func (f Field) MarshalText() (p []byte, err error) { - return []byte(f.reference.String()), nil -} - -// UnmarshalText parses text bytes by invoking the -// reference parser to ensure the appropriately -// typed reference object is wrapped by field. -func (f *Field) UnmarshalText(p []byte) error { - r, err := Parse(string(p)) - if err != nil { - return err - } - - f.reference = r - return nil -} - -// Named is an object with a full name -type Named interface { - Reference - Name() string -} - -// Tagged is an object which has a tag -type Tagged interface { - Reference - Tag() string -} - -// NamedTagged is an object including a name and tag. -type NamedTagged interface { - Named - Tag() string -} - -// Digested is an object which has a digest -// in which it can be referenced by -type Digested interface { - Reference - Digest() digest.Digest -} - -// Canonical reference is an object with a fully unique -// name including a name with hostname and digest -type Canonical interface { - Named - Digest() digest.Digest -} - -// SplitHostname splits a named reference into a -// hostname and name string. If no valid hostname is -// found, the hostname is empty and the full value -// is returned as name -func SplitHostname(named Named) (string, string) { - name := named.Name() - match := anchoredNameRegexp.FindStringSubmatch(name) - if len(match) != 3 { - return "", name - } - return match[1], match[2] -} - -// Parse parses s and returns a syntactically valid Reference. -// If an error was encountered it is returned, along with a nil Reference. -// NOTE: Parse will not handle short digests. -func Parse(s string) (Reference, error) { - matches := ReferenceRegexp.FindStringSubmatch(s) - if matches == nil { - if s == "" { - return nil, ErrNameEmpty - } - if ReferenceRegexp.FindStringSubmatch(strings.ToLower(s)) != nil { - return nil, ErrNameContainsUppercase - } - return nil, ErrReferenceInvalidFormat - } - - if len(matches[1]) > NameTotalLengthMax { - return nil, ErrNameTooLong - } - - ref := reference{ - name: matches[1], - tag: matches[2], - } - if matches[3] != "" { - var err error - ref.digest, err = digest.Parse(matches[3]) - if err != nil { - return nil, err - } - } - - r := getBestReferenceType(ref) - if r == nil { - return nil, ErrNameEmpty - } - - return r, nil -} - -// ParseNamed parses s and returns a syntactically valid reference implementing -// the Named interface. The reference must have a name, otherwise an error is -// returned. -// If an error was encountered it is returned, along with a nil Reference. -// NOTE: ParseNamed will not handle short digests. -func ParseNamed(s string) (Named, error) { - ref, err := Parse(s) - if err != nil { - return nil, err - } - named, isNamed := ref.(Named) - if !isNamed { - return nil, fmt.Errorf("reference %s has no name", ref.String()) - } - return named, nil -} - -// WithName returns a named object representing the given string. If the input -// is invalid ErrReferenceInvalidFormat will be returned. -func WithName(name string) (Named, error) { - if len(name) > NameTotalLengthMax { - return nil, ErrNameTooLong - } - if !anchoredNameRegexp.MatchString(name) { - return nil, ErrReferenceInvalidFormat - } - return repository(name), nil -} - -// WithTag combines the name from "name" and the tag from "tag" to form a -// reference incorporating both the name and the tag. -func WithTag(name Named, tag string) (NamedTagged, error) { - if !anchoredTagRegexp.MatchString(tag) { - return nil, ErrTagInvalidFormat - } - if canonical, ok := name.(Canonical); ok { - return reference{ - name: name.Name(), - tag: tag, - digest: canonical.Digest(), - }, nil - } - return taggedReference{ - name: name.Name(), - tag: tag, - }, nil -} - -// WithDigest combines the name from "name" and the digest from "digest" to form -// a reference incorporating both the name and the digest. -func WithDigest(name Named, digest digest.Digest) (Canonical, error) { - if !anchoredDigestRegexp.MatchString(digest.String()) { - return nil, ErrDigestInvalidFormat - } - if tagged, ok := name.(Tagged); ok { - return reference{ - name: name.Name(), - tag: tagged.Tag(), - digest: digest, - }, nil - } - return canonicalReference{ - name: name.Name(), - digest: digest, - }, nil -} - -// Match reports whether ref matches the specified pattern. -// See https://godoc.org/path#Match for supported patterns. -func Match(pattern string, ref Reference) (bool, error) { - matched, err := path.Match(pattern, ref.String()) - if namedRef, isNamed := ref.(Named); isNamed && !matched { - matched, _ = path.Match(pattern, namedRef.Name()) - } - return matched, err -} - -// TrimNamed removes any tag or digest from the named reference. -func TrimNamed(ref Named) Named { - return repository(ref.Name()) -} - -func getBestReferenceType(ref reference) Reference { - if ref.name == "" { - // Allow digest only references - if ref.digest != "" { - return digestReference(ref.digest) - } - return nil - } - if ref.tag == "" { - if ref.digest != "" { - return canonicalReference{ - name: ref.name, - digest: ref.digest, - } - } - return repository(ref.name) - } - if ref.digest == "" { - return taggedReference{ - name: ref.name, - tag: ref.tag, - } - } - - return ref -} - -type reference struct { - name string - tag string - digest digest.Digest -} - -func (r reference) String() string { - return r.name + ":" + r.tag + "@" + r.digest.String() -} - -func (r reference) Name() string { - return r.name -} - -func (r reference) Tag() string { - return r.tag -} - -func (r reference) Digest() digest.Digest { - return r.digest -} - -type repository string - -func (r repository) String() string { - return string(r) -} - -func (r repository) Name() string { - return string(r) -} - -type digestReference digest.Digest - -func (d digestReference) String() string { - return d.String() -} - -func (d digestReference) Digest() digest.Digest { - return digest.Digest(d) -} - -type taggedReference struct { - name string - tag string -} - -func (t taggedReference) String() string { - return t.name + ":" + t.tag -} - -func (t taggedReference) Name() string { - return t.name -} - -func (t taggedReference) Tag() string { - return t.tag -} - -type canonicalReference struct { - name string - digest digest.Digest -} - -func (c canonicalReference) String() string { - return c.name + "@" + c.digest.String() -} - -func (c canonicalReference) Name() string { - return c.name -} - -func (c canonicalReference) Digest() digest.Digest { - return c.digest -} diff --git a/vendor/github.com/docker/distribution/reference/regexp.go b/vendor/github.com/docker/distribution/reference/regexp.go deleted file mode 100644 index 9a7d366..0000000 --- a/vendor/github.com/docker/distribution/reference/regexp.go +++ /dev/null @@ -1,124 +0,0 @@ -package reference - -import "regexp" - -var ( - // alphaNumericRegexp defines the alpha numeric atom, typically a - // component of names. This only allows lower case characters and digits. - alphaNumericRegexp = match(`[a-z0-9]+`) - - // separatorRegexp defines the separators allowed to be embedded in name - // components. This allow one period, one or two underscore and multiple - // dashes. - separatorRegexp = match(`(?:[._]|__|[-]*)`) - - // nameComponentRegexp restricts registry path component names to start - // with at least one letter or number, with following parts able to be - // separated by one period, one or two underscore and multiple dashes. - nameComponentRegexp = expression( - alphaNumericRegexp, - optional(repeated(separatorRegexp, alphaNumericRegexp))) - - // hostnameComponentRegexp restricts the registry hostname component of a - // repository name to start with a component as defined by hostnameRegexp - // and followed by an optional port. - hostnameComponentRegexp = match(`(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])`) - - // hostnameRegexp defines the structure of potential hostname components - // that may be part of image names. This is purposely a subset of what is - // allowed by DNS to ensure backwards compatibility with Docker image - // names. - hostnameRegexp = expression( - hostnameComponentRegexp, - optional(repeated(literal(`.`), hostnameComponentRegexp)), - optional(literal(`:`), match(`[0-9]+`))) - - // TagRegexp matches valid tag names. From docker/docker:graph/tags.go. - TagRegexp = match(`[\w][\w.-]{0,127}`) - - // anchoredTagRegexp matches valid tag names, anchored at the start and - // end of the matched string. - anchoredTagRegexp = anchored(TagRegexp) - - // DigestRegexp matches valid digests. - DigestRegexp = match(`[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}`) - - // anchoredDigestRegexp matches valid digests, anchored at the start and - // end of the matched string. - anchoredDigestRegexp = anchored(DigestRegexp) - - // NameRegexp is the format for the name component of references. The - // regexp has capturing groups for the hostname and name part omitting - // the separating forward slash from either. - NameRegexp = expression( - optional(hostnameRegexp, literal(`/`)), - nameComponentRegexp, - optional(repeated(literal(`/`), nameComponentRegexp))) - - // anchoredNameRegexp is used to parse a name value, capturing the - // hostname and trailing components. - anchoredNameRegexp = anchored( - optional(capture(hostnameRegexp), literal(`/`)), - capture(nameComponentRegexp, - optional(repeated(literal(`/`), nameComponentRegexp)))) - - // ReferenceRegexp is the full supported format of a reference. The regexp - // is anchored and has capturing groups for name, tag, and digest - // components. - ReferenceRegexp = anchored(capture(NameRegexp), - optional(literal(":"), capture(TagRegexp)), - optional(literal("@"), capture(DigestRegexp))) -) - -// match compiles the string to a regular expression. -var match = regexp.MustCompile - -// literal compiles s into a literal regular expression, escaping any regexp -// reserved characters. -func literal(s string) *regexp.Regexp { - re := match(regexp.QuoteMeta(s)) - - if _, complete := re.LiteralPrefix(); !complete { - panic("must be a literal") - } - - return re -} - -// expression defines a full expression, where each regular expression must -// follow the previous. -func expression(res ...*regexp.Regexp) *regexp.Regexp { - var s string - for _, re := range res { - s += re.String() - } - - return match(s) -} - -// optional wraps the expression in a non-capturing group and makes the -// production optional. -func optional(res ...*regexp.Regexp) *regexp.Regexp { - return match(group(expression(res...)).String() + `?`) -} - -// repeated wraps the regexp in a non-capturing group to get one or more -// matches. -func repeated(res ...*regexp.Regexp) *regexp.Regexp { - return match(group(expression(res...)).String() + `+`) -} - -// group wraps the regexp in a non-capturing group. -func group(res ...*regexp.Regexp) *regexp.Regexp { - return match(`(?:` + expression(res...).String() + `)`) -} - -// capture wraps the expression in a capturing group. -func capture(res ...*regexp.Regexp) *regexp.Regexp { - return match(`(` + expression(res...).String() + `)`) -} - -// anchored anchors the regular expression by adding start and end delimiters. -func anchored(res ...*regexp.Regexp) *regexp.Regexp { - return match(`^` + expression(res...).String() + `$`) -} diff --git a/vendor/github.com/docker/docker/AUTHORS b/vendor/github.com/docker/docker/AUTHORS deleted file mode 100644 index 246e2a3..0000000 --- a/vendor/github.com/docker/docker/AUTHORS +++ /dev/null @@ -1,1652 +0,0 @@ -# This file lists all individuals having contributed content to the repository. -# For how it is generated, see `hack/generate-authors.sh`. - -Aanand Prasad -Aaron Davidson -Aaron Feng -Aaron Huslage -Aaron Lehmann -Aaron Welch -Abel Muiño -Abhijeet Kasurde -Abhinav Ajgaonkar -Abhishek Chanda -Abin Shahab -Adam Avilla -Adam Kunk -Adam Miller -Adam Mills -Adam Singer -Adam Walz -Aditi Rajagopal -Aditya -Adolfo Ochagavía -Adria Casas -Adrian Moisey -Adrian Mouat -Adrian Oprea -Adrien Folie -Adrien Gallouët -Ahmed Kamal -Ahmet Alp Balkan -Aidan Feldman -Aidan Hobson Sayers -AJ Bowen -Ajey Charantimath -ajneu -Akihiro Suda -Al Tobey -alambike -Alan Scherger -Alan Thompson -Albert Callarisa -Albert Zhang -Aleksa Sarai -Aleksandrs Fadins -Alena Prokharchyk -Alessandro Boch -Alessio Biancalana -Alex Chan -Alex Coventry -Alex Crawford -Alex Ellis -Alex Gaynor -Alex Olshansky -Alex Samorukov -Alex Warhawk -Alexander Artemenko -Alexander Boyd -Alexander Larsson -Alexander Morozov -Alexander Shopov -Alexandre Beslic -Alexandre González -Alexandru Sfirlogea -Alexey Guskov -Alexey Kotlyarov -Alexey Shamrin -Alexis THOMAS -Ali Dehghani -Allen Madsen -Allen Sun -almoehi -Alvaro Saurin -Alvin Richards -amangoel -Amen Belayneh -Amit Bakshi -Amit Krishnan -Amit Shukla -Amy Lindburg -Anand Patil -AnandkumarPatel -Anatoly Borodin -Anchal Agrawal -Anders Janmyr -Andre Dublin <81dublin@gmail.com> -Andre Granovsky -Andrea Luzzardi -Andrea Turli -Andreas Köhler -Andreas Savvides -Andreas Tiefenthaler -Andrei Gherzan -Andrew C. Bodine -Andrew Clay Shafer -Andrew Duckworth -Andrew France -Andrew Gerrand -Andrew Guenther -Andrew Kuklewicz -Andrew Macgregor -Andrew Macpherson -Andrew Martin -Andrew Munsell -Andrew Po -Andrew Weiss -Andrew Williams -Andrews Medina -Andrey Petrov -Andrey Stolbovsky -André Martins -andy -Andy Chambers -andy diller -Andy Goldstein -Andy Kipp -Andy Rothfusz -Andy Smith -Andy Wilson -Anes Hasicic -Anil Belur -Anil Madhavapeddy -Ankush Agarwal -Anonmily -Anthon van der Neut -Anthony Baire -Anthony Bishopric -Anthony Dahanne -Anton Löfgren -Anton Nikitin -Anton Polonskiy -Anton Tiurin -Antonio Murdaca -Antonis Kalipetis -Antony Messerli -Anuj Bahuguna -Anusha Ragunathan -apocas -ArikaChen -Arnaud Lefebvre -Arnaud Porterie -Arthur Barr -Arthur Gautier -Artur Meyster -Arun Gupta -Asbjørn Enge -averagehuman -Avi Das -Avi Miller -Avi Vaid -ayoshitake -Azat Khuyiyakhmetov -Bardia Keyoumarsi -Barnaby Gray -Barry Allard -Bartłomiej Piotrowski -Bastiaan Bakker -bdevloed -Ben Firshman -Ben Golub -Ben Hall -Ben Sargent -Ben Severson -Ben Toews -Ben Wiklund -Benjamin Atkin -Benoit Chesneau -Bernerd Schaefer -Bert Goethals -Bharath Thiruveedula -Bhiraj Butala -Bilal Amarni -Bill W -bin liu -Blake Geno -Boaz Shuster -bobby abbott -boucher -Bouke Haarsma -Boyd Hemphill -boynux -Bradley Cicenas -Bradley Wright -Brandon Liu -Brandon Philips -Brandon Rhodes -Brendan Dixon -Brent Salisbury -Brett Higgins -Brett Kochendorfer -Brian (bex) Exelbierd -Brian Bland -Brian DeHamer -Brian Dorsey -Brian Flad -Brian Goff -Brian McCallister -Brian Olsen -Brian Shumate -Brian Torres-Gil -Brian Trump -Brice Jaglin -Briehan Lombaard -Bruno Bigras -Bruno Binet -Bruno Gazzera -Bruno Renié -Bryan Bess -Bryan Boreham -Bryan Matsuo -Bryan Murphy -buddhamagnet -Burke Libbey -Byung Kang -Caleb Spare -Calen Pennington -Cameron Boehmer -Cameron Spear -Campbell Allen -Candid Dauth -Cao Weiwei -Carl Henrik Lunde -Carl Loa Odin -Carl X. Su -Carlos Alexandro Becker -Carlos Sanchez -Carol Fager-Higgins -Cary -Casey Bisson -Cedric Davies -Cezar Sa Espinola -Chad Swenson -Chance Zibolski -Chander G -Charles Chan -Charles Hooper -Charles Law -Charles Lindsay -Charles Merriam -Charles Sarrazin -Charles Smith -Charlie Lewis -Chase Bolt -ChaYoung You -Chen Chao -Chen Hanxiao -cheney90 -Chewey -Chia-liang Kao -chli -Cholerae Hu -Chris Alfonso -Chris Armstrong -Chris Dituri -Chris Fordham -Chris Khoo -Chris McKinnel -Chris Seto -Chris Snow -Chris St. Pierre -Chris Stivers -Chris Swan -Chris Wahl -Chris Weyl -chrismckinnel -Christian Berendt -Christian Böhme -Christian Persson -Christian Rotzoll -Christian Simon -Christian Stefanescu -ChristoperBiscardi -Christophe Mehay -Christophe Troestler -Christopher Currie -Christopher Jones -Christopher Latham -Christopher Rigor -Christy Perez -Chun Chen -Ciro S. Costa -Clayton Coleman -Clinton Kitson -Coenraad Loubser -Colin Dunklau -Colin Rice -Colin Walters -Collin Guarino -Colm Hally -companycy -Cory Forsyth -cressie176 -CrimsonGlory -Cristian Staretu -cristiano balducci -Cruceru Calin-Cristian -Cyril F -Daan van Berkel -Daehyeok Mun -Dafydd Crosby -dalanlan -Damian Smyth -Damien Nadé -Damien Nozay -Damjan Georgievski -Dan Anolik -Dan Buch -Dan Cotora -Dan Feldman -Dan Griffin -Dan Hirsch -Dan Keder -Dan Levy -Dan McPherson -Dan Stine -Dan Walsh -Dan Williams -Daniel Antlinger -Daniel Exner -Daniel Farrell -Daniel Garcia -Daniel Gasienica -Daniel Hiltgen -Daniel Menet -Daniel Mizyrycki -Daniel Nephin -Daniel Norberg -Daniel Nordberg -Daniel Robinson -Daniel S -Daniel Von Fange -Daniel X Moore -Daniel YC Lin -Daniel Zhang -Daniel, Dao Quang Minh -Danny Berger -Danny Yates -Darren Coxall -Darren Shepherd -Darren Stahl -Davanum Srinivas -Dave Barboza -Dave Henderson -Dave MacDonald -Dave Tucker -David Anderson -David Calavera -David Corking -David Cramer -David Currie -David Davis -David Dooling -David Gageot -David Gebler -David Lawrence -David Lechner -David M. Karr -David Mackey -David Mat -David Mcanulty -David Pelaez -David R. Jenni -David Röthlisberger -David Sheets -David Sissitka -David Trott -David Xia -David Young -Davide Ceretti -Dawn Chen -dbdd -dcylabs -decadent -deed02392 -Deng Guangxing -Deni Bertovic -Denis Gladkikh -Denis Ollier -Dennis Docter -Derek -Derek -Derek Ch -Derek McGowan -Deric Crago -Deshi Xiao -devmeyster -Devvyn Murphy -Dharmit Shah -Dieter Reuter -Dillon Dixon -Dima Stopel -Dimitri John Ledkov -Dimitris Rozakis -Dimitry Andric -Dinesh Subhraveti -Diogo Monica -DiuDiugirl -Djibril Koné -dkumor -Dmitri Logvinenko -Dmitri Shuralyov -Dmitry Demeshchuk -Dmitry Gusev -Dmitry Smirnov -Dmitry V. Krivenok -Dmitry Vorobev -Dolph Mathews -Dominik Finkbeiner -Dominik Honnef -Don Kirkby -Don Kjer -Don Spaulding -Donald Huang -Dong Chen -Donovan Jones -Doron Podoleanu -Doug Davis -Doug MacEachern -Doug Tangren -Dr Nic Williams -dragon788 -Dražen Lučanin -Drew Erny -Dustin Sallings -Ed Costello -Edmund Wagner -Eiichi Tsukata -Eike Herzbach -Eivin Giske Skaaren -Eivind Uggedal -Elan Ruusamäe -Elias Probst -Elijah Zupancic -eluck -Elvir Kuric -Emil Hernvall -Emily Maier -Emily Rose -Emir Ozer -Enguerran -Eohyung Lee -Eric Barch -Eric Hanchrow -Eric Lee -Eric Myhre -Eric Paris -Eric Rafaloff -Eric Rosenberg -Eric Sage -Eric Windisch -Eric Yang -Eric-Olivier Lamey -Erik Bray -Erik Dubbelboer -Erik Hollensbe -Erik Inge Bolsø -Erik Kristensen -Erik Weathers -Erno Hopearuoho -Erwin van der Koogh -Euan -Eugene Yakubovich -eugenkrizo -evalle -Evan Allrich -Evan Carmi -Evan Hazlett -Evan Krall -Evan Phoenix -Evan Wies -Everett Toews -Evgeny Vereshchagin -Ewa Czechowska -Eystein Måløy Stenberg -ezbercih -Fabiano Rosas -Fabio Falci -Fabio Rapposelli -Fabio Rehm -Fabrizio Regini -Fabrizio Soppelsa -Faiz Khan -falmp -Fangyuan Gao <21551127@zju.edu.cn> -Fareed Dudhia -Fathi Boudra -Federico Gimenez -Felix Geisendörfer -Felix Hupfeld -Felix Rabe -Felix Ruess -Felix Schindler -Ferenc Szabo -Fernando -Fero Volar -Ferran Rodenas -Filipe Brandenburger -Filipe Oliveira -fl0yd -Flavio Castelli -FLGMwt -Florian -Florian Klein -Florian Maier -Florian Weingarten -Florin Asavoaie -fonglh -fortinux -Francesc Campoy -Francis Chuang -Francisco Carriedo -Francisco Souza -Frank Groeneveld -Frank Herrmann -Frank Macreery -Frank Rosquin -Fred Lifton -Frederick F. Kautz IV -Frederik Loeffert -Frederik Nordahl Jul Sabroe -Freek Kalter -frosforever -fy2462 -Félix Baylac-Jacqué -Félix Cantournet -Gabe Rosenhouse -Gabor Nagy -Gabriel Monroy -GabrielNicolasAvellaneda -Galen Sampson -Gareth Rushgrove -Garrett Barboza -Gaurav -gautam, prasanna -GennadySpb -Geoffrey Bachelet -George MacRorie -George Xie -Georgi Hristozov -Gereon Frey -German DZ -Gert van Valkenhoef -Gianluca Borello -Gildas Cuisinier -gissehel -Giuseppe Mazzotta -Gleb Fotengauer-Malinovskiy -Gleb M Borisov -Glyn Normington -GoBella -Goffert van Gool -Gosuke Miyashita -Gou Rao -Govinda Fichtner -Grant Reaber -Graydon Hoare -Greg Fausak -Greg Thornton -grossws -grunny -gs11 -Guilhem Lettron -Guilherme Salgado -Guillaume Dufour -Guillaume J. Charmes -guoxiuyan -Gurjeet Singh -Guruprasad -gwx296173 -Günter Zöchbauer -Hans Kristian Flaatten -Hans Rødtang -Hao Shu Wei -Hao Zhang <21521210@zju.edu.cn> -Harald Albers -Harley Laue -Harold Cooper -Harry Zhang -He Simei -heartlock <21521209@zju.edu.cn> -Hector Castro -Henning Sprang -Hobofan -Hollie Teal -Hong Xu -hsinko <21551195@zju.edu.cn> -Hu Keping -Hu Tao -Huanzhong Zhang -Huayi Zhang -Hugo Duncan -Hugo Marisco <0x6875676f@gmail.com> -Hunter Blanks -huqun -Huu Nguyen -hyeongkyu.lee -hyp3rdino -Hyzhou <1187766782@qq.com> -Ian Babrou -Ian Bishop -Ian Bull -Ian Calvert -Ian Lee -Ian Main -Ian Truslove -Iavael -Icaro Seara -Igor Dolzhikov -Ilkka Laukkanen -Ilya Dmitrichenko -Ilya Gusev -ILYA Khlopotov -imre Fitos -inglesp -Ingo Gottwald -Isaac Dupree -Isabel Jimenez -Isao Jonas -Ivan Babrou -Ivan Fraixedes -Ivan Grcic -J Bruni -J. Nunn -Jack Danger Canty -Jacob Atzen -Jacob Edelman -Jake Champlin -Jake Moshenko -jakedt -James Allen -James Carey -James Carr -James DeFelice -James Harrison Fisher -James Kyburz -James Kyle -James Lal -James Mills -James Nugent -James Turnbull -Jamie Hannaford -Jamshid Afshar -Jan Keromnes -Jan Koprowski -Jan Pazdziora -Jan Toebes -Jan-Gerd Tenberge -Jan-Jaap Driessen -Jana Radhakrishnan -Jannick Fahlbusch -Januar Wayong -Jared Biel -Jared Hocutt -Jaroslaw Zabiello -jaseg -Jasmine Hegman -Jason Divock -Jason Giedymin -Jason Green -Jason Hall -Jason Heiss -Jason Livesay -Jason McVetta -Jason Plum -Jason Shepherd -Jason Smith -Jason Sommer -Jason Stangroome -jaxgeller -Jay -Jay -Jay Kamat -Jean-Baptiste Barth -Jean-Baptiste Dalido -Jean-Paul Calderone -Jean-Tiare Le Bigot -Jeff Anderson -Jeff Johnston -Jeff Lindsay -Jeff Mickey -Jeff Minard -Jeff Nickoloff -Jeff Silberman -Jeff Welch -Jeffrey Bolle -Jeffrey Morgan -Jeffrey van Gogh -Jenny Gebske -Jeremy Grosser -Jeremy Price -Jeremy Qian -Jeremy Unruh -Jeroen Jacobs -Jesse Dearing -Jesse Dubay -Jessica Frazelle -Jezeniel Zapanta -jgeiger -Jhon Honce -Ji.Zhilong -Jian Zhang -jianbosun -Jilles Oldenbeuving -Jim Alateras -Jim Perrin -Jimmy Cuadra -Jimmy Puckett -jimmyxian -Jinsoo Park -Jiri Popelka -Jiří Župka -jjy -jmzwcn -Joao Fernandes -Joe Beda -Joe Doliner -Joe Ferguson -Joe Gordon -Joe Shaw -Joe Van Dyk -Joel Friedly -Joel Handwell -Joel Hansson -Joel Wurtz -Joey Geiger -Joey Gibson -Joffrey F -Johan Euphrosine -Johan Rydberg -Johanan Lieberman -Johannes 'fish' Ziemke -John Costa -John Feminella -John Gardiner Myers -John Gossman -John Howard (VM) -John OBrien III -John Starks -John Tims -John Warwick -John Willis -johnharris85 -Jon Wedaman -Jonas Pfenniger -Jonathan A. Sternberg -Jonathan Boulle -Jonathan Camp -Jonathan Dowland -Jonathan Lebon -Jonathan Lomas -Jonathan McCrohan -Jonathan Mueller -Jonathan Pares -Jonathan Rudenberg -Jonathan Stoppani -Joost Cassee -Jordan -Jordan Arentsen -Jordan Sissel -Jose Diaz-Gonzalez -Joseph Anthony Pasquale Holsten -Joseph Hager -Joseph Kern -Josh -Josh Bodah -Josh Chorlton -Josh Hawn -Josh Horwitz -Josh Poimboeuf -Josiah Kiehl -José Tomás Albornoz -JP -jrabbit -Julian Taylor -Julien Barbier -Julien Bisconti -Julien Bordellier -Julien Dubois -Julien Pervillé -Julio Montes -Jun-Ru Chang -Jussi Nummelin -Justas Brazauskas -Justin Cormack -Justin Force -Justin Plock -Justin Simonelis -Justin Terry -Justyn Temme -Jyrki Puttonen -Jérôme Petazzoni -Jörg Thalheim -Kai Blin -Kai Qiang Wu(Kennan) -Kamil Domański -kamjar gerami -Kanstantsin Shautsou -Kara Alexandra -Karan Lyons -Kareem Khazem -kargakis -Karl Grzeszczak -Karol Duleba -Katie McLaughlin -Kato Kazuyoshi -Katrina Owen -Kawsar Saiyeed -kayrus -Ke Xu -Keith Hudgins -Keli Hu -Ken Cochrane -Ken Herner -Ken ICHIKAWA -Kenfe-Mickaël Laventure -Kenjiro Nakayama -Kent Johnson -Kevin "qwazerty" Houdebert -Kevin Burke -Kevin Clark -Kevin J. Lynagh -Kevin Jing Qiu -Kevin Menard -Kevin P. Kucharczyk -Kevin Richardson -Kevin Shi -Kevin Wallace -Kevin Yap -kevinmeredith -Keyvan Fatehi -kies -Kim BKC Carlbacker -Kim Eik -Kimbro Staken -Kir Kolyshkin -Kiran Gangadharan -Kirill Kolyshkin -Kirill SIbirev -knappe -Kohei Tsuruta -Koichi Shiraishi -Konrad Kleine -Konstantin L -Konstantin Pelykh -Krasimir Georgiev -Kris-Mikael Krister -Kristian Haugene -Kristina Zabunova -krrg -Kun Zhang -Kunal Kushwaha -Kyle Conroy -Kyle Linden -kyu -Lachlan Coote -Lai Jiangshan -Lajos Papp -Lakshan Perera -Lalatendu Mohanty -lalyos -Lance Chen -Lance Kinley -Lars Butler -Lars Kellogg-Stedman -Lars R. Damerow -Laszlo Meszaros -Laurent Erignoux -Laurie Voss -Leandro Siqueira -Lee Chao <932819864@qq.com> -Lee, Meng-Han -leeplay -Lei Jitang -Len Weincier -Lennie -Leszek Kowalski -Levi Blackstone -Levi Gross -Lewis Marshall -Lewis Peckover -Liam Macgillavry -Liana Lo -Liang Mingqiang -Liang-Chi Hsieh -liaoqingwei -limsy -Lin Lu -LingFaKe -Linus Heckemann -Liran Tal -Liron Levin -Liu Bo -Liu Hua -lixiaobing10051267 -LIZAO LI -Lloyd Dewolf -Lokesh Mandvekar -longliqiang88 <394564827@qq.com> -Lorenz Leutgeb -Lorenzo Fontana -Louis Opter -Luca Marturana -Luca Orlandi -Luca-Bogdan Grigorescu -Lucas Chan -Lucas Chi -Luciano Mores -Luis Martínez de Bartolomé Izquierdo -Lukas Waslowski -lukaspustina -Lukasz Zajaczkowski -lukemarsden -Lynda O'Leary -Lénaïc Huard -Ma Shimiao -Mabin -Madhav Puri -Madhu Venugopal -Mageee <21521230.zju.edu.cn> -Mahesh Tiyyagura -malnick -Malte Janduda -manchoz -Manfred Touron -Manfred Zabarauskas -Mansi Nahar -mansinahar -Manuel Meurer -Manuel Woelker -mapk0y -Marc Abramowitz -Marc Kuo -Marc Tamsky -Marcelo Salazar -Marco Hennings -Marcus Farkas -Marcus Linke -Marcus Ramberg -Marek Goldmann -Marian Marinov -Marianna Tessel -Mario Loriedo -Marius Gundersen -Marius Sturm -Marius Voila -Mark Allen -Mark McGranaghan -Mark McKinstry -Mark West -Marko Mikulicic -Marko Tibold -Markus Fix -Martijn Dwars -Martijn van Oosterhout -Martin Honermeyer -Martin Kelly -Martin Mosegaard Amdisen -Martin Redmond -Mary Anthony -Masahito Zembutsu -Mason Malone -Mateusz Sulima -Mathias Monnerville -Mathieu Le Marec - Pasquet -Matt Apperson -Matt Bachmann -Matt Bentley -Matt Haggard -Matt Hoyle -Matt McCormick -Matt Moore -Matt Richardson -Matt Robenolt -Matthew Heon -Matthew Mayer -Matthew Mueller -Matthew Riley -Matthias Klumpp -Matthias Kühnle -Matthias Rampke -Matthieu Hauglustaine -mattymo -mattyw -Mauricio Garavaglia -mauriyouth -Max Shytikov -Maxim Fedchyshyn -Maxim Ivanov -Maxim Kulkin -Maxim Treskin -Maxime Petazzoni -Meaglith Ma -meejah -Megan Kostick -Mehul Kar -Mei ChunTao -Mengdi Gao -Mert Yazıcıoğlu -mgniu -Micah Zoltu -Michael A. Smith -Michael Bridgen -Michael Brown -Michael Chiang -Michael Crosby -Michael Currie -Michael Friis -Michael Gorsuch -Michael Grauer -Michael Holzheu -Michael Hudson-Doyle -Michael Huettermann -Michael Käufl -Michael Neale -Michael Prokop -Michael Scharf -Michael Stapelberg -Michael Steinert -Michael Thies -Michael West -Michal Fojtik -Michal Gebauer -Michal Jemala -Michal Minar -Michal Wieczorek -Michaël Pailloncy -Michał Czeraszkiewicz -Michiel@unhosted -Mickaël FORTUNATO -Miguel Angel Fernández -Miguel Morales -Mihai Borobocea -Mihuleacc Sergiu -Mike Brown -Mike Chelen -Mike Danese -Mike Dillon -Mike Dougherty -Mike Gaffney -Mike Goelzer -Mike Leone -Mike MacCana -Mike Naberezny -Mike Snitzer -mikelinjie <294893458@qq.com> -Mikhail Sobolev -Miloslav Trmač -mingqing -Mingzhen Feng -Misty Stanley-Jones -Mitch Capper -mlarcher -Mohammad Banikazemi -Mohammed Aaqib Ansari -Mohit Soni -Morgan Bauer -Morgante Pell -Morgy93 -Morten Siebuhr -Morton Fox -Moysés Borges -mqliang -Mrunal Patel -msabansal -mschurenko -muge -Mustafa Akın -Muthukumar R -Máximo Cuadros -Médi-Rémi Hashim -Nahum Shalman -Nakul Pathak -Nalin Dahyabhai -Nan Monnand Deng -Naoki Orii -Natalie Parker -Natanael Copa -Nate Brennand -Nate Eagleson -Nate Jones -Nathan Hsieh -Nathan Kleyn -Nathan LeClaire -Nathan McCauley -Nathan Williams -Neal McBurnett -Neil Peterson -Nelson Chen -Neyazul Haque -Nghia Tran -Niall O'Higgins -Nicholas E. Rabenau -nick -Nick DeCoursin -Nick Irvine -Nick Parker -Nick Payne -Nick Stenning -Nick Stinemates -Nicola Kabar -Nicolas Borboën -Nicolas De loof -Nicolas Dudebout -Nicolas Goy -Nicolas Kaiser -Nicolás Hock Isaza -Nigel Poulton -NikolaMandic -nikolas -Nirmal Mehta -Nishant Totla -NIWA Hideyuki -noducks -Nolan Darilek -nponeccop -Nuutti Kotivuori -nzwsch -O.S. Tezer -objectified -OddBloke -odk- -Oguz Bilgic -Oh Jinkyun -Ohad Schneider -ohmystack -Ole Reifschneider -Oliver Neal -Olivier Gambier -Olle Jonsson -Oriol Francès -orkaa -Oskar Niburski -Otto Kekäläinen -oyld -ozlerhakan -paetling -pandrew -panticz -Paolo G. Giarrusso -Pascal Borreli -Pascal Hartig -Patrick Böänziger -Patrick Devine -Patrick Hemmer -Patrick Stapleton -pattichen -Paul -paul -Paul Annesley -Paul Bellamy -Paul Bowsher -Paul Furtado -Paul Hammond -Paul Jimenez -Paul Lietar -Paul Liljenberg -Paul Morie -Paul Nasrat -Paul Weaver -Paulo Ribeiro -Pavel Lobashov -Pavel Pospisil -Pavel Sutyrin -Pavel Tikhomirov -Pavlos Ratis -Pavol Vargovcik -Peeyush Gupta -Peggy Li -Pei Su -Penghan Wang -perhapszzy@sina.com -pestophagous -Peter Bourgon -Peter Braden -Peter Choi -Peter Dave Hello -Peter Edge -Peter Ericson -Peter Esbensen -Peter Malmgren -Peter Salvatore -Peter Volpe -Peter Waller -Petr Švihlík -Phil -Phil Estes -Phil Spitler -Philip Monroe -Philipp Wahala -Philipp Weissensteiner -Phillip Alexander -pidster -Piergiuliano Bossi -Pierre -Pierre Carrier -Pierre Dal-Pra -Pierre Wacrenier -Pierre-Alain RIVIERE -Piotr Bogdan -pixelistik -Porjo -Poul Kjeldager Sørensen -Pradeep Chhetri -Prasanna Gautam -Prayag Verma -Przemek Hejman -pysqz -qg <1373319223@qq.com> -qhuang -Qiang Huang -qq690388648 <690388648@qq.com> -Quentin Brossard -Quentin Perez -Quentin Tayssier -r0n22 -Rafal Jeczalik -Rafe Colton -Raghavendra K T -Raghuram Devarakonda -Rajat Pandit -Rajdeep Dua -Ralf Sippl -Ralle -Ralph Bean -Ramkumar Ramachandra -Ramon Brooker -Ramon van Alteren -Ray Tsang -ReadmeCritic -Recursive Madman -Regan McCooey -Remi Rampin -Renato Riccieri Santos Zannon -resouer -rgstephens -Rhys Hiltner -Rich Moyse -Rich Seymour -Richard -Richard Burnison -Richard Harvey -Richard Mathie -Richard Metzler -Richard Scothern -Richo Healey -Rick Bradley -Rick van de Loo -Rick Wieman -Rik Nijessen -Riku Voipio -Riley Guerin -Ritesh H Shukla -Riyaz Faizullabhoy -Rob Vesse -Robert Bachmann -Robert Bittle -Robert Obryk -Robert Stern -Robert Terhaar -Robert Wallis -Roberto G. Hashioka -Robin Naundorf -Robin Schneider -Robin Speekenbrink -robpc -Rodolfo Carvalho -Rodrigo Vaz -Roel Van Nyen -Roger Peppe -Rohit Jnagal -Rohit Kadam -Roland Huß -Roland Kammerer -Roland Moriz -Roma Sokolov -Roman Strashkin -Ron Smits -Ron Williams -root -root -root -root -root -Rory Hunter -Rory McCune -Ross Boucher -Rovanion Luckey -Rozhnov Alexandr -rsmoorthy -Rudolph Gottesheim -Rui Lopes -Runshen Zhu -Ryan Anderson -Ryan Aslett -Ryan Belgrave -Ryan Detzel -Ryan Fowler -Ryan McLaughlin -Ryan O'Donnell -Ryan Seto -Ryan Thomas -Ryan Trauntvein -Ryan Wallner -RyanDeng -Rémy Greinhofer -s. rannou -s00318865 -Sabin Basyal -Sachin Joshi -Sagar Hani -Sainath Grandhi -sakeven -Sally O'Malley -Sam Abed -Sam Alba -Sam Bailey -Sam J Sharpe -Sam Neirinck -Sam Reis -Sam Rijs -Sambuddha Basu -Sami Wagiaalla -Samuel Andaya -Samuel Dion-Girardeau -Samuel Karp -Samuel PHAN -Sankar சங்கர் -Sanket Saurav -Santhosh Manohar -sapphiredev -Satnam Singh -satoru -Satoshi Amemiya -Satoshi Tagomori -scaleoutsean -Scott Bessler -Scott Collier -Scott Johnston -Scott Stamp -Scott Walls -sdreyesg -Sean Christopherson -Sean Cronin -Sean OMeara -Sean P. Kane -Sebastiaan van Steenis -Sebastiaan van Stijn -Senthil Kumar Selvaraj -Senthil Kumaran -SeongJae Park -Seongyeol Lim -Serge Hallyn -Sergey Alekseev -Sergey Evstifeev -Serhat Gülçiçek -Sevki Hasirci -Shane Canon -Shane da Silva -shaunol -Shawn Landden -Shawn Siefkas -shawnhe -Shekhar Gulati -Sheng Yang -Shengbo Song -Shev Yan -Shih-Yuan Lee -Shijiang Wei -Shishir Mahajan -Shoubhik Bose -Shourya Sarcar -shuai-z -Shukui Yang -Shuwei Hao -Sian Lerk Lau -sidharthamani -Silas Sewell -Simei He -Simon Eskildsen -Simon Leinen -Simon Taranto -Sindhu S -Sjoerd Langkemper -skaasten -Solganik Alexander -Solomon Hykes -Song Gao -Soshi Katsuta -Soulou -Spencer Brown -Spencer Smith -Sridatta Thatipamala -Sridhar Ratnakumar -Srini Brahmaroutu -srinsriv -Steeve Morin -Stefan Berger -Stefan J. Wernli -Stefan Praszalowicz -Stefan Scherer -Stefan Staudenmeyer -Stefan Weil -Stephen Crosby -Stephen Day -Stephen Drake -Stephen Rust -Steve Durrheimer -Steve Francia -Steve Koch -Steven Burgess -Steven Erenst -Steven Iveson -Steven Merrill -Steven Richards -Steven Taylor -Subhajit Ghosh -Sujith Haridasan -Suryakumar Sudar -Sven Dowideit -Swapnil Daingade -Sylvain Baubeau -Sylvain Bellemare -Sébastien -Sébastien Luttringer -Sébastien Stormacq -Tadej Janež -TAGOMORI Satoshi -tang0th -Tangi COLIN -Tatsuki Sugiura -Tatsushi Inagaki -Taylor Jones -tbonza -Ted M. Young -Tehmasp Chaudhri -Tejesh Mehta -terryding77 <550147740@qq.com> -tgic -Thatcher Peskens -theadactyl -Thell 'Bo' Fowler -Thermionix -Thijs Terlouw -Thomas Bikeev -Thomas Frössman -Thomas Gazagnaire -Thomas Grainger -Thomas Hansen -Thomas Leonard -Thomas LEVEIL -Thomas Orozco -Thomas Riccardi -Thomas Schroeter -Thomas Sjögren -Thomas Swift -Thomas Tanaka -Thomas Texier -Tianon Gravi -Tianyi Wang -Tibor Vass -Tiffany Jernigan -Tiffany Low -Tim Bosse -Tim Dettrick -Tim Düsterhus -Tim Hockin -Tim Ruffles -Tim Smith -Tim Terhorst -Tim Wang -Tim Waugh -Tim Wraight -timfeirg -Timothy Hobbs -tjwebb123 -tobe -Tobias Bieniek -Tobias Bradtke -Tobias Gesellchen -Tobias Klauser -Tobias Munk -Tobias Schmidt -Tobias Schwab -Todd Crane -Todd Lunter -Todd Whiteman -Toli Kuznets -Tom Barlow -Tom Denham -Tom Fotherby -Tom Howe -Tom Hulihan -Tom Maaswinkel -Tom X. Tobin -Tomas Tomecek -Tomasz Kopczynski -Tomasz Lipinski -Tomasz Nurkiewicz -Tommaso Visconti -Tomáš Hrčka -Tonis Tiigi -Tonny Xu -Tony Daws -Tony Miller -toogley -Torstein Husebø -tpng -tracylihui <793912329@qq.com> -Travis Cline -Travis Thieman -Trent Ogren -Trevor -Trevor Pounds -trishnaguha -Tristan Carel -Troy Denton -Tyler Brock -Tzu-Jung Lee -Tõnis Tiigi -Ulysse Carion -unknown -vagrant -Vaidas Jablonskis -Veres Lajos -vgeta -Victor Algaze -Victor Coisne -Victor Costan -Victor I. Wood -Victor Lyuboslavsky -Victor Marmol -Victor Palma -Victor Vieux -Victoria Bialas -Vijaya Kumar K -Viktor Stanchev -Viktor Vojnovski -VinayRaghavanKS -Vincent Batts -Vincent Bernat -Vincent Bernat -Vincent Demeester -Vincent Giersch -Vincent Mayers -Vincent Woo -Vinod Kulkarni -Vishal Doshi -Vishnu Kannan -Vitor Monteiro -Vivek Agarwal -Vivek Dasgupta -Vivek Goyal -Vladimir Bulyga -Vladimir Kirillov -Vladimir Pouzanov -Vladimir Rutsky -Vladimir Varankin -VladimirAus -Vojtech Vitek (V-Teq) -waitingkuo -Walter Leibbrandt -Walter Stanish -WANG Chao -Wang Xing -Ward Vandewege -WarheadsSE -Wayne Chang -Wei-Ting Kuo -weiyan -Weiyang Zhu -Wen Cheng Ma -Wendel Fleming -Wenkai Yin -Wenxuan Zhao -Wenyu You <21551128@zju.edu.cn> -Wes Morgan -Will Dietz -Will Rouesnel -Will Weaver -willhf -William Delanoue -William Henry -William Hubbs -William Riancho -William Thurston -WiseTrem -wlan0 -Wolfgang Powisch -wonderflow -Wonjun Kim -xamyzhao -Xianlu Bird -XiaoBing Jiang -Xiaoxu Chen -xiekeyang -Xinzi Zhou -Xiuming Chen -xlgao-zju -xuzhaokui -Yahya -YAMADA Tsuyoshi -Yan Feng -Yang Bai -yangshukui -Yanqiang Miao -Yasunori Mahata -Yestin Sun -Yi EungJun -Yibai Zhang -Yihang Ho -Ying Li -Yohei Ueda -Yong Tang -Yongzhi Pan -yorkie -Youcef YEKHLEF -Yuan Sun -yuchangchun -yuchengxia -yuexiao-wang -YuPengZTE -Yurii Rashkovskii -yuzou -Zac Dover -Zach Borboa -Zachary Jaffee -Zain Memon -Zaiste! -Zane DeGraffenried -Zefan Li -Zen Lin(Zhinan Lin) -Zhang Kun -Zhang Wei -Zhang Wentao -Zhenan Ye <21551168@zju.edu.cn> -zhouhao -Zhu Guihua -Zhuoyun Wei -Zilin Du -zimbatm -Ziming Dong -ZJUshuaizhou <21551191@zju.edu.cn> -zmarouf -Zoltan Tombol -zqh -Zuhayr Elahi -Zunayed Ali -Álex González -Álvaro Lázaro -Átila Camurça Alves -尹吉峰 -搏通 diff --git a/vendor/github.com/docker/docker/LICENSE b/vendor/github.com/docker/docker/LICENSE deleted file mode 100644 index 8f3fee6..0000000 --- a/vendor/github.com/docker/docker/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2013-2016 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/docker/docker/NOTICE b/vendor/github.com/docker/docker/NOTICE deleted file mode 100644 index 8a37c1c..0000000 --- a/vendor/github.com/docker/docker/NOTICE +++ /dev/null @@ -1,19 +0,0 @@ -Docker -Copyright 2012-2016 Docker, Inc. - -This product includes software developed at Docker, Inc. (https://www.docker.com). - -This product contains software (https://github.com/kr/pty) developed -by Keith Rarick, licensed under the MIT License. - -The following is courtesy of our legal counsel: - - -Use and transfer of Docker may be subject to certain restrictions by the -United States and other governments. -It is your responsibility to ensure that your use and/or transfer does not -violate applicable laws. - -For more information, please see https://www.bis.doc.gov - -See also https://www.apache.org/dev/crypto.html and/or seek legal counsel. diff --git a/vendor/github.com/docker/docker/api/types/auth.go b/vendor/github.com/docker/docker/api/types/auth.go deleted file mode 100644 index 056af6b..0000000 --- a/vendor/github.com/docker/docker/api/types/auth.go +++ /dev/null @@ -1,22 +0,0 @@ -package types - -// AuthConfig contains authorization information for connecting to a Registry -type AuthConfig struct { - Username string `json:"username,omitempty"` - Password string `json:"password,omitempty"` - Auth string `json:"auth,omitempty"` - - // Email is an optional value associated with the username. - // This field is deprecated and will be removed in a later - // version of docker. - Email string `json:"email,omitempty"` - - ServerAddress string `json:"serveraddress,omitempty"` - - // IdentityToken is used to authenticate the user and get - // an access token for the registry. - IdentityToken string `json:"identitytoken,omitempty"` - - // RegistryToken is a bearer token to be sent to a registry - RegistryToken string `json:"registrytoken,omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/blkiodev/blkio.go b/vendor/github.com/docker/docker/api/types/blkiodev/blkio.go deleted file mode 100644 index 931ae10..0000000 --- a/vendor/github.com/docker/docker/api/types/blkiodev/blkio.go +++ /dev/null @@ -1,23 +0,0 @@ -package blkiodev - -import "fmt" - -// WeightDevice is a structure that holds device:weight pair -type WeightDevice struct { - Path string - Weight uint16 -} - -func (w *WeightDevice) String() string { - return fmt.Sprintf("%s:%d", w.Path, w.Weight) -} - -// ThrottleDevice is a structure that holds device:rate_per_second pair -type ThrottleDevice struct { - Path string - Rate uint64 -} - -func (t *ThrottleDevice) String() string { - return fmt.Sprintf("%s:%d", t.Path, t.Rate) -} diff --git a/vendor/github.com/docker/docker/api/types/client.go b/vendor/github.com/docker/docker/api/types/client.go deleted file mode 100644 index 998cf68..0000000 --- a/vendor/github.com/docker/docker/api/types/client.go +++ /dev/null @@ -1,378 +0,0 @@ -package types - -import ( - "bufio" - "io" - "net" - "os" - - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/filters" - "github.com/docker/go-units" -) - -// CheckpointCreateOptions holds parameters to create a checkpoint from a container -type CheckpointCreateOptions struct { - CheckpointID string - CheckpointDir string - Exit bool -} - -// CheckpointListOptions holds parameters to list checkpoints for a container -type CheckpointListOptions struct { - CheckpointDir string -} - -// CheckpointDeleteOptions holds parameters to delete a checkpoint from a container -type CheckpointDeleteOptions struct { - CheckpointID string - CheckpointDir string -} - -// ContainerAttachOptions holds parameters to attach to a container. -type ContainerAttachOptions struct { - Stream bool - Stdin bool - Stdout bool - Stderr bool - DetachKeys string - Logs bool -} - -// ContainerCommitOptions holds parameters to commit changes into a container. -type ContainerCommitOptions struct { - Reference string - Comment string - Author string - Changes []string - Pause bool - Config *container.Config -} - -// ContainerExecInspect holds information returned by exec inspect. -type ContainerExecInspect struct { - ExecID string - ContainerID string - Running bool - ExitCode int - Pid int -} - -// ContainerListOptions holds parameters to list containers with. -type ContainerListOptions struct { - Quiet bool - Size bool - All bool - Latest bool - Since string - Before string - Limit int - Filters filters.Args -} - -// ContainerLogsOptions holds parameters to filter logs with. -type ContainerLogsOptions struct { - ShowStdout bool - ShowStderr bool - Since string - Timestamps bool - Follow bool - Tail string - Details bool -} - -// ContainerRemoveOptions holds parameters to remove containers. -type ContainerRemoveOptions struct { - RemoveVolumes bool - RemoveLinks bool - Force bool -} - -// ContainerStartOptions holds parameters to start containers. -type ContainerStartOptions struct { - CheckpointID string - CheckpointDir string -} - -// CopyToContainerOptions holds information -// about files to copy into a container -type CopyToContainerOptions struct { - AllowOverwriteDirWithFile bool -} - -// EventsOptions holds parameters to filter events with. -type EventsOptions struct { - Since string - Until string - Filters filters.Args -} - -// NetworkListOptions holds parameters to filter the list of networks with. -type NetworkListOptions struct { - Filters filters.Args -} - -// HijackedResponse holds connection information for a hijacked request. -type HijackedResponse struct { - Conn net.Conn - Reader *bufio.Reader -} - -// Close closes the hijacked connection and reader. -func (h *HijackedResponse) Close() { - h.Conn.Close() -} - -// CloseWriter is an interface that implements structs -// that close input streams to prevent from writing. -type CloseWriter interface { - CloseWrite() error -} - -// CloseWrite closes a readWriter for writing. -func (h *HijackedResponse) CloseWrite() error { - if conn, ok := h.Conn.(CloseWriter); ok { - return conn.CloseWrite() - } - return nil -} - -// ImageBuildOptions holds the information -// necessary to build images. -type ImageBuildOptions struct { - Tags []string - SuppressOutput bool - RemoteContext string - NoCache bool - Remove bool - ForceRemove bool - PullParent bool - Isolation container.Isolation - CPUSetCPUs string - CPUSetMems string - CPUShares int64 - CPUQuota int64 - CPUPeriod int64 - Memory int64 - MemorySwap int64 - CgroupParent string - NetworkMode string - ShmSize int64 - Dockerfile string - Ulimits []*units.Ulimit - // See the parsing of buildArgs in api/server/router/build/build_routes.go - // for an explanation of why BuildArgs needs to use *string instead of - // just a string - BuildArgs map[string]*string - AuthConfigs map[string]AuthConfig - Context io.Reader - Labels map[string]string - // squash the resulting image's layers to the parent - // preserves the original image and creates a new one from the parent with all - // the changes applied to a single layer - Squash bool - // CacheFrom specifies images that are used for matching cache. Images - // specified here do not need to have a valid parent chain to match cache. - CacheFrom []string - SecurityOpt []string -} - -// ImageBuildResponse holds information -// returned by a server after building -// an image. -type ImageBuildResponse struct { - Body io.ReadCloser - OSType string -} - -// ImageCreateOptions holds information to create images. -type ImageCreateOptions struct { - RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry -} - -// ImageImportSource holds source information for ImageImport -type ImageImportSource struct { - Source io.Reader // Source is the data to send to the server to create this image from. You must set SourceName to "-" to leverage this. - SourceName string // SourceName is the name of the image to pull. Set to "-" to leverage the Source attribute. -} - -// ImageImportOptions holds information to import images from the client host. -type ImageImportOptions struct { - Tag string // Tag is the name to tag this image with. This attribute is deprecated. - Message string // Message is the message to tag the image with - Changes []string // Changes are the raw changes to apply to this image -} - -// ImageListOptions holds parameters to filter the list of images with. -type ImageListOptions struct { - All bool - Filters filters.Args -} - -// ImageLoadResponse returns information to the client about a load process. -type ImageLoadResponse struct { - // Body must be closed to avoid a resource leak - Body io.ReadCloser - JSON bool -} - -// ImagePullOptions holds information to pull images. -type ImagePullOptions struct { - All bool - RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry - PrivilegeFunc RequestPrivilegeFunc -} - -// RequestPrivilegeFunc is a function interface that -// clients can supply to retry operations after -// getting an authorization error. -// This function returns the registry authentication -// header value in base 64 format, or an error -// if the privilege request fails. -type RequestPrivilegeFunc func() (string, error) - -//ImagePushOptions holds information to push images. -type ImagePushOptions ImagePullOptions - -// ImageRemoveOptions holds parameters to remove images. -type ImageRemoveOptions struct { - Force bool - PruneChildren bool -} - -// ImageSearchOptions holds parameters to search images with. -type ImageSearchOptions struct { - RegistryAuth string - PrivilegeFunc RequestPrivilegeFunc - Filters filters.Args - Limit int -} - -// ResizeOptions holds parameters to resize a tty. -// It can be used to resize container ttys and -// exec process ttys too. -type ResizeOptions struct { - Height uint - Width uint -} - -// VersionResponse holds version information for the client and the server -type VersionResponse struct { - Client *Version - Server *Version -} - -// ServerOK returns true when the client could connect to the docker server -// and parse the information received. It returns false otherwise. -func (v VersionResponse) ServerOK() bool { - return v.Server != nil -} - -// NodeListOptions holds parameters to list nodes with. -type NodeListOptions struct { - Filters filters.Args -} - -// NodeRemoveOptions holds parameters to remove nodes with. -type NodeRemoveOptions struct { - Force bool -} - -// ServiceCreateOptions contains the options to use when creating a service. -type ServiceCreateOptions struct { - // EncodedRegistryAuth is the encoded registry authorization credentials to - // use when updating the service. - // - // This field follows the format of the X-Registry-Auth header. - EncodedRegistryAuth string -} - -// ServiceCreateResponse contains the information returned to a client -// on the creation of a new service. -type ServiceCreateResponse struct { - // ID is the ID of the created service. - ID string - // Warnings is a set of non-fatal warning messages to pass on to the user. - Warnings []string `json:",omitempty"` -} - -// Values for RegistryAuthFrom in ServiceUpdateOptions -const ( - RegistryAuthFromSpec = "spec" - RegistryAuthFromPreviousSpec = "previous-spec" -) - -// ServiceUpdateOptions contains the options to be used for updating services. -type ServiceUpdateOptions struct { - // EncodedRegistryAuth is the encoded registry authorization credentials to - // use when updating the service. - // - // This field follows the format of the X-Registry-Auth header. - EncodedRegistryAuth string - - // TODO(stevvooe): Consider moving the version parameter of ServiceUpdate - // into this field. While it does open API users up to racy writes, most - // users may not need that level of consistency in practice. - - // RegistryAuthFrom specifies where to find the registry authorization - // credentials if they are not given in EncodedRegistryAuth. Valid - // values are "spec" and "previous-spec". - RegistryAuthFrom string -} - -// ServiceListOptions holds parameters to list services with. -type ServiceListOptions struct { - Filters filters.Args -} - -// TaskListOptions holds parameters to list tasks with. -type TaskListOptions struct { - Filters filters.Args -} - -// PluginRemoveOptions holds parameters to remove plugins. -type PluginRemoveOptions struct { - Force bool -} - -// PluginEnableOptions holds parameters to enable plugins. -type PluginEnableOptions struct { - Timeout int -} - -// PluginDisableOptions holds parameters to disable plugins. -type PluginDisableOptions struct { - Force bool -} - -// PluginInstallOptions holds parameters to install a plugin. -type PluginInstallOptions struct { - Disabled bool - AcceptAllPermissions bool - RegistryAuth string // RegistryAuth is the base64 encoded credentials for the registry - RemoteRef string // RemoteRef is the plugin name on the registry - PrivilegeFunc RequestPrivilegeFunc - AcceptPermissionsFunc func(PluginPrivileges) (bool, error) - Args []string -} - -// SecretRequestOption is a type for requesting secrets -type SecretRequestOption struct { - Source string - Target string - UID string - GID string - Mode os.FileMode -} - -// SwarmUnlockKeyResponse contains the response for Engine API: -// GET /swarm/unlockkey -type SwarmUnlockKeyResponse struct { - // UnlockKey is the unlock key in ASCII-armored format. - UnlockKey string -} - -// PluginCreateOptions hold all options to plugin create. -type PluginCreateOptions struct { - RepoName string -} diff --git a/vendor/github.com/docker/docker/api/types/configs.go b/vendor/github.com/docker/docker/api/types/configs.go deleted file mode 100644 index 20c19f2..0000000 --- a/vendor/github.com/docker/docker/api/types/configs.go +++ /dev/null @@ -1,69 +0,0 @@ -package types - -import ( - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/network" -) - -// configs holds structs used for internal communication between the -// frontend (such as an http server) and the backend (such as the -// docker daemon). - -// ContainerCreateConfig is the parameter set to ContainerCreate() -type ContainerCreateConfig struct { - Name string - Config *container.Config - HostConfig *container.HostConfig - NetworkingConfig *network.NetworkingConfig - AdjustCPUShares bool -} - -// ContainerRmConfig holds arguments for the container remove -// operation. This struct is used to tell the backend what operations -// to perform. -type ContainerRmConfig struct { - ForceRemove, RemoveVolume, RemoveLink bool -} - -// ContainerCommitConfig contains build configs for commit operation, -// and is used when making a commit with the current state of the container. -type ContainerCommitConfig struct { - Pause bool - Repo string - Tag string - Author string - Comment string - // merge container config into commit config before commit - MergeConfigs bool - Config *container.Config -} - -// ExecConfig is a small subset of the Config struct that holds the configuration -// for the exec feature of docker. -type ExecConfig struct { - User string // User that will run the command - Privileged bool // Is the container in privileged mode - Tty bool // Attach standard streams to a tty. - AttachStdin bool // Attach the standard input, makes possible user interaction - AttachStderr bool // Attach the standard error - AttachStdout bool // Attach the standard output - Detach bool // Execute in detach mode - DetachKeys string // Escape keys for detach - Env []string // Environment variables - Cmd []string // Execution commands and args -} - -// PluginRmConfig holds arguments for plugin remove. -type PluginRmConfig struct { - ForceRemove bool -} - -// PluginEnableConfig holds arguments for plugin enable -type PluginEnableConfig struct { - Timeout int -} - -// PluginDisableConfig holds arguments for plugin disable. -type PluginDisableConfig struct { - ForceDisable bool -} diff --git a/vendor/github.com/docker/docker/api/types/container/config.go b/vendor/github.com/docker/docker/api/types/container/config.go deleted file mode 100644 index fc050e5..0000000 --- a/vendor/github.com/docker/docker/api/types/container/config.go +++ /dev/null @@ -1,62 +0,0 @@ -package container - -import ( - "time" - - "github.com/docker/docker/api/types/strslice" - "github.com/docker/go-connections/nat" -) - -// HealthConfig holds configuration settings for the HEALTHCHECK feature. -type HealthConfig struct { - // Test is the test to perform to check that the container is healthy. - // An empty slice means to inherit the default. - // The options are: - // {} : inherit healthcheck - // {"NONE"} : disable healthcheck - // {"CMD", args...} : exec arguments directly - // {"CMD-SHELL", command} : run command with system's default shell - Test []string `json:",omitempty"` - - // Zero means to inherit. Durations are expressed as integer nanoseconds. - Interval time.Duration `json:",omitempty"` // Interval is the time to wait between checks. - Timeout time.Duration `json:",omitempty"` // Timeout is the time to wait before considering the check to have hung. - - // Retries is the number of consecutive failures needed to consider a container as unhealthy. - // Zero means inherit. - Retries int `json:",omitempty"` -} - -// Config contains the configuration data about a container. -// It should hold only portable information about the container. -// Here, "portable" means "independent from the host we are running on". -// Non-portable information *should* appear in HostConfig. -// All fields added to this struct must be marked `omitempty` to keep getting -// predictable hashes from the old `v1Compatibility` configuration. -type Config struct { - Hostname string // Hostname - Domainname string // Domainname - User string // User that will run the command(s) inside the container, also support user:group - AttachStdin bool // Attach the standard input, makes possible user interaction - AttachStdout bool // Attach the standard output - AttachStderr bool // Attach the standard error - ExposedPorts nat.PortSet `json:",omitempty"` // List of exposed ports - Tty bool // Attach standard streams to a tty, including stdin if it is not closed. - OpenStdin bool // Open stdin - StdinOnce bool // If true, close stdin after the 1 attached client disconnects. - Env []string // List of environment variable to set in the container - Cmd strslice.StrSlice // Command to run when starting the container - Healthcheck *HealthConfig `json:",omitempty"` // Healthcheck describes how to check the container is healthy - ArgsEscaped bool `json:",omitempty"` // True if command is already escaped (Windows specific) - Image string // Name of the image as it was passed by the operator (e.g. could be symbolic) - Volumes map[string]struct{} // List of volumes (mounts) used for the container - WorkingDir string // Current directory (PWD) in the command will be launched - Entrypoint strslice.StrSlice // Entrypoint to run when starting the container - NetworkDisabled bool `json:",omitempty"` // Is network disabled - MacAddress string `json:",omitempty"` // Mac Address of the container - OnBuild []string // ONBUILD metadata that were defined on the image Dockerfile - Labels map[string]string // List of labels set to this container - StopSignal string `json:",omitempty"` // Signal to stop a container - StopTimeout *int `json:",omitempty"` // Timeout (in seconds) to stop a container - Shell strslice.StrSlice `json:",omitempty"` // Shell for shell-form of RUN, CMD, ENTRYPOINT -} diff --git a/vendor/github.com/docker/docker/api/types/container/container_create.go b/vendor/github.com/docker/docker/api/types/container/container_create.go deleted file mode 100644 index c95023b..0000000 --- a/vendor/github.com/docker/docker/api/types/container/container_create.go +++ /dev/null @@ -1,21 +0,0 @@ -package container - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -// ContainerCreateCreatedBody container create created body -// swagger:model ContainerCreateCreatedBody -type ContainerCreateCreatedBody struct { - - // The ID of the created container - // Required: true - ID string `json:"Id"` - - // Warnings encountered when creating the container - // Required: true - Warnings []string `json:"Warnings"` -} diff --git a/vendor/github.com/docker/docker/api/types/container/container_update.go b/vendor/github.com/docker/docker/api/types/container/container_update.go deleted file mode 100644 index 2339366..0000000 --- a/vendor/github.com/docker/docker/api/types/container/container_update.go +++ /dev/null @@ -1,17 +0,0 @@ -package container - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -// ContainerUpdateOKBody container update o k body -// swagger:model ContainerUpdateOKBody -type ContainerUpdateOKBody struct { - - // warnings - // Required: true - Warnings []string `json:"Warnings"` -} diff --git a/vendor/github.com/docker/docker/api/types/container/container_wait.go b/vendor/github.com/docker/docker/api/types/container/container_wait.go deleted file mode 100644 index 77ecdba..0000000 --- a/vendor/github.com/docker/docker/api/types/container/container_wait.go +++ /dev/null @@ -1,17 +0,0 @@ -package container - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -// ContainerWaitOKBody container wait o k body -// swagger:model ContainerWaitOKBody -type ContainerWaitOKBody struct { - - // Exit code of the container - // Required: true - StatusCode int64 `json:"StatusCode"` -} diff --git a/vendor/github.com/docker/docker/api/types/container/host_config.go b/vendor/github.com/docker/docker/api/types/container/host_config.go deleted file mode 100644 index d34fa14..0000000 --- a/vendor/github.com/docker/docker/api/types/container/host_config.go +++ /dev/null @@ -1,333 +0,0 @@ -package container - -import ( - "strings" - - "github.com/docker/docker/api/types/blkiodev" - "github.com/docker/docker/api/types/mount" - "github.com/docker/docker/api/types/strslice" - "github.com/docker/go-connections/nat" - "github.com/docker/go-units" -) - -// NetworkMode represents the container network stack. -type NetworkMode string - -// Isolation represents the isolation technology of a container. The supported -// values are platform specific -type Isolation string - -// IsDefault indicates the default isolation technology of a container. On Linux this -// is the native driver. On Windows, this is a Windows Server Container. -func (i Isolation) IsDefault() bool { - return strings.ToLower(string(i)) == "default" || string(i) == "" -} - -// IpcMode represents the container ipc stack. -type IpcMode string - -// IsPrivate indicates whether the container uses its private ipc stack. -func (n IpcMode) IsPrivate() bool { - return !(n.IsHost() || n.IsContainer()) -} - -// IsHost indicates whether the container uses the host's ipc stack. -func (n IpcMode) IsHost() bool { - return n == "host" -} - -// IsContainer indicates whether the container uses a container's ipc stack. -func (n IpcMode) IsContainer() bool { - parts := strings.SplitN(string(n), ":", 2) - return len(parts) > 1 && parts[0] == "container" -} - -// Valid indicates whether the ipc stack is valid. -func (n IpcMode) Valid() bool { - parts := strings.Split(string(n), ":") - switch mode := parts[0]; mode { - case "", "host": - case "container": - if len(parts) != 2 || parts[1] == "" { - return false - } - default: - return false - } - return true -} - -// Container returns the name of the container ipc stack is going to be used. -func (n IpcMode) Container() string { - parts := strings.SplitN(string(n), ":", 2) - if len(parts) > 1 { - return parts[1] - } - return "" -} - -// UsernsMode represents userns mode in the container. -type UsernsMode string - -// IsHost indicates whether the container uses the host's userns. -func (n UsernsMode) IsHost() bool { - return n == "host" -} - -// IsPrivate indicates whether the container uses the a private userns. -func (n UsernsMode) IsPrivate() bool { - return !(n.IsHost()) -} - -// Valid indicates whether the userns is valid. -func (n UsernsMode) Valid() bool { - parts := strings.Split(string(n), ":") - switch mode := parts[0]; mode { - case "", "host": - default: - return false - } - return true -} - -// CgroupSpec represents the cgroup to use for the container. -type CgroupSpec string - -// IsContainer indicates whether the container is using another container cgroup -func (c CgroupSpec) IsContainer() bool { - parts := strings.SplitN(string(c), ":", 2) - return len(parts) > 1 && parts[0] == "container" -} - -// Valid indicates whether the cgroup spec is valid. -func (c CgroupSpec) Valid() bool { - return c.IsContainer() || c == "" -} - -// Container returns the name of the container whose cgroup will be used. -func (c CgroupSpec) Container() string { - parts := strings.SplitN(string(c), ":", 2) - if len(parts) > 1 { - return parts[1] - } - return "" -} - -// UTSMode represents the UTS namespace of the container. -type UTSMode string - -// IsPrivate indicates whether the container uses its private UTS namespace. -func (n UTSMode) IsPrivate() bool { - return !(n.IsHost()) -} - -// IsHost indicates whether the container uses the host's UTS namespace. -func (n UTSMode) IsHost() bool { - return n == "host" -} - -// Valid indicates whether the UTS namespace is valid. -func (n UTSMode) Valid() bool { - parts := strings.Split(string(n), ":") - switch mode := parts[0]; mode { - case "", "host": - default: - return false - } - return true -} - -// PidMode represents the pid namespace of the container. -type PidMode string - -// IsPrivate indicates whether the container uses its own new pid namespace. -func (n PidMode) IsPrivate() bool { - return !(n.IsHost() || n.IsContainer()) -} - -// IsHost indicates whether the container uses the host's pid namespace. -func (n PidMode) IsHost() bool { - return n == "host" -} - -// IsContainer indicates whether the container uses a container's pid namespace. -func (n PidMode) IsContainer() bool { - parts := strings.SplitN(string(n), ":", 2) - return len(parts) > 1 && parts[0] == "container" -} - -// Valid indicates whether the pid namespace is valid. -func (n PidMode) Valid() bool { - parts := strings.Split(string(n), ":") - switch mode := parts[0]; mode { - case "", "host": - case "container": - if len(parts) != 2 || parts[1] == "" { - return false - } - default: - return false - } - return true -} - -// Container returns the name of the container whose pid namespace is going to be used. -func (n PidMode) Container() string { - parts := strings.SplitN(string(n), ":", 2) - if len(parts) > 1 { - return parts[1] - } - return "" -} - -// DeviceMapping represents the device mapping between the host and the container. -type DeviceMapping struct { - PathOnHost string - PathInContainer string - CgroupPermissions string -} - -// RestartPolicy represents the restart policies of the container. -type RestartPolicy struct { - Name string - MaximumRetryCount int -} - -// IsNone indicates whether the container has the "no" restart policy. -// This means the container will not automatically restart when exiting. -func (rp *RestartPolicy) IsNone() bool { - return rp.Name == "no" || rp.Name == "" -} - -// IsAlways indicates whether the container has the "always" restart policy. -// This means the container will automatically restart regardless of the exit status. -func (rp *RestartPolicy) IsAlways() bool { - return rp.Name == "always" -} - -// IsOnFailure indicates whether the container has the "on-failure" restart policy. -// This means the container will automatically restart of exiting with a non-zero exit status. -func (rp *RestartPolicy) IsOnFailure() bool { - return rp.Name == "on-failure" -} - -// IsUnlessStopped indicates whether the container has the -// "unless-stopped" restart policy. This means the container will -// automatically restart unless user has put it to stopped state. -func (rp *RestartPolicy) IsUnlessStopped() bool { - return rp.Name == "unless-stopped" -} - -// IsSame compares two RestartPolicy to see if they are the same -func (rp *RestartPolicy) IsSame(tp *RestartPolicy) bool { - return rp.Name == tp.Name && rp.MaximumRetryCount == tp.MaximumRetryCount -} - -// LogConfig represents the logging configuration of the container. -type LogConfig struct { - Type string - Config map[string]string -} - -// Resources contains container's resources (cgroups config, ulimits...) -type Resources struct { - // Applicable to all platforms - CPUShares int64 `json:"CpuShares"` // CPU shares (relative weight vs. other containers) - Memory int64 // Memory limit (in bytes) - NanoCPUs int64 `json:"NanoCpus"` // CPU quota in units of 10-9 CPUs. - - // Applicable to UNIX platforms - CgroupParent string // Parent cgroup. - BlkioWeight uint16 // Block IO weight (relative weight vs. other containers) - BlkioWeightDevice []*blkiodev.WeightDevice - BlkioDeviceReadBps []*blkiodev.ThrottleDevice - BlkioDeviceWriteBps []*blkiodev.ThrottleDevice - BlkioDeviceReadIOps []*blkiodev.ThrottleDevice - BlkioDeviceWriteIOps []*blkiodev.ThrottleDevice - CPUPeriod int64 `json:"CpuPeriod"` // CPU CFS (Completely Fair Scheduler) period - CPUQuota int64 `json:"CpuQuota"` // CPU CFS (Completely Fair Scheduler) quota - CPURealtimePeriod int64 `json:"CpuRealtimePeriod"` // CPU real-time period - CPURealtimeRuntime int64 `json:"CpuRealtimeRuntime"` // CPU real-time runtime - CpusetCpus string // CpusetCpus 0-2, 0,1 - CpusetMems string // CpusetMems 0-2, 0,1 - Devices []DeviceMapping // List of devices to map inside the container - DiskQuota int64 // Disk limit (in bytes) - KernelMemory int64 // Kernel memory limit (in bytes) - MemoryReservation int64 // Memory soft limit (in bytes) - MemorySwap int64 // Total memory usage (memory + swap); set `-1` to enable unlimited swap - MemorySwappiness *int64 // Tuning container memory swappiness behaviour - OomKillDisable *bool // Whether to disable OOM Killer or not - PidsLimit int64 // Setting pids limit for a container - Ulimits []*units.Ulimit // List of ulimits to be set in the container - - // Applicable to Windows - CPUCount int64 `json:"CpuCount"` // CPU count - CPUPercent int64 `json:"CpuPercent"` // CPU percent - IOMaximumIOps uint64 // Maximum IOps for the container system drive - IOMaximumBandwidth uint64 // Maximum IO in bytes per second for the container system drive -} - -// UpdateConfig holds the mutable attributes of a Container. -// Those attributes can be updated at runtime. -type UpdateConfig struct { - // Contains container's resources (cgroups, ulimits) - Resources - RestartPolicy RestartPolicy -} - -// HostConfig the non-portable Config structure of a container. -// Here, "non-portable" means "dependent of the host we are running on". -// Portable information *should* appear in Config. -type HostConfig struct { - // Applicable to all platforms - Binds []string // List of volume bindings for this container - ContainerIDFile string // File (path) where the containerId is written - LogConfig LogConfig // Configuration of the logs for this container - NetworkMode NetworkMode // Network mode to use for the container - PortBindings nat.PortMap // Port mapping between the exposed port (container) and the host - RestartPolicy RestartPolicy // Restart policy to be used for the container - AutoRemove bool // Automatically remove container when it exits - VolumeDriver string // Name of the volume driver used to mount volumes - VolumesFrom []string // List of volumes to take from other container - - // Applicable to UNIX platforms - CapAdd strslice.StrSlice // List of kernel capabilities to add to the container - CapDrop strslice.StrSlice // List of kernel capabilities to remove from the container - DNS []string `json:"Dns"` // List of DNS server to lookup - DNSOptions []string `json:"DnsOptions"` // List of DNSOption to look for - DNSSearch []string `json:"DnsSearch"` // List of DNSSearch to look for - ExtraHosts []string // List of extra hosts - GroupAdd []string // List of additional groups that the container process will run as - IpcMode IpcMode // IPC namespace to use for the container - Cgroup CgroupSpec // Cgroup to use for the container - Links []string // List of links (in the name:alias form) - OomScoreAdj int // Container preference for OOM-killing - PidMode PidMode // PID namespace to use for the container - Privileged bool // Is the container in privileged mode - PublishAllPorts bool // Should docker publish all exposed port for the container - ReadonlyRootfs bool // Is the container root filesystem in read-only - SecurityOpt []string // List of string values to customize labels for MLS systems, such as SELinux. - StorageOpt map[string]string `json:",omitempty"` // Storage driver options per container. - Tmpfs map[string]string `json:",omitempty"` // List of tmpfs (mounts) used for the container - UTSMode UTSMode // UTS namespace to use for the container - UsernsMode UsernsMode // The user namespace to use for the container - ShmSize int64 // Total shm memory usage - Sysctls map[string]string `json:",omitempty"` // List of Namespaced sysctls used for the container - Runtime string `json:",omitempty"` // Runtime to use with this container - - // Applicable to Windows - ConsoleSize [2]uint // Initial console size (height,width) - Isolation Isolation // Isolation technology of the container (e.g. default, hyperv) - - // Contains container's resources (cgroups, ulimits) - Resources - - // Mounts specs used by the container - Mounts []mount.Mount `json:",omitempty"` - - // Run a custom init inside the container, if null, use the daemon's configured settings - Init *bool `json:",omitempty"` - - // Custom init path - InitPath string `json:",omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/container/hostconfig_unix.go b/vendor/github.com/docker/docker/api/types/container/hostconfig_unix.go deleted file mode 100644 index 9fb79be..0000000 --- a/vendor/github.com/docker/docker/api/types/container/hostconfig_unix.go +++ /dev/null @@ -1,81 +0,0 @@ -// +build !windows - -package container - -import "strings" - -// IsValid indicates if an isolation technology is valid -func (i Isolation) IsValid() bool { - return i.IsDefault() -} - -// IsPrivate indicates whether container uses its private network stack. -func (n NetworkMode) IsPrivate() bool { - return !(n.IsHost() || n.IsContainer()) -} - -// IsDefault indicates whether container uses the default network stack. -func (n NetworkMode) IsDefault() bool { - return n == "default" -} - -// NetworkName returns the name of the network stack. -func (n NetworkMode) NetworkName() string { - if n.IsBridge() { - return "bridge" - } else if n.IsHost() { - return "host" - } else if n.IsContainer() { - return "container" - } else if n.IsNone() { - return "none" - } else if n.IsDefault() { - return "default" - } else if n.IsUserDefined() { - return n.UserDefined() - } - return "" -} - -// IsBridge indicates whether container uses the bridge network stack -func (n NetworkMode) IsBridge() bool { - return n == "bridge" -} - -// IsHost indicates whether container uses the host network stack. -func (n NetworkMode) IsHost() bool { - return n == "host" -} - -// IsContainer indicates whether container uses a container network stack. -func (n NetworkMode) IsContainer() bool { - parts := strings.SplitN(string(n), ":", 2) - return len(parts) > 1 && parts[0] == "container" -} - -// IsNone indicates whether container isn't using a network stack. -func (n NetworkMode) IsNone() bool { - return n == "none" -} - -// ConnectedContainer is the id of the container which network this container is connected to. -func (n NetworkMode) ConnectedContainer() string { - parts := strings.SplitN(string(n), ":", 2) - if len(parts) > 1 { - return parts[1] - } - return "" -} - -// IsUserDefined indicates user-created network -func (n NetworkMode) IsUserDefined() bool { - return !n.IsDefault() && !n.IsBridge() && !n.IsHost() && !n.IsNone() && !n.IsContainer() -} - -//UserDefined indicates user-created network -func (n NetworkMode) UserDefined() string { - if n.IsUserDefined() { - return string(n) - } - return "" -} diff --git a/vendor/github.com/docker/docker/api/types/container/hostconfig_windows.go b/vendor/github.com/docker/docker/api/types/container/hostconfig_windows.go deleted file mode 100644 index 0ee332b..0000000 --- a/vendor/github.com/docker/docker/api/types/container/hostconfig_windows.go +++ /dev/null @@ -1,87 +0,0 @@ -package container - -import ( - "strings" -) - -// IsDefault indicates whether container uses the default network stack. -func (n NetworkMode) IsDefault() bool { - return n == "default" -} - -// IsNone indicates whether container isn't using a network stack. -func (n NetworkMode) IsNone() bool { - return n == "none" -} - -// IsContainer indicates whether container uses a container network stack. -// Returns false as windows doesn't support this mode -func (n NetworkMode) IsContainer() bool { - return false -} - -// IsBridge indicates whether container uses the bridge network stack -// in windows it is given the name NAT -func (n NetworkMode) IsBridge() bool { - return n == "nat" -} - -// IsHost indicates whether container uses the host network stack. -// returns false as this is not supported by windows -func (n NetworkMode) IsHost() bool { - return false -} - -// IsPrivate indicates whether container uses its private network stack. -func (n NetworkMode) IsPrivate() bool { - return !(n.IsHost() || n.IsContainer()) -} - -// ConnectedContainer is the id of the container which network this container is connected to. -// Returns blank string on windows -func (n NetworkMode) ConnectedContainer() string { - return "" -} - -// IsUserDefined indicates user-created network -func (n NetworkMode) IsUserDefined() bool { - return !n.IsDefault() && !n.IsNone() && !n.IsBridge() -} - -// IsHyperV indicates the use of a Hyper-V partition for isolation -func (i Isolation) IsHyperV() bool { - return strings.ToLower(string(i)) == "hyperv" -} - -// IsProcess indicates the use of process isolation -func (i Isolation) IsProcess() bool { - return strings.ToLower(string(i)) == "process" -} - -// IsValid indicates if an isolation technology is valid -func (i Isolation) IsValid() bool { - return i.IsDefault() || i.IsHyperV() || i.IsProcess() -} - -// NetworkName returns the name of the network stack. -func (n NetworkMode) NetworkName() string { - if n.IsDefault() { - return "default" - } else if n.IsBridge() { - return "nat" - } else if n.IsNone() { - return "none" - } else if n.IsUserDefined() { - return n.UserDefined() - } - - return "" -} - -//UserDefined indicates user-created network -func (n NetworkMode) UserDefined() string { - if n.IsUserDefined() { - return string(n) - } - return "" -} diff --git a/vendor/github.com/docker/docker/api/types/error_response.go b/vendor/github.com/docker/docker/api/types/error_response.go deleted file mode 100644 index dc942d9..0000000 --- a/vendor/github.com/docker/docker/api/types/error_response.go +++ /dev/null @@ -1,13 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// ErrorResponse Represents an error. -// swagger:model ErrorResponse -type ErrorResponse struct { - - // The error message. - // Required: true - Message string `json:"message"` -} diff --git a/vendor/github.com/docker/docker/api/types/events/events.go b/vendor/github.com/docker/docker/api/types/events/events.go deleted file mode 100644 index 7129a65..0000000 --- a/vendor/github.com/docker/docker/api/types/events/events.go +++ /dev/null @@ -1,42 +0,0 @@ -package events - -const ( - // ContainerEventType is the event type that containers generate - ContainerEventType = "container" - // DaemonEventType is the event type that daemon generate - DaemonEventType = "daemon" - // ImageEventType is the event type that images generate - ImageEventType = "image" - // NetworkEventType is the event type that networks generate - NetworkEventType = "network" - // PluginEventType is the event type that plugins generate - PluginEventType = "plugin" - // VolumeEventType is the event type that volumes generate - VolumeEventType = "volume" -) - -// Actor describes something that generates events, -// like a container, or a network, or a volume. -// It has a defined name and a set or attributes. -// The container attributes are its labels, other actors -// can generate these attributes from other properties. -type Actor struct { - ID string - Attributes map[string]string -} - -// Message represents the information an event contains -type Message struct { - // Deprecated information from JSONMessage. - // With data only in container events. - Status string `json:"status,omitempty"` - ID string `json:"id,omitempty"` - From string `json:"from,omitempty"` - - Type string - Action string - Actor Actor - - Time int64 `json:"time,omitempty"` - TimeNano int64 `json:"timeNano,omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/filters/parse.go b/vendor/github.com/docker/docker/api/types/filters/parse.go deleted file mode 100644 index beec3d4..0000000 --- a/vendor/github.com/docker/docker/api/types/filters/parse.go +++ /dev/null @@ -1,310 +0,0 @@ -// Package filters provides helper function to parse and handle command line -// filter, used for example in docker ps or docker images commands. -package filters - -import ( - "encoding/json" - "errors" - "fmt" - "regexp" - "strings" - - "github.com/docker/docker/api/types/versions" -) - -// Args stores filter arguments as map key:{map key: bool}. -// It contains an aggregation of the map of arguments (which are in the form -// of -f 'key=value') based on the key, and stores values for the same key -// in a map with string keys and boolean values. -// e.g given -f 'label=label1=1' -f 'label=label2=2' -f 'image.name=ubuntu' -// the args will be {"image.name":{"ubuntu":true},"label":{"label1=1":true,"label2=2":true}} -type Args struct { - fields map[string]map[string]bool -} - -// NewArgs initializes a new Args struct. -func NewArgs() Args { - return Args{fields: map[string]map[string]bool{}} -} - -// ParseFlag parses the argument to the filter flag. Like -// -// `docker ps -f 'created=today' -f 'image.name=ubuntu*'` -// -// If prev map is provided, then it is appended to, and returned. By default a new -// map is created. -func ParseFlag(arg string, prev Args) (Args, error) { - filters := prev - if len(arg) == 0 { - return filters, nil - } - - if !strings.Contains(arg, "=") { - return filters, ErrBadFormat - } - - f := strings.SplitN(arg, "=", 2) - - name := strings.ToLower(strings.TrimSpace(f[0])) - value := strings.TrimSpace(f[1]) - - filters.Add(name, value) - - return filters, nil -} - -// ErrBadFormat is an error returned in case of bad format for a filter. -var ErrBadFormat = errors.New("bad format of filter (expected name=value)") - -// ToParam packs the Args into a string for easy transport from client to server. -func ToParam(a Args) (string, error) { - // this way we don't URL encode {}, just empty space - if a.Len() == 0 { - return "", nil - } - - buf, err := json.Marshal(a.fields) - if err != nil { - return "", err - } - return string(buf), nil -} - -// ToParamWithVersion packs the Args into a string for easy transport from client to server. -// The generated string will depend on the specified version (corresponding to the API version). -func ToParamWithVersion(version string, a Args) (string, error) { - // this way we don't URL encode {}, just empty space - if a.Len() == 0 { - return "", nil - } - - // for daemons older than v1.10, filter must be of the form map[string][]string - var buf []byte - var err error - if version != "" && versions.LessThan(version, "1.22") { - buf, err = json.Marshal(convertArgsToSlice(a.fields)) - } else { - buf, err = json.Marshal(a.fields) - } - if err != nil { - return "", err - } - return string(buf), nil -} - -// FromParam unpacks the filter Args. -func FromParam(p string) (Args, error) { - if len(p) == 0 { - return NewArgs(), nil - } - - r := strings.NewReader(p) - d := json.NewDecoder(r) - - m := map[string]map[string]bool{} - if err := d.Decode(&m); err != nil { - r.Seek(0, 0) - - // Allow parsing old arguments in slice format. - // Because other libraries might be sending them in this format. - deprecated := map[string][]string{} - if deprecatedErr := d.Decode(&deprecated); deprecatedErr == nil { - m = deprecatedArgs(deprecated) - } else { - return NewArgs(), err - } - } - return Args{m}, nil -} - -// Get returns the list of values associates with a field. -// It returns a slice of strings to keep backwards compatibility with old code. -func (filters Args) Get(field string) []string { - values := filters.fields[field] - if values == nil { - return make([]string, 0) - } - slice := make([]string, 0, len(values)) - for key := range values { - slice = append(slice, key) - } - return slice -} - -// Add adds a new value to a filter field. -func (filters Args) Add(name, value string) { - if _, ok := filters.fields[name]; ok { - filters.fields[name][value] = true - } else { - filters.fields[name] = map[string]bool{value: true} - } -} - -// Del removes a value from a filter field. -func (filters Args) Del(name, value string) { - if _, ok := filters.fields[name]; ok { - delete(filters.fields[name], value) - if len(filters.fields[name]) == 0 { - delete(filters.fields, name) - } - } -} - -// Len returns the number of fields in the arguments. -func (filters Args) Len() int { - return len(filters.fields) -} - -// MatchKVList returns true if the values for the specified field matches the ones -// from the sources. -// e.g. given Args are {'label': {'label1=1','label2=1'}, 'image.name', {'ubuntu'}}, -// field is 'label' and sources are {'label1': '1', 'label2': '2'} -// it returns true. -func (filters Args) MatchKVList(field string, sources map[string]string) bool { - fieldValues := filters.fields[field] - - //do not filter if there is no filter set or cannot determine filter - if len(fieldValues) == 0 { - return true - } - - if len(sources) == 0 { - return false - } - - for name2match := range fieldValues { - testKV := strings.SplitN(name2match, "=", 2) - - v, ok := sources[testKV[0]] - if !ok { - return false - } - if len(testKV) == 2 && testKV[1] != v { - return false - } - } - - return true -} - -// Match returns true if the values for the specified field matches the source string -// e.g. given Args are {'label': {'label1=1','label2=1'}, 'image.name', {'ubuntu'}}, -// field is 'image.name' and source is 'ubuntu' -// it returns true. -func (filters Args) Match(field, source string) bool { - if filters.ExactMatch(field, source) { - return true - } - - fieldValues := filters.fields[field] - for name2match := range fieldValues { - match, err := regexp.MatchString(name2match, source) - if err != nil { - continue - } - if match { - return true - } - } - return false -} - -// ExactMatch returns true if the source matches exactly one of the filters. -func (filters Args) ExactMatch(field, source string) bool { - fieldValues, ok := filters.fields[field] - //do not filter if there is no filter set or cannot determine filter - if !ok || len(fieldValues) == 0 { - return true - } - - // try to match full name value to avoid O(N) regular expression matching - return fieldValues[source] -} - -// UniqueExactMatch returns true if there is only one filter and the source matches exactly this one. -func (filters Args) UniqueExactMatch(field, source string) bool { - fieldValues := filters.fields[field] - //do not filter if there is no filter set or cannot determine filter - if len(fieldValues) == 0 { - return true - } - if len(filters.fields[field]) != 1 { - return false - } - - // try to match full name value to avoid O(N) regular expression matching - return fieldValues[source] -} - -// FuzzyMatch returns true if the source matches exactly one of the filters, -// or the source has one of the filters as a prefix. -func (filters Args) FuzzyMatch(field, source string) bool { - if filters.ExactMatch(field, source) { - return true - } - - fieldValues := filters.fields[field] - for prefix := range fieldValues { - if strings.HasPrefix(source, prefix) { - return true - } - } - return false -} - -// Include returns true if the name of the field to filter is in the filters. -func (filters Args) Include(field string) bool { - _, ok := filters.fields[field] - return ok -} - -// Validate ensures that all the fields in the filter are valid. -// It returns an error as soon as it finds an invalid field. -func (filters Args) Validate(accepted map[string]bool) error { - for name := range filters.fields { - if !accepted[name] { - return fmt.Errorf("Invalid filter '%s'", name) - } - } - return nil -} - -// WalkValues iterates over the list of filtered values for a field. -// It stops the iteration if it finds an error and it returns that error. -func (filters Args) WalkValues(field string, op func(value string) error) error { - if _, ok := filters.fields[field]; !ok { - return nil - } - for v := range filters.fields[field] { - if err := op(v); err != nil { - return err - } - } - return nil -} - -func deprecatedArgs(d map[string][]string) map[string]map[string]bool { - m := map[string]map[string]bool{} - for k, v := range d { - values := map[string]bool{} - for _, vv := range v { - values[vv] = true - } - m[k] = values - } - return m -} - -func convertArgsToSlice(f map[string]map[string]bool) map[string][]string { - m := map[string][]string{} - for k, v := range f { - values := []string{} - for kk := range v { - if v[kk] { - values = append(values, kk) - } - } - m[k] = values - } - return m -} diff --git a/vendor/github.com/docker/docker/api/types/id_response.go b/vendor/github.com/docker/docker/api/types/id_response.go deleted file mode 100644 index 7592d2f..0000000 --- a/vendor/github.com/docker/docker/api/types/id_response.go +++ /dev/null @@ -1,13 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// IDResponse Response to an API call that returns just an Id -// swagger:model IdResponse -type IDResponse struct { - - // The id of the newly created object. - // Required: true - ID string `json:"Id"` -} diff --git a/vendor/github.com/docker/docker/api/types/image_summary.go b/vendor/github.com/docker/docker/api/types/image_summary.go deleted file mode 100644 index e145b3d..0000000 --- a/vendor/github.com/docker/docker/api/types/image_summary.go +++ /dev/null @@ -1,49 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// ImageSummary image summary -// swagger:model ImageSummary -type ImageSummary struct { - - // containers - // Required: true - Containers int64 `json:"Containers"` - - // created - // Required: true - Created int64 `json:"Created"` - - // Id - // Required: true - ID string `json:"Id"` - - // labels - // Required: true - Labels map[string]string `json:"Labels"` - - // parent Id - // Required: true - ParentID string `json:"ParentId"` - - // repo digests - // Required: true - RepoDigests []string `json:"RepoDigests"` - - // repo tags - // Required: true - RepoTags []string `json:"RepoTags"` - - // shared size - // Required: true - SharedSize int64 `json:"SharedSize"` - - // size - // Required: true - Size int64 `json:"Size"` - - // virtual size - // Required: true - VirtualSize int64 `json:"VirtualSize"` -} diff --git a/vendor/github.com/docker/docker/api/types/mount/mount.go b/vendor/github.com/docker/docker/api/types/mount/mount.go deleted file mode 100644 index 8ee1671..0000000 --- a/vendor/github.com/docker/docker/api/types/mount/mount.go +++ /dev/null @@ -1,113 +0,0 @@ -package mount - -import ( - "os" -) - -// Type represents the type of a mount. -type Type string - -// Type constants -const ( - // TypeBind is the type for mounting host dir - TypeBind Type = "bind" - // TypeVolume is the type for remote storage volumes - TypeVolume Type = "volume" - // TypeTmpfs is the type for mounting tmpfs - TypeTmpfs Type = "tmpfs" -) - -// Mount represents a mount (volume). -type Mount struct { - Type Type `json:",omitempty"` - // Source specifies the name of the mount. Depending on mount type, this - // may be a volume name or a host path, or even ignored. - // Source is not supported for tmpfs (must be an empty value) - Source string `json:",omitempty"` - Target string `json:",omitempty"` - ReadOnly bool `json:",omitempty"` - - BindOptions *BindOptions `json:",omitempty"` - VolumeOptions *VolumeOptions `json:",omitempty"` - TmpfsOptions *TmpfsOptions `json:",omitempty"` -} - -// Propagation represents the propagation of a mount. -type Propagation string - -const ( - // PropagationRPrivate RPRIVATE - PropagationRPrivate Propagation = "rprivate" - // PropagationPrivate PRIVATE - PropagationPrivate Propagation = "private" - // PropagationRShared RSHARED - PropagationRShared Propagation = "rshared" - // PropagationShared SHARED - PropagationShared Propagation = "shared" - // PropagationRSlave RSLAVE - PropagationRSlave Propagation = "rslave" - // PropagationSlave SLAVE - PropagationSlave Propagation = "slave" -) - -// Propagations is the list of all valid mount propagations -var Propagations = []Propagation{ - PropagationRPrivate, - PropagationPrivate, - PropagationRShared, - PropagationShared, - PropagationRSlave, - PropagationSlave, -} - -// BindOptions defines options specific to mounts of type "bind". -type BindOptions struct { - Propagation Propagation `json:",omitempty"` -} - -// VolumeOptions represents the options for a mount of type volume. -type VolumeOptions struct { - NoCopy bool `json:",omitempty"` - Labels map[string]string `json:",omitempty"` - DriverConfig *Driver `json:",omitempty"` -} - -// Driver represents a volume driver. -type Driver struct { - Name string `json:",omitempty"` - Options map[string]string `json:",omitempty"` -} - -// TmpfsOptions defines options specific to mounts of type "tmpfs". -type TmpfsOptions struct { - // Size sets the size of the tmpfs, in bytes. - // - // This will be converted to an operating system specific value - // depending on the host. For example, on linux, it will be converted to - // use a 'k', 'm' or 'g' syntax. BSD, though not widely supported with - // docker, uses a straight byte value. - // - // Percentages are not supported. - SizeBytes int64 `json:",omitempty"` - // Mode of the tmpfs upon creation - Mode os.FileMode `json:",omitempty"` - - // TODO(stevvooe): There are several more tmpfs flags, specified in the - // daemon, that are accepted. Only the most basic are added for now. - // - // From docker/docker/pkg/mount/flags.go: - // - // var validFlags = map[string]bool{ - // "": true, - // "size": true, X - // "mode": true, X - // "uid": true, - // "gid": true, - // "nr_inodes": true, - // "nr_blocks": true, - // "mpol": true, - // } - // - // Some of these may be straightforward to add, but others, such as - // uid/gid have implications in a clustered system. -} diff --git a/vendor/github.com/docker/docker/api/types/network/network.go b/vendor/github.com/docker/docker/api/types/network/network.go deleted file mode 100644 index 07ea050..0000000 --- a/vendor/github.com/docker/docker/api/types/network/network.go +++ /dev/null @@ -1,59 +0,0 @@ -package network - -// Address represents an IP address -type Address struct { - Addr string - PrefixLen int -} - -// IPAM represents IP Address Management -type IPAM struct { - Driver string - Options map[string]string //Per network IPAM driver options - Config []IPAMConfig -} - -// IPAMConfig represents IPAM configurations -type IPAMConfig struct { - Subnet string `json:",omitempty"` - IPRange string `json:",omitempty"` - Gateway string `json:",omitempty"` - AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"` -} - -// EndpointIPAMConfig represents IPAM configurations for the endpoint -type EndpointIPAMConfig struct { - IPv4Address string `json:",omitempty"` - IPv6Address string `json:",omitempty"` - LinkLocalIPs []string `json:",omitempty"` -} - -// PeerInfo represents one peer of an overlay network -type PeerInfo struct { - Name string - IP string -} - -// EndpointSettings stores the network endpoint details -type EndpointSettings struct { - // Configurations - IPAMConfig *EndpointIPAMConfig - Links []string - Aliases []string - // Operational data - NetworkID string - EndpointID string - Gateway string - IPAddress string - IPPrefixLen int - IPv6Gateway string - GlobalIPv6Address string - GlobalIPv6PrefixLen int - MacAddress string -} - -// NetworkingConfig represents the container's networking configuration for each of its interfaces -// Carries the networking configs specified in the `docker run` and `docker network connect` commands -type NetworkingConfig struct { - EndpointsConfig map[string]*EndpointSettings // Endpoint configs for each connecting network -} diff --git a/vendor/github.com/docker/docker/api/types/plugin.go b/vendor/github.com/docker/docker/api/types/plugin.go deleted file mode 100644 index 46f47be..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin.go +++ /dev/null @@ -1,186 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// Plugin A plugin for the Engine API -// swagger:model Plugin -type Plugin struct { - - // config - // Required: true - Config PluginConfig `json:"Config"` - - // True when the plugin is running. False when the plugin is not running, only installed. - // Required: true - Enabled bool `json:"Enabled"` - - // Id - ID string `json:"Id,omitempty"` - - // name - // Required: true - Name string `json:"Name"` - - // settings - // Required: true - Settings PluginSettings `json:"Settings"` -} - -// PluginConfig The config of a plugin. -// swagger:model PluginConfig -type PluginConfig struct { - - // args - // Required: true - Args PluginConfigArgs `json:"Args"` - - // description - // Required: true - Description string `json:"Description"` - - // documentation - // Required: true - Documentation string `json:"Documentation"` - - // entrypoint - // Required: true - Entrypoint []string `json:"Entrypoint"` - - // env - // Required: true - Env []PluginEnv `json:"Env"` - - // interface - // Required: true - Interface PluginConfigInterface `json:"Interface"` - - // linux - // Required: true - Linux PluginConfigLinux `json:"Linux"` - - // mounts - // Required: true - Mounts []PluginMount `json:"Mounts"` - - // network - // Required: true - Network PluginConfigNetwork `json:"Network"` - - // propagated mount - // Required: true - PropagatedMount string `json:"PropagatedMount"` - - // user - User PluginConfigUser `json:"User,omitempty"` - - // work dir - // Required: true - WorkDir string `json:"WorkDir"` - - // rootfs - Rootfs *PluginConfigRootfs `json:"rootfs,omitempty"` -} - -// PluginConfigArgs plugin config args -// swagger:model PluginConfigArgs -type PluginConfigArgs struct { - - // description - // Required: true - Description string `json:"Description"` - - // name - // Required: true - Name string `json:"Name"` - - // settable - // Required: true - Settable []string `json:"Settable"` - - // value - // Required: true - Value []string `json:"Value"` -} - -// PluginConfigInterface The interface between Docker and the plugin -// swagger:model PluginConfigInterface -type PluginConfigInterface struct { - - // socket - // Required: true - Socket string `json:"Socket"` - - // types - // Required: true - Types []PluginInterfaceType `json:"Types"` -} - -// PluginConfigLinux plugin config linux -// swagger:model PluginConfigLinux -type PluginConfigLinux struct { - - // allow all devices - // Required: true - AllowAllDevices bool `json:"AllowAllDevices"` - - // capabilities - // Required: true - Capabilities []string `json:"Capabilities"` - - // devices - // Required: true - Devices []PluginDevice `json:"Devices"` -} - -// PluginConfigNetwork plugin config network -// swagger:model PluginConfigNetwork -type PluginConfigNetwork struct { - - // type - // Required: true - Type string `json:"Type"` -} - -// PluginConfigRootfs plugin config rootfs -// swagger:model PluginConfigRootfs -type PluginConfigRootfs struct { - - // diff ids - DiffIds []string `json:"diff_ids"` - - // type - Type string `json:"type,omitempty"` -} - -// PluginConfigUser plugin config user -// swagger:model PluginConfigUser -type PluginConfigUser struct { - - // g ID - GID uint32 `json:"GID,omitempty"` - - // UID - UID uint32 `json:"UID,omitempty"` -} - -// PluginSettings Settings that can be modified by users. -// swagger:model PluginSettings -type PluginSettings struct { - - // args - // Required: true - Args []string `json:"Args"` - - // devices - // Required: true - Devices []PluginDevice `json:"Devices"` - - // env - // Required: true - Env []string `json:"Env"` - - // mounts - // Required: true - Mounts []PluginMount `json:"Mounts"` -} diff --git a/vendor/github.com/docker/docker/api/types/plugin_device.go b/vendor/github.com/docker/docker/api/types/plugin_device.go deleted file mode 100644 index 5699010..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin_device.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// PluginDevice plugin device -// swagger:model PluginDevice -type PluginDevice struct { - - // description - // Required: true - Description string `json:"Description"` - - // name - // Required: true - Name string `json:"Name"` - - // path - // Required: true - Path *string `json:"Path"` - - // settable - // Required: true - Settable []string `json:"Settable"` -} diff --git a/vendor/github.com/docker/docker/api/types/plugin_env.go b/vendor/github.com/docker/docker/api/types/plugin_env.go deleted file mode 100644 index 32962dc..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin_env.go +++ /dev/null @@ -1,25 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// PluginEnv plugin env -// swagger:model PluginEnv -type PluginEnv struct { - - // description - // Required: true - Description string `json:"Description"` - - // name - // Required: true - Name string `json:"Name"` - - // settable - // Required: true - Settable []string `json:"Settable"` - - // value - // Required: true - Value *string `json:"Value"` -} diff --git a/vendor/github.com/docker/docker/api/types/plugin_interface_type.go b/vendor/github.com/docker/docker/api/types/plugin_interface_type.go deleted file mode 100644 index c82f204..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin_interface_type.go +++ /dev/null @@ -1,21 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// PluginInterfaceType plugin interface type -// swagger:model PluginInterfaceType -type PluginInterfaceType struct { - - // capability - // Required: true - Capability string `json:"Capability"` - - // prefix - // Required: true - Prefix string `json:"Prefix"` - - // version - // Required: true - Version string `json:"Version"` -} diff --git a/vendor/github.com/docker/docker/api/types/plugin_mount.go b/vendor/github.com/docker/docker/api/types/plugin_mount.go deleted file mode 100644 index 5c031cf..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin_mount.go +++ /dev/null @@ -1,37 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// PluginMount plugin mount -// swagger:model PluginMount -type PluginMount struct { - - // description - // Required: true - Description string `json:"Description"` - - // destination - // Required: true - Destination string `json:"Destination"` - - // name - // Required: true - Name string `json:"Name"` - - // options - // Required: true - Options []string `json:"Options"` - - // settable - // Required: true - Settable []string `json:"Settable"` - - // source - // Required: true - Source *string `json:"Source"` - - // type - // Required: true - Type string `json:"Type"` -} diff --git a/vendor/github.com/docker/docker/api/types/plugin_responses.go b/vendor/github.com/docker/docker/api/types/plugin_responses.go deleted file mode 100644 index d6f7553..0000000 --- a/vendor/github.com/docker/docker/api/types/plugin_responses.go +++ /dev/null @@ -1,64 +0,0 @@ -package types - -import ( - "encoding/json" - "fmt" -) - -// PluginsListResponse contains the response for the Engine API -type PluginsListResponse []*Plugin - -const ( - authzDriver = "AuthzDriver" - graphDriver = "GraphDriver" - ipamDriver = "IpamDriver" - networkDriver = "NetworkDriver" - volumeDriver = "VolumeDriver" -) - -// UnmarshalJSON implements json.Unmarshaler for PluginInterfaceType -func (t *PluginInterfaceType) UnmarshalJSON(p []byte) error { - versionIndex := len(p) - prefixIndex := 0 - if len(p) < 2 || p[0] != '"' || p[len(p)-1] != '"' { - return fmt.Errorf("%q is not a plugin interface type", p) - } - p = p[1 : len(p)-1] -loop: - for i, b := range p { - switch b { - case '.': - prefixIndex = i - case '/': - versionIndex = i - break loop - } - } - t.Prefix = string(p[:prefixIndex]) - t.Capability = string(p[prefixIndex+1 : versionIndex]) - if versionIndex < len(p) { - t.Version = string(p[versionIndex+1:]) - } - return nil -} - -// MarshalJSON implements json.Marshaler for PluginInterfaceType -func (t *PluginInterfaceType) MarshalJSON() ([]byte, error) { - return json.Marshal(t.String()) -} - -// String implements fmt.Stringer for PluginInterfaceType -func (t PluginInterfaceType) String() string { - return fmt.Sprintf("%s.%s/%s", t.Prefix, t.Capability, t.Version) -} - -// PluginPrivilege describes a permission the user has to accept -// upon installing a plugin. -type PluginPrivilege struct { - Name string - Description string - Value []string -} - -// PluginPrivileges is a list of PluginPrivilege -type PluginPrivileges []PluginPrivilege diff --git a/vendor/github.com/docker/docker/api/types/port.go b/vendor/github.com/docker/docker/api/types/port.go deleted file mode 100644 index ad52d46..0000000 --- a/vendor/github.com/docker/docker/api/types/port.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// Port An open port on a container -// swagger:model Port -type Port struct { - - // IP - IP string `json:"IP,omitempty"` - - // Port on the container - // Required: true - PrivatePort uint16 `json:"PrivatePort"` - - // Port exposed on the host - PublicPort uint16 `json:"PublicPort,omitempty"` - - // type - // Required: true - Type string `json:"Type"` -} diff --git a/vendor/github.com/docker/docker/api/types/reference/image_reference.go b/vendor/github.com/docker/docker/api/types/reference/image_reference.go deleted file mode 100644 index be9cf8e..0000000 --- a/vendor/github.com/docker/docker/api/types/reference/image_reference.go +++ /dev/null @@ -1,34 +0,0 @@ -package reference - -import ( - distreference "github.com/docker/distribution/reference" -) - -// Parse parses the given references and returns the repository and -// tag (if present) from it. If there is an error during parsing, it will -// return an error. -func Parse(ref string) (string, string, error) { - distributionRef, err := distreference.ParseNamed(ref) - if err != nil { - return "", "", err - } - - tag := GetTagFromNamedRef(distributionRef) - return distributionRef.Name(), tag, nil -} - -// GetTagFromNamedRef returns a tag from the specified reference. -// This function is necessary as long as the docker "server" api makes the distinction between repository -// and tags. -func GetTagFromNamedRef(ref distreference.Named) string { - var tag string - switch x := ref.(type) { - case distreference.Digested: - tag = x.Digest().String() - case distreference.NamedTagged: - tag = x.Tag() - default: - tag = "latest" - } - return tag -} diff --git a/vendor/github.com/docker/docker/api/types/registry/authenticate.go b/vendor/github.com/docker/docker/api/types/registry/authenticate.go deleted file mode 100644 index 42cac44..0000000 --- a/vendor/github.com/docker/docker/api/types/registry/authenticate.go +++ /dev/null @@ -1,21 +0,0 @@ -package registry - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -// AuthenticateOKBody authenticate o k body -// swagger:model AuthenticateOKBody -type AuthenticateOKBody struct { - - // An opaque token used to authenticate a user after a successful login - // Required: true - IdentityToken string `json:"IdentityToken"` - - // The status of the authentication - // Required: true - Status string `json:"Status"` -} diff --git a/vendor/github.com/docker/docker/api/types/registry/registry.go b/vendor/github.com/docker/docker/api/types/registry/registry.go deleted file mode 100644 index 28fafab..0000000 --- a/vendor/github.com/docker/docker/api/types/registry/registry.go +++ /dev/null @@ -1,104 +0,0 @@ -package registry - -import ( - "encoding/json" - "net" -) - -// ServiceConfig stores daemon registry services configuration. -type ServiceConfig struct { - InsecureRegistryCIDRs []*NetIPNet `json:"InsecureRegistryCIDRs"` - IndexConfigs map[string]*IndexInfo `json:"IndexConfigs"` - Mirrors []string -} - -// NetIPNet is the net.IPNet type, which can be marshalled and -// unmarshalled to JSON -type NetIPNet net.IPNet - -// String returns the CIDR notation of ipnet -func (ipnet *NetIPNet) String() string { - return (*net.IPNet)(ipnet).String() -} - -// MarshalJSON returns the JSON representation of the IPNet -func (ipnet *NetIPNet) MarshalJSON() ([]byte, error) { - return json.Marshal((*net.IPNet)(ipnet).String()) -} - -// UnmarshalJSON sets the IPNet from a byte array of JSON -func (ipnet *NetIPNet) UnmarshalJSON(b []byte) (err error) { - var ipnetStr string - if err = json.Unmarshal(b, &ipnetStr); err == nil { - var cidr *net.IPNet - if _, cidr, err = net.ParseCIDR(ipnetStr); err == nil { - *ipnet = NetIPNet(*cidr) - } - } - return -} - -// IndexInfo contains information about a registry -// -// RepositoryInfo Examples: -// { -// "Index" : { -// "Name" : "docker.io", -// "Mirrors" : ["https://registry-2.docker.io/v1/", "https://registry-3.docker.io/v1/"], -// "Secure" : true, -// "Official" : true, -// }, -// "RemoteName" : "library/debian", -// "LocalName" : "debian", -// "CanonicalName" : "docker.io/debian" -// "Official" : true, -// } -// -// { -// "Index" : { -// "Name" : "127.0.0.1:5000", -// "Mirrors" : [], -// "Secure" : false, -// "Official" : false, -// }, -// "RemoteName" : "user/repo", -// "LocalName" : "127.0.0.1:5000/user/repo", -// "CanonicalName" : "127.0.0.1:5000/user/repo", -// "Official" : false, -// } -type IndexInfo struct { - // Name is the name of the registry, such as "docker.io" - Name string - // Mirrors is a list of mirrors, expressed as URIs - Mirrors []string - // Secure is set to false if the registry is part of the list of - // insecure registries. Insecure registries accept HTTP and/or accept - // HTTPS with certificates from unknown CAs. - Secure bool - // Official indicates whether this is an official registry - Official bool -} - -// SearchResult describes a search result returned from a registry -type SearchResult struct { - // StarCount indicates the number of stars this repository has - StarCount int `json:"star_count"` - // IsOfficial is true if the result is from an official repository. - IsOfficial bool `json:"is_official"` - // Name is the name of the repository - Name string `json:"name"` - // IsAutomated indicates whether the result is automated - IsAutomated bool `json:"is_automated"` - // Description is a textual description of the repository - Description string `json:"description"` -} - -// SearchResults lists a collection search results returned from a registry -type SearchResults struct { - // Query contains the query string that generated the search results - Query string `json:"query"` - // NumResults indicates the number of results the query returned - NumResults int `json:"num_results"` - // Results is a slice containing the actual results for the search - Results []SearchResult `json:"results"` -} diff --git a/vendor/github.com/docker/docker/api/types/seccomp.go b/vendor/github.com/docker/docker/api/types/seccomp.go deleted file mode 100644 index 7d62c9a..0000000 --- a/vendor/github.com/docker/docker/api/types/seccomp.go +++ /dev/null @@ -1,93 +0,0 @@ -package types - -// Seccomp represents the config for a seccomp profile for syscall restriction. -type Seccomp struct { - DefaultAction Action `json:"defaultAction"` - // Architectures is kept to maintain backward compatibility with the old - // seccomp profile. - Architectures []Arch `json:"architectures,omitempty"` - ArchMap []Architecture `json:"archMap,omitempty"` - Syscalls []*Syscall `json:"syscalls"` -} - -// Architecture is used to represent a specific architecture -// and its sub-architectures -type Architecture struct { - Arch Arch `json:"architecture"` - SubArches []Arch `json:"subArchitectures"` -} - -// Arch used for architectures -type Arch string - -// Additional architectures permitted to be used for system calls -// By default only the native architecture of the kernel is permitted -const ( - ArchX86 Arch = "SCMP_ARCH_X86" - ArchX86_64 Arch = "SCMP_ARCH_X86_64" - ArchX32 Arch = "SCMP_ARCH_X32" - ArchARM Arch = "SCMP_ARCH_ARM" - ArchAARCH64 Arch = "SCMP_ARCH_AARCH64" - ArchMIPS Arch = "SCMP_ARCH_MIPS" - ArchMIPS64 Arch = "SCMP_ARCH_MIPS64" - ArchMIPS64N32 Arch = "SCMP_ARCH_MIPS64N32" - ArchMIPSEL Arch = "SCMP_ARCH_MIPSEL" - ArchMIPSEL64 Arch = "SCMP_ARCH_MIPSEL64" - ArchMIPSEL64N32 Arch = "SCMP_ARCH_MIPSEL64N32" - ArchPPC Arch = "SCMP_ARCH_PPC" - ArchPPC64 Arch = "SCMP_ARCH_PPC64" - ArchPPC64LE Arch = "SCMP_ARCH_PPC64LE" - ArchS390 Arch = "SCMP_ARCH_S390" - ArchS390X Arch = "SCMP_ARCH_S390X" -) - -// Action taken upon Seccomp rule match -type Action string - -// Define actions for Seccomp rules -const ( - ActKill Action = "SCMP_ACT_KILL" - ActTrap Action = "SCMP_ACT_TRAP" - ActErrno Action = "SCMP_ACT_ERRNO" - ActTrace Action = "SCMP_ACT_TRACE" - ActAllow Action = "SCMP_ACT_ALLOW" -) - -// Operator used to match syscall arguments in Seccomp -type Operator string - -// Define operators for syscall arguments in Seccomp -const ( - OpNotEqual Operator = "SCMP_CMP_NE" - OpLessThan Operator = "SCMP_CMP_LT" - OpLessEqual Operator = "SCMP_CMP_LE" - OpEqualTo Operator = "SCMP_CMP_EQ" - OpGreaterEqual Operator = "SCMP_CMP_GE" - OpGreaterThan Operator = "SCMP_CMP_GT" - OpMaskedEqual Operator = "SCMP_CMP_MASKED_EQ" -) - -// Arg used for matching specific syscall arguments in Seccomp -type Arg struct { - Index uint `json:"index"` - Value uint64 `json:"value"` - ValueTwo uint64 `json:"valueTwo"` - Op Operator `json:"op"` -} - -// Filter is used to conditionally apply Seccomp rules -type Filter struct { - Caps []string `json:"caps,omitempty"` - Arches []string `json:"arches,omitempty"` -} - -// Syscall is used to match a group of syscalls in Seccomp -type Syscall struct { - Name string `json:"name,omitempty"` - Names []string `json:"names,omitempty"` - Action Action `json:"action"` - Args []*Arg `json:"args"` - Comment string `json:"comment"` - Includes Filter `json:"includes"` - Excludes Filter `json:"excludes"` -} diff --git a/vendor/github.com/docker/docker/api/types/service_update_response.go b/vendor/github.com/docker/docker/api/types/service_update_response.go deleted file mode 100644 index 74ea64b..0000000 --- a/vendor/github.com/docker/docker/api/types/service_update_response.go +++ /dev/null @@ -1,12 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// ServiceUpdateResponse service update response -// swagger:model ServiceUpdateResponse -type ServiceUpdateResponse struct { - - // Optional warning messages - Warnings []string `json:"Warnings"` -} diff --git a/vendor/github.com/docker/docker/api/types/stats.go b/vendor/github.com/docker/docker/api/types/stats.go deleted file mode 100644 index 9bf1928..0000000 --- a/vendor/github.com/docker/docker/api/types/stats.go +++ /dev/null @@ -1,178 +0,0 @@ -// Package types is used for API stability in the types and response to the -// consumers of the API stats endpoint. -package types - -import "time" - -// ThrottlingData stores CPU throttling stats of one running container. -// Not used on Windows. -type ThrottlingData struct { - // Number of periods with throttling active - Periods uint64 `json:"periods"` - // Number of periods when the container hits its throttling limit. - ThrottledPeriods uint64 `json:"throttled_periods"` - // Aggregate time the container was throttled for in nanoseconds. - ThrottledTime uint64 `json:"throttled_time"` -} - -// CPUUsage stores All CPU stats aggregated since container inception. -type CPUUsage struct { - // Total CPU time consumed. - // Units: nanoseconds (Linux) - // Units: 100's of nanoseconds (Windows) - TotalUsage uint64 `json:"total_usage"` - - // Total CPU time consumed per core (Linux). Not used on Windows. - // Units: nanoseconds. - PercpuUsage []uint64 `json:"percpu_usage,omitempty"` - - // Time spent by tasks of the cgroup in kernel mode (Linux). - // Time spent by all container processes in kernel mode (Windows). - // Units: nanoseconds (Linux). - // Units: 100's of nanoseconds (Windows). Not populated for Hyper-V Containers. - UsageInKernelmode uint64 `json:"usage_in_kernelmode"` - - // Time spent by tasks of the cgroup in user mode (Linux). - // Time spent by all container processes in user mode (Windows). - // Units: nanoseconds (Linux). - // Units: 100's of nanoseconds (Windows). Not populated for Hyper-V Containers - UsageInUsermode uint64 `json:"usage_in_usermode"` -} - -// CPUStats aggregates and wraps all CPU related info of container -type CPUStats struct { - // CPU Usage. Linux and Windows. - CPUUsage CPUUsage `json:"cpu_usage"` - - // System Usage. Linux only. - SystemUsage uint64 `json:"system_cpu_usage,omitempty"` - - // Throttling Data. Linux only. - ThrottlingData ThrottlingData `json:"throttling_data,omitempty"` -} - -// MemoryStats aggregates all memory stats since container inception on Linux. -// Windows returns stats for commit and private working set only. -type MemoryStats struct { - // Linux Memory Stats - - // current res_counter usage for memory - Usage uint64 `json:"usage,omitempty"` - // maximum usage ever recorded. - MaxUsage uint64 `json:"max_usage,omitempty"` - // TODO(vishh): Export these as stronger types. - // all the stats exported via memory.stat. - Stats map[string]uint64 `json:"stats,omitempty"` - // number of times memory usage hits limits. - Failcnt uint64 `json:"failcnt,omitempty"` - Limit uint64 `json:"limit,omitempty"` - - // Windows Memory Stats - // See https://technet.microsoft.com/en-us/magazine/ff382715.aspx - - // committed bytes - Commit uint64 `json:"commitbytes,omitempty"` - // peak committed bytes - CommitPeak uint64 `json:"commitpeakbytes,omitempty"` - // private working set - PrivateWorkingSet uint64 `json:"privateworkingset,omitempty"` -} - -// BlkioStatEntry is one small entity to store a piece of Blkio stats -// Not used on Windows. -type BlkioStatEntry struct { - Major uint64 `json:"major"` - Minor uint64 `json:"minor"` - Op string `json:"op"` - Value uint64 `json:"value"` -} - -// BlkioStats stores All IO service stats for data read and write. -// This is a Linux specific structure as the differences between expressing -// block I/O on Windows and Linux are sufficiently significant to make -// little sense attempting to morph into a combined structure. -type BlkioStats struct { - // number of bytes transferred to and from the block device - IoServiceBytesRecursive []BlkioStatEntry `json:"io_service_bytes_recursive"` - IoServicedRecursive []BlkioStatEntry `json:"io_serviced_recursive"` - IoQueuedRecursive []BlkioStatEntry `json:"io_queue_recursive"` - IoServiceTimeRecursive []BlkioStatEntry `json:"io_service_time_recursive"` - IoWaitTimeRecursive []BlkioStatEntry `json:"io_wait_time_recursive"` - IoMergedRecursive []BlkioStatEntry `json:"io_merged_recursive"` - IoTimeRecursive []BlkioStatEntry `json:"io_time_recursive"` - SectorsRecursive []BlkioStatEntry `json:"sectors_recursive"` -} - -// StorageStats is the disk I/O stats for read/write on Windows. -type StorageStats struct { - ReadCountNormalized uint64 `json:"read_count_normalized,omitempty"` - ReadSizeBytes uint64 `json:"read_size_bytes,omitempty"` - WriteCountNormalized uint64 `json:"write_count_normalized,omitempty"` - WriteSizeBytes uint64 `json:"write_size_bytes,omitempty"` -} - -// NetworkStats aggregates the network stats of one container -type NetworkStats struct { - // Bytes received. Windows and Linux. - RxBytes uint64 `json:"rx_bytes"` - // Packets received. Windows and Linux. - RxPackets uint64 `json:"rx_packets"` - // Received errors. Not used on Windows. Note that we dont `omitempty` this - // field as it is expected in the >=v1.21 API stats structure. - RxErrors uint64 `json:"rx_errors"` - // Incoming packets dropped. Windows and Linux. - RxDropped uint64 `json:"rx_dropped"` - // Bytes sent. Windows and Linux. - TxBytes uint64 `json:"tx_bytes"` - // Packets sent. Windows and Linux. - TxPackets uint64 `json:"tx_packets"` - // Sent errors. Not used on Windows. Note that we dont `omitempty` this - // field as it is expected in the >=v1.21 API stats structure. - TxErrors uint64 `json:"tx_errors"` - // Outgoing packets dropped. Windows and Linux. - TxDropped uint64 `json:"tx_dropped"` - // Endpoint ID. Not used on Linux. - EndpointID string `json:"endpoint_id,omitempty"` - // Instance ID. Not used on Linux. - InstanceID string `json:"instance_id,omitempty"` -} - -// PidsStats contains the stats of a container's pids -type PidsStats struct { - // Current is the number of pids in the cgroup - Current uint64 `json:"current,omitempty"` - // Limit is the hard limit on the number of pids in the cgroup. - // A "Limit" of 0 means that there is no limit. - Limit uint64 `json:"limit,omitempty"` -} - -// Stats is Ultimate struct aggregating all types of stats of one container -type Stats struct { - // Common stats - Read time.Time `json:"read"` - PreRead time.Time `json:"preread"` - - // Linux specific stats, not populated on Windows. - PidsStats PidsStats `json:"pids_stats,omitempty"` - BlkioStats BlkioStats `json:"blkio_stats,omitempty"` - - // Windows specific stats, not populated on Linux. - NumProcs uint32 `json:"num_procs"` - StorageStats StorageStats `json:"storage_stats,omitempty"` - - // Shared stats - CPUStats CPUStats `json:"cpu_stats,omitempty"` - PreCPUStats CPUStats `json:"precpu_stats,omitempty"` // "Pre"="Previous" - MemoryStats MemoryStats `json:"memory_stats,omitempty"` -} - -// StatsJSON is newly used Networks -type StatsJSON struct { - Stats - - Name string `json:"name,omitempty"` - ID string `json:"id,omitempty"` - - // Networks request version >=1.21 - Networks map[string]NetworkStats `json:"networks,omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/strslice/strslice.go b/vendor/github.com/docker/docker/api/types/strslice/strslice.go deleted file mode 100644 index bad493f..0000000 --- a/vendor/github.com/docker/docker/api/types/strslice/strslice.go +++ /dev/null @@ -1,30 +0,0 @@ -package strslice - -import "encoding/json" - -// StrSlice represents a string or an array of strings. -// We need to override the json decoder to accept both options. -type StrSlice []string - -// UnmarshalJSON decodes the byte slice whether it's a string or an array of -// strings. This method is needed to implement json.Unmarshaler. -func (e *StrSlice) UnmarshalJSON(b []byte) error { - if len(b) == 0 { - // With no input, we preserve the existing value by returning nil and - // leaving the target alone. This allows defining default values for - // the type. - return nil - } - - p := make([]string, 0, 1) - if err := json.Unmarshal(b, &p); err != nil { - var s string - if err := json.Unmarshal(b, &s); err != nil { - return err - } - p = append(p, s) - } - - *e = p - return nil -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/common.go b/vendor/github.com/docker/docker/api/types/swarm/common.go deleted file mode 100644 index 64a648b..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/common.go +++ /dev/null @@ -1,27 +0,0 @@ -package swarm - -import "time" - -// Version represents the internal object version. -type Version struct { - Index uint64 `json:",omitempty"` -} - -// Meta is a base object inherited by most of the other once. -type Meta struct { - Version Version `json:",omitempty"` - CreatedAt time.Time `json:",omitempty"` - UpdatedAt time.Time `json:",omitempty"` -} - -// Annotations represents how to describe an object. -type Annotations struct { - Name string `json:",omitempty"` - Labels map[string]string `json:",omitempty"` -} - -// Driver represents a driver (network, logging). -type Driver struct { - Name string `json:",omitempty"` - Options map[string]string `json:",omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/container.go b/vendor/github.com/docker/docker/api/types/swarm/container.go deleted file mode 100644 index 4ab476c..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/container.go +++ /dev/null @@ -1,46 +0,0 @@ -package swarm - -import ( - "time" - - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/mount" -) - -// DNSConfig specifies DNS related configurations in resolver configuration file (resolv.conf) -// Detailed documentation is available in: -// http://man7.org/linux/man-pages/man5/resolv.conf.5.html -// `nameserver`, `search`, `options` have been supported. -// TODO: `domain` is not supported yet. -type DNSConfig struct { - // Nameservers specifies the IP addresses of the name servers - Nameservers []string `json:",omitempty"` - // Search specifies the search list for host-name lookup - Search []string `json:",omitempty"` - // Options allows certain internal resolver variables to be modified - Options []string `json:",omitempty"` -} - -// ContainerSpec represents the spec of a container. -type ContainerSpec struct { - Image string `json:",omitempty"` - Labels map[string]string `json:",omitempty"` - Command []string `json:",omitempty"` - Args []string `json:",omitempty"` - Hostname string `json:",omitempty"` - Env []string `json:",omitempty"` - Dir string `json:",omitempty"` - User string `json:",omitempty"` - Groups []string `json:",omitempty"` - TTY bool `json:",omitempty"` - OpenStdin bool `json:",omitempty"` - Mounts []mount.Mount `json:",omitempty"` - StopGracePeriod *time.Duration `json:",omitempty"` - Healthcheck *container.HealthConfig `json:",omitempty"` - // The format of extra hosts on swarmkit is specified in: - // http://man7.org/linux/man-pages/man5/hosts.5.html - // IP_address canonical_hostname [aliases...] - Hosts []string `json:",omitempty"` - DNSConfig *DNSConfig `json:",omitempty"` - Secrets []*SecretReference `json:",omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/network.go b/vendor/github.com/docker/docker/api/types/swarm/network.go deleted file mode 100644 index 5a5e11b..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/network.go +++ /dev/null @@ -1,111 +0,0 @@ -package swarm - -// Endpoint represents an endpoint. -type Endpoint struct { - Spec EndpointSpec `json:",omitempty"` - Ports []PortConfig `json:",omitempty"` - VirtualIPs []EndpointVirtualIP `json:",omitempty"` -} - -// EndpointSpec represents the spec of an endpoint. -type EndpointSpec struct { - Mode ResolutionMode `json:",omitempty"` - Ports []PortConfig `json:",omitempty"` -} - -// ResolutionMode represents a resolution mode. -type ResolutionMode string - -const ( - // ResolutionModeVIP VIP - ResolutionModeVIP ResolutionMode = "vip" - // ResolutionModeDNSRR DNSRR - ResolutionModeDNSRR ResolutionMode = "dnsrr" -) - -// PortConfig represents the config of a port. -type PortConfig struct { - Name string `json:",omitempty"` - Protocol PortConfigProtocol `json:",omitempty"` - // TargetPort is the port inside the container - TargetPort uint32 `json:",omitempty"` - // PublishedPort is the port on the swarm hosts - PublishedPort uint32 `json:",omitempty"` - // PublishMode is the mode in which port is published - PublishMode PortConfigPublishMode `json:",omitempty"` -} - -// PortConfigPublishMode represents the mode in which the port is to -// be published. -type PortConfigPublishMode string - -const ( - // PortConfigPublishModeIngress is used for ports published - // for ingress load balancing using routing mesh. - PortConfigPublishModeIngress PortConfigPublishMode = "ingress" - // PortConfigPublishModeHost is used for ports published - // for direct host level access on the host where the task is running. - PortConfigPublishModeHost PortConfigPublishMode = "host" -) - -// PortConfigProtocol represents the protocol of a port. -type PortConfigProtocol string - -const ( - // TODO(stevvooe): These should be used generally, not just for PortConfig. - - // PortConfigProtocolTCP TCP - PortConfigProtocolTCP PortConfigProtocol = "tcp" - // PortConfigProtocolUDP UDP - PortConfigProtocolUDP PortConfigProtocol = "udp" -) - -// EndpointVirtualIP represents the virtual ip of a port. -type EndpointVirtualIP struct { - NetworkID string `json:",omitempty"` - Addr string `json:",omitempty"` -} - -// Network represents a network. -type Network struct { - ID string - Meta - Spec NetworkSpec `json:",omitempty"` - DriverState Driver `json:",omitempty"` - IPAMOptions *IPAMOptions `json:",omitempty"` -} - -// NetworkSpec represents the spec of a network. -type NetworkSpec struct { - Annotations - DriverConfiguration *Driver `json:",omitempty"` - IPv6Enabled bool `json:",omitempty"` - Internal bool `json:",omitempty"` - Attachable bool `json:",omitempty"` - IPAMOptions *IPAMOptions `json:",omitempty"` -} - -// NetworkAttachmentConfig represents the configuration of a network attachment. -type NetworkAttachmentConfig struct { - Target string `json:",omitempty"` - Aliases []string `json:",omitempty"` -} - -// NetworkAttachment represents a network attachment. -type NetworkAttachment struct { - Network Network `json:",omitempty"` - Addresses []string `json:",omitempty"` -} - -// IPAMOptions represents ipam options. -type IPAMOptions struct { - Driver Driver `json:",omitempty"` - Configs []IPAMConfig `json:",omitempty"` -} - -// IPAMConfig represents ipam configuration. -type IPAMConfig struct { - Subnet string `json:",omitempty"` - Range string `json:",omitempty"` - Gateway string `json:",omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/node.go b/vendor/github.com/docker/docker/api/types/swarm/node.go deleted file mode 100644 index 379e17a..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/node.go +++ /dev/null @@ -1,114 +0,0 @@ -package swarm - -// Node represents a node. -type Node struct { - ID string - Meta - // Spec defines the desired state of the node as specified by the user. - // The system will honor this and will *never* modify it. - Spec NodeSpec `json:",omitempty"` - // Description encapsulates the properties of the Node as reported by the - // agent. - Description NodeDescription `json:",omitempty"` - // Status provides the current status of the node, as seen by the manager. - Status NodeStatus `json:",omitempty"` - // ManagerStatus provides the current status of the node's manager - // component, if the node is a manager. - ManagerStatus *ManagerStatus `json:",omitempty"` -} - -// NodeSpec represents the spec of a node. -type NodeSpec struct { - Annotations - Role NodeRole `json:",omitempty"` - Availability NodeAvailability `json:",omitempty"` -} - -// NodeRole represents the role of a node. -type NodeRole string - -const ( - // NodeRoleWorker WORKER - NodeRoleWorker NodeRole = "worker" - // NodeRoleManager MANAGER - NodeRoleManager NodeRole = "manager" -) - -// NodeAvailability represents the availability of a node. -type NodeAvailability string - -const ( - // NodeAvailabilityActive ACTIVE - NodeAvailabilityActive NodeAvailability = "active" - // NodeAvailabilityPause PAUSE - NodeAvailabilityPause NodeAvailability = "pause" - // NodeAvailabilityDrain DRAIN - NodeAvailabilityDrain NodeAvailability = "drain" -) - -// NodeDescription represents the description of a node. -type NodeDescription struct { - Hostname string `json:",omitempty"` - Platform Platform `json:",omitempty"` - Resources Resources `json:",omitempty"` - Engine EngineDescription `json:",omitempty"` -} - -// Platform represents the platform (Arch/OS). -type Platform struct { - Architecture string `json:",omitempty"` - OS string `json:",omitempty"` -} - -// EngineDescription represents the description of an engine. -type EngineDescription struct { - EngineVersion string `json:",omitempty"` - Labels map[string]string `json:",omitempty"` - Plugins []PluginDescription `json:",omitempty"` -} - -// PluginDescription represents the description of an engine plugin. -type PluginDescription struct { - Type string `json:",omitempty"` - Name string `json:",omitempty"` -} - -// NodeStatus represents the status of a node. -type NodeStatus struct { - State NodeState `json:",omitempty"` - Message string `json:",omitempty"` - Addr string `json:",omitempty"` -} - -// Reachability represents the reachability of a node. -type Reachability string - -const ( - // ReachabilityUnknown UNKNOWN - ReachabilityUnknown Reachability = "unknown" - // ReachabilityUnreachable UNREACHABLE - ReachabilityUnreachable Reachability = "unreachable" - // ReachabilityReachable REACHABLE - ReachabilityReachable Reachability = "reachable" -) - -// ManagerStatus represents the status of a manager. -type ManagerStatus struct { - Leader bool `json:",omitempty"` - Reachability Reachability `json:",omitempty"` - Addr string `json:",omitempty"` -} - -// NodeState represents the state of a node. -type NodeState string - -const ( - // NodeStateUnknown UNKNOWN - NodeStateUnknown NodeState = "unknown" - // NodeStateDown DOWN - NodeStateDown NodeState = "down" - // NodeStateReady READY - NodeStateReady NodeState = "ready" - // NodeStateDisconnected DISCONNECTED - NodeStateDisconnected NodeState = "disconnected" -) diff --git a/vendor/github.com/docker/docker/api/types/swarm/secret.go b/vendor/github.com/docker/docker/api/types/swarm/secret.go deleted file mode 100644 index fdb2388..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/secret.go +++ /dev/null @@ -1,31 +0,0 @@ -package swarm - -import "os" - -// Secret represents a secret. -type Secret struct { - ID string - Meta - Spec SecretSpec -} - -// SecretSpec represents a secret specification from a secret in swarm -type SecretSpec struct { - Annotations - Data []byte `json:",omitempty"` -} - -// SecretReferenceFileTarget is a file target in a secret reference -type SecretReferenceFileTarget struct { - Name string - UID string - GID string - Mode os.FileMode -} - -// SecretReference is a reference to a secret in swarm -type SecretReference struct { - File *SecretReferenceFileTarget - SecretID string - SecretName string -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/service.go b/vendor/github.com/docker/docker/api/types/swarm/service.go deleted file mode 100644 index 04f59de..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/service.go +++ /dev/null @@ -1,105 +0,0 @@ -package swarm - -import "time" - -// Service represents a service. -type Service struct { - ID string - Meta - Spec ServiceSpec `json:",omitempty"` - PreviousSpec *ServiceSpec `json:",omitempty"` - Endpoint Endpoint `json:",omitempty"` - UpdateStatus *UpdateStatus `json:",omitempty"` -} - -// ServiceSpec represents the spec of a service. -type ServiceSpec struct { - Annotations - - // TaskTemplate defines how the service should construct new tasks when - // orchestrating this service. - TaskTemplate TaskSpec `json:",omitempty"` - Mode ServiceMode `json:",omitempty"` - UpdateConfig *UpdateConfig `json:",omitempty"` - - // Networks field in ServiceSpec is deprecated. The - // same field in TaskSpec should be used instead. - // This field will be removed in a future release. - Networks []NetworkAttachmentConfig `json:",omitempty"` - EndpointSpec *EndpointSpec `json:",omitempty"` -} - -// ServiceMode represents the mode of a service. -type ServiceMode struct { - Replicated *ReplicatedService `json:",omitempty"` - Global *GlobalService `json:",omitempty"` -} - -// UpdateState is the state of a service update. -type UpdateState string - -const ( - // UpdateStateUpdating is the updating state. - UpdateStateUpdating UpdateState = "updating" - // UpdateStatePaused is the paused state. - UpdateStatePaused UpdateState = "paused" - // UpdateStateCompleted is the completed state. - UpdateStateCompleted UpdateState = "completed" -) - -// UpdateStatus reports the status of a service update. -type UpdateStatus struct { - State UpdateState `json:",omitempty"` - StartedAt *time.Time `json:",omitempty"` - CompletedAt *time.Time `json:",omitempty"` - Message string `json:",omitempty"` -} - -// ReplicatedService is a kind of ServiceMode. -type ReplicatedService struct { - Replicas *uint64 `json:",omitempty"` -} - -// GlobalService is a kind of ServiceMode. -type GlobalService struct{} - -const ( - // UpdateFailureActionPause PAUSE - UpdateFailureActionPause = "pause" - // UpdateFailureActionContinue CONTINUE - UpdateFailureActionContinue = "continue" -) - -// UpdateConfig represents the update configuration. -type UpdateConfig struct { - // Maximum number of tasks to be updated in one iteration. - // 0 means unlimited parallelism. - Parallelism uint64 - - // Amount of time between updates. - Delay time.Duration `json:",omitempty"` - - // FailureAction is the action to take when an update failures. - FailureAction string `json:",omitempty"` - - // Monitor indicates how long to monitor a task for failure after it is - // created. If the task fails by ending up in one of the states - // REJECTED, COMPLETED, or FAILED, within Monitor from its creation, - // this counts as a failure. If it fails after Monitor, it does not - // count as a failure. If Monitor is unspecified, a default value will - // be used. - Monitor time.Duration `json:",omitempty"` - - // MaxFailureRatio is the fraction of tasks that may fail during - // an update before the failure action is invoked. Any task created by - // the current update which ends up in one of the states REJECTED, - // COMPLETED or FAILED within Monitor from its creation counts as a - // failure. The number of failures is divided by the number of tasks - // being updated, and if this fraction is greater than - // MaxFailureRatio, the failure action is invoked. - // - // If the failure action is CONTINUE, there is no effect. - // If the failure action is PAUSE, no more tasks will be updated until - // another update is started. - MaxFailureRatio float32 -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/swarm.go b/vendor/github.com/docker/docker/api/types/swarm/swarm.go deleted file mode 100644 index 549671e..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/swarm.go +++ /dev/null @@ -1,199 +0,0 @@ -package swarm - -import "time" - -// ClusterInfo represents info about the cluster for outputing in "info" -// it contains the same information as "Swarm", but without the JoinTokens -type ClusterInfo struct { - ID string - Meta - Spec Spec -} - -// Swarm represents a swarm. -type Swarm struct { - ClusterInfo - JoinTokens JoinTokens -} - -// JoinTokens contains the tokens workers and managers need to join the swarm. -type JoinTokens struct { - // Worker is the join token workers may use to join the swarm. - Worker string - // Manager is the join token managers may use to join the swarm. - Manager string -} - -// Spec represents the spec of a swarm. -type Spec struct { - Annotations - - Orchestration OrchestrationConfig `json:",omitempty"` - Raft RaftConfig `json:",omitempty"` - Dispatcher DispatcherConfig `json:",omitempty"` - CAConfig CAConfig `json:",omitempty"` - TaskDefaults TaskDefaults `json:",omitempty"` - EncryptionConfig EncryptionConfig `json:",omitempty"` -} - -// OrchestrationConfig represents orchestration configuration. -type OrchestrationConfig struct { - // TaskHistoryRetentionLimit is the number of historic tasks to keep per instance or - // node. If negative, never remove completed or failed tasks. - TaskHistoryRetentionLimit *int64 `json:",omitempty"` -} - -// TaskDefaults parameterizes cluster-level task creation with default values. -type TaskDefaults struct { - // LogDriver selects the log driver to use for tasks created in the - // orchestrator if unspecified by a service. - // - // Updating this value will only have an affect on new tasks. Old tasks - // will continue use their previously configured log driver until - // recreated. - LogDriver *Driver `json:",omitempty"` -} - -// EncryptionConfig controls at-rest encryption of data and keys. -type EncryptionConfig struct { - // AutoLockManagers specifies whether or not managers TLS keys and raft data - // should be encrypted at rest in such a way that they must be unlocked - // before the manager node starts up again. - AutoLockManagers bool -} - -// RaftConfig represents raft configuration. -type RaftConfig struct { - // SnapshotInterval is the number of log entries between snapshots. - SnapshotInterval uint64 `json:",omitempty"` - - // KeepOldSnapshots is the number of snapshots to keep beyond the - // current snapshot. - KeepOldSnapshots *uint64 `json:",omitempty"` - - // LogEntriesForSlowFollowers is the number of log entries to keep - // around to sync up slow followers after a snapshot is created. - LogEntriesForSlowFollowers uint64 `json:",omitempty"` - - // ElectionTick is the number of ticks that a follower will wait for a message - // from the leader before becoming a candidate and starting an election. - // ElectionTick must be greater than HeartbeatTick. - // - // A tick currently defaults to one second, so these translate directly to - // seconds currently, but this is NOT guaranteed. - ElectionTick int - - // HeartbeatTick is the number of ticks between heartbeats. Every - // HeartbeatTick ticks, the leader will send a heartbeat to the - // followers. - // - // A tick currently defaults to one second, so these translate directly to - // seconds currently, but this is NOT guaranteed. - HeartbeatTick int -} - -// DispatcherConfig represents dispatcher configuration. -type DispatcherConfig struct { - // HeartbeatPeriod defines how often agent should send heartbeats to - // dispatcher. - HeartbeatPeriod time.Duration `json:",omitempty"` -} - -// CAConfig represents CA configuration. -type CAConfig struct { - // NodeCertExpiry is the duration certificates should be issued for - NodeCertExpiry time.Duration `json:",omitempty"` - - // ExternalCAs is a list of CAs to which a manager node will make - // certificate signing requests for node certificates. - ExternalCAs []*ExternalCA `json:",omitempty"` -} - -// ExternalCAProtocol represents type of external CA. -type ExternalCAProtocol string - -// ExternalCAProtocolCFSSL CFSSL -const ExternalCAProtocolCFSSL ExternalCAProtocol = "cfssl" - -// ExternalCA defines external CA to be used by the cluster. -type ExternalCA struct { - // Protocol is the protocol used by this external CA. - Protocol ExternalCAProtocol - - // URL is the URL where the external CA can be reached. - URL string - - // Options is a set of additional key/value pairs whose interpretation - // depends on the specified CA type. - Options map[string]string `json:",omitempty"` -} - -// InitRequest is the request used to init a swarm. -type InitRequest struct { - ListenAddr string - AdvertiseAddr string - ForceNewCluster bool - Spec Spec - AutoLockManagers bool - Availability NodeAvailability -} - -// JoinRequest is the request used to join a swarm. -type JoinRequest struct { - ListenAddr string - AdvertiseAddr string - RemoteAddrs []string - JoinToken string // accept by secret - Availability NodeAvailability -} - -// UnlockRequest is the request used to unlock a swarm. -type UnlockRequest struct { - // UnlockKey is the unlock key in ASCII-armored format. - UnlockKey string -} - -// LocalNodeState represents the state of the local node. -type LocalNodeState string - -const ( - // LocalNodeStateInactive INACTIVE - LocalNodeStateInactive LocalNodeState = "inactive" - // LocalNodeStatePending PENDING - LocalNodeStatePending LocalNodeState = "pending" - // LocalNodeStateActive ACTIVE - LocalNodeStateActive LocalNodeState = "active" - // LocalNodeStateError ERROR - LocalNodeStateError LocalNodeState = "error" - // LocalNodeStateLocked LOCKED - LocalNodeStateLocked LocalNodeState = "locked" -) - -// Info represents generic information about swarm. -type Info struct { - NodeID string - NodeAddr string - - LocalNodeState LocalNodeState - ControlAvailable bool - Error string - - RemoteManagers []Peer - Nodes int - Managers int - - Cluster ClusterInfo -} - -// Peer represents a peer. -type Peer struct { - NodeID string - Addr string -} - -// UpdateFlags contains flags for SwarmUpdate. -type UpdateFlags struct { - RotateWorkerToken bool - RotateManagerToken bool - RotateManagerUnlockKey bool -} diff --git a/vendor/github.com/docker/docker/api/types/swarm/task.go b/vendor/github.com/docker/docker/api/types/swarm/task.go deleted file mode 100644 index ace12cc..0000000 --- a/vendor/github.com/docker/docker/api/types/swarm/task.go +++ /dev/null @@ -1,128 +0,0 @@ -package swarm - -import "time" - -// TaskState represents the state of a task. -type TaskState string - -const ( - // TaskStateNew NEW - TaskStateNew TaskState = "new" - // TaskStateAllocated ALLOCATED - TaskStateAllocated TaskState = "allocated" - // TaskStatePending PENDING - TaskStatePending TaskState = "pending" - // TaskStateAssigned ASSIGNED - TaskStateAssigned TaskState = "assigned" - // TaskStateAccepted ACCEPTED - TaskStateAccepted TaskState = "accepted" - // TaskStatePreparing PREPARING - TaskStatePreparing TaskState = "preparing" - // TaskStateReady READY - TaskStateReady TaskState = "ready" - // TaskStateStarting STARTING - TaskStateStarting TaskState = "starting" - // TaskStateRunning RUNNING - TaskStateRunning TaskState = "running" - // TaskStateComplete COMPLETE - TaskStateComplete TaskState = "complete" - // TaskStateShutdown SHUTDOWN - TaskStateShutdown TaskState = "shutdown" - // TaskStateFailed FAILED - TaskStateFailed TaskState = "failed" - // TaskStateRejected REJECTED - TaskStateRejected TaskState = "rejected" -) - -// Task represents a task. -type Task struct { - ID string - Meta - Annotations - - Spec TaskSpec `json:",omitempty"` - ServiceID string `json:",omitempty"` - Slot int `json:",omitempty"` - NodeID string `json:",omitempty"` - Status TaskStatus `json:",omitempty"` - DesiredState TaskState `json:",omitempty"` - NetworksAttachments []NetworkAttachment `json:",omitempty"` -} - -// TaskSpec represents the spec of a task. -type TaskSpec struct { - ContainerSpec ContainerSpec `json:",omitempty"` - Resources *ResourceRequirements `json:",omitempty"` - RestartPolicy *RestartPolicy `json:",omitempty"` - Placement *Placement `json:",omitempty"` - Networks []NetworkAttachmentConfig `json:",omitempty"` - - // LogDriver specifies the LogDriver to use for tasks created from this - // spec. If not present, the one on cluster default on swarm.Spec will be - // used, finally falling back to the engine default if not specified. - LogDriver *Driver `json:",omitempty"` - - // ForceUpdate is a counter that triggers an update even if no relevant - // parameters have been changed. - ForceUpdate uint64 -} - -// Resources represents resources (CPU/Memory). -type Resources struct { - NanoCPUs int64 `json:",omitempty"` - MemoryBytes int64 `json:",omitempty"` -} - -// ResourceRequirements represents resources requirements. -type ResourceRequirements struct { - Limits *Resources `json:",omitempty"` - Reservations *Resources `json:",omitempty"` -} - -// Placement represents orchestration parameters. -type Placement struct { - Constraints []string `json:",omitempty"` -} - -// RestartPolicy represents the restart policy. -type RestartPolicy struct { - Condition RestartPolicyCondition `json:",omitempty"` - Delay *time.Duration `json:",omitempty"` - MaxAttempts *uint64 `json:",omitempty"` - Window *time.Duration `json:",omitempty"` -} - -// RestartPolicyCondition represents when to restart. -type RestartPolicyCondition string - -const ( - // RestartPolicyConditionNone NONE - RestartPolicyConditionNone RestartPolicyCondition = "none" - // RestartPolicyConditionOnFailure ON_FAILURE - RestartPolicyConditionOnFailure RestartPolicyCondition = "on-failure" - // RestartPolicyConditionAny ANY - RestartPolicyConditionAny RestartPolicyCondition = "any" -) - -// TaskStatus represents the status of a task. -type TaskStatus struct { - Timestamp time.Time `json:",omitempty"` - State TaskState `json:",omitempty"` - Message string `json:",omitempty"` - Err string `json:",omitempty"` - ContainerStatus ContainerStatus `json:",omitempty"` - PortStatus PortStatus `json:",omitempty"` -} - -// ContainerStatus represents the status of a container. -type ContainerStatus struct { - ContainerID string `json:",omitempty"` - PID int `json:",omitempty"` - ExitCode int `json:",omitempty"` -} - -// PortStatus represents the port status of a task's host ports whose -// service has published host ports -type PortStatus struct { - Ports []PortConfig `json:",omitempty"` -} diff --git a/vendor/github.com/docker/docker/api/types/time/duration_convert.go b/vendor/github.com/docker/docker/api/types/time/duration_convert.go deleted file mode 100644 index 63e1eec..0000000 --- a/vendor/github.com/docker/docker/api/types/time/duration_convert.go +++ /dev/null @@ -1,12 +0,0 @@ -package time - -import ( - "strconv" - "time" -) - -// DurationToSecondsString converts the specified duration to the number -// seconds it represents, formatted as a string. -func DurationToSecondsString(duration time.Duration) string { - return strconv.FormatFloat(duration.Seconds(), 'f', 0, 64) -} diff --git a/vendor/github.com/docker/docker/api/types/time/timestamp.go b/vendor/github.com/docker/docker/api/types/time/timestamp.go deleted file mode 100644 index 9aa9702..0000000 --- a/vendor/github.com/docker/docker/api/types/time/timestamp.go +++ /dev/null @@ -1,124 +0,0 @@ -package time - -import ( - "fmt" - "math" - "strconv" - "strings" - "time" -) - -// These are additional predefined layouts for use in Time.Format and Time.Parse -// with --since and --until parameters for `docker logs` and `docker events` -const ( - rFC3339Local = "2006-01-02T15:04:05" // RFC3339 with local timezone - rFC3339NanoLocal = "2006-01-02T15:04:05.999999999" // RFC3339Nano with local timezone - dateWithZone = "2006-01-02Z07:00" // RFC3339 with time at 00:00:00 - dateLocal = "2006-01-02" // RFC3339 with local timezone and time at 00:00:00 -) - -// GetTimestamp tries to parse given string as golang duration, -// then RFC3339 time and finally as a Unix timestamp. If -// any of these were successful, it returns a Unix timestamp -// as string otherwise returns the given value back. -// In case of duration input, the returned timestamp is computed -// as the given reference time minus the amount of the duration. -func GetTimestamp(value string, reference time.Time) (string, error) { - if d, err := time.ParseDuration(value); value != "0" && err == nil { - return strconv.FormatInt(reference.Add(-d).Unix(), 10), nil - } - - var format string - var parseInLocation bool - - // if the string has a Z or a + or three dashes use parse otherwise use parseinlocation - parseInLocation = !(strings.ContainsAny(value, "zZ+") || strings.Count(value, "-") == 3) - - if strings.Contains(value, ".") { - if parseInLocation { - format = rFC3339NanoLocal - } else { - format = time.RFC3339Nano - } - } else if strings.Contains(value, "T") { - // we want the number of colons in the T portion of the timestamp - tcolons := strings.Count(value, ":") - // if parseInLocation is off and we have a +/- zone offset (not Z) then - // there will be an extra colon in the input for the tz offset subtract that - // colon from the tcolons count - if !parseInLocation && !strings.ContainsAny(value, "zZ") && tcolons > 0 { - tcolons-- - } - if parseInLocation { - switch tcolons { - case 0: - format = "2006-01-02T15" - case 1: - format = "2006-01-02T15:04" - default: - format = rFC3339Local - } - } else { - switch tcolons { - case 0: - format = "2006-01-02T15Z07:00" - case 1: - format = "2006-01-02T15:04Z07:00" - default: - format = time.RFC3339 - } - } - } else if parseInLocation { - format = dateLocal - } else { - format = dateWithZone - } - - var t time.Time - var err error - - if parseInLocation { - t, err = time.ParseInLocation(format, value, time.FixedZone(reference.Zone())) - } else { - t, err = time.Parse(format, value) - } - - if err != nil { - // if there is a `-` then it's an RFC3339 like timestamp otherwise assume unixtimestamp - if strings.Contains(value, "-") { - return "", err // was probably an RFC3339 like timestamp but the parser failed with an error - } - return value, nil // unixtimestamp in and out case (meaning: the value passed at the command line is already in the right format for passing to the server) - } - - return fmt.Sprintf("%d.%09d", t.Unix(), int64(t.Nanosecond())), nil -} - -// ParseTimestamps returns seconds and nanoseconds from a timestamp that has the -// format "%d.%09d", time.Unix(), int64(time.Nanosecond())) -// if the incoming nanosecond portion is longer or shorter than 9 digits it is -// converted to nanoseconds. The expectation is that the seconds and -// seconds will be used to create a time variable. For example: -// seconds, nanoseconds, err := ParseTimestamp("1136073600.000000001",0) -// if err == nil since := time.Unix(seconds, nanoseconds) -// returns seconds as def(aultSeconds) if value == "" -func ParseTimestamps(value string, def int64) (int64, int64, error) { - if value == "" { - return def, 0, nil - } - sa := strings.SplitN(value, ".", 2) - s, err := strconv.ParseInt(sa[0], 10, 64) - if err != nil { - return s, 0, err - } - if len(sa) != 2 { - return s, 0, nil - } - n, err := strconv.ParseInt(sa[1], 10, 64) - if err != nil { - return s, n, err - } - // should already be in nanoseconds but just in case convert n to nanoseconds - n = int64(float64(n) * math.Pow(float64(10), float64(9-len(sa[1])))) - return s, n, nil -} diff --git a/vendor/github.com/docker/docker/api/types/types.go b/vendor/github.com/docker/docker/api/types/types.go deleted file mode 100644 index e97df9b..0000000 --- a/vendor/github.com/docker/docker/api/types/types.go +++ /dev/null @@ -1,558 +0,0 @@ -package types - -import ( - "errors" - "fmt" - "io" - "os" - "strings" - "time" - - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/mount" - "github.com/docker/docker/api/types/network" - "github.com/docker/docker/api/types/registry" - "github.com/docker/docker/api/types/swarm" - "github.com/docker/go-connections/nat" -) - -// ContainerChange contains response of Engine API: -// GET "/containers/{name:.*}/changes" -type ContainerChange struct { - Kind int - Path string -} - -// ImageHistory contains response of Engine API: -// GET "/images/{name:.*}/history" -type ImageHistory struct { - ID string `json:"Id"` - Created int64 - CreatedBy string - Tags []string - Size int64 - Comment string -} - -// ImageDelete contains response of Engine API: -// DELETE "/images/{name:.*}" -type ImageDelete struct { - Untagged string `json:",omitempty"` - Deleted string `json:",omitempty"` -} - -// GraphDriverData returns Image's graph driver config info -// when calling inspect command -type GraphDriverData struct { - Name string - Data map[string]string -} - -// RootFS returns Image's RootFS description including the layer IDs. -type RootFS struct { - Type string - Layers []string `json:",omitempty"` - BaseLayer string `json:",omitempty"` -} - -// ImageInspect contains response of Engine API: -// GET "/images/{name:.*}/json" -type ImageInspect struct { - ID string `json:"Id"` - RepoTags []string - RepoDigests []string - Parent string - Comment string - Created string - Container string - ContainerConfig *container.Config - DockerVersion string - Author string - Config *container.Config - Architecture string - Os string - OsVersion string `json:",omitempty"` - Size int64 - VirtualSize int64 - GraphDriver GraphDriverData - RootFS RootFS -} - -// Container contains response of Engine API: -// GET "/containers/json" -type Container struct { - ID string `json:"Id"` - Names []string - Image string - ImageID string - Command string - Created int64 - Ports []Port - SizeRw int64 `json:",omitempty"` - SizeRootFs int64 `json:",omitempty"` - Labels map[string]string - State string - Status string - HostConfig struct { - NetworkMode string `json:",omitempty"` - } - NetworkSettings *SummaryNetworkSettings - Mounts []MountPoint -} - -// CopyConfig contains request body of Engine API: -// POST "/containers/"+containerID+"/copy" -type CopyConfig struct { - Resource string -} - -// ContainerPathStat is used to encode the header from -// GET "/containers/{name:.*}/archive" -// "Name" is the file or directory name. -type ContainerPathStat struct { - Name string `json:"name"` - Size int64 `json:"size"` - Mode os.FileMode `json:"mode"` - Mtime time.Time `json:"mtime"` - LinkTarget string `json:"linkTarget"` -} - -// ContainerStats contains response of Engine API: -// GET "/stats" -type ContainerStats struct { - Body io.ReadCloser `json:"body"` - OSType string `json:"ostype"` -} - -// ContainerProcessList contains response of Engine API: -// GET "/containers/{name:.*}/top" -type ContainerProcessList struct { - Processes [][]string - Titles []string -} - -// Ping contains response of Engine API: -// GET "/_ping" -type Ping struct { - APIVersion string - Experimental bool -} - -// Version contains response of Engine API: -// GET "/version" -type Version struct { - Version string - APIVersion string `json:"ApiVersion"` - MinAPIVersion string `json:"MinAPIVersion,omitempty"` - GitCommit string - GoVersion string - Os string - Arch string - KernelVersion string `json:",omitempty"` - Experimental bool `json:",omitempty"` - BuildTime string `json:",omitempty"` -} - -// Commit holds the Git-commit (SHA1) that a binary was built from, as reported -// in the version-string of external tools, such as containerd, or runC. -type Commit struct { - ID string // ID is the actual commit ID of external tool. - Expected string // Expected is the commit ID of external tool expected by dockerd as set at build time. -} - -// Info contains response of Engine API: -// GET "/info" -type Info struct { - ID string - Containers int - ContainersRunning int - ContainersPaused int - ContainersStopped int - Images int - Driver string - DriverStatus [][2]string - SystemStatus [][2]string - Plugins PluginsInfo - MemoryLimit bool - SwapLimit bool - KernelMemory bool - CPUCfsPeriod bool `json:"CpuCfsPeriod"` - CPUCfsQuota bool `json:"CpuCfsQuota"` - CPUShares bool - CPUSet bool - IPv4Forwarding bool - BridgeNfIptables bool - BridgeNfIP6tables bool `json:"BridgeNfIp6tables"` - Debug bool - NFd int - OomKillDisable bool - NGoroutines int - SystemTime string - LoggingDriver string - CgroupDriver string - NEventsListener int - KernelVersion string - OperatingSystem string - OSType string - Architecture string - IndexServerAddress string - RegistryConfig *registry.ServiceConfig - NCPU int - MemTotal int64 - DockerRootDir string - HTTPProxy string `json:"HttpProxy"` - HTTPSProxy string `json:"HttpsProxy"` - NoProxy string - Name string - Labels []string - ExperimentalBuild bool - ServerVersion string - ClusterStore string - ClusterAdvertise string - Runtimes map[string]Runtime - DefaultRuntime string - Swarm swarm.Info - // LiveRestoreEnabled determines whether containers should be kept - // running when the daemon is shutdown or upon daemon start if - // running containers are detected - LiveRestoreEnabled bool - Isolation container.Isolation - InitBinary string - ContainerdCommit Commit - RuncCommit Commit - InitCommit Commit - SecurityOptions []string -} - -// KeyValue holds a key/value pair -type KeyValue struct { - Key, Value string -} - -// SecurityOpt contains the name and options of a security option -type SecurityOpt struct { - Name string - Options []KeyValue -} - -// DecodeSecurityOptions decodes a security options string slice to a type safe -// SecurityOpt -func DecodeSecurityOptions(opts []string) ([]SecurityOpt, error) { - so := []SecurityOpt{} - for _, opt := range opts { - // support output from a < 1.13 docker daemon - if !strings.Contains(opt, "=") { - so = append(so, SecurityOpt{Name: opt}) - continue - } - secopt := SecurityOpt{} - split := strings.Split(opt, ",") - for _, s := range split { - kv := strings.SplitN(s, "=", 2) - if len(kv) != 2 { - return nil, fmt.Errorf("invalid security option %q", s) - } - if kv[0] == "" || kv[1] == "" { - return nil, errors.New("invalid empty security option") - } - if kv[0] == "name" { - secopt.Name = kv[1] - continue - } - secopt.Options = append(secopt.Options, KeyValue{Key: kv[0], Value: kv[1]}) - } - so = append(so, secopt) - } - return so, nil -} - -// PluginsInfo is a temp struct holding Plugins name -// registered with docker daemon. It is used by Info struct -type PluginsInfo struct { - // List of Volume plugins registered - Volume []string - // List of Network plugins registered - Network []string - // List of Authorization plugins registered - Authorization []string -} - -// ExecStartCheck is a temp struct used by execStart -// Config fields is part of ExecConfig in runconfig package -type ExecStartCheck struct { - // ExecStart will first check if it's detached - Detach bool - // Check if there's a tty - Tty bool -} - -// HealthcheckResult stores information about a single run of a healthcheck probe -type HealthcheckResult struct { - Start time.Time // Start is the time this check started - End time.Time // End is the time this check ended - ExitCode int // ExitCode meanings: 0=healthy, 1=unhealthy, 2=reserved (considered unhealthy), else=error running probe - Output string // Output from last check -} - -// Health states -const ( - NoHealthcheck = "none" // Indicates there is no healthcheck - Starting = "starting" // Starting indicates that the container is not yet ready - Healthy = "healthy" // Healthy indicates that the container is running correctly - Unhealthy = "unhealthy" // Unhealthy indicates that the container has a problem -) - -// Health stores information about the container's healthcheck results -type Health struct { - Status string // Status is one of Starting, Healthy or Unhealthy - FailingStreak int // FailingStreak is the number of consecutive failures - Log []*HealthcheckResult // Log contains the last few results (oldest first) -} - -// ContainerState stores container's running state -// it's part of ContainerJSONBase and will return by "inspect" command -type ContainerState struct { - Status string - Running bool - Paused bool - Restarting bool - OOMKilled bool - Dead bool - Pid int - ExitCode int - Error string - StartedAt string - FinishedAt string - Health *Health `json:",omitempty"` -} - -// ContainerNode stores information about the node that a container -// is running on. It's only available in Docker Swarm -type ContainerNode struct { - ID string - IPAddress string `json:"IP"` - Addr string - Name string - Cpus int - Memory int64 - Labels map[string]string -} - -// ContainerJSONBase contains response of Engine API: -// GET "/containers/{name:.*}/json" -type ContainerJSONBase struct { - ID string `json:"Id"` - Created string - Path string - Args []string - State *ContainerState - Image string - ResolvConfPath string - HostnamePath string - HostsPath string - LogPath string - Node *ContainerNode `json:",omitempty"` - Name string - RestartCount int - Driver string - MountLabel string - ProcessLabel string - AppArmorProfile string - ExecIDs []string - HostConfig *container.HostConfig - GraphDriver GraphDriverData - SizeRw *int64 `json:",omitempty"` - SizeRootFs *int64 `json:",omitempty"` -} - -// ContainerJSON is newly used struct along with MountPoint -type ContainerJSON struct { - *ContainerJSONBase - Mounts []MountPoint - Config *container.Config - NetworkSettings *NetworkSettings -} - -// NetworkSettings exposes the network settings in the api -type NetworkSettings struct { - NetworkSettingsBase - DefaultNetworkSettings - Networks map[string]*network.EndpointSettings -} - -// SummaryNetworkSettings provides a summary of container's networks -// in /containers/json -type SummaryNetworkSettings struct { - Networks map[string]*network.EndpointSettings -} - -// NetworkSettingsBase holds basic information about networks -type NetworkSettingsBase struct { - Bridge string // Bridge is the Bridge name the network uses(e.g. `docker0`) - SandboxID string // SandboxID uniquely represents a container's network stack - HairpinMode bool // HairpinMode specifies if hairpin NAT should be enabled on the virtual interface - LinkLocalIPv6Address string // LinkLocalIPv6Address is an IPv6 unicast address using the link-local prefix - LinkLocalIPv6PrefixLen int // LinkLocalIPv6PrefixLen is the prefix length of an IPv6 unicast address - Ports nat.PortMap // Ports is a collection of PortBinding indexed by Port - SandboxKey string // SandboxKey identifies the sandbox - SecondaryIPAddresses []network.Address - SecondaryIPv6Addresses []network.Address -} - -// DefaultNetworkSettings holds network information -// during the 2 release deprecation period. -// It will be removed in Docker 1.11. -type DefaultNetworkSettings struct { - EndpointID string // EndpointID uniquely represents a service endpoint in a Sandbox - Gateway string // Gateway holds the gateway address for the network - GlobalIPv6Address string // GlobalIPv6Address holds network's global IPv6 address - GlobalIPv6PrefixLen int // GlobalIPv6PrefixLen represents mask length of network's global IPv6 address - IPAddress string // IPAddress holds the IPv4 address for the network - IPPrefixLen int // IPPrefixLen represents mask length of network's IPv4 address - IPv6Gateway string // IPv6Gateway holds gateway address specific for IPv6 - MacAddress string // MacAddress holds the MAC address for the network -} - -// MountPoint represents a mount point configuration inside the container. -// This is used for reporting the mountpoints in use by a container. -type MountPoint struct { - Type mount.Type `json:",omitempty"` - Name string `json:",omitempty"` - Source string - Destination string - Driver string `json:",omitempty"` - Mode string - RW bool - Propagation mount.Propagation -} - -// NetworkResource is the body of the "get network" http response message -type NetworkResource struct { - Name string // Name is the requested name of the network - ID string `json:"Id"` // ID uniquely identifies a network on a single machine - Created time.Time // Created is the time the network created - Scope string // Scope describes the level at which the network exists (e.g. `global` for cluster-wide or `local` for machine level) - Driver string // Driver is the Driver name used to create the network (e.g. `bridge`, `overlay`) - EnableIPv6 bool // EnableIPv6 represents whether to enable IPv6 - IPAM network.IPAM // IPAM is the network's IP Address Management - Internal bool // Internal represents if the network is used internal only - Attachable bool // Attachable represents if the global scope is manually attachable by regular containers from workers in swarm mode. - Containers map[string]EndpointResource // Containers contains endpoints belonging to the network - Options map[string]string // Options holds the network specific options to use for when creating the network - Labels map[string]string // Labels holds metadata specific to the network being created - Peers []network.PeerInfo `json:",omitempty"` // List of peer nodes for an overlay network -} - -// EndpointResource contains network resources allocated and used for a container in a network -type EndpointResource struct { - Name string - EndpointID string - MacAddress string - IPv4Address string - IPv6Address string -} - -// NetworkCreate is the expected body of the "create network" http request message -type NetworkCreate struct { - CheckDuplicate bool - Driver string - EnableIPv6 bool - IPAM *network.IPAM - Internal bool - Attachable bool - Options map[string]string - Labels map[string]string -} - -// NetworkCreateRequest is the request message sent to the server for network create call. -type NetworkCreateRequest struct { - NetworkCreate - Name string -} - -// NetworkCreateResponse is the response message sent by the server for network create call -type NetworkCreateResponse struct { - ID string `json:"Id"` - Warning string -} - -// NetworkConnect represents the data to be used to connect a container to the network -type NetworkConnect struct { - Container string - EndpointConfig *network.EndpointSettings `json:",omitempty"` -} - -// NetworkDisconnect represents the data to be used to disconnect a container from the network -type NetworkDisconnect struct { - Container string - Force bool -} - -// Checkpoint represents the details of a checkpoint -type Checkpoint struct { - Name string // Name is the name of the checkpoint -} - -// Runtime describes an OCI runtime -type Runtime struct { - Path string `json:"path"` - Args []string `json:"runtimeArgs,omitempty"` -} - -// DiskUsage contains response of Engine API: -// GET "/system/df" -type DiskUsage struct { - LayersSize int64 - Images []*ImageSummary - Containers []*Container - Volumes []*Volume -} - -// ContainersPruneReport contains the response for Engine API: -// POST "/containers/prune" -type ContainersPruneReport struct { - ContainersDeleted []string - SpaceReclaimed uint64 -} - -// VolumesPruneReport contains the response for Engine API: -// POST "/volumes/prune" -type VolumesPruneReport struct { - VolumesDeleted []string - SpaceReclaimed uint64 -} - -// ImagesPruneReport contains the response for Engine API: -// POST "/images/prune" -type ImagesPruneReport struct { - ImagesDeleted []ImageDelete - SpaceReclaimed uint64 -} - -// NetworksPruneReport contains the response for Engine API: -// POST "/networks/prune" -type NetworksPruneReport struct { - NetworksDeleted []string -} - -// SecretCreateResponse contains the information returned to a client -// on the creation of a new secret. -type SecretCreateResponse struct { - // ID is the id of the created secret. - ID string -} - -// SecretListOptions holds parameters to list secrets -type SecretListOptions struct { - Filters filters.Args -} - -// PushResult contains the tag, manifest digest, and manifest size from the -// push. It's used to signal this information to the trust code in the client -// so it can sign the manifest if necessary. -type PushResult struct { - Tag string - Digest string - Size int -} diff --git a/vendor/github.com/docker/docker/api/types/versions/compare.go b/vendor/github.com/docker/docker/api/types/versions/compare.go deleted file mode 100644 index 611d4fe..0000000 --- a/vendor/github.com/docker/docker/api/types/versions/compare.go +++ /dev/null @@ -1,62 +0,0 @@ -package versions - -import ( - "strconv" - "strings" -) - -// compare compares two version strings -// returns -1 if v1 < v2, 1 if v1 > v2, 0 otherwise. -func compare(v1, v2 string) int { - var ( - currTab = strings.Split(v1, ".") - otherTab = strings.Split(v2, ".") - ) - - max := len(currTab) - if len(otherTab) > max { - max = len(otherTab) - } - for i := 0; i < max; i++ { - var currInt, otherInt int - - if len(currTab) > i { - currInt, _ = strconv.Atoi(currTab[i]) - } - if len(otherTab) > i { - otherInt, _ = strconv.Atoi(otherTab[i]) - } - if currInt > otherInt { - return 1 - } - if otherInt > currInt { - return -1 - } - } - return 0 -} - -// LessThan checks if a version is less than another -func LessThan(v, other string) bool { - return compare(v, other) == -1 -} - -// LessThanOrEqualTo checks if a version is less than or equal to another -func LessThanOrEqualTo(v, other string) bool { - return compare(v, other) <= 0 -} - -// GreaterThan checks if a version is greater than another -func GreaterThan(v, other string) bool { - return compare(v, other) == 1 -} - -// GreaterThanOrEqualTo checks if a version is greater than or equal to another -func GreaterThanOrEqualTo(v, other string) bool { - return compare(v, other) >= 0 -} - -// Equal checks if a version is equal to another -func Equal(v, other string) bool { - return compare(v, other) == 0 -} diff --git a/vendor/github.com/docker/docker/api/types/volume.go b/vendor/github.com/docker/docker/api/types/volume.go deleted file mode 100644 index da4f8eb..0000000 --- a/vendor/github.com/docker/docker/api/types/volume.go +++ /dev/null @@ -1,58 +0,0 @@ -package types - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -// Volume volume -// swagger:model Volume -type Volume struct { - - // Name of the volume driver used by the volume. - // Required: true - Driver string `json:"Driver"` - - // User-defined key/value metadata. - // Required: true - Labels map[string]string `json:"Labels"` - - // Mount path of the volume on the host. - // Required: true - Mountpoint string `json:"Mountpoint"` - - // Name of the volume. - // Required: true - Name string `json:"Name"` - - // The driver specific options used when creating the volume. - // Required: true - Options map[string]string `json:"Options"` - - // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. - // Required: true - Scope string `json:"Scope"` - - // Low-level details about the volume, provided by the volume driver. - // Details are returned as a map with key/value pairs: - // `{"key":"value","key2":"value2"}`. - // - // The `Status` field is optional, and is omitted if the volume driver - // does not support this feature. - // - Status map[string]interface{} `json:"Status,omitempty"` - - // usage data - UsageData *VolumeUsageData `json:"UsageData,omitempty"` -} - -// VolumeUsageData volume usage data -// swagger:model VolumeUsageData -type VolumeUsageData struct { - - // The number of containers referencing this volume. - // Required: true - RefCount int64 `json:"RefCount"` - - // The disk space used by the volume (local driver only) - // Required: true - Size int64 `json:"Size"` -} diff --git a/vendor/github.com/docker/docker/api/types/volume/volumes_create.go b/vendor/github.com/docker/docker/api/types/volume/volumes_create.go deleted file mode 100644 index 9f70e43..0000000 --- a/vendor/github.com/docker/docker/api/types/volume/volumes_create.go +++ /dev/null @@ -1,29 +0,0 @@ -package volume - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -// VolumesCreateBody volumes create body -// swagger:model VolumesCreateBody -type VolumesCreateBody struct { - - // Name of the volume driver to use. - // Required: true - Driver string `json:"Driver"` - - // A mapping of driver options and values. These options are passed directly to the driver and are driver specific. - // Required: true - DriverOpts map[string]string `json:"DriverOpts"` - - // User-defined key/value metadata. - // Required: true - Labels map[string]string `json:"Labels"` - - // The new volume's name. If not specified, Docker generates a name. - // Required: true - Name string `json:"Name"` -} diff --git a/vendor/github.com/docker/docker/api/types/volume/volumes_list.go b/vendor/github.com/docker/docker/api/types/volume/volumes_list.go deleted file mode 100644 index 833dad9..0000000 --- a/vendor/github.com/docker/docker/api/types/volume/volumes_list.go +++ /dev/null @@ -1,23 +0,0 @@ -package volume - -// ---------------------------------------------------------------------------- -// DO NOT EDIT THIS FILE -// This file was generated by `swagger generate operation` -// -// See hack/generate-swagger-api.sh -// ---------------------------------------------------------------------------- - -import "github.com/docker/docker/api/types" - -// VolumesListOKBody volumes list o k body -// swagger:model VolumesListOKBody -type VolumesListOKBody struct { - - // List of volumes - // Required: true - Volumes []*types.Volume `json:"Volumes"` - - // Warnings that occurred when fetching the list of volumes - // Required: true - Warnings []string `json:"Warnings"` -} diff --git a/vendor/github.com/docker/docker/client/checkpoint_create.go b/vendor/github.com/docker/docker/client/checkpoint_create.go deleted file mode 100644 index 0effe49..0000000 --- a/vendor/github.com/docker/docker/client/checkpoint_create.go +++ /dev/null @@ -1,13 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// CheckpointCreate creates a checkpoint from the given container with the given name -func (cli *Client) CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error { - resp, err := cli.post(ctx, "/containers/"+container+"/checkpoints", nil, options, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/checkpoint_delete.go b/vendor/github.com/docker/docker/client/checkpoint_delete.go deleted file mode 100644 index e6e7558..0000000 --- a/vendor/github.com/docker/docker/client/checkpoint_delete.go +++ /dev/null @@ -1,20 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// CheckpointDelete deletes the checkpoint with the given name from the given container -func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, options types.CheckpointDeleteOptions) error { - query := url.Values{} - if options.CheckpointDir != "" { - query.Set("dir", options.CheckpointDir) - } - - resp, err := cli.delete(ctx, "/containers/"+containerID+"/checkpoints/"+options.CheckpointID, query, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/checkpoint_list.go b/vendor/github.com/docker/docker/client/checkpoint_list.go deleted file mode 100644 index 8eb720a..0000000 --- a/vendor/github.com/docker/docker/client/checkpoint_list.go +++ /dev/null @@ -1,28 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// CheckpointList returns the volumes configured in the docker host. -func (cli *Client) CheckpointList(ctx context.Context, container string, options types.CheckpointListOptions) ([]types.Checkpoint, error) { - var checkpoints []types.Checkpoint - - query := url.Values{} - if options.CheckpointDir != "" { - query.Set("dir", options.CheckpointDir) - } - - resp, err := cli.get(ctx, "/containers/"+container+"/checkpoints", query, nil) - if err != nil { - return checkpoints, err - } - - err = json.NewDecoder(resp.body).Decode(&checkpoints) - ensureReaderClosed(resp) - return checkpoints, err -} diff --git a/vendor/github.com/docker/docker/client/client.go b/vendor/github.com/docker/docker/client/client.go deleted file mode 100644 index 75cfc86..0000000 --- a/vendor/github.com/docker/docker/client/client.go +++ /dev/null @@ -1,263 +0,0 @@ -/* -Package client is a Go client for the Docker Engine API. - -The "docker" command uses this package to communicate with the daemon. It can also -be used by your own Go applications to do anything the command-line interface does -- running containers, pulling images, managing swarms, etc. - -For more information about the Engine API, see the documentation: -https://docs.docker.com/engine/reference/api/ - -Usage - -You use the library by creating a client object and calling methods on it. The -client can be created either from environment variables with NewEnvClient, or -configured manually with NewClient. - -For example, to list running containers (the equivalent of "docker ps"): - - package main - - import ( - "context" - "fmt" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/client" - ) - - func main() { - cli, err := client.NewEnvClient() - if err != nil { - panic(err) - } - - containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) - if err != nil { - panic(err) - } - - for _, container := range containers { - fmt.Printf("%s %s\n", container.ID[:10], container.Image) - } - } - -*/ -package client - -import ( - "fmt" - "net/http" - "net/url" - "os" - "path/filepath" - "strings" - - "github.com/docker/go-connections/sockets" - "github.com/docker/go-connections/tlsconfig" -) - -// DefaultVersion is the version of the current stable API -const DefaultVersion string = "1.26" - -// Client is the API client that performs all operations -// against a docker server. -type Client struct { - // scheme sets the scheme for the client - scheme string - // host holds the server address to connect to - host string - // proto holds the client protocol i.e. unix. - proto string - // addr holds the client address. - addr string - // basePath holds the path to prepend to the requests. - basePath string - // client used to send and receive http requests. - client *http.Client - // version of the server to talk to. - version string - // custom http headers configured by users. - customHTTPHeaders map[string]string - // manualOverride is set to true when the version was set by users. - manualOverride bool -} - -// NewEnvClient initializes a new API client based on environment variables. -// Use DOCKER_HOST to set the url to the docker server. -// Use DOCKER_API_VERSION to set the version of the API to reach, leave empty for latest. -// Use DOCKER_CERT_PATH to load the TLS certificates from. -// Use DOCKER_TLS_VERIFY to enable or disable TLS verification, off by default. -func NewEnvClient() (*Client, error) { - var client *http.Client - if dockerCertPath := os.Getenv("DOCKER_CERT_PATH"); dockerCertPath != "" { - options := tlsconfig.Options{ - CAFile: filepath.Join(dockerCertPath, "ca.pem"), - CertFile: filepath.Join(dockerCertPath, "cert.pem"), - KeyFile: filepath.Join(dockerCertPath, "key.pem"), - InsecureSkipVerify: os.Getenv("DOCKER_TLS_VERIFY") == "", - } - tlsc, err := tlsconfig.Client(options) - if err != nil { - return nil, err - } - - client = &http.Client{ - Transport: &http.Transport{ - TLSClientConfig: tlsc, - }, - } - } - - host := os.Getenv("DOCKER_HOST") - if host == "" { - host = DefaultDockerHost - } - version := os.Getenv("DOCKER_API_VERSION") - if version == "" { - version = DefaultVersion - } - - cli, err := NewClient(host, version, client, nil) - if err != nil { - return cli, err - } - if os.Getenv("DOCKER_API_VERSION") != "" { - cli.manualOverride = true - } - return cli, nil -} - -// NewClient initializes a new API client for the given host and API version. -// It uses the given http client as transport. -// It also initializes the custom http headers to add to each request. -// -// It won't send any version information if the version number is empty. It is -// highly recommended that you set a version or your client may break if the -// server is upgraded. -func NewClient(host string, version string, client *http.Client, httpHeaders map[string]string) (*Client, error) { - proto, addr, basePath, err := ParseHost(host) - if err != nil { - return nil, err - } - - if client != nil { - if _, ok := client.Transport.(*http.Transport); !ok { - return nil, fmt.Errorf("unable to verify TLS configuration, invalid transport %v", client.Transport) - } - } else { - transport := new(http.Transport) - sockets.ConfigureTransport(transport, proto, addr) - client = &http.Client{ - Transport: transport, - } - } - - scheme := "http" - tlsConfig := resolveTLSConfig(client.Transport) - if tlsConfig != nil { - // TODO(stevvooe): This isn't really the right way to write clients in Go. - // `NewClient` should probably only take an `*http.Client` and work from there. - // Unfortunately, the model of having a host-ish/url-thingy as the connection - // string has us confusing protocol and transport layers. We continue doing - // this to avoid breaking existing clients but this should be addressed. - scheme = "https" - } - - return &Client{ - scheme: scheme, - host: host, - proto: proto, - addr: addr, - basePath: basePath, - client: client, - version: version, - customHTTPHeaders: httpHeaders, - }, nil -} - -// Close ensures that transport.Client is closed -// especially needed while using NewClient with *http.Client = nil -// for example -// client.NewClient("unix:///var/run/docker.sock", nil, "v1.18", map[string]string{"User-Agent": "engine-api-cli-1.0"}) -func (cli *Client) Close() error { - - if t, ok := cli.client.Transport.(*http.Transport); ok { - t.CloseIdleConnections() - } - - return nil -} - -// getAPIPath returns the versioned request path to call the api. -// It appends the query parameters to the path if they are not empty. -func (cli *Client) getAPIPath(p string, query url.Values) string { - var apiPath string - if cli.version != "" { - v := strings.TrimPrefix(cli.version, "v") - apiPath = fmt.Sprintf("%s/v%s%s", cli.basePath, v, p) - } else { - apiPath = fmt.Sprintf("%s%s", cli.basePath, p) - } - - u := &url.URL{ - Path: apiPath, - } - if len(query) > 0 { - u.RawQuery = query.Encode() - } - return u.String() -} - -// ClientVersion returns the version string associated with this -// instance of the Client. Note that this value can be changed -// via the DOCKER_API_VERSION env var. -// This operation doesn't acquire a mutex. -func (cli *Client) ClientVersion() string { - return cli.version -} - -// UpdateClientVersion updates the version string associated with this -// instance of the Client. This operation doesn't acquire a mutex. -func (cli *Client) UpdateClientVersion(v string) { - if !cli.manualOverride { - cli.version = v - } - -} - -// ParseHost verifies that the given host strings is valid. -func ParseHost(host string) (string, string, string, error) { - protoAddrParts := strings.SplitN(host, "://", 2) - if len(protoAddrParts) == 1 { - return "", "", "", fmt.Errorf("unable to parse docker host `%s`", host) - } - - var basePath string - proto, addr := protoAddrParts[0], protoAddrParts[1] - if proto == "tcp" { - parsed, err := url.Parse("tcp://" + addr) - if err != nil { - return "", "", "", err - } - addr = parsed.Host - basePath = parsed.Path - } - return proto, addr, basePath, nil -} - -// CustomHTTPHeaders returns the custom http headers associated with this -// instance of the Client. This operation doesn't acquire a mutex. -func (cli *Client) CustomHTTPHeaders() map[string]string { - m := make(map[string]string) - for k, v := range cli.customHTTPHeaders { - m[k] = v - } - return m -} - -// SetCustomHTTPHeaders updates the custom http headers associated with this -// instance of the Client. This operation doesn't acquire a mutex. -func (cli *Client) SetCustomHTTPHeaders(headers map[string]string) { - cli.customHTTPHeaders = headers -} diff --git a/vendor/github.com/docker/docker/client/client_unix.go b/vendor/github.com/docker/docker/client/client_unix.go deleted file mode 100644 index 89de892..0000000 --- a/vendor/github.com/docker/docker/client/client_unix.go +++ /dev/null @@ -1,6 +0,0 @@ -// +build linux freebsd solaris openbsd darwin - -package client - -// DefaultDockerHost defines os specific default if DOCKER_HOST is unset -const DefaultDockerHost = "unix:///var/run/docker.sock" diff --git a/vendor/github.com/docker/docker/client/client_windows.go b/vendor/github.com/docker/docker/client/client_windows.go deleted file mode 100644 index 07c0c7a..0000000 --- a/vendor/github.com/docker/docker/client/client_windows.go +++ /dev/null @@ -1,4 +0,0 @@ -package client - -// DefaultDockerHost defines os specific default if DOCKER_HOST is unset -const DefaultDockerHost = "npipe:////./pipe/docker_engine" diff --git a/vendor/github.com/docker/docker/client/container_attach.go b/vendor/github.com/docker/docker/client/container_attach.go deleted file mode 100644 index eea4682..0000000 --- a/vendor/github.com/docker/docker/client/container_attach.go +++ /dev/null @@ -1,37 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerAttach attaches a connection to a container in the server. -// It returns a types.HijackedConnection with the hijacked connection -// and the a reader to get output. It's up to the called to close -// the hijacked connection by calling types.HijackedResponse.Close. -func (cli *Client) ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) { - query := url.Values{} - if options.Stream { - query.Set("stream", "1") - } - if options.Stdin { - query.Set("stdin", "1") - } - if options.Stdout { - query.Set("stdout", "1") - } - if options.Stderr { - query.Set("stderr", "1") - } - if options.DetachKeys != "" { - query.Set("detachKeys", options.DetachKeys) - } - if options.Logs { - query.Set("logs", "1") - } - - headers := map[string][]string{"Content-Type": {"text/plain"}} - return cli.postHijacked(ctx, "/containers/"+container+"/attach", query, nil, headers) -} diff --git a/vendor/github.com/docker/docker/client/container_commit.go b/vendor/github.com/docker/docker/client/container_commit.go deleted file mode 100644 index c766d62..0000000 --- a/vendor/github.com/docker/docker/client/container_commit.go +++ /dev/null @@ -1,53 +0,0 @@ -package client - -import ( - "encoding/json" - "errors" - "net/url" - - distreference "github.com/docker/distribution/reference" - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/reference" - "golang.org/x/net/context" -) - -// ContainerCommit applies changes into a container and creates a new tagged image. -func (cli *Client) ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error) { - var repository, tag string - if options.Reference != "" { - distributionRef, err := distreference.ParseNamed(options.Reference) - if err != nil { - return types.IDResponse{}, err - } - - if _, isCanonical := distributionRef.(distreference.Canonical); isCanonical { - return types.IDResponse{}, errors.New("refusing to create a tag with a digest reference") - } - - tag = reference.GetTagFromNamedRef(distributionRef) - repository = distributionRef.Name() - } - - query := url.Values{} - query.Set("container", container) - query.Set("repo", repository) - query.Set("tag", tag) - query.Set("comment", options.Comment) - query.Set("author", options.Author) - for _, change := range options.Changes { - query.Add("changes", change) - } - if options.Pause != true { - query.Set("pause", "0") - } - - var response types.IDResponse - resp, err := cli.post(ctx, "/commit", query, options.Config, nil) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/container_copy.go b/vendor/github.com/docker/docker/client/container_copy.go deleted file mode 100644 index 8380eea..0000000 --- a/vendor/github.com/docker/docker/client/container_copy.go +++ /dev/null @@ -1,97 +0,0 @@ -package client - -import ( - "encoding/base64" - "encoding/json" - "fmt" - "io" - "net/http" - "net/url" - "path/filepath" - "strings" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" -) - -// ContainerStatPath returns Stat information about a path inside the container filesystem. -func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path string) (types.ContainerPathStat, error) { - query := url.Values{} - query.Set("path", filepath.ToSlash(path)) // Normalize the paths used in the API. - - urlStr := fmt.Sprintf("/containers/%s/archive", containerID) - response, err := cli.head(ctx, urlStr, query, nil) - if err != nil { - return types.ContainerPathStat{}, err - } - defer ensureReaderClosed(response) - return getContainerPathStatFromHeader(response.header) -} - -// CopyToContainer copies content into the container filesystem. -func (cli *Client) CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error { - query := url.Values{} - query.Set("path", filepath.ToSlash(path)) // Normalize the paths used in the API. - // Do not allow for an existing directory to be overwritten by a non-directory and vice versa. - if !options.AllowOverwriteDirWithFile { - query.Set("noOverwriteDirNonDir", "true") - } - - apiPath := fmt.Sprintf("/containers/%s/archive", container) - - response, err := cli.putRaw(ctx, apiPath, query, content, nil) - if err != nil { - return err - } - defer ensureReaderClosed(response) - - if response.statusCode != http.StatusOK { - return fmt.Errorf("unexpected status code from daemon: %d", response.statusCode) - } - - return nil -} - -// CopyFromContainer gets the content from the container and returns it as a Reader -// to manipulate it in the host. It's up to the caller to close the reader. -func (cli *Client) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) { - query := make(url.Values, 1) - query.Set("path", filepath.ToSlash(srcPath)) // Normalize the paths used in the API. - - apiPath := fmt.Sprintf("/containers/%s/archive", container) - response, err := cli.get(ctx, apiPath, query, nil) - if err != nil { - return nil, types.ContainerPathStat{}, err - } - - if response.statusCode != http.StatusOK { - return nil, types.ContainerPathStat{}, fmt.Errorf("unexpected status code from daemon: %d", response.statusCode) - } - - // In order to get the copy behavior right, we need to know information - // about both the source and the destination. The response headers include - // stat info about the source that we can use in deciding exactly how to - // copy it locally. Along with the stat info about the local destination, - // we have everything we need to handle the multiple possibilities there - // can be when copying a file/dir from one location to another file/dir. - stat, err := getContainerPathStatFromHeader(response.header) - if err != nil { - return nil, stat, fmt.Errorf("unable to get resource stat from response: %s", err) - } - return response.body, stat, err -} - -func getContainerPathStatFromHeader(header http.Header) (types.ContainerPathStat, error) { - var stat types.ContainerPathStat - - encodedStat := header.Get("X-Docker-Container-Path-Stat") - statDecoder := base64.NewDecoder(base64.StdEncoding, strings.NewReader(encodedStat)) - - err := json.NewDecoder(statDecoder).Decode(&stat) - if err != nil { - err = fmt.Errorf("unable to decode container path stat header: %s", err) - } - - return stat, err -} diff --git a/vendor/github.com/docker/docker/client/container_create.go b/vendor/github.com/docker/docker/client/container_create.go deleted file mode 100644 index 6841b0b..0000000 --- a/vendor/github.com/docker/docker/client/container_create.go +++ /dev/null @@ -1,56 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - "strings" - - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/network" - "github.com/docker/docker/api/types/versions" - "golang.org/x/net/context" -) - -type configWrapper struct { - *container.Config - HostConfig *container.HostConfig - NetworkingConfig *network.NetworkingConfig -} - -// ContainerCreate creates a new container based in the given configuration. -// It can be associated with a name, but it's not mandatory. -func (cli *Client) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error) { - var response container.ContainerCreateCreatedBody - - if err := cli.NewVersionError("1.25", "stop timeout"); config != nil && config.StopTimeout != nil && err != nil { - return response, err - } - - // When using API 1.24 and under, the client is responsible for removing the container - if hostConfig != nil && versions.LessThan(cli.ClientVersion(), "1.25") { - hostConfig.AutoRemove = false - } - - query := url.Values{} - if containerName != "" { - query.Set("name", containerName) - } - - body := configWrapper{ - Config: config, - HostConfig: hostConfig, - NetworkingConfig: networkingConfig, - } - - serverResp, err := cli.post(ctx, "/containers/create", query, body, nil) - if err != nil { - if serverResp.statusCode == 404 && strings.Contains(err.Error(), "No such image") { - return response, imageNotFoundError{config.Image} - } - return response, err - } - - err = json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/container_diff.go b/vendor/github.com/docker/docker/client/container_diff.go deleted file mode 100644 index 1e3e554..0000000 --- a/vendor/github.com/docker/docker/client/container_diff.go +++ /dev/null @@ -1,23 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerDiff shows differences in a container filesystem since it was started. -func (cli *Client) ContainerDiff(ctx context.Context, containerID string) ([]types.ContainerChange, error) { - var changes []types.ContainerChange - - serverResp, err := cli.get(ctx, "/containers/"+containerID+"/changes", url.Values{}, nil) - if err != nil { - return changes, err - } - - err = json.NewDecoder(serverResp.body).Decode(&changes) - ensureReaderClosed(serverResp) - return changes, err -} diff --git a/vendor/github.com/docker/docker/client/container_exec.go b/vendor/github.com/docker/docker/client/container_exec.go deleted file mode 100644 index 0665c54..0000000 --- a/vendor/github.com/docker/docker/client/container_exec.go +++ /dev/null @@ -1,54 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerExecCreate creates a new exec configuration to run an exec process. -func (cli *Client) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) { - var response types.IDResponse - - if err := cli.NewVersionError("1.25", "env"); len(config.Env) != 0 && err != nil { - return response, err - } - - resp, err := cli.post(ctx, "/containers/"+container+"/exec", nil, config, nil) - if err != nil { - return response, err - } - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} - -// ContainerExecStart starts an exec process already created in the docker host. -func (cli *Client) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error { - resp, err := cli.post(ctx, "/exec/"+execID+"/start", nil, config, nil) - ensureReaderClosed(resp) - return err -} - -// ContainerExecAttach attaches a connection to an exec process in the server. -// It returns a types.HijackedConnection with the hijacked connection -// and the a reader to get output. It's up to the called to close -// the hijacked connection by calling types.HijackedResponse.Close. -func (cli *Client) ContainerExecAttach(ctx context.Context, execID string, config types.ExecConfig) (types.HijackedResponse, error) { - headers := map[string][]string{"Content-Type": {"application/json"}} - return cli.postHijacked(ctx, "/exec/"+execID+"/start", nil, config, headers) -} - -// ContainerExecInspect returns information about a specific exec process on the docker host. -func (cli *Client) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) { - var response types.ContainerExecInspect - resp, err := cli.get(ctx, "/exec/"+execID+"/json", nil, nil) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/container_export.go b/vendor/github.com/docker/docker/client/container_export.go deleted file mode 100644 index 52194f3..0000000 --- a/vendor/github.com/docker/docker/client/container_export.go +++ /dev/null @@ -1,20 +0,0 @@ -package client - -import ( - "io" - "net/url" - - "golang.org/x/net/context" -) - -// ContainerExport retrieves the raw contents of a container -// and returns them as an io.ReadCloser. It's up to the caller -// to close the stream. -func (cli *Client) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error) { - serverResp, err := cli.get(ctx, "/containers/"+containerID+"/export", url.Values{}, nil) - if err != nil { - return nil, err - } - - return serverResp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/container_inspect.go b/vendor/github.com/docker/docker/client/container_inspect.go deleted file mode 100644 index 17f1809..0000000 --- a/vendor/github.com/docker/docker/client/container_inspect.go +++ /dev/null @@ -1,54 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerInspect returns the container information. -func (cli *Client) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) { - serverResp, err := cli.get(ctx, "/containers/"+containerID+"/json", nil, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return types.ContainerJSON{}, containerNotFoundError{containerID} - } - return types.ContainerJSON{}, err - } - - var response types.ContainerJSON - err = json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} - -// ContainerInspectWithRaw returns the container information and its raw representation. -func (cli *Client) ContainerInspectWithRaw(ctx context.Context, containerID string, getSize bool) (types.ContainerJSON, []byte, error) { - query := url.Values{} - if getSize { - query.Set("size", "1") - } - serverResp, err := cli.get(ctx, "/containers/"+containerID+"/json", query, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return types.ContainerJSON{}, nil, containerNotFoundError{containerID} - } - return types.ContainerJSON{}, nil, err - } - defer ensureReaderClosed(serverResp) - - body, err := ioutil.ReadAll(serverResp.body) - if err != nil { - return types.ContainerJSON{}, nil, err - } - - var response types.ContainerJSON - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&response) - return response, body, err -} diff --git a/vendor/github.com/docker/docker/client/container_kill.go b/vendor/github.com/docker/docker/client/container_kill.go deleted file mode 100644 index 29f80c7..0000000 --- a/vendor/github.com/docker/docker/client/container_kill.go +++ /dev/null @@ -1,17 +0,0 @@ -package client - -import ( - "net/url" - - "golang.org/x/net/context" -) - -// ContainerKill terminates the container process but does not remove the container from the docker host. -func (cli *Client) ContainerKill(ctx context.Context, containerID, signal string) error { - query := url.Values{} - query.Set("signal", signal) - - resp, err := cli.post(ctx, "/containers/"+containerID+"/kill", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_list.go b/vendor/github.com/docker/docker/client/container_list.go deleted file mode 100644 index 4398912..0000000 --- a/vendor/github.com/docker/docker/client/container_list.go +++ /dev/null @@ -1,56 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - "strconv" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// ContainerList returns the list of containers in the docker host. -func (cli *Client) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) { - query := url.Values{} - - if options.All { - query.Set("all", "1") - } - - if options.Limit != -1 { - query.Set("limit", strconv.Itoa(options.Limit)) - } - - if options.Since != "" { - query.Set("since", options.Since) - } - - if options.Before != "" { - query.Set("before", options.Before) - } - - if options.Size { - query.Set("size", "1") - } - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParamWithVersion(cli.version, options.Filters) - - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - - resp, err := cli.get(ctx, "/containers/json", query, nil) - if err != nil { - return nil, err - } - - var containers []types.Container - err = json.NewDecoder(resp.body).Decode(&containers) - ensureReaderClosed(resp) - return containers, err -} diff --git a/vendor/github.com/docker/docker/client/container_logs.go b/vendor/github.com/docker/docker/client/container_logs.go deleted file mode 100644 index 69056b6..0000000 --- a/vendor/github.com/docker/docker/client/container_logs.go +++ /dev/null @@ -1,52 +0,0 @@ -package client - -import ( - "io" - "net/url" - "time" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - timetypes "github.com/docker/docker/api/types/time" -) - -// ContainerLogs returns the logs generated by a container in an io.ReadCloser. -// It's up to the caller to close the stream. -func (cli *Client) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) { - query := url.Values{} - if options.ShowStdout { - query.Set("stdout", "1") - } - - if options.ShowStderr { - query.Set("stderr", "1") - } - - if options.Since != "" { - ts, err := timetypes.GetTimestamp(options.Since, time.Now()) - if err != nil { - return nil, err - } - query.Set("since", ts) - } - - if options.Timestamps { - query.Set("timestamps", "1") - } - - if options.Details { - query.Set("details", "1") - } - - if options.Follow { - query.Set("follow", "1") - } - query.Set("tail", options.Tail) - - resp, err := cli.get(ctx, "/containers/"+container+"/logs", query, nil) - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/container_pause.go b/vendor/github.com/docker/docker/client/container_pause.go deleted file mode 100644 index 412067a..0000000 --- a/vendor/github.com/docker/docker/client/container_pause.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -import "golang.org/x/net/context" - -// ContainerPause pauses the main process of a given container without terminating it. -func (cli *Client) ContainerPause(ctx context.Context, containerID string) error { - resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_prune.go b/vendor/github.com/docker/docker/client/container_prune.go deleted file mode 100644 index b582170..0000000 --- a/vendor/github.com/docker/docker/client/container_prune.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// ContainersPrune requests the daemon to delete unused data -func (cli *Client) ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error) { - var report types.ContainersPruneReport - - if err := cli.NewVersionError("1.25", "container prune"); err != nil { - return report, err - } - - query, err := getFiltersQuery(pruneFilters) - if err != nil { - return report, err - } - - serverResp, err := cli.post(ctx, "/containers/prune", query, nil, nil) - if err != nil { - return report, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&report); err != nil { - return report, fmt.Errorf("Error retrieving disk usage: %v", err) - } - - return report, nil -} diff --git a/vendor/github.com/docker/docker/client/container_remove.go b/vendor/github.com/docker/docker/client/container_remove.go deleted file mode 100644 index 3a79590..0000000 --- a/vendor/github.com/docker/docker/client/container_remove.go +++ /dev/null @@ -1,27 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerRemove kills and removes a container from the docker host. -func (cli *Client) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error { - query := url.Values{} - if options.RemoveVolumes { - query.Set("v", "1") - } - if options.RemoveLinks { - query.Set("link", "1") - } - - if options.Force { - query.Set("force", "1") - } - - resp, err := cli.delete(ctx, "/containers/"+containerID, query, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_rename.go b/vendor/github.com/docker/docker/client/container_rename.go deleted file mode 100644 index 0e718da..0000000 --- a/vendor/github.com/docker/docker/client/container_rename.go +++ /dev/null @@ -1,16 +0,0 @@ -package client - -import ( - "net/url" - - "golang.org/x/net/context" -) - -// ContainerRename changes the name of a given container. -func (cli *Client) ContainerRename(ctx context.Context, containerID, newContainerName string) error { - query := url.Values{} - query.Set("name", newContainerName) - resp, err := cli.post(ctx, "/containers/"+containerID+"/rename", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_resize.go b/vendor/github.com/docker/docker/client/container_resize.go deleted file mode 100644 index 66c3cc1..0000000 --- a/vendor/github.com/docker/docker/client/container_resize.go +++ /dev/null @@ -1,29 +0,0 @@ -package client - -import ( - "net/url" - "strconv" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerResize changes the size of the tty for a container. -func (cli *Client) ContainerResize(ctx context.Context, containerID string, options types.ResizeOptions) error { - return cli.resize(ctx, "/containers/"+containerID, options.Height, options.Width) -} - -// ContainerExecResize changes the size of the tty for an exec process running inside a container. -func (cli *Client) ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error { - return cli.resize(ctx, "/exec/"+execID, options.Height, options.Width) -} - -func (cli *Client) resize(ctx context.Context, basePath string, height, width uint) error { - query := url.Values{} - query.Set("h", strconv.Itoa(int(height))) - query.Set("w", strconv.Itoa(int(width))) - - resp, err := cli.post(ctx, basePath+"/resize", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_restart.go b/vendor/github.com/docker/docker/client/container_restart.go deleted file mode 100644 index 74d7455..0000000 --- a/vendor/github.com/docker/docker/client/container_restart.go +++ /dev/null @@ -1,22 +0,0 @@ -package client - -import ( - "net/url" - "time" - - timetypes "github.com/docker/docker/api/types/time" - "golang.org/x/net/context" -) - -// ContainerRestart stops and starts a container again. -// It makes the daemon to wait for the container to be up again for -// a specific amount of time, given the timeout. -func (cli *Client) ContainerRestart(ctx context.Context, containerID string, timeout *time.Duration) error { - query := url.Values{} - if timeout != nil { - query.Set("t", timetypes.DurationToSecondsString(*timeout)) - } - resp, err := cli.post(ctx, "/containers/"+containerID+"/restart", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_start.go b/vendor/github.com/docker/docker/client/container_start.go deleted file mode 100644 index b1f08de..0000000 --- a/vendor/github.com/docker/docker/client/container_start.go +++ /dev/null @@ -1,24 +0,0 @@ -package client - -import ( - "net/url" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" -) - -// ContainerStart sends a request to the docker daemon to start a container. -func (cli *Client) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error { - query := url.Values{} - if len(options.CheckpointID) != 0 { - query.Set("checkpoint", options.CheckpointID) - } - if len(options.CheckpointDir) != 0 { - query.Set("checkpoint-dir", options.CheckpointDir) - } - - resp, err := cli.post(ctx, "/containers/"+containerID+"/start", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_stats.go b/vendor/github.com/docker/docker/client/container_stats.go deleted file mode 100644 index 4758c66..0000000 --- a/vendor/github.com/docker/docker/client/container_stats.go +++ /dev/null @@ -1,26 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerStats returns near realtime stats for a given container. -// It's up to the caller to close the io.ReadCloser returned. -func (cli *Client) ContainerStats(ctx context.Context, containerID string, stream bool) (types.ContainerStats, error) { - query := url.Values{} - query.Set("stream", "0") - if stream { - query.Set("stream", "1") - } - - resp, err := cli.get(ctx, "/containers/"+containerID+"/stats", query, nil) - if err != nil { - return types.ContainerStats{}, err - } - - osType := getDockerOS(resp.header.Get("Server")) - return types.ContainerStats{Body: resp.body, OSType: osType}, err -} diff --git a/vendor/github.com/docker/docker/client/container_stop.go b/vendor/github.com/docker/docker/client/container_stop.go deleted file mode 100644 index b5418ae..0000000 --- a/vendor/github.com/docker/docker/client/container_stop.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "net/url" - "time" - - timetypes "github.com/docker/docker/api/types/time" - "golang.org/x/net/context" -) - -// ContainerStop stops a container without terminating the process. -// The process is blocked until the container stops or the timeout expires. -func (cli *Client) ContainerStop(ctx context.Context, containerID string, timeout *time.Duration) error { - query := url.Values{} - if timeout != nil { - query.Set("t", timetypes.DurationToSecondsString(*timeout)) - } - resp, err := cli.post(ctx, "/containers/"+containerID+"/stop", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_top.go b/vendor/github.com/docker/docker/client/container_top.go deleted file mode 100644 index 4e7270e..0000000 --- a/vendor/github.com/docker/docker/client/container_top.go +++ /dev/null @@ -1,28 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - "strings" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ContainerTop shows process information from within a container. -func (cli *Client) ContainerTop(ctx context.Context, containerID string, arguments []string) (types.ContainerProcessList, error) { - var response types.ContainerProcessList - query := url.Values{} - if len(arguments) > 0 { - query.Set("ps_args", strings.Join(arguments, " ")) - } - - resp, err := cli.get(ctx, "/containers/"+containerID+"/top", query, nil) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/container_unpause.go b/vendor/github.com/docker/docker/client/container_unpause.go deleted file mode 100644 index 5c76211..0000000 --- a/vendor/github.com/docker/docker/client/container_unpause.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -import "golang.org/x/net/context" - -// ContainerUnpause resumes the process execution within a container -func (cli *Client) ContainerUnpause(ctx context.Context, containerID string) error { - resp, err := cli.post(ctx, "/containers/"+containerID+"/unpause", nil, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/container_update.go b/vendor/github.com/docker/docker/client/container_update.go deleted file mode 100644 index 5082f22..0000000 --- a/vendor/github.com/docker/docker/client/container_update.go +++ /dev/null @@ -1,22 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types/container" - "golang.org/x/net/context" -) - -// ContainerUpdate updates resources of a container -func (cli *Client) ContainerUpdate(ctx context.Context, containerID string, updateConfig container.UpdateConfig) (container.ContainerUpdateOKBody, error) { - var response container.ContainerUpdateOKBody - serverResp, err := cli.post(ctx, "/containers/"+containerID+"/update", nil, updateConfig, nil) - if err != nil { - return response, err - } - - err = json.NewDecoder(serverResp.body).Decode(&response) - - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/container_wait.go b/vendor/github.com/docker/docker/client/container_wait.go deleted file mode 100644 index 93212c7..0000000 --- a/vendor/github.com/docker/docker/client/container_wait.go +++ /dev/null @@ -1,26 +0,0 @@ -package client - -import ( - "encoding/json" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types/container" -) - -// ContainerWait pauses execution until a container exits. -// It returns the API status code as response of its readiness. -func (cli *Client) ContainerWait(ctx context.Context, containerID string) (int64, error) { - resp, err := cli.post(ctx, "/containers/"+containerID+"/wait", nil, nil, nil) - if err != nil { - return -1, err - } - defer ensureReaderClosed(resp) - - var res container.ContainerWaitOKBody - if err := json.NewDecoder(resp.body).Decode(&res); err != nil { - return -1, err - } - - return res.StatusCode, nil -} diff --git a/vendor/github.com/docker/docker/client/disk_usage.go b/vendor/github.com/docker/docker/client/disk_usage.go deleted file mode 100644 index 03c80b3..0000000 --- a/vendor/github.com/docker/docker/client/disk_usage.go +++ /dev/null @@ -1,26 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// DiskUsage requests the current data usage from the daemon -func (cli *Client) DiskUsage(ctx context.Context) (types.DiskUsage, error) { - var du types.DiskUsage - - serverResp, err := cli.get(ctx, "/system/df", nil, nil) - if err != nil { - return du, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&du); err != nil { - return du, fmt.Errorf("Error retrieving disk usage: %v", err) - } - - return du, nil -} diff --git a/vendor/github.com/docker/docker/client/errors.go b/vendor/github.com/docker/docker/client/errors.go deleted file mode 100644 index 2912692..0000000 --- a/vendor/github.com/docker/docker/client/errors.go +++ /dev/null @@ -1,278 +0,0 @@ -package client - -import ( - "fmt" - - "github.com/docker/docker/api/types/versions" - "github.com/pkg/errors" -) - -// errConnectionFailed implements an error returned when connection failed. -type errConnectionFailed struct { - host string -} - -// Error returns a string representation of an errConnectionFailed -func (err errConnectionFailed) Error() string { - if err.host == "" { - return "Cannot connect to the Docker daemon. Is the docker daemon running on this host?" - } - return fmt.Sprintf("Cannot connect to the Docker daemon at %s. Is the docker daemon running?", err.host) -} - -// IsErrConnectionFailed returns true if the error is caused by connection failed. -func IsErrConnectionFailed(err error) bool { - _, ok := errors.Cause(err).(errConnectionFailed) - return ok -} - -// ErrorConnectionFailed returns an error with host in the error message when connection to docker daemon failed. -func ErrorConnectionFailed(host string) error { - return errConnectionFailed{host: host} -} - -type notFound interface { - error - NotFound() bool // Is the error a NotFound error -} - -// IsErrNotFound returns true if the error is caused with an -// object (image, container, network, volume, …) is not found in the docker host. -func IsErrNotFound(err error) bool { - te, ok := err.(notFound) - return ok && te.NotFound() -} - -// imageNotFoundError implements an error returned when an image is not in the docker host. -type imageNotFoundError struct { - imageID string -} - -// NotFound indicates that this error type is of NotFound -func (e imageNotFoundError) NotFound() bool { - return true -} - -// Error returns a string representation of an imageNotFoundError -func (e imageNotFoundError) Error() string { - return fmt.Sprintf("Error: No such image: %s", e.imageID) -} - -// IsErrImageNotFound returns true if the error is caused -// when an image is not found in the docker host. -func IsErrImageNotFound(err error) bool { - return IsErrNotFound(err) -} - -// containerNotFoundError implements an error returned when a container is not in the docker host. -type containerNotFoundError struct { - containerID string -} - -// NotFound indicates that this error type is of NotFound -func (e containerNotFoundError) NotFound() bool { - return true -} - -// Error returns a string representation of a containerNotFoundError -func (e containerNotFoundError) Error() string { - return fmt.Sprintf("Error: No such container: %s", e.containerID) -} - -// IsErrContainerNotFound returns true if the error is caused -// when a container is not found in the docker host. -func IsErrContainerNotFound(err error) bool { - return IsErrNotFound(err) -} - -// networkNotFoundError implements an error returned when a network is not in the docker host. -type networkNotFoundError struct { - networkID string -} - -// NotFound indicates that this error type is of NotFound -func (e networkNotFoundError) NotFound() bool { - return true -} - -// Error returns a string representation of a networkNotFoundError -func (e networkNotFoundError) Error() string { - return fmt.Sprintf("Error: No such network: %s", e.networkID) -} - -// IsErrNetworkNotFound returns true if the error is caused -// when a network is not found in the docker host. -func IsErrNetworkNotFound(err error) bool { - return IsErrNotFound(err) -} - -// volumeNotFoundError implements an error returned when a volume is not in the docker host. -type volumeNotFoundError struct { - volumeID string -} - -// NotFound indicates that this error type is of NotFound -func (e volumeNotFoundError) NotFound() bool { - return true -} - -// Error returns a string representation of a volumeNotFoundError -func (e volumeNotFoundError) Error() string { - return fmt.Sprintf("Error: No such volume: %s", e.volumeID) -} - -// IsErrVolumeNotFound returns true if the error is caused -// when a volume is not found in the docker host. -func IsErrVolumeNotFound(err error) bool { - return IsErrNotFound(err) -} - -// unauthorizedError represents an authorization error in a remote registry. -type unauthorizedError struct { - cause error -} - -// Error returns a string representation of an unauthorizedError -func (u unauthorizedError) Error() string { - return u.cause.Error() -} - -// IsErrUnauthorized returns true if the error is caused -// when a remote registry authentication fails -func IsErrUnauthorized(err error) bool { - _, ok := err.(unauthorizedError) - return ok -} - -// nodeNotFoundError implements an error returned when a node is not found. -type nodeNotFoundError struct { - nodeID string -} - -// Error returns a string representation of a nodeNotFoundError -func (e nodeNotFoundError) Error() string { - return fmt.Sprintf("Error: No such node: %s", e.nodeID) -} - -// NotFound indicates that this error type is of NotFound -func (e nodeNotFoundError) NotFound() bool { - return true -} - -// IsErrNodeNotFound returns true if the error is caused -// when a node is not found. -func IsErrNodeNotFound(err error) bool { - _, ok := err.(nodeNotFoundError) - return ok -} - -// serviceNotFoundError implements an error returned when a service is not found. -type serviceNotFoundError struct { - serviceID string -} - -// Error returns a string representation of a serviceNotFoundError -func (e serviceNotFoundError) Error() string { - return fmt.Sprintf("Error: No such service: %s", e.serviceID) -} - -// NotFound indicates that this error type is of NotFound -func (e serviceNotFoundError) NotFound() bool { - return true -} - -// IsErrServiceNotFound returns true if the error is caused -// when a service is not found. -func IsErrServiceNotFound(err error) bool { - _, ok := err.(serviceNotFoundError) - return ok -} - -// taskNotFoundError implements an error returned when a task is not found. -type taskNotFoundError struct { - taskID string -} - -// Error returns a string representation of a taskNotFoundError -func (e taskNotFoundError) Error() string { - return fmt.Sprintf("Error: No such task: %s", e.taskID) -} - -// NotFound indicates that this error type is of NotFound -func (e taskNotFoundError) NotFound() bool { - return true -} - -// IsErrTaskNotFound returns true if the error is caused -// when a task is not found. -func IsErrTaskNotFound(err error) bool { - _, ok := err.(taskNotFoundError) - return ok -} - -type pluginPermissionDenied struct { - name string -} - -func (e pluginPermissionDenied) Error() string { - return "Permission denied while installing plugin " + e.name -} - -// IsErrPluginPermissionDenied returns true if the error is caused -// when a user denies a plugin's permissions -func IsErrPluginPermissionDenied(err error) bool { - _, ok := err.(pluginPermissionDenied) - return ok -} - -// NewVersionError returns an error if the APIVersion required -// if less than the current supported version -func (cli *Client) NewVersionError(APIrequired, feature string) error { - if versions.LessThan(cli.version, APIrequired) { - return fmt.Errorf("%q requires API version %s, but the Docker server is version %s", feature, APIrequired, cli.version) - } - return nil -} - -// secretNotFoundError implements an error returned when a secret is not found. -type secretNotFoundError struct { - name string -} - -// Error returns a string representation of a secretNotFoundError -func (e secretNotFoundError) Error() string { - return fmt.Sprintf("Error: no such secret: %s", e.name) -} - -// NotFound indicates that this error type is of NotFound -func (e secretNotFoundError) NotFound() bool { - return true -} - -// IsErrSecretNotFound returns true if the error is caused -// when a secret is not found. -func IsErrSecretNotFound(err error) bool { - _, ok := err.(secretNotFoundError) - return ok -} - -// pluginNotFoundError implements an error returned when a plugin is not in the docker host. -type pluginNotFoundError struct { - name string -} - -// NotFound indicates that this error type is of NotFound -func (e pluginNotFoundError) NotFound() bool { - return true -} - -// Error returns a string representation of a pluginNotFoundError -func (e pluginNotFoundError) Error() string { - return fmt.Sprintf("Error: No such plugin: %s", e.name) -} - -// IsErrPluginNotFound returns true if the error is caused -// when a plugin is not found in the docker host. -func IsErrPluginNotFound(err error) bool { - return IsErrNotFound(err) -} diff --git a/vendor/github.com/docker/docker/client/events.go b/vendor/github.com/docker/docker/client/events.go deleted file mode 100644 index af47aef..0000000 --- a/vendor/github.com/docker/docker/client/events.go +++ /dev/null @@ -1,102 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - "time" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/events" - "github.com/docker/docker/api/types/filters" - timetypes "github.com/docker/docker/api/types/time" -) - -// Events returns a stream of events in the daemon. It's up to the caller to close the stream -// by cancelling the context. Once the stream has been completely read an io.EOF error will -// be sent over the error channel. If an error is sent all processing will be stopped. It's up -// to the caller to reopen the stream in the event of an error by reinvoking this method. -func (cli *Client) Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) { - - messages := make(chan events.Message) - errs := make(chan error, 1) - - started := make(chan struct{}) - go func() { - defer close(errs) - - query, err := buildEventsQueryParams(cli.version, options) - if err != nil { - close(started) - errs <- err - return - } - - resp, err := cli.get(ctx, "/events", query, nil) - if err != nil { - close(started) - errs <- err - return - } - defer resp.body.Close() - - decoder := json.NewDecoder(resp.body) - - close(started) - for { - select { - case <-ctx.Done(): - errs <- ctx.Err() - return - default: - var event events.Message - if err := decoder.Decode(&event); err != nil { - errs <- err - return - } - - select { - case messages <- event: - case <-ctx.Done(): - errs <- ctx.Err() - return - } - } - } - }() - <-started - - return messages, errs -} - -func buildEventsQueryParams(cliVersion string, options types.EventsOptions) (url.Values, error) { - query := url.Values{} - ref := time.Now() - - if options.Since != "" { - ts, err := timetypes.GetTimestamp(options.Since, ref) - if err != nil { - return nil, err - } - query.Set("since", ts) - } - - if options.Until != "" { - ts, err := timetypes.GetTimestamp(options.Until, ref) - if err != nil { - return nil, err - } - query.Set("until", ts) - } - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParamWithVersion(cliVersion, options.Filters) - if err != nil { - return nil, err - } - query.Set("filters", filterJSON) - } - - return query, nil -} diff --git a/vendor/github.com/docker/docker/client/hijack.go b/vendor/github.com/docker/docker/client/hijack.go deleted file mode 100644 index 74c53f5..0000000 --- a/vendor/github.com/docker/docker/client/hijack.go +++ /dev/null @@ -1,177 +0,0 @@ -package client - -import ( - "crypto/tls" - "errors" - "fmt" - "net" - "net/http" - "net/http/httputil" - "net/url" - "strings" - "time" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/pkg/tlsconfig" - "github.com/docker/go-connections/sockets" - "golang.org/x/net/context" -) - -// tlsClientCon holds tls information and a dialed connection. -type tlsClientCon struct { - *tls.Conn - rawConn net.Conn -} - -func (c *tlsClientCon) CloseWrite() error { - // Go standard tls.Conn doesn't provide the CloseWrite() method so we do it - // on its underlying connection. - if conn, ok := c.rawConn.(types.CloseWriter); ok { - return conn.CloseWrite() - } - return nil -} - -// postHijacked sends a POST request and hijacks the connection. -func (cli *Client) postHijacked(ctx context.Context, path string, query url.Values, body interface{}, headers map[string][]string) (types.HijackedResponse, error) { - bodyEncoded, err := encodeData(body) - if err != nil { - return types.HijackedResponse{}, err - } - - apiPath := cli.getAPIPath(path, query) - req, err := http.NewRequest("POST", apiPath, bodyEncoded) - if err != nil { - return types.HijackedResponse{}, err - } - req = cli.addHeaders(req, headers) - - req.Host = cli.addr - req.Header.Set("Connection", "Upgrade") - req.Header.Set("Upgrade", "tcp") - - conn, err := dial(cli.proto, cli.addr, resolveTLSConfig(cli.client.Transport)) - if err != nil { - if strings.Contains(err.Error(), "connection refused") { - return types.HijackedResponse{}, fmt.Errorf("Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?") - } - return types.HijackedResponse{}, err - } - - // When we set up a TCP connection for hijack, there could be long periods - // of inactivity (a long running command with no output) that in certain - // network setups may cause ECONNTIMEOUT, leaving the client in an unknown - // state. Setting TCP KeepAlive on the socket connection will prohibit - // ECONNTIMEOUT unless the socket connection truly is broken - if tcpConn, ok := conn.(*net.TCPConn); ok { - tcpConn.SetKeepAlive(true) - tcpConn.SetKeepAlivePeriod(30 * time.Second) - } - - clientconn := httputil.NewClientConn(conn, nil) - defer clientconn.Close() - - // Server hijacks the connection, error 'connection closed' expected - _, err = clientconn.Do(req) - - rwc, br := clientconn.Hijack() - - return types.HijackedResponse{Conn: rwc, Reader: br}, err -} - -func tlsDial(network, addr string, config *tls.Config) (net.Conn, error) { - return tlsDialWithDialer(new(net.Dialer), network, addr, config) -} - -// We need to copy Go's implementation of tls.Dial (pkg/cryptor/tls/tls.go) in -// order to return our custom tlsClientCon struct which holds both the tls.Conn -// object _and_ its underlying raw connection. The rationale for this is that -// we need to be able to close the write end of the connection when attaching, -// which tls.Conn does not provide. -func tlsDialWithDialer(dialer *net.Dialer, network, addr string, config *tls.Config) (net.Conn, error) { - // We want the Timeout and Deadline values from dialer to cover the - // whole process: TCP connection and TLS handshake. This means that we - // also need to start our own timers now. - timeout := dialer.Timeout - - if !dialer.Deadline.IsZero() { - deadlineTimeout := dialer.Deadline.Sub(time.Now()) - if timeout == 0 || deadlineTimeout < timeout { - timeout = deadlineTimeout - } - } - - var errChannel chan error - - if timeout != 0 { - errChannel = make(chan error, 2) - time.AfterFunc(timeout, func() { - errChannel <- errors.New("") - }) - } - - proxyDialer, err := sockets.DialerFromEnvironment(dialer) - if err != nil { - return nil, err - } - - rawConn, err := proxyDialer.Dial(network, addr) - if err != nil { - return nil, err - } - // When we set up a TCP connection for hijack, there could be long periods - // of inactivity (a long running command with no output) that in certain - // network setups may cause ECONNTIMEOUT, leaving the client in an unknown - // state. Setting TCP KeepAlive on the socket connection will prohibit - // ECONNTIMEOUT unless the socket connection truly is broken - if tcpConn, ok := rawConn.(*net.TCPConn); ok { - tcpConn.SetKeepAlive(true) - tcpConn.SetKeepAlivePeriod(30 * time.Second) - } - - colonPos := strings.LastIndex(addr, ":") - if colonPos == -1 { - colonPos = len(addr) - } - hostname := addr[:colonPos] - - // If no ServerName is set, infer the ServerName - // from the hostname we're connecting to. - if config.ServerName == "" { - // Make a copy to avoid polluting argument or default. - config = tlsconfig.Clone(config) - config.ServerName = hostname - } - - conn := tls.Client(rawConn, config) - - if timeout == 0 { - err = conn.Handshake() - } else { - go func() { - errChannel <- conn.Handshake() - }() - - err = <-errChannel - } - - if err != nil { - rawConn.Close() - return nil, err - } - - // This is Docker difference with standard's crypto/tls package: returned a - // wrapper which holds both the TLS and raw connections. - return &tlsClientCon{conn, rawConn}, nil -} - -func dial(proto, addr string, tlsConfig *tls.Config) (net.Conn, error) { - if tlsConfig != nil && proto != "unix" && proto != "npipe" { - // Notice this isn't Go standard's tls.Dial function - return tlsDial(proto, addr, tlsConfig) - } - if proto == "npipe" { - return sockets.DialPipe(addr, 32*time.Second) - } - return net.Dial(proto, addr) -} diff --git a/vendor/github.com/docker/docker/client/image_build.go b/vendor/github.com/docker/docker/client/image_build.go deleted file mode 100644 index 411d549..0000000 --- a/vendor/github.com/docker/docker/client/image_build.go +++ /dev/null @@ -1,123 +0,0 @@ -package client - -import ( - "encoding/base64" - "encoding/json" - "io" - "net/http" - "net/url" - "strconv" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/container" -) - -// ImageBuild sends request to the daemon to build images. -// The Body in the response implement an io.ReadCloser and it's up to the caller to -// close it. -func (cli *Client) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) { - query, err := cli.imageBuildOptionsToQuery(options) - if err != nil { - return types.ImageBuildResponse{}, err - } - - headers := http.Header(make(map[string][]string)) - buf, err := json.Marshal(options.AuthConfigs) - if err != nil { - return types.ImageBuildResponse{}, err - } - headers.Add("X-Registry-Config", base64.URLEncoding.EncodeToString(buf)) - headers.Set("Content-Type", "application/x-tar") - - serverResp, err := cli.postRaw(ctx, "/build", query, buildContext, headers) - if err != nil { - return types.ImageBuildResponse{}, err - } - - osType := getDockerOS(serverResp.header.Get("Server")) - - return types.ImageBuildResponse{ - Body: serverResp.body, - OSType: osType, - }, nil -} - -func (cli *Client) imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, error) { - query := url.Values{ - "t": options.Tags, - "securityopt": options.SecurityOpt, - } - if options.SuppressOutput { - query.Set("q", "1") - } - if options.RemoteContext != "" { - query.Set("remote", options.RemoteContext) - } - if options.NoCache { - query.Set("nocache", "1") - } - if options.Remove { - query.Set("rm", "1") - } else { - query.Set("rm", "0") - } - - if options.ForceRemove { - query.Set("forcerm", "1") - } - - if options.PullParent { - query.Set("pull", "1") - } - - if options.Squash { - if err := cli.NewVersionError("1.25", "squash"); err != nil { - return query, err - } - query.Set("squash", "1") - } - - if !container.Isolation.IsDefault(options.Isolation) { - query.Set("isolation", string(options.Isolation)) - } - - query.Set("cpusetcpus", options.CPUSetCPUs) - query.Set("networkmode", options.NetworkMode) - query.Set("cpusetmems", options.CPUSetMems) - query.Set("cpushares", strconv.FormatInt(options.CPUShares, 10)) - query.Set("cpuquota", strconv.FormatInt(options.CPUQuota, 10)) - query.Set("cpuperiod", strconv.FormatInt(options.CPUPeriod, 10)) - query.Set("memory", strconv.FormatInt(options.Memory, 10)) - query.Set("memswap", strconv.FormatInt(options.MemorySwap, 10)) - query.Set("cgroupparent", options.CgroupParent) - query.Set("shmsize", strconv.FormatInt(options.ShmSize, 10)) - query.Set("dockerfile", options.Dockerfile) - - ulimitsJSON, err := json.Marshal(options.Ulimits) - if err != nil { - return query, err - } - query.Set("ulimits", string(ulimitsJSON)) - - buildArgsJSON, err := json.Marshal(options.BuildArgs) - if err != nil { - return query, err - } - query.Set("buildargs", string(buildArgsJSON)) - - labelsJSON, err := json.Marshal(options.Labels) - if err != nil { - return query, err - } - query.Set("labels", string(labelsJSON)) - - cacheFromJSON, err := json.Marshal(options.CacheFrom) - if err != nil { - return query, err - } - query.Set("cachefrom", string(cacheFromJSON)) - - return query, nil -} diff --git a/vendor/github.com/docker/docker/client/image_create.go b/vendor/github.com/docker/docker/client/image_create.go deleted file mode 100644 index cf023a7..0000000 --- a/vendor/github.com/docker/docker/client/image_create.go +++ /dev/null @@ -1,34 +0,0 @@ -package client - -import ( - "io" - "net/url" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/reference" -) - -// ImageCreate creates a new image based in the parent options. -// It returns the JSON content in the response body. -func (cli *Client) ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) { - repository, tag, err := reference.Parse(parentReference) - if err != nil { - return nil, err - } - - query := url.Values{} - query.Set("fromImage", repository) - query.Set("tag", tag) - resp, err := cli.tryImageCreate(ctx, query, options.RegistryAuth) - if err != nil { - return nil, err - } - return resp.body, nil -} - -func (cli *Client) tryImageCreate(ctx context.Context, query url.Values, registryAuth string) (serverResponse, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - return cli.post(ctx, "/images/create", query, nil, headers) -} diff --git a/vendor/github.com/docker/docker/client/image_history.go b/vendor/github.com/docker/docker/client/image_history.go deleted file mode 100644 index acb1ee9..0000000 --- a/vendor/github.com/docker/docker/client/image_history.go +++ /dev/null @@ -1,22 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ImageHistory returns the changes in an image in history format. -func (cli *Client) ImageHistory(ctx context.Context, imageID string) ([]types.ImageHistory, error) { - var history []types.ImageHistory - serverResp, err := cli.get(ctx, "/images/"+imageID+"/history", url.Values{}, nil) - if err != nil { - return history, err - } - - err = json.NewDecoder(serverResp.body).Decode(&history) - ensureReaderClosed(serverResp) - return history, err -} diff --git a/vendor/github.com/docker/docker/client/image_import.go b/vendor/github.com/docker/docker/client/image_import.go deleted file mode 100644 index c6f154b..0000000 --- a/vendor/github.com/docker/docker/client/image_import.go +++ /dev/null @@ -1,37 +0,0 @@ -package client - -import ( - "io" - "net/url" - - "golang.org/x/net/context" - - "github.com/docker/distribution/reference" - "github.com/docker/docker/api/types" -) - -// ImageImport creates a new image based in the source options. -// It returns the JSON content in the response body. -func (cli *Client) ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error) { - if ref != "" { - //Check if the given image name can be resolved - if _, err := reference.ParseNamed(ref); err != nil { - return nil, err - } - } - - query := url.Values{} - query.Set("fromSrc", source.SourceName) - query.Set("repo", ref) - query.Set("tag", options.Tag) - query.Set("message", options.Message) - for _, change := range options.Changes { - query.Add("changes", change) - } - - resp, err := cli.postRaw(ctx, "/images/create", query, source.Source, nil) - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/image_inspect.go b/vendor/github.com/docker/docker/client/image_inspect.go deleted file mode 100644 index b3a64ce..0000000 --- a/vendor/github.com/docker/docker/client/image_inspect.go +++ /dev/null @@ -1,33 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ImageInspectWithRaw returns the image information and its raw representation. -func (cli *Client) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error) { - serverResp, err := cli.get(ctx, "/images/"+imageID+"/json", nil, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return types.ImageInspect{}, nil, imageNotFoundError{imageID} - } - return types.ImageInspect{}, nil, err - } - defer ensureReaderClosed(serverResp) - - body, err := ioutil.ReadAll(serverResp.body) - if err != nil { - return types.ImageInspect{}, nil, err - } - - var response types.ImageInspect - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&response) - return response, body, err -} diff --git a/vendor/github.com/docker/docker/client/image_list.go b/vendor/github.com/docker/docker/client/image_list.go deleted file mode 100644 index f26464f..0000000 --- a/vendor/github.com/docker/docker/client/image_list.go +++ /dev/null @@ -1,45 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/versions" - "golang.org/x/net/context" -) - -// ImageList returns a list of images in the docker host. -func (cli *Client) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) { - var images []types.ImageSummary - query := url.Values{} - - optionFilters := options.Filters - referenceFilters := optionFilters.Get("reference") - if versions.LessThan(cli.version, "1.25") && len(referenceFilters) > 0 { - query.Set("filter", referenceFilters[0]) - for _, filterValue := range referenceFilters { - optionFilters.Del("reference", filterValue) - } - } - if optionFilters.Len() > 0 { - filterJSON, err := filters.ToParamWithVersion(cli.version, optionFilters) - if err != nil { - return images, err - } - query.Set("filters", filterJSON) - } - if options.All { - query.Set("all", "1") - } - - serverResp, err := cli.get(ctx, "/images/json", query, nil) - if err != nil { - return images, err - } - - err = json.NewDecoder(serverResp.body).Decode(&images) - ensureReaderClosed(serverResp) - return images, err -} diff --git a/vendor/github.com/docker/docker/client/image_load.go b/vendor/github.com/docker/docker/client/image_load.go deleted file mode 100644 index 77aaf1a..0000000 --- a/vendor/github.com/docker/docker/client/image_load.go +++ /dev/null @@ -1,30 +0,0 @@ -package client - -import ( - "io" - "net/url" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" -) - -// ImageLoad loads an image in the docker host from the client host. -// It's up to the caller to close the io.ReadCloser in the -// ImageLoadResponse returned by this function. -func (cli *Client) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error) { - v := url.Values{} - v.Set("quiet", "0") - if quiet { - v.Set("quiet", "1") - } - headers := map[string][]string{"Content-Type": {"application/x-tar"}} - resp, err := cli.postRaw(ctx, "/images/load", v, input, headers) - if err != nil { - return types.ImageLoadResponse{}, err - } - return types.ImageLoadResponse{ - Body: resp.body, - JSON: resp.header.Get("Content-Type") == "application/json", - }, nil -} diff --git a/vendor/github.com/docker/docker/client/image_prune.go b/vendor/github.com/docker/docker/client/image_prune.go deleted file mode 100644 index 5ef98b7..0000000 --- a/vendor/github.com/docker/docker/client/image_prune.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// ImagesPrune requests the daemon to delete unused data -func (cli *Client) ImagesPrune(ctx context.Context, pruneFilters filters.Args) (types.ImagesPruneReport, error) { - var report types.ImagesPruneReport - - if err := cli.NewVersionError("1.25", "image prune"); err != nil { - return report, err - } - - query, err := getFiltersQuery(pruneFilters) - if err != nil { - return report, err - } - - serverResp, err := cli.post(ctx, "/images/prune", query, nil, nil) - if err != nil { - return report, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&report); err != nil { - return report, fmt.Errorf("Error retrieving disk usage: %v", err) - } - - return report, nil -} diff --git a/vendor/github.com/docker/docker/client/image_pull.go b/vendor/github.com/docker/docker/client/image_pull.go deleted file mode 100644 index 3bffdb7..0000000 --- a/vendor/github.com/docker/docker/client/image_pull.go +++ /dev/null @@ -1,46 +0,0 @@ -package client - -import ( - "io" - "net/http" - "net/url" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/reference" -) - -// ImagePull requests the docker host to pull an image from a remote registry. -// It executes the privileged function if the operation is unauthorized -// and it tries one more time. -// It's up to the caller to handle the io.ReadCloser and close it properly. -// -// FIXME(vdemeester): there is currently used in a few way in docker/docker -// - if not in trusted content, ref is used to pass the whole reference, and tag is empty -// - if in trusted content, ref is used to pass the reference name, and tag for the digest -func (cli *Client) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) { - repository, tag, err := reference.Parse(ref) - if err != nil { - return nil, err - } - - query := url.Values{} - query.Set("fromImage", repository) - if tag != "" && !options.All { - query.Set("tag", tag) - } - - resp, err := cli.tryImageCreate(ctx, query, options.RegistryAuth) - if resp.statusCode == http.StatusUnauthorized && options.PrivilegeFunc != nil { - newAuthHeader, privilegeErr := options.PrivilegeFunc() - if privilegeErr != nil { - return nil, privilegeErr - } - resp, err = cli.tryImageCreate(ctx, query, newAuthHeader) - } - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/image_push.go b/vendor/github.com/docker/docker/client/image_push.go deleted file mode 100644 index 8e73d28..0000000 --- a/vendor/github.com/docker/docker/client/image_push.go +++ /dev/null @@ -1,54 +0,0 @@ -package client - -import ( - "errors" - "io" - "net/http" - "net/url" - - "golang.org/x/net/context" - - distreference "github.com/docker/distribution/reference" - "github.com/docker/docker/api/types" -) - -// ImagePush requests the docker host to push an image to a remote registry. -// It executes the privileged function if the operation is unauthorized -// and it tries one more time. -// It's up to the caller to handle the io.ReadCloser and close it properly. -func (cli *Client) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) { - distributionRef, err := distreference.ParseNamed(ref) - if err != nil { - return nil, err - } - - if _, isCanonical := distributionRef.(distreference.Canonical); isCanonical { - return nil, errors.New("cannot push a digest reference") - } - - var tag = "" - if nameTaggedRef, isNamedTagged := distributionRef.(distreference.NamedTagged); isNamedTagged { - tag = nameTaggedRef.Tag() - } - - query := url.Values{} - query.Set("tag", tag) - - resp, err := cli.tryImagePush(ctx, distributionRef.Name(), query, options.RegistryAuth) - if resp.statusCode == http.StatusUnauthorized && options.PrivilegeFunc != nil { - newAuthHeader, privilegeErr := options.PrivilegeFunc() - if privilegeErr != nil { - return nil, privilegeErr - } - resp, err = cli.tryImagePush(ctx, distributionRef.Name(), query, newAuthHeader) - } - if err != nil { - return nil, err - } - return resp.body, nil -} - -func (cli *Client) tryImagePush(ctx context.Context, imageID string, query url.Values, registryAuth string) (serverResponse, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - return cli.post(ctx, "/images/"+imageID+"/push", query, nil, headers) -} diff --git a/vendor/github.com/docker/docker/client/image_remove.go b/vendor/github.com/docker/docker/client/image_remove.go deleted file mode 100644 index 839e531..0000000 --- a/vendor/github.com/docker/docker/client/image_remove.go +++ /dev/null @@ -1,31 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ImageRemove removes an image from the docker host. -func (cli *Client) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDelete, error) { - query := url.Values{} - - if options.Force { - query.Set("force", "1") - } - if !options.PruneChildren { - query.Set("noprune", "1") - } - - resp, err := cli.delete(ctx, "/images/"+imageID, query, nil) - if err != nil { - return nil, err - } - - var dels []types.ImageDelete - err = json.NewDecoder(resp.body).Decode(&dels) - ensureReaderClosed(resp) - return dels, err -} diff --git a/vendor/github.com/docker/docker/client/image_save.go b/vendor/github.com/docker/docker/client/image_save.go deleted file mode 100644 index ecac880..0000000 --- a/vendor/github.com/docker/docker/client/image_save.go +++ /dev/null @@ -1,22 +0,0 @@ -package client - -import ( - "io" - "net/url" - - "golang.org/x/net/context" -) - -// ImageSave retrieves one or more images from the docker host as an io.ReadCloser. -// It's up to the caller to store the images and close the stream. -func (cli *Client) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error) { - query := url.Values{ - "names": imageIDs, - } - - resp, err := cli.get(ctx, "/images/get", query, nil) - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/image_search.go b/vendor/github.com/docker/docker/client/image_search.go deleted file mode 100644 index b0fcd5c..0000000 --- a/vendor/github.com/docker/docker/client/image_search.go +++ /dev/null @@ -1,51 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - "net/http" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/registry" - "golang.org/x/net/context" -) - -// ImageSearch makes the docker host to search by a term in a remote registry. -// The list of results is not sorted in any fashion. -func (cli *Client) ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error) { - var results []registry.SearchResult - query := url.Values{} - query.Set("term", term) - query.Set("limit", fmt.Sprintf("%d", options.Limit)) - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) - if err != nil { - return results, err - } - query.Set("filters", filterJSON) - } - - resp, err := cli.tryImageSearch(ctx, query, options.RegistryAuth) - if resp.statusCode == http.StatusUnauthorized && options.PrivilegeFunc != nil { - newAuthHeader, privilegeErr := options.PrivilegeFunc() - if privilegeErr != nil { - return results, privilegeErr - } - resp, err = cli.tryImageSearch(ctx, query, newAuthHeader) - } - if err != nil { - return results, err - } - - err = json.NewDecoder(resp.body).Decode(&results) - ensureReaderClosed(resp) - return results, err -} - -func (cli *Client) tryImageSearch(ctx context.Context, query url.Values, registryAuth string) (serverResponse, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - return cli.get(ctx, "/images/search", query, headers) -} diff --git a/vendor/github.com/docker/docker/client/image_tag.go b/vendor/github.com/docker/docker/client/image_tag.go deleted file mode 100644 index dbcd078..0000000 --- a/vendor/github.com/docker/docker/client/image_tag.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "net/url" - - distreference "github.com/docker/distribution/reference" - "github.com/docker/docker/api/types/reference" - "github.com/pkg/errors" - "golang.org/x/net/context" -) - -// ImageTag tags an image in the docker host -func (cli *Client) ImageTag(ctx context.Context, source, target string) error { - if _, err := distreference.ParseNamed(source); err != nil { - return errors.Wrapf(err, "Error parsing reference: %q is not a valid repository/tag", source) - } - - distributionRef, err := distreference.ParseNamed(target) - if err != nil { - return errors.Wrapf(err, "Error parsing reference: %q is not a valid repository/tag", target) - } - - if _, isCanonical := distributionRef.(distreference.Canonical); isCanonical { - return errors.New("refusing to create a tag with a digest reference") - } - - tag := reference.GetTagFromNamedRef(distributionRef) - - query := url.Values{} - query.Set("repo", distributionRef.Name()) - query.Set("tag", tag) - - resp, err := cli.post(ctx, "/images/"+source+"/tag", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/info.go b/vendor/github.com/docker/docker/client/info.go deleted file mode 100644 index ac07961..0000000 --- a/vendor/github.com/docker/docker/client/info.go +++ /dev/null @@ -1,26 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// Info returns information about the docker server. -func (cli *Client) Info(ctx context.Context) (types.Info, error) { - var info types.Info - serverResp, err := cli.get(ctx, "/info", url.Values{}, nil) - if err != nil { - return info, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&info); err != nil { - return info, fmt.Errorf("Error reading remote info: %v", err) - } - - return info, nil -} diff --git a/vendor/github.com/docker/docker/client/interface.go b/vendor/github.com/docker/docker/client/interface.go deleted file mode 100644 index 924b22b..0000000 --- a/vendor/github.com/docker/docker/client/interface.go +++ /dev/null @@ -1,170 +0,0 @@ -package client - -import ( - "io" - "time" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types/events" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/network" - "github.com/docker/docker/api/types/registry" - "github.com/docker/docker/api/types/swarm" - volumetypes "github.com/docker/docker/api/types/volume" - "golang.org/x/net/context" -) - -// CommonAPIClient is the common methods between stable and experimental versions of APIClient. -type CommonAPIClient interface { - ContainerAPIClient - ImageAPIClient - NodeAPIClient - NetworkAPIClient - PluginAPIClient - ServiceAPIClient - SwarmAPIClient - SecretAPIClient - SystemAPIClient - VolumeAPIClient - ClientVersion() string - ServerVersion(ctx context.Context) (types.Version, error) - UpdateClientVersion(v string) -} - -// ContainerAPIClient defines API client methods for the containers -type ContainerAPIClient interface { - ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) - ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error) - ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error) - ContainerDiff(ctx context.Context, container string) ([]types.ContainerChange, error) - ContainerExecAttach(ctx context.Context, execID string, config types.ExecConfig) (types.HijackedResponse, error) - ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) - ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) - ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error - ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error - ContainerExport(ctx context.Context, container string) (io.ReadCloser, error) - ContainerInspect(ctx context.Context, container string) (types.ContainerJSON, error) - ContainerInspectWithRaw(ctx context.Context, container string, getSize bool) (types.ContainerJSON, []byte, error) - ContainerKill(ctx context.Context, container, signal string) error - ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) - ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) - ContainerPause(ctx context.Context, container string) error - ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error - ContainerRename(ctx context.Context, container, newContainerName string) error - ContainerResize(ctx context.Context, container string, options types.ResizeOptions) error - ContainerRestart(ctx context.Context, container string, timeout *time.Duration) error - ContainerStatPath(ctx context.Context, container, path string) (types.ContainerPathStat, error) - ContainerStats(ctx context.Context, container string, stream bool) (types.ContainerStats, error) - ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error - ContainerStop(ctx context.Context, container string, timeout *time.Duration) error - ContainerTop(ctx context.Context, container string, arguments []string) (types.ContainerProcessList, error) - ContainerUnpause(ctx context.Context, container string) error - ContainerUpdate(ctx context.Context, container string, updateConfig container.UpdateConfig) (container.ContainerUpdateOKBody, error) - ContainerWait(ctx context.Context, container string) (int64, error) - CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) - CopyToContainer(ctx context.Context, container, path string, content io.Reader, options types.CopyToContainerOptions) error - ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error) -} - -// ImageAPIClient defines API client methods for the images -type ImageAPIClient interface { - ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) - ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) - ImageHistory(ctx context.Context, image string) ([]types.ImageHistory, error) - ImageImport(ctx context.Context, source types.ImageImportSource, ref string, options types.ImageImportOptions) (io.ReadCloser, error) - ImageInspectWithRaw(ctx context.Context, image string) (types.ImageInspect, []byte, error) - ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) - ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error) - ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) - ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) - ImageRemove(ctx context.Context, image string, options types.ImageRemoveOptions) ([]types.ImageDelete, error) - ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error) - ImageSave(ctx context.Context, images []string) (io.ReadCloser, error) - ImageTag(ctx context.Context, image, ref string) error - ImagesPrune(ctx context.Context, pruneFilter filters.Args) (types.ImagesPruneReport, error) -} - -// NetworkAPIClient defines API client methods for the networks -type NetworkAPIClient interface { - NetworkConnect(ctx context.Context, networkID, container string, config *network.EndpointSettings) error - NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) - NetworkDisconnect(ctx context.Context, networkID, container string, force bool) error - NetworkInspect(ctx context.Context, networkID string) (types.NetworkResource, error) - NetworkInspectWithRaw(ctx context.Context, networkID string) (types.NetworkResource, []byte, error) - NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) - NetworkRemove(ctx context.Context, networkID string) error - NetworksPrune(ctx context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error) -} - -// NodeAPIClient defines API client methods for the nodes -type NodeAPIClient interface { - NodeInspectWithRaw(ctx context.Context, nodeID string) (swarm.Node, []byte, error) - NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) - NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error - NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error -} - -// PluginAPIClient defines API client methods for the plugins -type PluginAPIClient interface { - PluginList(ctx context.Context) (types.PluginsListResponse, error) - PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error - PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error - PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error - PluginInstall(ctx context.Context, name string, options types.PluginInstallOptions) (io.ReadCloser, error) - PluginPush(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) - PluginSet(ctx context.Context, name string, args []string) error - PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) - PluginCreate(ctx context.Context, createContext io.Reader, options types.PluginCreateOptions) error -} - -// ServiceAPIClient defines API client methods for the services -type ServiceAPIClient interface { - ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options types.ServiceCreateOptions) (types.ServiceCreateResponse, error) - ServiceInspectWithRaw(ctx context.Context, serviceID string) (swarm.Service, []byte, error) - ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) - ServiceRemove(ctx context.Context, serviceID string) error - ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) - ServiceLogs(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error) - TaskInspectWithRaw(ctx context.Context, taskID string) (swarm.Task, []byte, error) - TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) -} - -// SwarmAPIClient defines API client methods for the swarm -type SwarmAPIClient interface { - SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) - SwarmJoin(ctx context.Context, req swarm.JoinRequest) error - SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) - SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error - SwarmLeave(ctx context.Context, force bool) error - SwarmInspect(ctx context.Context) (swarm.Swarm, error) - SwarmUpdate(ctx context.Context, version swarm.Version, swarm swarm.Spec, flags swarm.UpdateFlags) error -} - -// SystemAPIClient defines API client methods for the system -type SystemAPIClient interface { - Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) - Info(ctx context.Context) (types.Info, error) - RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) - DiskUsage(ctx context.Context) (types.DiskUsage, error) - Ping(ctx context.Context) (types.Ping, error) -} - -// VolumeAPIClient defines API client methods for the volumes -type VolumeAPIClient interface { - VolumeCreate(ctx context.Context, options volumetypes.VolumesCreateBody) (types.Volume, error) - VolumeInspect(ctx context.Context, volumeID string) (types.Volume, error) - VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error) - VolumeList(ctx context.Context, filter filters.Args) (volumetypes.VolumesListOKBody, error) - VolumeRemove(ctx context.Context, volumeID string, force bool) error - VolumesPrune(ctx context.Context, pruneFilter filters.Args) (types.VolumesPruneReport, error) -} - -// SecretAPIClient defines API client methods for secrets -type SecretAPIClient interface { - SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) - SecretCreate(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) - SecretRemove(ctx context.Context, id string) error - SecretInspectWithRaw(ctx context.Context, name string) (swarm.Secret, []byte, error) - SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error -} diff --git a/vendor/github.com/docker/docker/client/interface_experimental.go b/vendor/github.com/docker/docker/client/interface_experimental.go deleted file mode 100644 index 51da98e..0000000 --- a/vendor/github.com/docker/docker/client/interface_experimental.go +++ /dev/null @@ -1,17 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -type apiClientExperimental interface { - CheckpointAPIClient -} - -// CheckpointAPIClient defines API client methods for the checkpoints -type CheckpointAPIClient interface { - CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error - CheckpointDelete(ctx context.Context, container string, options types.CheckpointDeleteOptions) error - CheckpointList(ctx context.Context, container string, options types.CheckpointListOptions) ([]types.Checkpoint, error) -} diff --git a/vendor/github.com/docker/docker/client/interface_stable.go b/vendor/github.com/docker/docker/client/interface_stable.go deleted file mode 100644 index cc90a3c..0000000 --- a/vendor/github.com/docker/docker/client/interface_stable.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -// APIClient is an interface that clients that talk with a docker server must implement. -type APIClient interface { - CommonAPIClient - apiClientExperimental -} - -// Ensure that Client always implements APIClient. -var _ APIClient = &Client{} diff --git a/vendor/github.com/docker/docker/client/login.go b/vendor/github.com/docker/docker/client/login.go deleted file mode 100644 index 79219ff..0000000 --- a/vendor/github.com/docker/docker/client/login.go +++ /dev/null @@ -1,29 +0,0 @@ -package client - -import ( - "encoding/json" - "net/http" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/registry" - "golang.org/x/net/context" -) - -// RegistryLogin authenticates the docker server with a given docker registry. -// It returns unauthorizedError when the authentication fails. -func (cli *Client) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) { - resp, err := cli.post(ctx, "/auth", url.Values{}, auth, nil) - - if resp.statusCode == http.StatusUnauthorized { - return registry.AuthenticateOKBody{}, unauthorizedError{err} - } - if err != nil { - return registry.AuthenticateOKBody{}, err - } - - var response registry.AuthenticateOKBody - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/network_connect.go b/vendor/github.com/docker/docker/client/network_connect.go deleted file mode 100644 index c022c17..0000000 --- a/vendor/github.com/docker/docker/client/network_connect.go +++ /dev/null @@ -1,18 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/network" - "golang.org/x/net/context" -) - -// NetworkConnect connects a container to an existent network in the docker host. -func (cli *Client) NetworkConnect(ctx context.Context, networkID, containerID string, config *network.EndpointSettings) error { - nc := types.NetworkConnect{ - Container: containerID, - EndpointConfig: config, - } - resp, err := cli.post(ctx, "/networks/"+networkID+"/connect", nil, nc, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/network_create.go b/vendor/github.com/docker/docker/client/network_create.go deleted file mode 100644 index 4067a54..0000000 --- a/vendor/github.com/docker/docker/client/network_create.go +++ /dev/null @@ -1,25 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// NetworkCreate creates a new network in the docker host. -func (cli *Client) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) { - networkCreateRequest := types.NetworkCreateRequest{ - NetworkCreate: options, - Name: name, - } - var response types.NetworkCreateResponse - serverResp, err := cli.post(ctx, "/networks/create", nil, networkCreateRequest, nil) - if err != nil { - return response, err - } - - json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/network_disconnect.go b/vendor/github.com/docker/docker/client/network_disconnect.go deleted file mode 100644 index 24b58e3..0000000 --- a/vendor/github.com/docker/docker/client/network_disconnect.go +++ /dev/null @@ -1,14 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// NetworkDisconnect disconnects a container from an existent network in the docker host. -func (cli *Client) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error { - nd := types.NetworkDisconnect{Container: containerID, Force: force} - resp, err := cli.post(ctx, "/networks/"+networkID+"/disconnect", nil, nd, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/network_inspect.go b/vendor/github.com/docker/docker/client/network_inspect.go deleted file mode 100644 index 5ad4ea5..0000000 --- a/vendor/github.com/docker/docker/client/network_inspect.go +++ /dev/null @@ -1,38 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// NetworkInspect returns the information for a specific network configured in the docker host. -func (cli *Client) NetworkInspect(ctx context.Context, networkID string) (types.NetworkResource, error) { - networkResource, _, err := cli.NetworkInspectWithRaw(ctx, networkID) - return networkResource, err -} - -// NetworkInspectWithRaw returns the information for a specific network configured in the docker host and its raw representation. -func (cli *Client) NetworkInspectWithRaw(ctx context.Context, networkID string) (types.NetworkResource, []byte, error) { - var networkResource types.NetworkResource - resp, err := cli.get(ctx, "/networks/"+networkID, nil, nil) - if err != nil { - if resp.statusCode == http.StatusNotFound { - return networkResource, nil, networkNotFoundError{networkID} - } - return networkResource, nil, err - } - defer ensureReaderClosed(resp) - - body, err := ioutil.ReadAll(resp.body) - if err != nil { - return networkResource, nil, err - } - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&networkResource) - return networkResource, body, err -} diff --git a/vendor/github.com/docker/docker/client/network_list.go b/vendor/github.com/docker/docker/client/network_list.go deleted file mode 100644 index e566a93..0000000 --- a/vendor/github.com/docker/docker/client/network_list.go +++ /dev/null @@ -1,31 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// NetworkList returns the list of networks configured in the docker host. -func (cli *Client) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) { - query := url.Values{} - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParamWithVersion(cli.version, options.Filters) - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - var networkResources []types.NetworkResource - resp, err := cli.get(ctx, "/networks", query, nil) - if err != nil { - return networkResources, err - } - err = json.NewDecoder(resp.body).Decode(&networkResources) - ensureReaderClosed(resp) - return networkResources, err -} diff --git a/vendor/github.com/docker/docker/client/network_prune.go b/vendor/github.com/docker/docker/client/network_prune.go deleted file mode 100644 index 7352a7f..0000000 --- a/vendor/github.com/docker/docker/client/network_prune.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// NetworksPrune requests the daemon to delete unused networks -func (cli *Client) NetworksPrune(ctx context.Context, pruneFilters filters.Args) (types.NetworksPruneReport, error) { - var report types.NetworksPruneReport - - if err := cli.NewVersionError("1.25", "network prune"); err != nil { - return report, err - } - - query, err := getFiltersQuery(pruneFilters) - if err != nil { - return report, err - } - - serverResp, err := cli.post(ctx, "/networks/prune", query, nil, nil) - if err != nil { - return report, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&report); err != nil { - return report, fmt.Errorf("Error retrieving network prune report: %v", err) - } - - return report, nil -} diff --git a/vendor/github.com/docker/docker/client/network_remove.go b/vendor/github.com/docker/docker/client/network_remove.go deleted file mode 100644 index 6bd6748..0000000 --- a/vendor/github.com/docker/docker/client/network_remove.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -import "golang.org/x/net/context" - -// NetworkRemove removes an existent network from the docker host. -func (cli *Client) NetworkRemove(ctx context.Context, networkID string) error { - resp, err := cli.delete(ctx, "/networks/"+networkID, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/node_inspect.go b/vendor/github.com/docker/docker/client/node_inspect.go deleted file mode 100644 index abf505d..0000000 --- a/vendor/github.com/docker/docker/client/node_inspect.go +++ /dev/null @@ -1,33 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// NodeInspectWithRaw returns the node information. -func (cli *Client) NodeInspectWithRaw(ctx context.Context, nodeID string) (swarm.Node, []byte, error) { - serverResp, err := cli.get(ctx, "/nodes/"+nodeID, nil, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return swarm.Node{}, nil, nodeNotFoundError{nodeID} - } - return swarm.Node{}, nil, err - } - defer ensureReaderClosed(serverResp) - - body, err := ioutil.ReadAll(serverResp.body) - if err != nil { - return swarm.Node{}, nil, err - } - - var response swarm.Node - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&response) - return response, body, err -} diff --git a/vendor/github.com/docker/docker/client/node_list.go b/vendor/github.com/docker/docker/client/node_list.go deleted file mode 100644 index 3e8440f..0000000 --- a/vendor/github.com/docker/docker/client/node_list.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// NodeList returns the list of nodes. -func (cli *Client) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) { - query := url.Values{} - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) - - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - - resp, err := cli.get(ctx, "/nodes", query, nil) - if err != nil { - return nil, err - } - - var nodes []swarm.Node - err = json.NewDecoder(resp.body).Decode(&nodes) - ensureReaderClosed(resp) - return nodes, err -} diff --git a/vendor/github.com/docker/docker/client/node_remove.go b/vendor/github.com/docker/docker/client/node_remove.go deleted file mode 100644 index 0a77f3d..0000000 --- a/vendor/github.com/docker/docker/client/node_remove.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - - "golang.org/x/net/context" -) - -// NodeRemove removes a Node. -func (cli *Client) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error { - query := url.Values{} - if options.Force { - query.Set("force", "1") - } - - resp, err := cli.delete(ctx, "/nodes/"+nodeID, query, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/node_update.go b/vendor/github.com/docker/docker/client/node_update.go deleted file mode 100644 index 3ca9760..0000000 --- a/vendor/github.com/docker/docker/client/node_update.go +++ /dev/null @@ -1,18 +0,0 @@ -package client - -import ( - "net/url" - "strconv" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// NodeUpdate updates a Node. -func (cli *Client) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error { - query := url.Values{} - query.Set("version", strconv.FormatUint(version.Index, 10)) - resp, err := cli.post(ctx, "/nodes/"+nodeID+"/update", query, node, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/ping.go b/vendor/github.com/docker/docker/client/ping.go deleted file mode 100644 index 150b1dc..0000000 --- a/vendor/github.com/docker/docker/client/ping.go +++ /dev/null @@ -1,30 +0,0 @@ -package client - -import ( - "fmt" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// Ping pings the server and returns the value of the "Docker-Experimental" & "API-Version" headers -func (cli *Client) Ping(ctx context.Context) (types.Ping, error) { - var ping types.Ping - req, err := cli.buildRequest("GET", fmt.Sprintf("%s/_ping", cli.basePath), nil, nil) - if err != nil { - return ping, err - } - serverResp, err := cli.doRequest(ctx, req) - if err != nil { - return ping, err - } - defer ensureReaderClosed(serverResp) - - ping.APIVersion = serverResp.header.Get("API-Version") - - if serverResp.header.Get("Docker-Experimental") == "true" { - ping.Experimental = true - } - - return ping, nil -} diff --git a/vendor/github.com/docker/docker/client/plugin_create.go b/vendor/github.com/docker/docker/client/plugin_create.go deleted file mode 100644 index 27954aa..0000000 --- a/vendor/github.com/docker/docker/client/plugin_create.go +++ /dev/null @@ -1,26 +0,0 @@ -package client - -import ( - "io" - "net/http" - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginCreate creates a plugin -func (cli *Client) PluginCreate(ctx context.Context, createContext io.Reader, createOptions types.PluginCreateOptions) error { - headers := http.Header(make(map[string][]string)) - headers.Set("Content-Type", "application/x-tar") - - query := url.Values{} - query.Set("name", createOptions.RepoName) - - resp, err := cli.postRaw(ctx, "/plugins/create", query, createContext, headers) - if err != nil { - return err - } - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/plugin_disable.go b/vendor/github.com/docker/docker/client/plugin_disable.go deleted file mode 100644 index 30467db..0000000 --- a/vendor/github.com/docker/docker/client/plugin_disable.go +++ /dev/null @@ -1,19 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginDisable disables a plugin -func (cli *Client) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error { - query := url.Values{} - if options.Force { - query.Set("force", "1") - } - resp, err := cli.post(ctx, "/plugins/"+name+"/disable", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/plugin_enable.go b/vendor/github.com/docker/docker/client/plugin_enable.go deleted file mode 100644 index 95517c4..0000000 --- a/vendor/github.com/docker/docker/client/plugin_enable.go +++ /dev/null @@ -1,19 +0,0 @@ -package client - -import ( - "net/url" - "strconv" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginEnable enables a plugin -func (cli *Client) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error { - query := url.Values{} - query.Set("timeout", strconv.Itoa(options.Timeout)) - - resp, err := cli.post(ctx, "/plugins/"+name+"/enable", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/plugin_inspect.go b/vendor/github.com/docker/docker/client/plugin_inspect.go deleted file mode 100644 index 89f39ee..0000000 --- a/vendor/github.com/docker/docker/client/plugin_inspect.go +++ /dev/null @@ -1,32 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginInspectWithRaw inspects an existing plugin -func (cli *Client) PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) { - resp, err := cli.get(ctx, "/plugins/"+name+"/json", nil, nil) - if err != nil { - if resp.statusCode == http.StatusNotFound { - return nil, nil, pluginNotFoundError{name} - } - return nil, nil, err - } - - defer ensureReaderClosed(resp) - body, err := ioutil.ReadAll(resp.body) - if err != nil { - return nil, nil, err - } - var p types.Plugin - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&p) - return &p, body, err -} diff --git a/vendor/github.com/docker/docker/client/plugin_install.go b/vendor/github.com/docker/docker/client/plugin_install.go deleted file mode 100644 index b305780..0000000 --- a/vendor/github.com/docker/docker/client/plugin_install.go +++ /dev/null @@ -1,105 +0,0 @@ -package client - -import ( - "encoding/json" - "io" - "net/http" - "net/url" - - "github.com/docker/distribution/reference" - "github.com/docker/docker/api/types" - "github.com/pkg/errors" - "golang.org/x/net/context" -) - -// PluginInstall installs a plugin -func (cli *Client) PluginInstall(ctx context.Context, name string, options types.PluginInstallOptions) (rc io.ReadCloser, err error) { - query := url.Values{} - if _, err := reference.ParseNamed(options.RemoteRef); err != nil { - return nil, errors.Wrap(err, "invalid remote reference") - } - query.Set("remote", options.RemoteRef) - - resp, err := cli.tryPluginPrivileges(ctx, query, options.RegistryAuth) - if resp.statusCode == http.StatusUnauthorized && options.PrivilegeFunc != nil { - // todo: do inspect before to check existing name before checking privileges - newAuthHeader, privilegeErr := options.PrivilegeFunc() - if privilegeErr != nil { - ensureReaderClosed(resp) - return nil, privilegeErr - } - options.RegistryAuth = newAuthHeader - resp, err = cli.tryPluginPrivileges(ctx, query, options.RegistryAuth) - } - if err != nil { - ensureReaderClosed(resp) - return nil, err - } - - var privileges types.PluginPrivileges - if err := json.NewDecoder(resp.body).Decode(&privileges); err != nil { - ensureReaderClosed(resp) - return nil, err - } - ensureReaderClosed(resp) - - if !options.AcceptAllPermissions && options.AcceptPermissionsFunc != nil && len(privileges) > 0 { - accept, err := options.AcceptPermissionsFunc(privileges) - if err != nil { - return nil, err - } - if !accept { - return nil, pluginPermissionDenied{options.RemoteRef} - } - } - - // set name for plugin pull, if empty should default to remote reference - query.Set("name", name) - - resp, err = cli.tryPluginPull(ctx, query, privileges, options.RegistryAuth) - if err != nil { - return nil, err - } - - name = resp.header.Get("Docker-Plugin-Name") - - pr, pw := io.Pipe() - go func() { // todo: the client should probably be designed more around the actual api - _, err := io.Copy(pw, resp.body) - if err != nil { - pw.CloseWithError(err) - return - } - defer func() { - if err != nil { - delResp, _ := cli.delete(ctx, "/plugins/"+name, nil, nil) - ensureReaderClosed(delResp) - } - }() - if len(options.Args) > 0 { - if err := cli.PluginSet(ctx, name, options.Args); err != nil { - pw.CloseWithError(err) - return - } - } - - if options.Disabled { - pw.Close() - return - } - - err = cli.PluginEnable(ctx, name, types.PluginEnableOptions{Timeout: 0}) - pw.CloseWithError(err) - }() - return pr, nil -} - -func (cli *Client) tryPluginPrivileges(ctx context.Context, query url.Values, registryAuth string) (serverResponse, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - return cli.get(ctx, "/plugins/privileges", query, headers) -} - -func (cli *Client) tryPluginPull(ctx context.Context, query url.Values, privileges types.PluginPrivileges, registryAuth string) (serverResponse, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - return cli.post(ctx, "/plugins/pull", query, privileges, headers) -} diff --git a/vendor/github.com/docker/docker/client/plugin_list.go b/vendor/github.com/docker/docker/client/plugin_list.go deleted file mode 100644 index 88c480a..0000000 --- a/vendor/github.com/docker/docker/client/plugin_list.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginList returns the installed plugins -func (cli *Client) PluginList(ctx context.Context) (types.PluginsListResponse, error) { - var plugins types.PluginsListResponse - resp, err := cli.get(ctx, "/plugins", nil, nil) - if err != nil { - return plugins, err - } - - err = json.NewDecoder(resp.body).Decode(&plugins) - ensureReaderClosed(resp) - return plugins, err -} diff --git a/vendor/github.com/docker/docker/client/plugin_push.go b/vendor/github.com/docker/docker/client/plugin_push.go deleted file mode 100644 index 1e5f963..0000000 --- a/vendor/github.com/docker/docker/client/plugin_push.go +++ /dev/null @@ -1,17 +0,0 @@ -package client - -import ( - "io" - - "golang.org/x/net/context" -) - -// PluginPush pushes a plugin to a registry -func (cli *Client) PluginPush(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) { - headers := map[string][]string{"X-Registry-Auth": {registryAuth}} - resp, err := cli.post(ctx, "/plugins/"+name+"/push", nil, nil, headers) - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/plugin_remove.go b/vendor/github.com/docker/docker/client/plugin_remove.go deleted file mode 100644 index b017e4d..0000000 --- a/vendor/github.com/docker/docker/client/plugin_remove.go +++ /dev/null @@ -1,20 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// PluginRemove removes a plugin -func (cli *Client) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error { - query := url.Values{} - if options.Force { - query.Set("force", "1") - } - - resp, err := cli.delete(ctx, "/plugins/"+name, query, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/plugin_set.go b/vendor/github.com/docker/docker/client/plugin_set.go deleted file mode 100644 index 3260d2a..0000000 --- a/vendor/github.com/docker/docker/client/plugin_set.go +++ /dev/null @@ -1,12 +0,0 @@ -package client - -import ( - "golang.org/x/net/context" -) - -// PluginSet modifies settings for an existing plugin -func (cli *Client) PluginSet(ctx context.Context, name string, args []string) error { - resp, err := cli.post(ctx, "/plugins/"+name+"/set", nil, args, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/request.go b/vendor/github.com/docker/docker/client/request.go deleted file mode 100644 index 6457b31..0000000 --- a/vendor/github.com/docker/docker/client/request.go +++ /dev/null @@ -1,247 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "fmt" - "io" - "io/ioutil" - "net" - "net/http" - "net/url" - "os" - "strings" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/versions" - "github.com/pkg/errors" - "golang.org/x/net/context" - "golang.org/x/net/context/ctxhttp" -) - -// serverResponse is a wrapper for http API responses. -type serverResponse struct { - body io.ReadCloser - header http.Header - statusCode int -} - -// head sends an http request to the docker API using the method HEAD. -func (cli *Client) head(ctx context.Context, path string, query url.Values, headers map[string][]string) (serverResponse, error) { - return cli.sendRequest(ctx, "HEAD", path, query, nil, headers) -} - -// get sends an http request to the docker API using the method GET with a specific Go context. -func (cli *Client) get(ctx context.Context, path string, query url.Values, headers map[string][]string) (serverResponse, error) { - return cli.sendRequest(ctx, "GET", path, query, nil, headers) -} - -// post sends an http request to the docker API using the method POST with a specific Go context. -func (cli *Client) post(ctx context.Context, path string, query url.Values, obj interface{}, headers map[string][]string) (serverResponse, error) { - body, headers, err := encodeBody(obj, headers) - if err != nil { - return serverResponse{}, err - } - return cli.sendRequest(ctx, "POST", path, query, body, headers) -} - -func (cli *Client) postRaw(ctx context.Context, path string, query url.Values, body io.Reader, headers map[string][]string) (serverResponse, error) { - return cli.sendRequest(ctx, "POST", path, query, body, headers) -} - -// put sends an http request to the docker API using the method PUT. -func (cli *Client) put(ctx context.Context, path string, query url.Values, obj interface{}, headers map[string][]string) (serverResponse, error) { - body, headers, err := encodeBody(obj, headers) - if err != nil { - return serverResponse{}, err - } - return cli.sendRequest(ctx, "PUT", path, query, body, headers) -} - -// putRaw sends an http request to the docker API using the method PUT. -func (cli *Client) putRaw(ctx context.Context, path string, query url.Values, body io.Reader, headers map[string][]string) (serverResponse, error) { - return cli.sendRequest(ctx, "PUT", path, query, body, headers) -} - -// delete sends an http request to the docker API using the method DELETE. -func (cli *Client) delete(ctx context.Context, path string, query url.Values, headers map[string][]string) (serverResponse, error) { - return cli.sendRequest(ctx, "DELETE", path, query, nil, headers) -} - -type headers map[string][]string - -func encodeBody(obj interface{}, headers headers) (io.Reader, headers, error) { - if obj == nil { - return nil, headers, nil - } - - body, err := encodeData(obj) - if err != nil { - return nil, headers, err - } - if headers == nil { - headers = make(map[string][]string) - } - headers["Content-Type"] = []string{"application/json"} - return body, headers, nil -} - -func (cli *Client) buildRequest(method, path string, body io.Reader, headers headers) (*http.Request, error) { - expectedPayload := (method == "POST" || method == "PUT") - if expectedPayload && body == nil { - body = bytes.NewReader([]byte{}) - } - - req, err := http.NewRequest(method, path, body) - if err != nil { - return nil, err - } - req = cli.addHeaders(req, headers) - - if cli.proto == "unix" || cli.proto == "npipe" { - // For local communications, it doesn't matter what the host is. We just - // need a valid and meaningful host name. (See #189) - req.Host = "docker" - } - - req.URL.Host = cli.addr - req.URL.Scheme = cli.scheme - - if expectedPayload && req.Header.Get("Content-Type") == "" { - req.Header.Set("Content-Type", "text/plain") - } - return req, nil -} - -func (cli *Client) sendRequest(ctx context.Context, method, path string, query url.Values, body io.Reader, headers headers) (serverResponse, error) { - req, err := cli.buildRequest(method, cli.getAPIPath(path, query), body, headers) - if err != nil { - return serverResponse{}, err - } - return cli.doRequest(ctx, req) -} - -func (cli *Client) doRequest(ctx context.Context, req *http.Request) (serverResponse, error) { - serverResp := serverResponse{statusCode: -1} - - resp, err := ctxhttp.Do(ctx, cli.client, req) - if err != nil { - if cli.scheme != "https" && strings.Contains(err.Error(), "malformed HTTP response") { - return serverResp, fmt.Errorf("%v.\n* Are you trying to connect to a TLS-enabled daemon without TLS?", err) - } - - if cli.scheme == "https" && strings.Contains(err.Error(), "bad certificate") { - return serverResp, fmt.Errorf("The server probably has client authentication (--tlsverify) enabled. Please check your TLS client certification settings: %v", err) - } - - // Don't decorate context sentinel errors; users may be comparing to - // them directly. - switch err { - case context.Canceled, context.DeadlineExceeded: - return serverResp, err - } - - if nErr, ok := err.(*url.Error); ok { - if nErr, ok := nErr.Err.(*net.OpError); ok { - if os.IsPermission(nErr.Err) { - return serverResp, errors.Wrapf(err, "Got permission denied while trying to connect to the Docker daemon socket at %v", cli.host) - } - } - } - - if err, ok := err.(net.Error); ok { - if err.Timeout() { - return serverResp, ErrorConnectionFailed(cli.host) - } - if !err.Temporary() { - if strings.Contains(err.Error(), "connection refused") || strings.Contains(err.Error(), "dial unix") { - return serverResp, ErrorConnectionFailed(cli.host) - } - } - } - - // Although there's not a strongly typed error for this in go-winio, - // lots of people are using the default configuration for the docker - // daemon on Windows where the daemon is listening on a named pipe - // `//./pipe/docker_engine, and the client must be running elevated. - // Give users a clue rather than the not-overly useful message - // such as `error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.26/info: - // open //./pipe/docker_engine: The system cannot find the file specified.`. - // Note we can't string compare "The system cannot find the file specified" as - // this is localised - for example in French the error would be - // `open //./pipe/docker_engine: Le fichier spécifié est introuvable.` - if strings.Contains(err.Error(), `open //./pipe/docker_engine`) { - err = errors.New(err.Error() + " In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.") - } - - return serverResp, errors.Wrap(err, "error during connect") - } - - if resp != nil { - serverResp.statusCode = resp.StatusCode - } - - if serverResp.statusCode < 200 || serverResp.statusCode >= 400 { - body, err := ioutil.ReadAll(resp.Body) - if err != nil { - return serverResp, err - } - if len(body) == 0 { - return serverResp, fmt.Errorf("Error: request returned %s for API route and version %s, check if the server supports the requested API version", http.StatusText(serverResp.statusCode), req.URL) - } - - var errorMessage string - if (cli.version == "" || versions.GreaterThan(cli.version, "1.23")) && - resp.Header.Get("Content-Type") == "application/json" { - var errorResponse types.ErrorResponse - if err := json.Unmarshal(body, &errorResponse); err != nil { - return serverResp, fmt.Errorf("Error reading JSON: %v", err) - } - errorMessage = errorResponse.Message - } else { - errorMessage = string(body) - } - - return serverResp, fmt.Errorf("Error response from daemon: %s", strings.TrimSpace(errorMessage)) - } - - serverResp.body = resp.Body - serverResp.header = resp.Header - return serverResp, nil -} - -func (cli *Client) addHeaders(req *http.Request, headers headers) *http.Request { - // Add CLI Config's HTTP Headers BEFORE we set the Docker headers - // then the user can't change OUR headers - for k, v := range cli.customHTTPHeaders { - if versions.LessThan(cli.version, "1.25") && k == "User-Agent" { - continue - } - req.Header.Set(k, v) - } - - if headers != nil { - for k, v := range headers { - req.Header[k] = v - } - } - return req -} - -func encodeData(data interface{}) (*bytes.Buffer, error) { - params := bytes.NewBuffer(nil) - if data != nil { - if err := json.NewEncoder(params).Encode(data); err != nil { - return nil, err - } - } - return params, nil -} - -func ensureReaderClosed(response serverResponse) { - if body := response.body; body != nil { - // Drain up to 512 bytes and close the body to let the Transport reuse the connection - io.CopyN(ioutil.Discard, body, 512) - response.body.Close() - } -} diff --git a/vendor/github.com/docker/docker/client/secret_create.go b/vendor/github.com/docker/docker/client/secret_create.go deleted file mode 100644 index de8b041..0000000 --- a/vendor/github.com/docker/docker/client/secret_create.go +++ /dev/null @@ -1,24 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SecretCreate creates a new Secret. -func (cli *Client) SecretCreate(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) { - var headers map[string][]string - - var response types.SecretCreateResponse - resp, err := cli.post(ctx, "/secrets/create", nil, secret, headers) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/secret_inspect.go b/vendor/github.com/docker/docker/client/secret_inspect.go deleted file mode 100644 index f774576..0000000 --- a/vendor/github.com/docker/docker/client/secret_inspect.go +++ /dev/null @@ -1,34 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SecretInspectWithRaw returns the secret information with raw data -func (cli *Client) SecretInspectWithRaw(ctx context.Context, id string) (swarm.Secret, []byte, error) { - resp, err := cli.get(ctx, "/secrets/"+id, nil, nil) - if err != nil { - if resp.statusCode == http.StatusNotFound { - return swarm.Secret{}, nil, secretNotFoundError{id} - } - return swarm.Secret{}, nil, err - } - defer ensureReaderClosed(resp) - - body, err := ioutil.ReadAll(resp.body) - if err != nil { - return swarm.Secret{}, nil, err - } - - var secret swarm.Secret - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&secret) - - return secret, body, err -} diff --git a/vendor/github.com/docker/docker/client/secret_list.go b/vendor/github.com/docker/docker/client/secret_list.go deleted file mode 100644 index 7e9d5ec..0000000 --- a/vendor/github.com/docker/docker/client/secret_list.go +++ /dev/null @@ -1,35 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SecretList returns the list of secrets. -func (cli *Client) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) { - query := url.Values{} - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - - resp, err := cli.get(ctx, "/secrets", query, nil) - if err != nil { - return nil, err - } - - var secrets []swarm.Secret - err = json.NewDecoder(resp.body).Decode(&secrets) - ensureReaderClosed(resp) - return secrets, err -} diff --git a/vendor/github.com/docker/docker/client/secret_remove.go b/vendor/github.com/docker/docker/client/secret_remove.go deleted file mode 100644 index 1955b98..0000000 --- a/vendor/github.com/docker/docker/client/secret_remove.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -import "golang.org/x/net/context" - -// SecretRemove removes a Secret. -func (cli *Client) SecretRemove(ctx context.Context, id string) error { - resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/secret_update.go b/vendor/github.com/docker/docker/client/secret_update.go deleted file mode 100644 index b94e24a..0000000 --- a/vendor/github.com/docker/docker/client/secret_update.go +++ /dev/null @@ -1,19 +0,0 @@ -package client - -import ( - "net/url" - "strconv" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SecretUpdate updates a Secret. Currently, the only part of a secret spec -// which can be updated is Labels. -func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error { - query := url.Values{} - query.Set("version", strconv.FormatUint(version.Index, 10)) - resp, err := cli.post(ctx, "/secrets/"+id+"/update", query, secret, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/service_create.go b/vendor/github.com/docker/docker/client/service_create.go deleted file mode 100644 index 3d1be22..0000000 --- a/vendor/github.com/docker/docker/client/service_create.go +++ /dev/null @@ -1,30 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// ServiceCreate creates a new Service. -func (cli *Client) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, options types.ServiceCreateOptions) (types.ServiceCreateResponse, error) { - var headers map[string][]string - - if options.EncodedRegistryAuth != "" { - headers = map[string][]string{ - "X-Registry-Auth": {options.EncodedRegistryAuth}, - } - } - - var response types.ServiceCreateResponse - resp, err := cli.post(ctx, "/services/create", nil, service, headers) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/service_inspect.go b/vendor/github.com/docker/docker/client/service_inspect.go deleted file mode 100644 index ca71cbd..0000000 --- a/vendor/github.com/docker/docker/client/service_inspect.go +++ /dev/null @@ -1,33 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// ServiceInspectWithRaw returns the service information and the raw data. -func (cli *Client) ServiceInspectWithRaw(ctx context.Context, serviceID string) (swarm.Service, []byte, error) { - serverResp, err := cli.get(ctx, "/services/"+serviceID, nil, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return swarm.Service{}, nil, serviceNotFoundError{serviceID} - } - return swarm.Service{}, nil, err - } - defer ensureReaderClosed(serverResp) - - body, err := ioutil.ReadAll(serverResp.body) - if err != nil { - return swarm.Service{}, nil, err - } - - var response swarm.Service - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&response) - return response, body, err -} diff --git a/vendor/github.com/docker/docker/client/service_list.go b/vendor/github.com/docker/docker/client/service_list.go deleted file mode 100644 index c29e6d4..0000000 --- a/vendor/github.com/docker/docker/client/service_list.go +++ /dev/null @@ -1,35 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// ServiceList returns the list of services. -func (cli *Client) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) { - query := url.Values{} - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - - resp, err := cli.get(ctx, "/services", query, nil) - if err != nil { - return nil, err - } - - var services []swarm.Service - err = json.NewDecoder(resp.body).Decode(&services) - ensureReaderClosed(resp) - return services, err -} diff --git a/vendor/github.com/docker/docker/client/service_logs.go b/vendor/github.com/docker/docker/client/service_logs.go deleted file mode 100644 index 24384e3..0000000 --- a/vendor/github.com/docker/docker/client/service_logs.go +++ /dev/null @@ -1,52 +0,0 @@ -package client - -import ( - "io" - "net/url" - "time" - - "golang.org/x/net/context" - - "github.com/docker/docker/api/types" - timetypes "github.com/docker/docker/api/types/time" -) - -// ServiceLogs returns the logs generated by a service in an io.ReadCloser. -// It's up to the caller to close the stream. -func (cli *Client) ServiceLogs(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error) { - query := url.Values{} - if options.ShowStdout { - query.Set("stdout", "1") - } - - if options.ShowStderr { - query.Set("stderr", "1") - } - - if options.Since != "" { - ts, err := timetypes.GetTimestamp(options.Since, time.Now()) - if err != nil { - return nil, err - } - query.Set("since", ts) - } - - if options.Timestamps { - query.Set("timestamps", "1") - } - - if options.Details { - query.Set("details", "1") - } - - if options.Follow { - query.Set("follow", "1") - } - query.Set("tail", options.Tail) - - resp, err := cli.get(ctx, "/services/"+serviceID+"/logs", query, nil) - if err != nil { - return nil, err - } - return resp.body, nil -} diff --git a/vendor/github.com/docker/docker/client/service_remove.go b/vendor/github.com/docker/docker/client/service_remove.go deleted file mode 100644 index a9331f9..0000000 --- a/vendor/github.com/docker/docker/client/service_remove.go +++ /dev/null @@ -1,10 +0,0 @@ -package client - -import "golang.org/x/net/context" - -// ServiceRemove kills and removes a service. -func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error { - resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/service_update.go b/vendor/github.com/docker/docker/client/service_update.go deleted file mode 100644 index afa94d4..0000000 --- a/vendor/github.com/docker/docker/client/service_update.go +++ /dev/null @@ -1,41 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - "strconv" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// ServiceUpdate updates a Service. -func (cli *Client) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error) { - var ( - headers map[string][]string - query = url.Values{} - ) - - if options.EncodedRegistryAuth != "" { - headers = map[string][]string{ - "X-Registry-Auth": {options.EncodedRegistryAuth}, - } - } - - if options.RegistryAuthFrom != "" { - query.Set("registryAuthFrom", options.RegistryAuthFrom) - } - - query.Set("version", strconv.FormatUint(version.Index, 10)) - - var response types.ServiceUpdateResponse - resp, err := cli.post(ctx, "/services/"+serviceID+"/update", query, service, headers) - if err != nil { - return response, err - } - - err = json.NewDecoder(resp.body).Decode(&response) - ensureReaderClosed(resp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/swarm_get_unlock_key.go b/vendor/github.com/docker/docker/client/swarm_get_unlock_key.go deleted file mode 100644 index be28d32..0000000 --- a/vendor/github.com/docker/docker/client/swarm_get_unlock_key.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// SwarmGetUnlockKey retrieves the swarm's unlock key. -func (cli *Client) SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) { - serverResp, err := cli.get(ctx, "/swarm/unlockkey", nil, nil) - if err != nil { - return types.SwarmUnlockKeyResponse{}, err - } - - var response types.SwarmUnlockKeyResponse - err = json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/swarm_init.go b/vendor/github.com/docker/docker/client/swarm_init.go deleted file mode 100644 index 9e65e1c..0000000 --- a/vendor/github.com/docker/docker/client/swarm_init.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SwarmInit initializes the swarm. -func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) { - serverResp, err := cli.post(ctx, "/swarm/init", nil, req, nil) - if err != nil { - return "", err - } - - var response string - err = json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/swarm_inspect.go b/vendor/github.com/docker/docker/client/swarm_inspect.go deleted file mode 100644 index 77e72f8..0000000 --- a/vendor/github.com/docker/docker/client/swarm_inspect.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SwarmInspect inspects the swarm. -func (cli *Client) SwarmInspect(ctx context.Context) (swarm.Swarm, error) { - serverResp, err := cli.get(ctx, "/swarm", nil, nil) - if err != nil { - return swarm.Swarm{}, err - } - - var response swarm.Swarm - err = json.NewDecoder(serverResp.body).Decode(&response) - ensureReaderClosed(serverResp) - return response, err -} diff --git a/vendor/github.com/docker/docker/client/swarm_join.go b/vendor/github.com/docker/docker/client/swarm_join.go deleted file mode 100644 index 19e5192..0000000 --- a/vendor/github.com/docker/docker/client/swarm_join.go +++ /dev/null @@ -1,13 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SwarmJoin joins the swarm. -func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error { - resp, err := cli.post(ctx, "/swarm/join", nil, req, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/swarm_leave.go b/vendor/github.com/docker/docker/client/swarm_leave.go deleted file mode 100644 index 3a205cf..0000000 --- a/vendor/github.com/docker/docker/client/swarm_leave.go +++ /dev/null @@ -1,18 +0,0 @@ -package client - -import ( - "net/url" - - "golang.org/x/net/context" -) - -// SwarmLeave leaves the swarm. -func (cli *Client) SwarmLeave(ctx context.Context, force bool) error { - query := url.Values{} - if force { - query.Set("force", "1") - } - resp, err := cli.post(ctx, "/swarm/leave", query, nil, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/swarm_unlock.go b/vendor/github.com/docker/docker/client/swarm_unlock.go deleted file mode 100644 index addfb59..0000000 --- a/vendor/github.com/docker/docker/client/swarm_unlock.go +++ /dev/null @@ -1,17 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SwarmUnlock unlockes locked swarm. -func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { - serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) - if err != nil { - return err - } - - ensureReaderClosed(serverResp) - return err -} diff --git a/vendor/github.com/docker/docker/client/swarm_update.go b/vendor/github.com/docker/docker/client/swarm_update.go deleted file mode 100644 index 7245fd4..0000000 --- a/vendor/github.com/docker/docker/client/swarm_update.go +++ /dev/null @@ -1,22 +0,0 @@ -package client - -import ( - "fmt" - "net/url" - "strconv" - - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// SwarmUpdate updates the swarm. -func (cli *Client) SwarmUpdate(ctx context.Context, version swarm.Version, swarm swarm.Spec, flags swarm.UpdateFlags) error { - query := url.Values{} - query.Set("version", strconv.FormatUint(version.Index, 10)) - query.Set("rotateWorkerToken", fmt.Sprintf("%v", flags.RotateWorkerToken)) - query.Set("rotateManagerToken", fmt.Sprintf("%v", flags.RotateManagerToken)) - query.Set("rotateManagerUnlockKey", fmt.Sprintf("%v", flags.RotateManagerUnlockKey)) - resp, err := cli.post(ctx, "/swarm/update", query, swarm, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/client/task_inspect.go b/vendor/github.com/docker/docker/client/task_inspect.go deleted file mode 100644 index bc8058f..0000000 --- a/vendor/github.com/docker/docker/client/task_inspect.go +++ /dev/null @@ -1,34 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types/swarm" - - "golang.org/x/net/context" -) - -// TaskInspectWithRaw returns the task information and its raw representation.. -func (cli *Client) TaskInspectWithRaw(ctx context.Context, taskID string) (swarm.Task, []byte, error) { - serverResp, err := cli.get(ctx, "/tasks/"+taskID, nil, nil) - if err != nil { - if serverResp.statusCode == http.StatusNotFound { - return swarm.Task{}, nil, taskNotFoundError{taskID} - } - return swarm.Task{}, nil, err - } - defer ensureReaderClosed(serverResp) - - body, err := ioutil.ReadAll(serverResp.body) - if err != nil { - return swarm.Task{}, nil, err - } - - var response swarm.Task - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&response) - return response, body, err -} diff --git a/vendor/github.com/docker/docker/client/task_list.go b/vendor/github.com/docker/docker/client/task_list.go deleted file mode 100644 index 66324da..0000000 --- a/vendor/github.com/docker/docker/client/task_list.go +++ /dev/null @@ -1,35 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "github.com/docker/docker/api/types/swarm" - "golang.org/x/net/context" -) - -// TaskList returns the list of tasks. -func (cli *Client) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) { - query := url.Values{} - - if options.Filters.Len() > 0 { - filterJSON, err := filters.ToParam(options.Filters) - if err != nil { - return nil, err - } - - query.Set("filters", filterJSON) - } - - resp, err := cli.get(ctx, "/tasks", query, nil) - if err != nil { - return nil, err - } - - var tasks []swarm.Task - err = json.NewDecoder(resp.body).Decode(&tasks) - ensureReaderClosed(resp) - return tasks, err -} diff --git a/vendor/github.com/docker/docker/client/transport.go b/vendor/github.com/docker/docker/client/transport.go deleted file mode 100644 index 401ab15..0000000 --- a/vendor/github.com/docker/docker/client/transport.go +++ /dev/null @@ -1,25 +0,0 @@ -package client - -import ( - "crypto/tls" - "net/http" -) - -// transportFunc allows us to inject a mock transport for testing. We define it -// here so we can detect the tlsconfig and return nil for only this type. -type transportFunc func(*http.Request) (*http.Response, error) - -func (tf transportFunc) RoundTrip(req *http.Request) (*http.Response, error) { - return tf(req) -} - -// resolveTLSConfig attempts to resolve the TLS configuration from the -// RoundTripper. -func resolveTLSConfig(transport http.RoundTripper) *tls.Config { - switch tr := transport.(type) { - case *http.Transport: - return tr.TLSClientConfig - default: - return nil - } -} diff --git a/vendor/github.com/docker/docker/client/utils.go b/vendor/github.com/docker/docker/client/utils.go deleted file mode 100644 index 23d520e..0000000 --- a/vendor/github.com/docker/docker/client/utils.go +++ /dev/null @@ -1,33 +0,0 @@ -package client - -import ( - "github.com/docker/docker/api/types/filters" - "net/url" - "regexp" -) - -var headerRegexp = regexp.MustCompile(`\ADocker/.+\s\((.+)\)\z`) - -// getDockerOS returns the operating system based on the server header from the daemon. -func getDockerOS(serverHeader string) string { - var osType string - matches := headerRegexp.FindStringSubmatch(serverHeader) - if len(matches) > 0 { - osType = matches[1] - } - return osType -} - -// getFiltersQuery returns a url query with "filters" query term, based on the -// filters provided. -func getFiltersQuery(f filters.Args) (url.Values, error) { - query := url.Values{} - if f.Len() > 0 { - filterJSON, err := filters.ToParam(f) - if err != nil { - return query, err - } - query.Set("filters", filterJSON) - } - return query, nil -} diff --git a/vendor/github.com/docker/docker/client/version.go b/vendor/github.com/docker/docker/client/version.go deleted file mode 100644 index 933ceb4..0000000 --- a/vendor/github.com/docker/docker/client/version.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// ServerVersion returns information of the docker client and server host. -func (cli *Client) ServerVersion(ctx context.Context) (types.Version, error) { - resp, err := cli.get(ctx, "/version", nil, nil) - if err != nil { - return types.Version{}, err - } - - var server types.Version - err = json.NewDecoder(resp.body).Decode(&server) - ensureReaderClosed(resp) - return server, err -} diff --git a/vendor/github.com/docker/docker/client/volume_create.go b/vendor/github.com/docker/docker/client/volume_create.go deleted file mode 100644 index 9620c87..0000000 --- a/vendor/github.com/docker/docker/client/volume_create.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "encoding/json" - - "github.com/docker/docker/api/types" - volumetypes "github.com/docker/docker/api/types/volume" - "golang.org/x/net/context" -) - -// VolumeCreate creates a volume in the docker host. -func (cli *Client) VolumeCreate(ctx context.Context, options volumetypes.VolumesCreateBody) (types.Volume, error) { - var volume types.Volume - resp, err := cli.post(ctx, "/volumes/create", nil, options, nil) - if err != nil { - return volume, err - } - err = json.NewDecoder(resp.body).Decode(&volume) - ensureReaderClosed(resp) - return volume, err -} diff --git a/vendor/github.com/docker/docker/client/volume_inspect.go b/vendor/github.com/docker/docker/client/volume_inspect.go deleted file mode 100644 index 3860e9b..0000000 --- a/vendor/github.com/docker/docker/client/volume_inspect.go +++ /dev/null @@ -1,38 +0,0 @@ -package client - -import ( - "bytes" - "encoding/json" - "io/ioutil" - "net/http" - - "github.com/docker/docker/api/types" - "golang.org/x/net/context" -) - -// VolumeInspect returns the information about a specific volume in the docker host. -func (cli *Client) VolumeInspect(ctx context.Context, volumeID string) (types.Volume, error) { - volume, _, err := cli.VolumeInspectWithRaw(ctx, volumeID) - return volume, err -} - -// VolumeInspectWithRaw returns the information about a specific volume in the docker host and its raw representation -func (cli *Client) VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error) { - var volume types.Volume - resp, err := cli.get(ctx, "/volumes/"+volumeID, nil, nil) - if err != nil { - if resp.statusCode == http.StatusNotFound { - return volume, nil, volumeNotFoundError{volumeID} - } - return volume, nil, err - } - defer ensureReaderClosed(resp) - - body, err := ioutil.ReadAll(resp.body) - if err != nil { - return volume, nil, err - } - rdr := bytes.NewReader(body) - err = json.NewDecoder(rdr).Decode(&volume) - return volume, body, err -} diff --git a/vendor/github.com/docker/docker/client/volume_list.go b/vendor/github.com/docker/docker/client/volume_list.go deleted file mode 100644 index 32247ce..0000000 --- a/vendor/github.com/docker/docker/client/volume_list.go +++ /dev/null @@ -1,32 +0,0 @@ -package client - -import ( - "encoding/json" - "net/url" - - "github.com/docker/docker/api/types/filters" - volumetypes "github.com/docker/docker/api/types/volume" - "golang.org/x/net/context" -) - -// VolumeList returns the volumes configured in the docker host. -func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volumetypes.VolumesListOKBody, error) { - var volumes volumetypes.VolumesListOKBody - query := url.Values{} - - if filter.Len() > 0 { - filterJSON, err := filters.ToParamWithVersion(cli.version, filter) - if err != nil { - return volumes, err - } - query.Set("filters", filterJSON) - } - resp, err := cli.get(ctx, "/volumes", query, nil) - if err != nil { - return volumes, err - } - - err = json.NewDecoder(resp.body).Decode(&volumes) - ensureReaderClosed(resp) - return volumes, err -} diff --git a/vendor/github.com/docker/docker/client/volume_prune.go b/vendor/github.com/docker/docker/client/volume_prune.go deleted file mode 100644 index a07e4ce..0000000 --- a/vendor/github.com/docker/docker/client/volume_prune.go +++ /dev/null @@ -1,36 +0,0 @@ -package client - -import ( - "encoding/json" - "fmt" - - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/filters" - "golang.org/x/net/context" -) - -// VolumesPrune requests the daemon to delete unused data -func (cli *Client) VolumesPrune(ctx context.Context, pruneFilters filters.Args) (types.VolumesPruneReport, error) { - var report types.VolumesPruneReport - - if err := cli.NewVersionError("1.25", "volume prune"); err != nil { - return report, err - } - - query, err := getFiltersQuery(pruneFilters) - if err != nil { - return report, err - } - - serverResp, err := cli.post(ctx, "/volumes/prune", query, nil, nil) - if err != nil { - return report, err - } - defer ensureReaderClosed(serverResp) - - if err := json.NewDecoder(serverResp.body).Decode(&report); err != nil { - return report, fmt.Errorf("Error retrieving disk usage: %v", err) - } - - return report, nil -} diff --git a/vendor/github.com/docker/docker/client/volume_remove.go b/vendor/github.com/docker/docker/client/volume_remove.go deleted file mode 100644 index 6c26575..0000000 --- a/vendor/github.com/docker/docker/client/volume_remove.go +++ /dev/null @@ -1,21 +0,0 @@ -package client - -import ( - "net/url" - - "github.com/docker/docker/api/types/versions" - "golang.org/x/net/context" -) - -// VolumeRemove removes a volume from the docker host. -func (cli *Client) VolumeRemove(ctx context.Context, volumeID string, force bool) error { - query := url.Values{} - if versions.GreaterThanOrEqualTo(cli.version, "1.25") { - if force { - query.Set("force", "1") - } - } - resp, err := cli.delete(ctx, "/volumes/"+volumeID, query, nil) - ensureReaderClosed(resp) - return err -} diff --git a/vendor/github.com/docker/docker/contrib/selinux-fedora-24/docker-engine-selinux/LICENSE b/vendor/github.com/docker/docker/contrib/selinux-fedora-24/docker-engine-selinux/LICENSE deleted file mode 100644 index d511905..0000000 --- a/vendor/github.com/docker/docker/contrib/selinux-fedora-24/docker-engine-selinux/LICENSE +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/vendor/github.com/docker/docker/contrib/selinux-oraclelinux-7/docker-engine-selinux/LICENSE b/vendor/github.com/docker/docker/contrib/selinux-oraclelinux-7/docker-engine-selinux/LICENSE deleted file mode 100644 index d511905..0000000 --- a/vendor/github.com/docker/docker/contrib/selinux-oraclelinux-7/docker-engine-selinux/LICENSE +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/vendor/github.com/docker/docker/contrib/selinux/docker-engine-selinux/LICENSE b/vendor/github.com/docker/docker/contrib/selinux/docker-engine-selinux/LICENSE deleted file mode 100644 index 5b6e7c6..0000000 --- a/vendor/github.com/docker/docker/contrib/selinux/docker-engine-selinux/LICENSE +++ /dev/null @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/vendor/github.com/docker/docker/contrib/syntax/vim/LICENSE b/vendor/github.com/docker/docker/contrib/syntax/vim/LICENSE deleted file mode 100644 index e67cdab..0000000 --- a/vendor/github.com/docker/docker/contrib/syntax/vim/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2013 Honza Pokorny -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/docker/docker/docs/static_files/contributors.png b/vendor/github.com/docker/docker/docs/static_files/contributors.png deleted file mode 100644 index 63c0a0c..0000000 Binary files a/vendor/github.com/docker/docker/docs/static_files/contributors.png and /dev/null differ diff --git a/vendor/github.com/docker/docker/hack/generate-authors.sh b/vendor/github.com/docker/docker/hack/generate-authors.sh deleted file mode 100755 index e78a97f..0000000 --- a/vendor/github.com/docker/docker/hack/generate-authors.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -e - -cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.." - -# see also ".mailmap" for how email addresses and names are deduplicated - -{ - cat <<-'EOH' - # This file lists all individuals having contributed content to the repository. - # For how it is generated, see `hack/generate-authors.sh`. - EOH - echo - git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf -} > AUTHORS diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default deleted file mode 120000 index 4278533..0000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.default +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker.default \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init deleted file mode 120000 index 8cb89d3..0000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.init +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/sysvinit-debian/docker \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart deleted file mode 120000 index 7e1b64a..0000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.docker.upstart +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/init/upstart/docker.conf \ No newline at end of file diff --git a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev b/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev deleted file mode 120000 index 914a361..0000000 --- a/vendor/github.com/docker/docker/hack/make/.build-deb/docker-engine.udev +++ /dev/null @@ -1 +0,0 @@ -../../../contrib/udev/80-docker.rules \ No newline at end of file diff --git a/vendor/github.com/docker/docker/pkg/ioutils/buffer.go b/vendor/github.com/docker/docker/pkg/ioutils/buffer.go deleted file mode 100644 index 3d737b3..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/buffer.go +++ /dev/null @@ -1,51 +0,0 @@ -package ioutils - -import ( - "errors" - "io" -) - -var errBufferFull = errors.New("buffer is full") - -type fixedBuffer struct { - buf []byte - pos int - lastRead int -} - -func (b *fixedBuffer) Write(p []byte) (int, error) { - n := copy(b.buf[b.pos:cap(b.buf)], p) - b.pos += n - - if n < len(p) { - if b.pos == cap(b.buf) { - return n, errBufferFull - } - return n, io.ErrShortWrite - } - return n, nil -} - -func (b *fixedBuffer) Read(p []byte) (int, error) { - n := copy(p, b.buf[b.lastRead:b.pos]) - b.lastRead += n - return n, nil -} - -func (b *fixedBuffer) Len() int { - return b.pos - b.lastRead -} - -func (b *fixedBuffer) Cap() int { - return cap(b.buf) -} - -func (b *fixedBuffer) Reset() { - b.pos = 0 - b.lastRead = 0 - b.buf = b.buf[:0] -} - -func (b *fixedBuffer) String() string { - return string(b.buf[b.lastRead:b.pos]) -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/bytespipe.go b/vendor/github.com/docker/docker/pkg/ioutils/bytespipe.go deleted file mode 100644 index 72a04f3..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/bytespipe.go +++ /dev/null @@ -1,186 +0,0 @@ -package ioutils - -import ( - "errors" - "io" - "sync" -) - -// maxCap is the highest capacity to use in byte slices that buffer data. -const maxCap = 1e6 - -// minCap is the lowest capacity to use in byte slices that buffer data -const minCap = 64 - -// blockThreshold is the minimum number of bytes in the buffer which will cause -// a write to BytesPipe to block when allocating a new slice. -const blockThreshold = 1e6 - -var ( - // ErrClosed is returned when Write is called on a closed BytesPipe. - ErrClosed = errors.New("write to closed BytesPipe") - - bufPools = make(map[int]*sync.Pool) - bufPoolsLock sync.Mutex -) - -// BytesPipe is io.ReadWriteCloser which works similarly to pipe(queue). -// All written data may be read at most once. Also, BytesPipe allocates -// and releases new byte slices to adjust to current needs, so the buffer -// won't be overgrown after peak loads. -type BytesPipe struct { - mu sync.Mutex - wait *sync.Cond - buf []*fixedBuffer - bufLen int - closeErr error // error to return from next Read. set to nil if not closed. -} - -// NewBytesPipe creates new BytesPipe, initialized by specified slice. -// If buf is nil, then it will be initialized with slice which cap is 64. -// buf will be adjusted in a way that len(buf) == 0, cap(buf) == cap(buf). -func NewBytesPipe() *BytesPipe { - bp := &BytesPipe{} - bp.buf = append(bp.buf, getBuffer(minCap)) - bp.wait = sync.NewCond(&bp.mu) - return bp -} - -// Write writes p to BytesPipe. -// It can allocate new []byte slices in a process of writing. -func (bp *BytesPipe) Write(p []byte) (int, error) { - bp.mu.Lock() - - written := 0 -loop0: - for { - if bp.closeErr != nil { - bp.mu.Unlock() - return written, ErrClosed - } - - if len(bp.buf) == 0 { - bp.buf = append(bp.buf, getBuffer(64)) - } - // get the last buffer - b := bp.buf[len(bp.buf)-1] - - n, err := b.Write(p) - written += n - bp.bufLen += n - - // errBufferFull is an error we expect to get if the buffer is full - if err != nil && err != errBufferFull { - bp.wait.Broadcast() - bp.mu.Unlock() - return written, err - } - - // if there was enough room to write all then break - if len(p) == n { - break - } - - // more data: write to the next slice - p = p[n:] - - // make sure the buffer doesn't grow too big from this write - for bp.bufLen >= blockThreshold { - bp.wait.Wait() - if bp.closeErr != nil { - continue loop0 - } - } - - // add new byte slice to the buffers slice and continue writing - nextCap := b.Cap() * 2 - if nextCap > maxCap { - nextCap = maxCap - } - bp.buf = append(bp.buf, getBuffer(nextCap)) - } - bp.wait.Broadcast() - bp.mu.Unlock() - return written, nil -} - -// CloseWithError causes further reads from a BytesPipe to return immediately. -func (bp *BytesPipe) CloseWithError(err error) error { - bp.mu.Lock() - if err != nil { - bp.closeErr = err - } else { - bp.closeErr = io.EOF - } - bp.wait.Broadcast() - bp.mu.Unlock() - return nil -} - -// Close causes further reads from a BytesPipe to return immediately. -func (bp *BytesPipe) Close() error { - return bp.CloseWithError(nil) -} - -// Read reads bytes from BytesPipe. -// Data could be read only once. -func (bp *BytesPipe) Read(p []byte) (n int, err error) { - bp.mu.Lock() - if bp.bufLen == 0 { - if bp.closeErr != nil { - bp.mu.Unlock() - return 0, bp.closeErr - } - bp.wait.Wait() - if bp.bufLen == 0 && bp.closeErr != nil { - err := bp.closeErr - bp.mu.Unlock() - return 0, err - } - } - - for bp.bufLen > 0 { - b := bp.buf[0] - read, _ := b.Read(p) // ignore error since fixedBuffer doesn't really return an error - n += read - bp.bufLen -= read - - if b.Len() == 0 { - // it's empty so return it to the pool and move to the next one - returnBuffer(b) - bp.buf[0] = nil - bp.buf = bp.buf[1:] - } - - if len(p) == read { - break - } - - p = p[read:] - } - - bp.wait.Broadcast() - bp.mu.Unlock() - return -} - -func returnBuffer(b *fixedBuffer) { - b.Reset() - bufPoolsLock.Lock() - pool := bufPools[b.Cap()] - bufPoolsLock.Unlock() - if pool != nil { - pool.Put(b) - } -} - -func getBuffer(size int) *fixedBuffer { - bufPoolsLock.Lock() - pool, ok := bufPools[size] - if !ok { - pool = &sync.Pool{New: func() interface{} { return &fixedBuffer{buf: make([]byte, 0, size)} }} - bufPools[size] = pool - } - bufPoolsLock.Unlock() - return pool.Get().(*fixedBuffer) -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/fmt.go b/vendor/github.com/docker/docker/pkg/ioutils/fmt.go deleted file mode 100644 index 0b04b0b..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/fmt.go +++ /dev/null @@ -1,22 +0,0 @@ -package ioutils - -import ( - "fmt" - "io" -) - -// FprintfIfNotEmpty prints the string value if it's not empty -func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) { - if value != "" { - return fmt.Fprintf(w, format, value) - } - return 0, nil -} - -// FprintfIfTrue prints the boolean value if it's true -func FprintfIfTrue(w io.Writer, format string, ok bool) (int, error) { - if ok { - return fmt.Fprintf(w, format, ok) - } - return 0, nil -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/fswriters.go b/vendor/github.com/docker/docker/pkg/ioutils/fswriters.go deleted file mode 100644 index a56c462..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/fswriters.go +++ /dev/null @@ -1,162 +0,0 @@ -package ioutils - -import ( - "io" - "io/ioutil" - "os" - "path/filepath" -) - -// NewAtomicFileWriter returns WriteCloser so that writing to it writes to a -// temporary file and closing it atomically changes the temporary file to -// destination path. Writing and closing concurrently is not allowed. -func NewAtomicFileWriter(filename string, perm os.FileMode) (io.WriteCloser, error) { - f, err := ioutil.TempFile(filepath.Dir(filename), ".tmp-"+filepath.Base(filename)) - if err != nil { - return nil, err - } - - abspath, err := filepath.Abs(filename) - if err != nil { - return nil, err - } - return &atomicFileWriter{ - f: f, - fn: abspath, - perm: perm, - }, nil -} - -// AtomicWriteFile atomically writes data to a file named by filename. -func AtomicWriteFile(filename string, data []byte, perm os.FileMode) error { - f, err := NewAtomicFileWriter(filename, perm) - if err != nil { - return err - } - n, err := f.Write(data) - if err == nil && n < len(data) { - err = io.ErrShortWrite - f.(*atomicFileWriter).writeErr = err - } - if err1 := f.Close(); err == nil { - err = err1 - } - return err -} - -type atomicFileWriter struct { - f *os.File - fn string - writeErr error - perm os.FileMode -} - -func (w *atomicFileWriter) Write(dt []byte) (int, error) { - n, err := w.f.Write(dt) - if err != nil { - w.writeErr = err - } - return n, err -} - -func (w *atomicFileWriter) Close() (retErr error) { - defer func() { - if retErr != nil || w.writeErr != nil { - os.Remove(w.f.Name()) - } - }() - if err := w.f.Sync(); err != nil { - w.f.Close() - return err - } - if err := w.f.Close(); err != nil { - return err - } - if err := os.Chmod(w.f.Name(), w.perm); err != nil { - return err - } - if w.writeErr == nil { - return os.Rename(w.f.Name(), w.fn) - } - return nil -} - -// AtomicWriteSet is used to atomically write a set -// of files and ensure they are visible at the same time. -// Must be committed to a new directory. -type AtomicWriteSet struct { - root string -} - -// NewAtomicWriteSet creates a new atomic write set to -// atomically create a set of files. The given directory -// is used as the base directory for storing files before -// commit. If no temporary directory is given the system -// default is used. -func NewAtomicWriteSet(tmpDir string) (*AtomicWriteSet, error) { - td, err := ioutil.TempDir(tmpDir, "write-set-") - if err != nil { - return nil, err - } - - return &AtomicWriteSet{ - root: td, - }, nil -} - -// WriteFile writes a file to the set, guaranteeing the file -// has been synced. -func (ws *AtomicWriteSet) WriteFile(filename string, data []byte, perm os.FileMode) error { - f, err := ws.FileWriter(filename, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, perm) - if err != nil { - return err - } - n, err := f.Write(data) - if err == nil && n < len(data) { - err = io.ErrShortWrite - } - if err1 := f.Close(); err == nil { - err = err1 - } - return err -} - -type syncFileCloser struct { - *os.File -} - -func (w syncFileCloser) Close() error { - err := w.File.Sync() - if err1 := w.File.Close(); err == nil { - err = err1 - } - return err -} - -// FileWriter opens a file writer inside the set. The file -// should be synced and closed before calling commit. -func (ws *AtomicWriteSet) FileWriter(name string, flag int, perm os.FileMode) (io.WriteCloser, error) { - f, err := os.OpenFile(filepath.Join(ws.root, name), flag, perm) - if err != nil { - return nil, err - } - return syncFileCloser{f}, nil -} - -// Cancel cancels the set and removes all temporary data -// created in the set. -func (ws *AtomicWriteSet) Cancel() error { - return os.RemoveAll(ws.root) -} - -// Commit moves all created files to the target directory. The -// target directory must not exist and the parent of the target -// directory must exist. -func (ws *AtomicWriteSet) Commit(target string) error { - return os.Rename(ws.root, target) -} - -// String returns the location the set is writing to. -func (ws *AtomicWriteSet) String() string { - return ws.root -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/multireader.go b/vendor/github.com/docker/docker/pkg/ioutils/multireader.go deleted file mode 100644 index d7b9748..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/multireader.go +++ /dev/null @@ -1,223 +0,0 @@ -package ioutils - -import ( - "bytes" - "fmt" - "io" - "os" -) - -type pos struct { - idx int - offset int64 -} - -type multiReadSeeker struct { - readers []io.ReadSeeker - pos *pos - posIdx map[io.ReadSeeker]int -} - -func (r *multiReadSeeker) Seek(offset int64, whence int) (int64, error) { - var tmpOffset int64 - switch whence { - case os.SEEK_SET: - for i, rdr := range r.readers { - // get size of the current reader - s, err := rdr.Seek(0, os.SEEK_END) - if err != nil { - return -1, err - } - - if offset > tmpOffset+s { - if i == len(r.readers)-1 { - rdrOffset := s + (offset - tmpOffset) - if _, err := rdr.Seek(rdrOffset, os.SEEK_SET); err != nil { - return -1, err - } - r.pos = &pos{i, rdrOffset} - return offset, nil - } - - tmpOffset += s - continue - } - - rdrOffset := offset - tmpOffset - idx := i - - rdr.Seek(rdrOffset, os.SEEK_SET) - // make sure all following readers are at 0 - for _, rdr := range r.readers[i+1:] { - rdr.Seek(0, os.SEEK_SET) - } - - if rdrOffset == s && i != len(r.readers)-1 { - idx++ - rdrOffset = 0 - } - r.pos = &pos{idx, rdrOffset} - return offset, nil - } - case os.SEEK_END: - for _, rdr := range r.readers { - s, err := rdr.Seek(0, os.SEEK_END) - if err != nil { - return -1, err - } - tmpOffset += s - } - r.Seek(tmpOffset+offset, os.SEEK_SET) - return tmpOffset + offset, nil - case os.SEEK_CUR: - if r.pos == nil { - return r.Seek(offset, os.SEEK_SET) - } - // Just return the current offset - if offset == 0 { - return r.getCurOffset() - } - - curOffset, err := r.getCurOffset() - if err != nil { - return -1, err - } - rdr, rdrOffset, err := r.getReaderForOffset(curOffset + offset) - if err != nil { - return -1, err - } - - r.pos = &pos{r.posIdx[rdr], rdrOffset} - return curOffset + offset, nil - default: - return -1, fmt.Errorf("Invalid whence: %d", whence) - } - - return -1, fmt.Errorf("Error seeking for whence: %d, offset: %d", whence, offset) -} - -func (r *multiReadSeeker) getReaderForOffset(offset int64) (io.ReadSeeker, int64, error) { - - var offsetTo int64 - - for _, rdr := range r.readers { - size, err := getReadSeekerSize(rdr) - if err != nil { - return nil, -1, err - } - if offsetTo+size > offset { - return rdr, offset - offsetTo, nil - } - if rdr == r.readers[len(r.readers)-1] { - return rdr, offsetTo + offset, nil - } - offsetTo += size - } - - return nil, 0, nil -} - -func (r *multiReadSeeker) getCurOffset() (int64, error) { - var totalSize int64 - for _, rdr := range r.readers[:r.pos.idx+1] { - if r.posIdx[rdr] == r.pos.idx { - totalSize += r.pos.offset - break - } - - size, err := getReadSeekerSize(rdr) - if err != nil { - return -1, fmt.Errorf("error getting seeker size: %v", err) - } - totalSize += size - } - return totalSize, nil -} - -func (r *multiReadSeeker) getOffsetToReader(rdr io.ReadSeeker) (int64, error) { - var offset int64 - for _, r := range r.readers { - if r == rdr { - break - } - - size, err := getReadSeekerSize(rdr) - if err != nil { - return -1, err - } - offset += size - } - return offset, nil -} - -func (r *multiReadSeeker) Read(b []byte) (int, error) { - if r.pos == nil { - r.pos = &pos{0, 0} - } - - bLen := int64(len(b)) - buf := bytes.NewBuffer(nil) - var rdr io.ReadSeeker - - for _, rdr = range r.readers[r.pos.idx:] { - readBytes, err := io.CopyN(buf, rdr, bLen) - if err != nil && err != io.EOF { - return -1, err - } - bLen -= readBytes - - if bLen == 0 { - break - } - } - - rdrPos, err := rdr.Seek(0, os.SEEK_CUR) - if err != nil { - return -1, err - } - r.pos = &pos{r.posIdx[rdr], rdrPos} - return buf.Read(b) -} - -func getReadSeekerSize(rdr io.ReadSeeker) (int64, error) { - // save the current position - pos, err := rdr.Seek(0, os.SEEK_CUR) - if err != nil { - return -1, err - } - - // get the size - size, err := rdr.Seek(0, os.SEEK_END) - if err != nil { - return -1, err - } - - // reset the position - if _, err := rdr.Seek(pos, os.SEEK_SET); err != nil { - return -1, err - } - return size, nil -} - -// MultiReadSeeker returns a ReadSeeker that's the logical concatenation of the provided -// input readseekers. After calling this method the initial position is set to the -// beginning of the first ReadSeeker. At the end of a ReadSeeker, Read always advances -// to the beginning of the next ReadSeeker and returns EOF at the end of the last ReadSeeker. -// Seek can be used over the sum of lengths of all readseekers. -// -// When a MultiReadSeeker is used, no Read and Seek operations should be made on -// its ReadSeeker components. Also, users should make no assumption on the state -// of individual readseekers while the MultiReadSeeker is used. -func MultiReadSeeker(readers ...io.ReadSeeker) io.ReadSeeker { - if len(readers) == 1 { - return readers[0] - } - idx := make(map[io.ReadSeeker]int) - for i, rdr := range readers { - idx[rdr] = i - } - return &multiReadSeeker{ - readers: readers, - posIdx: idx, - } -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/readers.go b/vendor/github.com/docker/docker/pkg/ioutils/readers.go deleted file mode 100644 index 63f3c07..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/readers.go +++ /dev/null @@ -1,154 +0,0 @@ -package ioutils - -import ( - "crypto/sha256" - "encoding/hex" - "io" - - "golang.org/x/net/context" -) - -type readCloserWrapper struct { - io.Reader - closer func() error -} - -func (r *readCloserWrapper) Close() error { - return r.closer() -} - -// NewReadCloserWrapper returns a new io.ReadCloser. -func NewReadCloserWrapper(r io.Reader, closer func() error) io.ReadCloser { - return &readCloserWrapper{ - Reader: r, - closer: closer, - } -} - -type readerErrWrapper struct { - reader io.Reader - closer func() -} - -func (r *readerErrWrapper) Read(p []byte) (int, error) { - n, err := r.reader.Read(p) - if err != nil { - r.closer() - } - return n, err -} - -// NewReaderErrWrapper returns a new io.Reader. -func NewReaderErrWrapper(r io.Reader, closer func()) io.Reader { - return &readerErrWrapper{ - reader: r, - closer: closer, - } -} - -// HashData returns the sha256 sum of src. -func HashData(src io.Reader) (string, error) { - h := sha256.New() - if _, err := io.Copy(h, src); err != nil { - return "", err - } - return "sha256:" + hex.EncodeToString(h.Sum(nil)), nil -} - -// OnEOFReader wraps an io.ReadCloser and a function -// the function will run at the end of file or close the file. -type OnEOFReader struct { - Rc io.ReadCloser - Fn func() -} - -func (r *OnEOFReader) Read(p []byte) (n int, err error) { - n, err = r.Rc.Read(p) - if err == io.EOF { - r.runFunc() - } - return -} - -// Close closes the file and run the function. -func (r *OnEOFReader) Close() error { - err := r.Rc.Close() - r.runFunc() - return err -} - -func (r *OnEOFReader) runFunc() { - if fn := r.Fn; fn != nil { - fn() - r.Fn = nil - } -} - -// cancelReadCloser wraps an io.ReadCloser with a context for cancelling read -// operations. -type cancelReadCloser struct { - cancel func() - pR *io.PipeReader // Stream to read from - pW *io.PipeWriter -} - -// NewCancelReadCloser creates a wrapper that closes the ReadCloser when the -// context is cancelled. The returned io.ReadCloser must be closed when it is -// no longer needed. -func NewCancelReadCloser(ctx context.Context, in io.ReadCloser) io.ReadCloser { - pR, pW := io.Pipe() - - // Create a context used to signal when the pipe is closed - doneCtx, cancel := context.WithCancel(context.Background()) - - p := &cancelReadCloser{ - cancel: cancel, - pR: pR, - pW: pW, - } - - go func() { - _, err := io.Copy(pW, in) - select { - case <-ctx.Done(): - // If the context was closed, p.closeWithError - // was already called. Calling it again would - // change the error that Read returns. - default: - p.closeWithError(err) - } - in.Close() - }() - go func() { - for { - select { - case <-ctx.Done(): - p.closeWithError(ctx.Err()) - case <-doneCtx.Done(): - return - } - } - }() - - return p -} - -// Read wraps the Read method of the pipe that provides data from the wrapped -// ReadCloser. -func (p *cancelReadCloser) Read(buf []byte) (n int, err error) { - return p.pR.Read(buf) -} - -// closeWithError closes the wrapper and its underlying reader. It will -// cause future calls to Read to return err. -func (p *cancelReadCloser) closeWithError(err error) { - p.pW.CloseWithError(err) - p.cancel() -} - -// Close closes the wrapper its underlying reader. It will cause -// future calls to Read to return io.EOF. -func (p *cancelReadCloser) Close() error { - p.closeWithError(io.EOF) - return nil -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go b/vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go deleted file mode 100644 index 1539ad2..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build !windows - -package ioutils - -import "io/ioutil" - -// TempDir on Unix systems is equivalent to ioutil.TempDir. -func TempDir(dir, prefix string) (string, error) { - return ioutil.TempDir(dir, prefix) -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/temp_windows.go b/vendor/github.com/docker/docker/pkg/ioutils/temp_windows.go deleted file mode 100644 index c258e5f..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/temp_windows.go +++ /dev/null @@ -1,18 +0,0 @@ -// +build windows - -package ioutils - -import ( - "io/ioutil" - - "github.com/docker/docker/pkg/longpath" -) - -// TempDir is the equivalent of ioutil.TempDir, except that the result is in Windows longpath format. -func TempDir(dir, prefix string) (string, error) { - tempDir, err := ioutil.TempDir(dir, prefix) - if err != nil { - return "", err - } - return longpath.AddPrefix(tempDir), nil -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/writeflusher.go b/vendor/github.com/docker/docker/pkg/ioutils/writeflusher.go deleted file mode 100644 index 52a4901..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/writeflusher.go +++ /dev/null @@ -1,92 +0,0 @@ -package ioutils - -import ( - "io" - "sync" -) - -// WriteFlusher wraps the Write and Flush operation ensuring that every write -// is a flush. In addition, the Close method can be called to intercept -// Read/Write calls if the targets lifecycle has already ended. -type WriteFlusher struct { - w io.Writer - flusher flusher - flushed chan struct{} - flushedOnce sync.Once - closed chan struct{} - closeLock sync.Mutex -} - -type flusher interface { - Flush() -} - -var errWriteFlusherClosed = io.EOF - -func (wf *WriteFlusher) Write(b []byte) (n int, err error) { - select { - case <-wf.closed: - return 0, errWriteFlusherClosed - default: - } - - n, err = wf.w.Write(b) - wf.Flush() // every write is a flush. - return n, err -} - -// Flush the stream immediately. -func (wf *WriteFlusher) Flush() { - select { - case <-wf.closed: - return - default: - } - - wf.flushedOnce.Do(func() { - close(wf.flushed) - }) - wf.flusher.Flush() -} - -// Flushed returns the state of flushed. -// If it's flushed, return true, or else it return false. -func (wf *WriteFlusher) Flushed() bool { - // BUG(stevvooe): Remove this method. Its use is inherently racy. Seems to - // be used to detect whether or a response code has been issued or not. - // Another hook should be used instead. - var flushed bool - select { - case <-wf.flushed: - flushed = true - default: - } - return flushed -} - -// Close closes the write flusher, disallowing any further writes to the -// target. After the flusher is closed, all calls to write or flush will -// result in an error. -func (wf *WriteFlusher) Close() error { - wf.closeLock.Lock() - defer wf.closeLock.Unlock() - - select { - case <-wf.closed: - return errWriteFlusherClosed - default: - close(wf.closed) - } - return nil -} - -// NewWriteFlusher returns a new WriteFlusher. -func NewWriteFlusher(w io.Writer) *WriteFlusher { - var fl flusher - if f, ok := w.(flusher); ok { - fl = f - } else { - fl = &NopFlusher{} - } - return &WriteFlusher{w: w, flusher: fl, closed: make(chan struct{}), flushed: make(chan struct{})} -} diff --git a/vendor/github.com/docker/docker/pkg/ioutils/writers.go b/vendor/github.com/docker/docker/pkg/ioutils/writers.go deleted file mode 100644 index ccc7f9c..0000000 --- a/vendor/github.com/docker/docker/pkg/ioutils/writers.go +++ /dev/null @@ -1,66 +0,0 @@ -package ioutils - -import "io" - -// NopWriter represents a type which write operation is nop. -type NopWriter struct{} - -func (*NopWriter) Write(buf []byte) (int, error) { - return len(buf), nil -} - -type nopWriteCloser struct { - io.Writer -} - -func (w *nopWriteCloser) Close() error { return nil } - -// NopWriteCloser returns a nopWriteCloser. -func NopWriteCloser(w io.Writer) io.WriteCloser { - return &nopWriteCloser{w} -} - -// NopFlusher represents a type which flush operation is nop. -type NopFlusher struct{} - -// Flush is a nop operation. -func (f *NopFlusher) Flush() {} - -type writeCloserWrapper struct { - io.Writer - closer func() error -} - -func (r *writeCloserWrapper) Close() error { - return r.closer() -} - -// NewWriteCloserWrapper returns a new io.WriteCloser. -func NewWriteCloserWrapper(r io.Writer, closer func() error) io.WriteCloser { - return &writeCloserWrapper{ - Writer: r, - closer: closer, - } -} - -// WriteCounter wraps a concrete io.Writer and hold a count of the number -// of bytes written to the writer during a "session". -// This can be convenient when write return is masked -// (e.g., json.Encoder.Encode()) -type WriteCounter struct { - Count int64 - Writer io.Writer -} - -// NewWriteCounter returns a new WriteCounter. -func NewWriteCounter(w io.Writer) *WriteCounter { - return &WriteCounter{ - Writer: w, - } -} - -func (wc *WriteCounter) Write(p []byte) (count int, err error) { - count, err = wc.Writer.Write(p) - wc.Count += int64(count) - return -} diff --git a/vendor/github.com/docker/docker/pkg/longpath/longpath.go b/vendor/github.com/docker/docker/pkg/longpath/longpath.go deleted file mode 100644 index 9b15bff..0000000 --- a/vendor/github.com/docker/docker/pkg/longpath/longpath.go +++ /dev/null @@ -1,26 +0,0 @@ -// longpath introduces some constants and helper functions for handling long paths -// in Windows, which are expected to be prepended with `\\?\` and followed by either -// a drive letter, a UNC server\share, or a volume identifier. - -package longpath - -import ( - "strings" -) - -// Prefix is the longpath prefix for Windows file paths. -const Prefix = `\\?\` - -// AddPrefix will add the Windows long path prefix to the path provided if -// it does not already have it. -func AddPrefix(path string) string { - if !strings.HasPrefix(path, Prefix) { - if strings.HasPrefix(path, `\\`) { - // This is a UNC path, so we need to add 'UNC' to the path as well. - path = Prefix + `UNC` + path[1:] - } else { - path = Prefix + path - } - } - return path -} diff --git a/vendor/github.com/docker/docker/pkg/random/random.go b/vendor/github.com/docker/docker/pkg/random/random.go deleted file mode 100644 index 70de4d1..0000000 --- a/vendor/github.com/docker/docker/pkg/random/random.go +++ /dev/null @@ -1,71 +0,0 @@ -package random - -import ( - cryptorand "crypto/rand" - "io" - "math" - "math/big" - "math/rand" - "sync" - "time" -) - -// Rand is a global *rand.Rand instance, which initialized with NewSource() source. -var Rand = rand.New(NewSource()) - -// Reader is a global, shared instance of a pseudorandom bytes generator. -// It doesn't consume entropy. -var Reader io.Reader = &reader{rnd: Rand} - -// copypaste from standard math/rand -type lockedSource struct { - lk sync.Mutex - src rand.Source -} - -func (r *lockedSource) Int63() (n int64) { - r.lk.Lock() - n = r.src.Int63() - r.lk.Unlock() - return -} - -func (r *lockedSource) Seed(seed int64) { - r.lk.Lock() - r.src.Seed(seed) - r.lk.Unlock() -} - -// NewSource returns math/rand.Source safe for concurrent use and initialized -// with current unix-nano timestamp -func NewSource() rand.Source { - var seed int64 - if cryptoseed, err := cryptorand.Int(cryptorand.Reader, big.NewInt(math.MaxInt64)); err != nil { - // This should not happen, but worst-case fallback to time-based seed. - seed = time.Now().UnixNano() - } else { - seed = cryptoseed.Int64() - } - return &lockedSource{ - src: rand.NewSource(seed), - } -} - -type reader struct { - rnd *rand.Rand -} - -func (r *reader) Read(b []byte) (int, error) { - i := 0 - for { - val := r.rnd.Int63() - for val > 0 { - b[i] = byte(val) - i++ - if i == len(b) { - return i, nil - } - val >>= 8 - } - } -} diff --git a/vendor/github.com/docker/docker/pkg/stdcopy/stdcopy.go b/vendor/github.com/docker/docker/pkg/stdcopy/stdcopy.go deleted file mode 100644 index be20765..0000000 --- a/vendor/github.com/docker/docker/pkg/stdcopy/stdcopy.go +++ /dev/null @@ -1,174 +0,0 @@ -package stdcopy - -import ( - "bytes" - "encoding/binary" - "errors" - "fmt" - "io" - "sync" -) - -// StdType is the type of standard stream -// a writer can multiplex to. -type StdType byte - -const ( - // Stdin represents standard input stream type. - Stdin StdType = iota - // Stdout represents standard output stream type. - Stdout - // Stderr represents standard error steam type. - Stderr - - stdWriterPrefixLen = 8 - stdWriterFdIndex = 0 - stdWriterSizeIndex = 4 - - startingBufLen = 32*1024 + stdWriterPrefixLen + 1 -) - -var bufPool = &sync.Pool{New: func() interface{} { return bytes.NewBuffer(nil) }} - -// stdWriter is wrapper of io.Writer with extra customized info. -type stdWriter struct { - io.Writer - prefix byte -} - -// Write sends the buffer to the underneath writer. -// It inserts the prefix header before the buffer, -// so stdcopy.StdCopy knows where to multiplex the output. -// It makes stdWriter to implement io.Writer. -func (w *stdWriter) Write(p []byte) (n int, err error) { - if w == nil || w.Writer == nil { - return 0, errors.New("Writer not instantiated") - } - if p == nil { - return 0, nil - } - - header := [stdWriterPrefixLen]byte{stdWriterFdIndex: w.prefix} - binary.BigEndian.PutUint32(header[stdWriterSizeIndex:], uint32(len(p))) - buf := bufPool.Get().(*bytes.Buffer) - buf.Write(header[:]) - buf.Write(p) - - n, err = w.Writer.Write(buf.Bytes()) - n -= stdWriterPrefixLen - if n < 0 { - n = 0 - } - - buf.Reset() - bufPool.Put(buf) - return -} - -// NewStdWriter instantiates a new Writer. -// Everything written to it will be encapsulated using a custom format, -// and written to the underlying `w` stream. -// This allows multiple write streams (e.g. stdout and stderr) to be muxed into a single connection. -// `t` indicates the id of the stream to encapsulate. -// It can be stdcopy.Stdin, stdcopy.Stdout, stdcopy.Stderr. -func NewStdWriter(w io.Writer, t StdType) io.Writer { - return &stdWriter{ - Writer: w, - prefix: byte(t), - } -} - -// StdCopy is a modified version of io.Copy. -// -// StdCopy will demultiplex `src`, assuming that it contains two streams, -// previously multiplexed together using a StdWriter instance. -// As it reads from `src`, StdCopy will write to `dstout` and `dsterr`. -// -// StdCopy will read until it hits EOF on `src`. It will then return a nil error. -// In other words: if `err` is non nil, it indicates a real underlying error. -// -// `written` will hold the total number of bytes written to `dstout` and `dsterr`. -func StdCopy(dstout, dsterr io.Writer, src io.Reader) (written int64, err error) { - var ( - buf = make([]byte, startingBufLen) - bufLen = len(buf) - nr, nw int - er, ew error - out io.Writer - frameSize int - ) - - for { - // Make sure we have at least a full header - for nr < stdWriterPrefixLen { - var nr2 int - nr2, er = src.Read(buf[nr:]) - nr += nr2 - if er == io.EOF { - if nr < stdWriterPrefixLen { - return written, nil - } - break - } - if er != nil { - return 0, er - } - } - - // Check the first byte to know where to write - switch StdType(buf[stdWriterFdIndex]) { - case Stdin: - fallthrough - case Stdout: - // Write on stdout - out = dstout - case Stderr: - // Write on stderr - out = dsterr - default: - return 0, fmt.Errorf("Unrecognized input header: %d", buf[stdWriterFdIndex]) - } - - // Retrieve the size of the frame - frameSize = int(binary.BigEndian.Uint32(buf[stdWriterSizeIndex : stdWriterSizeIndex+4])) - - // Check if the buffer is big enough to read the frame. - // Extend it if necessary. - if frameSize+stdWriterPrefixLen > bufLen { - buf = append(buf, make([]byte, frameSize+stdWriterPrefixLen-bufLen+1)...) - bufLen = len(buf) - } - - // While the amount of bytes read is less than the size of the frame + header, we keep reading - for nr < frameSize+stdWriterPrefixLen { - var nr2 int - nr2, er = src.Read(buf[nr:]) - nr += nr2 - if er == io.EOF { - if nr < frameSize+stdWriterPrefixLen { - return written, nil - } - break - } - if er != nil { - return 0, er - } - } - - // Write the retrieved frame (without header) - nw, ew = out.Write(buf[stdWriterPrefixLen : frameSize+stdWriterPrefixLen]) - if ew != nil { - return 0, ew - } - // If the frame has not been fully written: error - if nw != frameSize { - return 0, io.ErrShortWrite - } - written += int64(nw) - - // Move the rest of the buffer to the beginning - copy(buf, buf[frameSize+stdWriterPrefixLen:]) - // Move the index - nr -= frameSize + stdWriterPrefixLen - } -} diff --git a/vendor/github.com/docker/docker/pkg/stringid/stringid.go b/vendor/github.com/docker/docker/pkg/stringid/stringid.go deleted file mode 100644 index 82f8559..0000000 --- a/vendor/github.com/docker/docker/pkg/stringid/stringid.go +++ /dev/null @@ -1,81 +0,0 @@ -// Package stringid provides helper functions for dealing with string identifiers -package stringid - -import ( - "crypto/rand" - "encoding/hex" - "fmt" - "io" - "regexp" - "strconv" - "strings" - - "github.com/docker/docker/pkg/random" -) - -const shortLen = 12 - -var ( - validShortID = regexp.MustCompile("^[a-f0-9]{12}$") - validHex = regexp.MustCompile(`^[a-f0-9]{64}$`) -) - -// IsShortID determines if an arbitrary string *looks like* a short ID. -func IsShortID(id string) bool { - return validShortID.MatchString(id) -} - -// TruncateID returns a shorthand version of a string identifier for convenience. -// A collision with other shorthands is very unlikely, but possible. -// In case of a collision a lookup with TruncIndex.Get() will fail, and the caller -// will need to use a longer prefix, or the full-length Id. -func TruncateID(id string) string { - if i := strings.IndexRune(id, ':'); i >= 0 { - id = id[i+1:] - } - if len(id) > shortLen { - id = id[:shortLen] - } - return id -} - -func generateID(crypto bool) string { - b := make([]byte, 32) - r := random.Reader - if crypto { - r = rand.Reader - } - for { - if _, err := io.ReadFull(r, b); err != nil { - panic(err) // This shouldn't happen - } - id := hex.EncodeToString(b) - // if we try to parse the truncated for as an int and we don't have - // an error then the value is all numeric and causes issues when - // used as a hostname. ref #3869 - if _, err := strconv.ParseInt(TruncateID(id), 10, 64); err == nil { - continue - } - return id - } -} - -// GenerateRandomID returns a unique id. -func GenerateRandomID() string { - return generateID(true) -} - -// GenerateNonCryptoID generates unique id without using cryptographically -// secure sources of random. -// It helps you to save entropy. -func GenerateNonCryptoID() string { - return generateID(false) -} - -// ValidateID checks whether an ID string is a valid image ID. -func ValidateID(id string) error { - if ok := validHex.MatchString(id); !ok { - return fmt.Errorf("image ID %q is invalid", id) - } - return nil -} diff --git a/vendor/github.com/docker/docker/pkg/symlink/LICENSE.APACHE b/vendor/github.com/docker/docker/pkg/symlink/LICENSE.APACHE deleted file mode 100644 index 34c4ea7..0000000 --- a/vendor/github.com/docker/docker/pkg/symlink/LICENSE.APACHE +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2014-2016 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/docker/docker/pkg/symlink/LICENSE.BSD b/vendor/github.com/docker/docker/pkg/symlink/LICENSE.BSD deleted file mode 100644 index 9b4f4a2..0000000 --- a/vendor/github.com/docker/docker/pkg/symlink/LICENSE.BSD +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2014-2016 The Docker & Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone.go b/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone.go deleted file mode 100644 index e4dec3a..0000000 --- a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone.go +++ /dev/null @@ -1,11 +0,0 @@ -// +build go1.8 - -package tlsconfig - -import "crypto/tls" - -// Clone returns a clone of tls.Config. This function is provided for -// compatibility for go1.7 that doesn't include this method in stdlib. -func Clone(c *tls.Config) *tls.Config { - return c.Clone() -} diff --git a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go16.go b/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go16.go deleted file mode 100644 index 0b81665..0000000 --- a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go16.go +++ /dev/null @@ -1,31 +0,0 @@ -// +build go1.6,!go1.7 - -package tlsconfig - -import "crypto/tls" - -// Clone returns a clone of tls.Config. This function is provided for -// compatibility for go1.6 that doesn't include this method in stdlib. -func Clone(c *tls.Config) *tls.Config { - return &tls.Config{ - Rand: c.Rand, - Time: c.Time, - Certificates: c.Certificates, - NameToCertificate: c.NameToCertificate, - GetCertificate: c.GetCertificate, - RootCAs: c.RootCAs, - NextProtos: c.NextProtos, - ServerName: c.ServerName, - ClientAuth: c.ClientAuth, - ClientCAs: c.ClientCAs, - InsecureSkipVerify: c.InsecureSkipVerify, - CipherSuites: c.CipherSuites, - PreferServerCipherSuites: c.PreferServerCipherSuites, - SessionTicketsDisabled: c.SessionTicketsDisabled, - SessionTicketKey: c.SessionTicketKey, - ClientSessionCache: c.ClientSessionCache, - MinVersion: c.MinVersion, - MaxVersion: c.MaxVersion, - CurvePreferences: c.CurvePreferences, - } -} diff --git a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go17.go b/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go17.go deleted file mode 100644 index 0d5b448..0000000 --- a/vendor/github.com/docker/docker/pkg/tlsconfig/tlsconfig_clone_go17.go +++ /dev/null @@ -1,33 +0,0 @@ -// +build go1.7,!go1.8 - -package tlsconfig - -import "crypto/tls" - -// Clone returns a clone of tls.Config. This function is provided for -// compatibility for go1.7 that doesn't include this method in stdlib. -func Clone(c *tls.Config) *tls.Config { - return &tls.Config{ - Rand: c.Rand, - Time: c.Time, - Certificates: c.Certificates, - NameToCertificate: c.NameToCertificate, - GetCertificate: c.GetCertificate, - RootCAs: c.RootCAs, - NextProtos: c.NextProtos, - ServerName: c.ServerName, - ClientAuth: c.ClientAuth, - ClientCAs: c.ClientCAs, - InsecureSkipVerify: c.InsecureSkipVerify, - CipherSuites: c.CipherSuites, - PreferServerCipherSuites: c.PreferServerCipherSuites, - SessionTicketsDisabled: c.SessionTicketsDisabled, - SessionTicketKey: c.SessionTicketKey, - ClientSessionCache: c.ClientSessionCache, - MinVersion: c.MinVersion, - MaxVersion: c.MaxVersion, - CurvePreferences: c.CurvePreferences, - DynamicRecordSizingDisabled: c.DynamicRecordSizingDisabled, - Renegotiation: c.Renegotiation, - } -} diff --git a/vendor/github.com/docker/docker/project/CONTRIBUTORS.md b/vendor/github.com/docker/docker/project/CONTRIBUTORS.md deleted file mode 120000 index 44fcc63..0000000 --- a/vendor/github.com/docker/docker/project/CONTRIBUTORS.md +++ /dev/null @@ -1 +0,0 @@ -../CONTRIBUTING.md \ No newline at end of file diff --git a/vendor/github.com/docker/docker/reference/reference.go b/vendor/github.com/docker/docker/reference/reference.go deleted file mode 100644 index 620ee09..0000000 --- a/vendor/github.com/docker/docker/reference/reference.go +++ /dev/null @@ -1,216 +0,0 @@ -package reference - -import ( - "errors" - "fmt" - "strings" - - distreference "github.com/docker/distribution/reference" - "github.com/docker/docker/pkg/stringid" - "github.com/opencontainers/go-digest" -) - -const ( - // DefaultTag defines the default tag used when performing images related actions and no tag or digest is specified - DefaultTag = "latest" - // DefaultHostname is the default built-in hostname - DefaultHostname = "docker.io" - // LegacyDefaultHostname is automatically converted to DefaultHostname - LegacyDefaultHostname = "index.docker.io" - // DefaultRepoPrefix is the prefix used for default repositories in default host - DefaultRepoPrefix = "library/" -) - -// Named is an object with a full name -type Named interface { - // Name returns normalized repository name, like "ubuntu". - Name() string - // String returns full reference, like "ubuntu@sha256:abcdef..." - String() string - // FullName returns full repository name with hostname, like "docker.io/library/ubuntu" - FullName() string - // Hostname returns hostname for the reference, like "docker.io" - Hostname() string - // RemoteName returns the repository component of the full name, like "library/ubuntu" - RemoteName() string -} - -// NamedTagged is an object including a name and tag. -type NamedTagged interface { - Named - Tag() string -} - -// Canonical reference is an object with a fully unique -// name including a name with hostname and digest -type Canonical interface { - Named - Digest() digest.Digest -} - -// ParseNamed parses s and returns a syntactically valid reference implementing -// the Named interface. The reference must have a name, otherwise an error is -// returned. -// If an error was encountered it is returned, along with a nil Reference. -func ParseNamed(s string) (Named, error) { - named, err := distreference.ParseNamed(s) - if err != nil { - return nil, fmt.Errorf("Error parsing reference: %q is not a valid repository/tag: %s", s, err) - } - r, err := WithName(named.Name()) - if err != nil { - return nil, err - } - if canonical, isCanonical := named.(distreference.Canonical); isCanonical { - return WithDigest(r, canonical.Digest()) - } - if tagged, isTagged := named.(distreference.NamedTagged); isTagged { - return WithTag(r, tagged.Tag()) - } - return r, nil -} - -// TrimNamed removes any tag or digest from the named reference -func TrimNamed(ref Named) Named { - return &namedRef{distreference.TrimNamed(ref)} -} - -// WithName returns a named object representing the given string. If the input -// is invalid ErrReferenceInvalidFormat will be returned. -func WithName(name string) (Named, error) { - name, err := normalize(name) - if err != nil { - return nil, err - } - if err := validateName(name); err != nil { - return nil, err - } - r, err := distreference.WithName(name) - if err != nil { - return nil, err - } - return &namedRef{r}, nil -} - -// WithTag combines the name from "name" and the tag from "tag" to form a -// reference incorporating both the name and the tag. -func WithTag(name Named, tag string) (NamedTagged, error) { - r, err := distreference.WithTag(name, tag) - if err != nil { - return nil, err - } - return &taggedRef{namedRef{r}}, nil -} - -// WithDigest combines the name from "name" and the digest from "digest" to form -// a reference incorporating both the name and the digest. -func WithDigest(name Named, digest digest.Digest) (Canonical, error) { - r, err := distreference.WithDigest(name, digest) - if err != nil { - return nil, err - } - return &canonicalRef{namedRef{r}}, nil -} - -type namedRef struct { - distreference.Named -} -type taggedRef struct { - namedRef -} -type canonicalRef struct { - namedRef -} - -func (r *namedRef) FullName() string { - hostname, remoteName := splitHostname(r.Name()) - return hostname + "/" + remoteName -} -func (r *namedRef) Hostname() string { - hostname, _ := splitHostname(r.Name()) - return hostname -} -func (r *namedRef) RemoteName() string { - _, remoteName := splitHostname(r.Name()) - return remoteName -} -func (r *taggedRef) Tag() string { - return r.namedRef.Named.(distreference.NamedTagged).Tag() -} -func (r *canonicalRef) Digest() digest.Digest { - return r.namedRef.Named.(distreference.Canonical).Digest() -} - -// WithDefaultTag adds a default tag to a reference if it only has a repo name. -func WithDefaultTag(ref Named) Named { - if IsNameOnly(ref) { - ref, _ = WithTag(ref, DefaultTag) - } - return ref -} - -// IsNameOnly returns true if reference only contains a repo name. -func IsNameOnly(ref Named) bool { - if _, ok := ref.(NamedTagged); ok { - return false - } - if _, ok := ref.(Canonical); ok { - return false - } - return true -} - -// ParseIDOrReference parses string for an image ID or a reference. ID can be -// without a default prefix. -func ParseIDOrReference(idOrRef string) (digest.Digest, Named, error) { - if err := stringid.ValidateID(idOrRef); err == nil { - idOrRef = "sha256:" + idOrRef - } - if dgst, err := digest.Parse(idOrRef); err == nil { - return dgst, nil, nil - } - ref, err := ParseNamed(idOrRef) - return "", ref, err -} - -// splitHostname splits a repository name to hostname and remotename string. -// If no valid hostname is found, the default hostname is used. Repository name -// needs to be already validated before. -func splitHostname(name string) (hostname, remoteName string) { - i := strings.IndexRune(name, '/') - if i == -1 || (!strings.ContainsAny(name[:i], ".:") && name[:i] != "localhost") { - hostname, remoteName = DefaultHostname, name - } else { - hostname, remoteName = name[:i], name[i+1:] - } - if hostname == LegacyDefaultHostname { - hostname = DefaultHostname - } - if hostname == DefaultHostname && !strings.ContainsRune(remoteName, '/') { - remoteName = DefaultRepoPrefix + remoteName - } - return -} - -// normalize returns a repository name in its normalized form, meaning it -// will not contain default hostname nor library/ prefix for official images. -func normalize(name string) (string, error) { - host, remoteName := splitHostname(name) - if strings.ToLower(remoteName) != remoteName { - return "", errors.New("invalid reference format: repository name must be lowercase") - } - if host == DefaultHostname { - if strings.HasPrefix(remoteName, DefaultRepoPrefix) { - return strings.TrimPrefix(remoteName, DefaultRepoPrefix), nil - } - return remoteName, nil - } - return name, nil -} - -func validateName(name string) error { - if err := stringid.ValidateID(name); err == nil { - return fmt.Errorf("Invalid repository name (%s), cannot specify 64-byte hexadecimal strings", name) - } - return nil -} diff --git a/vendor/github.com/docker/docker/reference/store.go b/vendor/github.com/docker/docker/reference/store.go deleted file mode 100644 index 35ae336..0000000 --- a/vendor/github.com/docker/docker/reference/store.go +++ /dev/null @@ -1,286 +0,0 @@ -package reference - -import ( - "encoding/json" - "errors" - "fmt" - "os" - "path/filepath" - "sort" - "sync" - - "github.com/docker/docker/pkg/ioutils" - "github.com/opencontainers/go-digest" -) - -var ( - // ErrDoesNotExist is returned if a reference is not found in the - // store. - ErrDoesNotExist = errors.New("reference does not exist") -) - -// An Association is a tuple associating a reference with an image ID. -type Association struct { - Ref Named - ID digest.Digest -} - -// Store provides the set of methods which can operate on a tag store. -type Store interface { - References(id digest.Digest) []Named - ReferencesByName(ref Named) []Association - AddTag(ref Named, id digest.Digest, force bool) error - AddDigest(ref Canonical, id digest.Digest, force bool) error - Delete(ref Named) (bool, error) - Get(ref Named) (digest.Digest, error) -} - -type store struct { - mu sync.RWMutex - // jsonPath is the path to the file where the serialized tag data is - // stored. - jsonPath string - // Repositories is a map of repositories, indexed by name. - Repositories map[string]repository - // referencesByIDCache is a cache of references indexed by ID, to speed - // up References. - referencesByIDCache map[digest.Digest]map[string]Named -} - -// Repository maps tags to digests. The key is a stringified Reference, -// including the repository name. -type repository map[string]digest.Digest - -type lexicalRefs []Named - -func (a lexicalRefs) Len() int { return len(a) } -func (a lexicalRefs) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func (a lexicalRefs) Less(i, j int) bool { return a[i].String() < a[j].String() } - -type lexicalAssociations []Association - -func (a lexicalAssociations) Len() int { return len(a) } -func (a lexicalAssociations) Swap(i, j int) { a[i], a[j] = a[j], a[i] } -func (a lexicalAssociations) Less(i, j int) bool { return a[i].Ref.String() < a[j].Ref.String() } - -// NewReferenceStore creates a new reference store, tied to a file path where -// the set of references are serialized in JSON format. -func NewReferenceStore(jsonPath string) (Store, error) { - abspath, err := filepath.Abs(jsonPath) - if err != nil { - return nil, err - } - - store := &store{ - jsonPath: abspath, - Repositories: make(map[string]repository), - referencesByIDCache: make(map[digest.Digest]map[string]Named), - } - // Load the json file if it exists, otherwise create it. - if err := store.reload(); os.IsNotExist(err) { - if err := store.save(); err != nil { - return nil, err - } - } else if err != nil { - return nil, err - } - return store, nil -} - -// AddTag adds a tag reference to the store. If force is set to true, existing -// references can be overwritten. This only works for tags, not digests. -func (store *store) AddTag(ref Named, id digest.Digest, force bool) error { - if _, isCanonical := ref.(Canonical); isCanonical { - return errors.New("refusing to create a tag with a digest reference") - } - return store.addReference(WithDefaultTag(ref), id, force) -} - -// AddDigest adds a digest reference to the store. -func (store *store) AddDigest(ref Canonical, id digest.Digest, force bool) error { - return store.addReference(ref, id, force) -} - -func (store *store) addReference(ref Named, id digest.Digest, force bool) error { - if ref.Name() == string(digest.Canonical) { - return errors.New("refusing to create an ambiguous tag using digest algorithm as name") - } - - store.mu.Lock() - defer store.mu.Unlock() - - repository, exists := store.Repositories[ref.Name()] - if !exists || repository == nil { - repository = make(map[string]digest.Digest) - store.Repositories[ref.Name()] = repository - } - - refStr := ref.String() - oldID, exists := repository[refStr] - - if exists { - // force only works for tags - if digested, isDigest := ref.(Canonical); isDigest { - return fmt.Errorf("Cannot overwrite digest %s", digested.Digest().String()) - } - - if !force { - return fmt.Errorf("Conflict: Tag %s is already set to image %s, if you want to replace it, please use -f option", ref.String(), oldID.String()) - } - - if store.referencesByIDCache[oldID] != nil { - delete(store.referencesByIDCache[oldID], refStr) - if len(store.referencesByIDCache[oldID]) == 0 { - delete(store.referencesByIDCache, oldID) - } - } - } - - repository[refStr] = id - if store.referencesByIDCache[id] == nil { - store.referencesByIDCache[id] = make(map[string]Named) - } - store.referencesByIDCache[id][refStr] = ref - - return store.save() -} - -// Delete deletes a reference from the store. It returns true if a deletion -// happened, or false otherwise. -func (store *store) Delete(ref Named) (bool, error) { - ref = WithDefaultTag(ref) - - store.mu.Lock() - defer store.mu.Unlock() - - repoName := ref.Name() - - repository, exists := store.Repositories[repoName] - if !exists { - return false, ErrDoesNotExist - } - - refStr := ref.String() - if id, exists := repository[refStr]; exists { - delete(repository, refStr) - if len(repository) == 0 { - delete(store.Repositories, repoName) - } - if store.referencesByIDCache[id] != nil { - delete(store.referencesByIDCache[id], refStr) - if len(store.referencesByIDCache[id]) == 0 { - delete(store.referencesByIDCache, id) - } - } - return true, store.save() - } - - return false, ErrDoesNotExist -} - -// Get retrieves an item from the store by reference -func (store *store) Get(ref Named) (digest.Digest, error) { - ref = WithDefaultTag(ref) - - store.mu.RLock() - defer store.mu.RUnlock() - - repository, exists := store.Repositories[ref.Name()] - if !exists || repository == nil { - return "", ErrDoesNotExist - } - - id, exists := repository[ref.String()] - if !exists { - return "", ErrDoesNotExist - } - - return id, nil -} - -// References returns a slice of references to the given ID. The slice -// will be nil if there are no references to this ID. -func (store *store) References(id digest.Digest) []Named { - store.mu.RLock() - defer store.mu.RUnlock() - - // Convert the internal map to an array for two reasons: - // 1) We must not return a mutable - // 2) It would be ugly to expose the extraneous map keys to callers. - - var references []Named - for _, ref := range store.referencesByIDCache[id] { - references = append(references, ref) - } - - sort.Sort(lexicalRefs(references)) - - return references -} - -// ReferencesByName returns the references for a given repository name. -// If there are no references known for this repository name, -// ReferencesByName returns nil. -func (store *store) ReferencesByName(ref Named) []Association { - store.mu.RLock() - defer store.mu.RUnlock() - - repository, exists := store.Repositories[ref.Name()] - if !exists { - return nil - } - - var associations []Association - for refStr, refID := range repository { - ref, err := ParseNamed(refStr) - if err != nil { - // Should never happen - return nil - } - associations = append(associations, - Association{ - Ref: ref, - ID: refID, - }) - } - - sort.Sort(lexicalAssociations(associations)) - - return associations -} - -func (store *store) save() error { - // Store the json - jsonData, err := json.Marshal(store) - if err != nil { - return err - } - return ioutils.AtomicWriteFile(store.jsonPath, jsonData, 0600) -} - -func (store *store) reload() error { - f, err := os.Open(store.jsonPath) - if err != nil { - return err - } - defer f.Close() - if err := json.NewDecoder(f).Decode(&store); err != nil { - return err - } - - for _, repository := range store.Repositories { - for refStr, refID := range repository { - ref, err := ParseNamed(refStr) - if err != nil { - // Should never happen - continue - } - if store.referencesByIDCache[refID] == nil { - store.referencesByIDCache[refID] = make(map[string]Named) - } - store.referencesByIDCache[refID][refStr] = ref - } - } - - return nil -} diff --git a/vendor/github.com/docker/go-connections/LICENSE b/vendor/github.com/docker/go-connections/LICENSE deleted file mode 100644 index b55b37b..0000000 --- a/vendor/github.com/docker/go-connections/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2015 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/docker/go-connections/nat/nat.go b/vendor/github.com/docker/go-connections/nat/nat.go deleted file mode 100644 index 4d5f5ae..0000000 --- a/vendor/github.com/docker/go-connections/nat/nat.go +++ /dev/null @@ -1,242 +0,0 @@ -// Package nat is a convenience package for manipulation of strings describing network ports. -package nat - -import ( - "fmt" - "net" - "strconv" - "strings" -) - -const ( - // portSpecTemplate is the expected format for port specifications - portSpecTemplate = "ip:hostPort:containerPort" -) - -// PortBinding represents a binding between a Host IP address and a Host Port -type PortBinding struct { - // HostIP is the host IP Address - HostIP string `json:"HostIp"` - // HostPort is the host port number - HostPort string -} - -// PortMap is a collection of PortBinding indexed by Port -type PortMap map[Port][]PortBinding - -// PortSet is a collection of structs indexed by Port -type PortSet map[Port]struct{} - -// Port is a string containing port number and protocol in the format "80/tcp" -type Port string - -// NewPort creates a new instance of a Port given a protocol and port number or port range -func NewPort(proto, port string) (Port, error) { - // Check for parsing issues on "port" now so we can avoid having - // to check it later on. - - portStartInt, portEndInt, err := ParsePortRangeToInt(port) - if err != nil { - return "", err - } - - if portStartInt == portEndInt { - return Port(fmt.Sprintf("%d/%s", portStartInt, proto)), nil - } - return Port(fmt.Sprintf("%d-%d/%s", portStartInt, portEndInt, proto)), nil -} - -// ParsePort parses the port number string and returns an int -func ParsePort(rawPort string) (int, error) { - if len(rawPort) == 0 { - return 0, nil - } - port, err := strconv.ParseUint(rawPort, 10, 16) - if err != nil { - return 0, err - } - return int(port), nil -} - -// ParsePortRangeToInt parses the port range string and returns start/end ints -func ParsePortRangeToInt(rawPort string) (int, int, error) { - if len(rawPort) == 0 { - return 0, 0, nil - } - start, end, err := ParsePortRange(rawPort) - if err != nil { - return 0, 0, err - } - return int(start), int(end), nil -} - -// Proto returns the protocol of a Port -func (p Port) Proto() string { - proto, _ := SplitProtoPort(string(p)) - return proto -} - -// Port returns the port number of a Port -func (p Port) Port() string { - _, port := SplitProtoPort(string(p)) - return port -} - -// Int returns the port number of a Port as an int -func (p Port) Int() int { - portStr := p.Port() - // We don't need to check for an error because we're going to - // assume that any error would have been found, and reported, in NewPort() - port, _ := ParsePort(portStr) - return port -} - -// Range returns the start/end port numbers of a Port range as ints -func (p Port) Range() (int, int, error) { - return ParsePortRangeToInt(p.Port()) -} - -// SplitProtoPort splits a port in the format of proto/port -func SplitProtoPort(rawPort string) (string, string) { - parts := strings.Split(rawPort, "/") - l := len(parts) - if len(rawPort) == 0 || l == 0 || len(parts[0]) == 0 { - return "", "" - } - if l == 1 { - return "tcp", rawPort - } - if len(parts[1]) == 0 { - return "tcp", parts[0] - } - return parts[1], parts[0] -} - -func validateProto(proto string) bool { - for _, availableProto := range []string{"tcp", "udp"} { - if availableProto == proto { - return true - } - } - return false -} - -// ParsePortSpecs receives port specs in the format of ip:public:private/proto and parses -// these in to the internal types -func ParsePortSpecs(ports []string) (map[Port]struct{}, map[Port][]PortBinding, error) { - var ( - exposedPorts = make(map[Port]struct{}, len(ports)) - bindings = make(map[Port][]PortBinding) - ) - for _, rawPort := range ports { - portMappings, err := ParsePortSpec(rawPort) - if err != nil { - return nil, nil, err - } - - for _, portMapping := range portMappings { - port := portMapping.Port - if _, exists := exposedPorts[port]; !exists { - exposedPorts[port] = struct{}{} - } - bslice, exists := bindings[port] - if !exists { - bslice = []PortBinding{} - } - bindings[port] = append(bslice, portMapping.Binding) - } - } - return exposedPorts, bindings, nil -} - -// PortMapping is a data object mapping a Port to a PortBinding -type PortMapping struct { - Port Port - Binding PortBinding -} - -func splitParts(rawport string) (string, string, string) { - parts := strings.Split(rawport, ":") - n := len(parts) - containerport := parts[n-1] - - switch n { - case 1: - return "", "", containerport - case 2: - return "", parts[0], containerport - case 3: - return parts[0], parts[1], containerport - default: - return strings.Join(parts[:n-2], ":"), parts[n-2], containerport - } -} - -// ParsePortSpec parses a port specification string into a slice of PortMappings -func ParsePortSpec(rawPort string) ([]PortMapping, error) { - var proto string - rawIP, hostPort, containerPort := splitParts(rawPort) - proto, containerPort = SplitProtoPort(containerPort) - - // Strip [] from IPV6 addresses - ip, _, err := net.SplitHostPort(rawIP + ":") - if err != nil { - return nil, fmt.Errorf("Invalid ip address %v: %s", rawIP, err) - } - if ip != "" && net.ParseIP(ip) == nil { - return nil, fmt.Errorf("Invalid ip address: %s", ip) - } - if containerPort == "" { - return nil, fmt.Errorf("No port specified: %s", rawPort) - } - - startPort, endPort, err := ParsePortRange(containerPort) - if err != nil { - return nil, fmt.Errorf("Invalid containerPort: %s", containerPort) - } - - var startHostPort, endHostPort uint64 = 0, 0 - if len(hostPort) > 0 { - startHostPort, endHostPort, err = ParsePortRange(hostPort) - if err != nil { - return nil, fmt.Errorf("Invalid hostPort: %s", hostPort) - } - } - - if hostPort != "" && (endPort-startPort) != (endHostPort-startHostPort) { - // Allow host port range iff containerPort is not a range. - // In this case, use the host port range as the dynamic - // host port range to allocate into. - if endPort != startPort { - return nil, fmt.Errorf("Invalid ranges specified for container and host Ports: %s and %s", containerPort, hostPort) - } - } - - if !validateProto(strings.ToLower(proto)) { - return nil, fmt.Errorf("Invalid proto: %s", proto) - } - - ports := []PortMapping{} - for i := uint64(0); i <= (endPort - startPort); i++ { - containerPort = strconv.FormatUint(startPort+i, 10) - if len(hostPort) > 0 { - hostPort = strconv.FormatUint(startHostPort+i, 10) - } - // Set hostPort to a range only if there is a single container port - // and a dynamic host port. - if startPort == endPort && startHostPort != endHostPort { - hostPort = fmt.Sprintf("%s-%s", hostPort, strconv.FormatUint(endHostPort, 10)) - } - port, err := NewPort(strings.ToLower(proto), containerPort) - if err != nil { - return nil, err - } - - binding := PortBinding{ - HostIP: ip, - HostPort: hostPort, - } - ports = append(ports, PortMapping{Port: port, Binding: binding}) - } - return ports, nil -} diff --git a/vendor/github.com/docker/go-connections/nat/parse.go b/vendor/github.com/docker/go-connections/nat/parse.go deleted file mode 100644 index 892adf8..0000000 --- a/vendor/github.com/docker/go-connections/nat/parse.go +++ /dev/null @@ -1,57 +0,0 @@ -package nat - -import ( - "fmt" - "strconv" - "strings" -) - -// PartParser parses and validates the specified string (data) using the specified template -// e.g. ip:public:private -> 192.168.0.1:80:8000 -// DEPRECATED: do not use, this function may be removed in a future version -func PartParser(template, data string) (map[string]string, error) { - // ip:public:private - var ( - templateParts = strings.Split(template, ":") - parts = strings.Split(data, ":") - out = make(map[string]string, len(templateParts)) - ) - if len(parts) != len(templateParts) { - return nil, fmt.Errorf("Invalid format to parse. %s should match template %s", data, template) - } - - for i, t := range templateParts { - value := "" - if len(parts) > i { - value = parts[i] - } - out[t] = value - } - return out, nil -} - -// ParsePortRange parses and validates the specified string as a port-range (8000-9000) -func ParsePortRange(ports string) (uint64, uint64, error) { - if ports == "" { - return 0, 0, fmt.Errorf("Empty string specified for ports.") - } - if !strings.Contains(ports, "-") { - start, err := strconv.ParseUint(ports, 10, 16) - end := start - return start, end, err - } - - parts := strings.Split(ports, "-") - start, err := strconv.ParseUint(parts[0], 10, 16) - if err != nil { - return 0, 0, err - } - end, err := strconv.ParseUint(parts[1], 10, 16) - if err != nil { - return 0, 0, err - } - if end < start { - return 0, 0, fmt.Errorf("Invalid range specified for the Port: %s", ports) - } - return start, end, nil -} diff --git a/vendor/github.com/docker/go-connections/nat/sort.go b/vendor/github.com/docker/go-connections/nat/sort.go deleted file mode 100644 index ce95017..0000000 --- a/vendor/github.com/docker/go-connections/nat/sort.go +++ /dev/null @@ -1,96 +0,0 @@ -package nat - -import ( - "sort" - "strings" -) - -type portSorter struct { - ports []Port - by func(i, j Port) bool -} - -func (s *portSorter) Len() int { - return len(s.ports) -} - -func (s *portSorter) Swap(i, j int) { - s.ports[i], s.ports[j] = s.ports[j], s.ports[i] -} - -func (s *portSorter) Less(i, j int) bool { - ip := s.ports[i] - jp := s.ports[j] - - return s.by(ip, jp) -} - -// Sort sorts a list of ports using the provided predicate -// This function should compare `i` and `j`, returning true if `i` is -// considered to be less than `j` -func Sort(ports []Port, predicate func(i, j Port) bool) { - s := &portSorter{ports, predicate} - sort.Sort(s) -} - -type portMapEntry struct { - port Port - binding PortBinding -} - -type portMapSorter []portMapEntry - -func (s portMapSorter) Len() int { return len(s) } -func (s portMapSorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -// sort the port so that the order is: -// 1. port with larger specified bindings -// 2. larger port -// 3. port with tcp protocol -func (s portMapSorter) Less(i, j int) bool { - pi, pj := s[i].port, s[j].port - hpi, hpj := toInt(s[i].binding.HostPort), toInt(s[j].binding.HostPort) - return hpi > hpj || pi.Int() > pj.Int() || (pi.Int() == pj.Int() && strings.ToLower(pi.Proto()) == "tcp") -} - -// SortPortMap sorts the list of ports and their respected mapping. The ports -// will explicit HostPort will be placed first. -func SortPortMap(ports []Port, bindings PortMap) { - s := portMapSorter{} - for _, p := range ports { - if binding, ok := bindings[p]; ok { - for _, b := range binding { - s = append(s, portMapEntry{port: p, binding: b}) - } - bindings[p] = []PortBinding{} - } else { - s = append(s, portMapEntry{port: p}) - } - } - - sort.Sort(s) - var ( - i int - pm = make(map[Port]struct{}) - ) - // reorder ports - for _, entry := range s { - if _, ok := pm[entry.port]; !ok { - ports[i] = entry.port - pm[entry.port] = struct{}{} - i++ - } - // reorder bindings for this port - if _, ok := bindings[entry.port]; ok { - bindings[entry.port] = append(bindings[entry.port], entry.binding) - } - } -} - -func toInt(s string) uint64 { - i, _, err := ParsePortRange(s) - if err != nil { - i = 0 - } - return i -} diff --git a/vendor/github.com/docker/go-connections/sockets/inmem_socket.go b/vendor/github.com/docker/go-connections/sockets/inmem_socket.go deleted file mode 100644 index 99846ff..0000000 --- a/vendor/github.com/docker/go-connections/sockets/inmem_socket.go +++ /dev/null @@ -1,81 +0,0 @@ -package sockets - -import ( - "errors" - "net" - "sync" -) - -var errClosed = errors.New("use of closed network connection") - -// InmemSocket implements net.Listener using in-memory only connections. -type InmemSocket struct { - chConn chan net.Conn - chClose chan struct{} - addr string - mu sync.Mutex -} - -// dummyAddr is used to satisfy net.Addr for the in-mem socket -// it is just stored as a string and returns the string for all calls -type dummyAddr string - -// NewInmemSocket creates an in-memory only net.Listener -// The addr argument can be any string, but is used to satisfy the `Addr()` part -// of the net.Listener interface -func NewInmemSocket(addr string, bufSize int) *InmemSocket { - return &InmemSocket{ - chConn: make(chan net.Conn, bufSize), - chClose: make(chan struct{}), - addr: addr, - } -} - -// Addr returns the socket's addr string to satisfy net.Listener -func (s *InmemSocket) Addr() net.Addr { - return dummyAddr(s.addr) -} - -// Accept implements the Accept method in the Listener interface; it waits for the next call and returns a generic Conn. -func (s *InmemSocket) Accept() (net.Conn, error) { - select { - case conn := <-s.chConn: - return conn, nil - case <-s.chClose: - return nil, errClosed - } -} - -// Close closes the listener. It will be unavailable for use once closed. -func (s *InmemSocket) Close() error { - s.mu.Lock() - defer s.mu.Unlock() - select { - case <-s.chClose: - default: - close(s.chClose) - } - return nil -} - -// Dial is used to establish a connection with the in-mem server -func (s *InmemSocket) Dial(network, addr string) (net.Conn, error) { - srvConn, clientConn := net.Pipe() - select { - case s.chConn <- srvConn: - case <-s.chClose: - return nil, errClosed - } - - return clientConn, nil -} - -// Network returns the addr string, satisfies net.Addr -func (a dummyAddr) Network() string { - return string(a) -} - -// String returns the string form -func (a dummyAddr) String() string { - return string(a) -} diff --git a/vendor/github.com/docker/go-connections/sockets/proxy.go b/vendor/github.com/docker/go-connections/sockets/proxy.go deleted file mode 100644 index 98e9a1d..0000000 --- a/vendor/github.com/docker/go-connections/sockets/proxy.go +++ /dev/null @@ -1,51 +0,0 @@ -package sockets - -import ( - "net" - "net/url" - "os" - "strings" - - "golang.org/x/net/proxy" -) - -// GetProxyEnv allows access to the uppercase and the lowercase forms of -// proxy-related variables. See the Go specification for details on these -// variables. https://golang.org/pkg/net/http/ -func GetProxyEnv(key string) string { - proxyValue := os.Getenv(strings.ToUpper(key)) - if proxyValue == "" { - return os.Getenv(strings.ToLower(key)) - } - return proxyValue -} - -// DialerFromEnvironment takes in a "direct" *net.Dialer and returns a -// proxy.Dialer which will route the connections through the proxy using the -// given dialer. -func DialerFromEnvironment(direct *net.Dialer) (proxy.Dialer, error) { - allProxy := GetProxyEnv("all_proxy") - if len(allProxy) == 0 { - return direct, nil - } - - proxyURL, err := url.Parse(allProxy) - if err != nil { - return direct, err - } - - proxyFromURL, err := proxy.FromURL(proxyURL, direct) - if err != nil { - return direct, err - } - - noProxy := GetProxyEnv("no_proxy") - if len(noProxy) == 0 { - return proxyFromURL, nil - } - - perHost := proxy.NewPerHost(proxyFromURL, direct) - perHost.AddFromString(noProxy) - - return perHost, nil -} diff --git a/vendor/github.com/docker/go-connections/sockets/sockets.go b/vendor/github.com/docker/go-connections/sockets/sockets.go deleted file mode 100644 index a1d7beb..0000000 --- a/vendor/github.com/docker/go-connections/sockets/sockets.go +++ /dev/null @@ -1,38 +0,0 @@ -// Package sockets provides helper functions to create and configure Unix or TCP sockets. -package sockets - -import ( - "errors" - "net" - "net/http" - "time" -) - -// Why 32? See https://github.com/docker/docker/pull/8035. -const defaultTimeout = 32 * time.Second - -// ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system. -var ErrProtocolNotAvailable = errors.New("protocol not available") - -// ConfigureTransport configures the specified Transport according to the -// specified proto and addr. -// If the proto is unix (using a unix socket to communicate) or npipe the -// compression is disabled. -func ConfigureTransport(tr *http.Transport, proto, addr string) error { - switch proto { - case "unix": - return configureUnixTransport(tr, proto, addr) - case "npipe": - return configureNpipeTransport(tr, proto, addr) - default: - tr.Proxy = http.ProxyFromEnvironment - dialer, err := DialerFromEnvironment(&net.Dialer{ - Timeout: defaultTimeout, - }) - if err != nil { - return err - } - tr.Dial = dialer.Dial - } - return nil -} diff --git a/vendor/github.com/docker/go-connections/sockets/sockets_unix.go b/vendor/github.com/docker/go-connections/sockets/sockets_unix.go deleted file mode 100644 index 386cf0d..0000000 --- a/vendor/github.com/docker/go-connections/sockets/sockets_unix.go +++ /dev/null @@ -1,35 +0,0 @@ -// +build !windows - -package sockets - -import ( - "fmt" - "net" - "net/http" - "syscall" - "time" -) - -const maxUnixSocketPathSize = len(syscall.RawSockaddrUnix{}.Path) - -func configureUnixTransport(tr *http.Transport, proto, addr string) error { - if len(addr) > maxUnixSocketPathSize { - return fmt.Errorf("Unix socket path %q is too long", addr) - } - // No need for compression in local communications. - tr.DisableCompression = true - tr.Dial = func(_, _ string) (net.Conn, error) { - return net.DialTimeout(proto, addr, defaultTimeout) - } - return nil -} - -func configureNpipeTransport(tr *http.Transport, proto, addr string) error { - return ErrProtocolNotAvailable -} - -// DialPipe connects to a Windows named pipe. -// This is not supported on other OSes. -func DialPipe(_ string, _ time.Duration) (net.Conn, error) { - return nil, syscall.EAFNOSUPPORT -} diff --git a/vendor/github.com/docker/go-connections/sockets/sockets_windows.go b/vendor/github.com/docker/go-connections/sockets/sockets_windows.go deleted file mode 100644 index 5c21644..0000000 --- a/vendor/github.com/docker/go-connections/sockets/sockets_windows.go +++ /dev/null @@ -1,27 +0,0 @@ -package sockets - -import ( - "net" - "net/http" - "time" - - "github.com/Microsoft/go-winio" -) - -func configureUnixTransport(tr *http.Transport, proto, addr string) error { - return ErrProtocolNotAvailable -} - -func configureNpipeTransport(tr *http.Transport, proto, addr string) error { - // No need for compression in local communications. - tr.DisableCompression = true - tr.Dial = func(_, _ string) (net.Conn, error) { - return DialPipe(addr, defaultTimeout) - } - return nil -} - -// DialPipe connects to a Windows named pipe. -func DialPipe(addr string, timeout time.Duration) (net.Conn, error) { - return winio.DialPipe(addr, &timeout) -} diff --git a/vendor/github.com/docker/go-connections/sockets/tcp_socket.go b/vendor/github.com/docker/go-connections/sockets/tcp_socket.go deleted file mode 100644 index 53cbb6c..0000000 --- a/vendor/github.com/docker/go-connections/sockets/tcp_socket.go +++ /dev/null @@ -1,22 +0,0 @@ -// Package sockets provides helper functions to create and configure Unix or TCP sockets. -package sockets - -import ( - "crypto/tls" - "net" -) - -// NewTCPSocket creates a TCP socket listener with the specified address and -// the specified tls configuration. If TLSConfig is set, will encapsulate the -// TCP listener inside a TLS one. -func NewTCPSocket(addr string, tlsConfig *tls.Config) (net.Listener, error) { - l, err := net.Listen("tcp", addr) - if err != nil { - return nil, err - } - if tlsConfig != nil { - tlsConfig.NextProtos = []string{"http/1.1"} - l = tls.NewListener(l, tlsConfig) - } - return l, nil -} diff --git a/vendor/github.com/docker/go-connections/sockets/unix_socket.go b/vendor/github.com/docker/go-connections/sockets/unix_socket.go deleted file mode 100644 index 02987df..0000000 --- a/vendor/github.com/docker/go-connections/sockets/unix_socket.go +++ /dev/null @@ -1,31 +0,0 @@ -// +build !windows - -package sockets - -import ( - "net" - "os" - "syscall" -) - -// NewUnixSocket creates a unix socket with the specified path and group. -func NewUnixSocket(path string, gid int) (net.Listener, error) { - if err := syscall.Unlink(path); err != nil && !os.IsNotExist(err) { - return nil, err - } - mask := syscall.Umask(0777) - defer syscall.Umask(mask) - - l, err := net.Listen("unix", path) - if err != nil { - return nil, err - } - if err := os.Chown(path, 0, gid); err != nil { - return nil, err - } - if err := os.Chmod(path, 0660); err != nil { - l.Close() - return nil, err - } - return l, nil -} diff --git a/vendor/github.com/docker/go-connections/tlsconfig/certpool_go17.go b/vendor/github.com/docker/go-connections/tlsconfig/certpool_go17.go deleted file mode 100644 index 352d342..0000000 --- a/vendor/github.com/docker/go-connections/tlsconfig/certpool_go17.go +++ /dev/null @@ -1,21 +0,0 @@ -// +build go1.7 - -package tlsconfig - -import ( - "crypto/x509" - "runtime" - - "github.com/Sirupsen/logrus" -) - -// SystemCertPool returns a copy of the system cert pool, -// returns an error if failed to load or empty pool on windows. -func SystemCertPool() (*x509.CertPool, error) { - certpool, err := x509.SystemCertPool() - if err != nil && runtime.GOOS == "windows" { - logrus.Warnf("Unable to use system certificate pool: %v", err) - return x509.NewCertPool(), nil - } - return certpool, err -} diff --git a/vendor/github.com/docker/go-connections/tlsconfig/certpool_other.go b/vendor/github.com/docker/go-connections/tlsconfig/certpool_other.go deleted file mode 100644 index 262c95e..0000000 --- a/vendor/github.com/docker/go-connections/tlsconfig/certpool_other.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build !go1.7 - -package tlsconfig - -import ( - "crypto/x509" - - "github.com/Sirupsen/logrus" -) - -// SystemCertPool returns an new empty cert pool, -// accessing system cert pool is supported in go 1.7 -func SystemCertPool() (*x509.CertPool, error) { - logrus.Warn("Unable to use system certificate pool: requires building with go 1.7 or later") - return x509.NewCertPool(), nil -} diff --git a/vendor/github.com/docker/go-connections/tlsconfig/config.go b/vendor/github.com/docker/go-connections/tlsconfig/config.go deleted file mode 100644 index 8bbffcf..0000000 --- a/vendor/github.com/docker/go-connections/tlsconfig/config.go +++ /dev/null @@ -1,129 +0,0 @@ -// Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. -// -// As a reminder from https://golang.org/pkg/crypto/tls/#Config: -// A Config structure is used to configure a TLS client or server. After one has been passed to a TLS function it must not be modified. -// A Config may be reused; the tls package will also not modify it. -package tlsconfig - -import ( - "crypto/tls" - "crypto/x509" - "fmt" - "io/ioutil" - "os" - - "github.com/Sirupsen/logrus" -) - -// Options represents the information needed to create client and server TLS configurations. -type Options struct { - CAFile string - - // If either CertFile or KeyFile is empty, Client() will not load them - // preventing the client from authenticating to the server. - // However, Server() requires them and will error out if they are empty. - CertFile string - KeyFile string - - // client-only option - InsecureSkipVerify bool - // server-only option - ClientAuth tls.ClientAuthType -} - -// Extra (server-side) accepted CBC cipher suites - will phase out in the future -var acceptedCBCCiphers = []uint16{ - tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, - tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, - tls.TLS_RSA_WITH_AES_256_CBC_SHA, - tls.TLS_RSA_WITH_AES_128_CBC_SHA, -} - -// DefaultServerAcceptedCiphers should be uses by code which already has a crypto/tls -// options struct but wants to use a commonly accepted set of TLS cipher suites, with -// known weak algorithms removed. -var DefaultServerAcceptedCiphers = append(clientCipherSuites, acceptedCBCCiphers...) - -// ServerDefault returns a secure-enough TLS configuration for the server TLS configuration. -func ServerDefault() *tls.Config { - return &tls.Config{ - // Avoid fallback to SSL protocols < TLS1.0 - MinVersion: tls.VersionTLS10, - PreferServerCipherSuites: true, - CipherSuites: DefaultServerAcceptedCiphers, - } -} - -// ClientDefault returns a secure-enough TLS configuration for the client TLS configuration. -func ClientDefault() *tls.Config { - return &tls.Config{ - // Prefer TLS1.2 as the client minimum - MinVersion: tls.VersionTLS12, - CipherSuites: clientCipherSuites, - } -} - -// certPool returns an X.509 certificate pool from `caFile`, the certificate file. -func certPool(caFile string) (*x509.CertPool, error) { - // If we should verify the server, we need to load a trusted ca - certPool, err := SystemCertPool() - if err != nil { - return nil, fmt.Errorf("failed to read system certificates: %v", err) - } - pem, err := ioutil.ReadFile(caFile) - if err != nil { - return nil, fmt.Errorf("could not read CA certificate %q: %v", caFile, err) - } - if !certPool.AppendCertsFromPEM(pem) { - return nil, fmt.Errorf("failed to append certificates from PEM file: %q", caFile) - } - logrus.Debugf("Trusting %d certs", len(certPool.Subjects())) - return certPool, nil -} - -// Client returns a TLS configuration meant to be used by a client. -func Client(options Options) (*tls.Config, error) { - tlsConfig := ClientDefault() - tlsConfig.InsecureSkipVerify = options.InsecureSkipVerify - if !options.InsecureSkipVerify && options.CAFile != "" { - CAs, err := certPool(options.CAFile) - if err != nil { - return nil, err - } - tlsConfig.RootCAs = CAs - } - - if options.CertFile != "" || options.KeyFile != "" { - tlsCert, err := tls.LoadX509KeyPair(options.CertFile, options.KeyFile) - if err != nil { - return nil, fmt.Errorf("Could not load X509 key pair: %v. Make sure the key is not encrypted", err) - } - tlsConfig.Certificates = []tls.Certificate{tlsCert} - } - - return tlsConfig, nil -} - -// Server returns a TLS configuration meant to be used by a server. -func Server(options Options) (*tls.Config, error) { - tlsConfig := ServerDefault() - tlsConfig.ClientAuth = options.ClientAuth - tlsCert, err := tls.LoadX509KeyPair(options.CertFile, options.KeyFile) - if err != nil { - if os.IsNotExist(err) { - return nil, fmt.Errorf("Could not load X509 key pair (cert: %q, key: %q): %v", options.CertFile, options.KeyFile, err) - } - return nil, fmt.Errorf("Error reading X509 key pair (cert: %q, key: %q): %v. Make sure the key is not encrypted.", options.CertFile, options.KeyFile, err) - } - tlsConfig.Certificates = []tls.Certificate{tlsCert} - if options.ClientAuth >= tls.VerifyClientCertIfGiven { - CAs, err := certPool(options.CAFile) - if err != nil { - return nil, err - } - tlsConfig.ClientCAs = CAs - } - return tlsConfig, nil -} diff --git a/vendor/github.com/docker/go-connections/tlsconfig/config_client_ciphers.go b/vendor/github.com/docker/go-connections/tlsconfig/config_client_ciphers.go deleted file mode 100644 index 6b4c6a7..0000000 --- a/vendor/github.com/docker/go-connections/tlsconfig/config_client_ciphers.go +++ /dev/null @@ -1,17 +0,0 @@ -// +build go1.5 - -// Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. -// -package tlsconfig - -import ( - "crypto/tls" -) - -// Client TLS cipher suites (dropping CBC ciphers for client preferred suite set) -var clientCipherSuites = []uint16{ - tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, - tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, - tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, - tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, -} diff --git a/vendor/github.com/docker/go-connections/tlsconfig/config_legacy_client_ciphers.go b/vendor/github.com/docker/go-connections/tlsconfig/config_legacy_client_ciphers.go deleted file mode 100644 index ee22df4..0000000 --- a/vendor/github.com/docker/go-connections/tlsconfig/config_legacy_client_ciphers.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build !go1.5 - -// Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. -// -package tlsconfig - -import ( - "crypto/tls" -) - -// Client TLS cipher suites (dropping CBC ciphers for client preferred suite set) -var clientCipherSuites = []uint16{ - tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, - tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, -} diff --git a/vendor/github.com/docker/go-units/LICENSE b/vendor/github.com/docker/go-units/LICENSE deleted file mode 100644 index b55b37b..0000000 --- a/vendor/github.com/docker/go-units/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2015 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/docker/go-units/duration.go b/vendor/github.com/docker/go-units/duration.go deleted file mode 100644 index d4a6454..0000000 --- a/vendor/github.com/docker/go-units/duration.go +++ /dev/null @@ -1,35 +0,0 @@ -// Package units provides helper function to parse and print size and time units -// in human-readable format. -package units - -import ( - "fmt" - "time" -) - -// HumanDuration returns a human-readable approximation of a duration -// (eg. "About a minute", "4 hours ago", etc.). -func HumanDuration(d time.Duration) string { - if seconds := int(d.Seconds()); seconds < 1 { - return "Less than a second" - } else if seconds == 1 { - return "1 second" - } else if seconds < 60 { - return fmt.Sprintf("%d seconds", seconds) - } else if minutes := int(d.Minutes()); minutes == 1 { - return "About a minute" - } else if minutes < 60 { - return fmt.Sprintf("%d minutes", minutes) - } else if hours := int(d.Hours()); hours == 1 { - return "About an hour" - } else if hours < 48 { - return fmt.Sprintf("%d hours", hours) - } else if hours < 24*7*2 { - return fmt.Sprintf("%d days", hours/24) - } else if hours < 24*30*3 { - return fmt.Sprintf("%d weeks", hours/24/7) - } else if hours < 24*365*2 { - return fmt.Sprintf("%d months", hours/24/30) - } - return fmt.Sprintf("%d years", int(d.Hours())/24/365) -} diff --git a/vendor/github.com/docker/go-units/size.go b/vendor/github.com/docker/go-units/size.go deleted file mode 100644 index b6485ed..0000000 --- a/vendor/github.com/docker/go-units/size.go +++ /dev/null @@ -1,108 +0,0 @@ -package units - -import ( - "fmt" - "regexp" - "strconv" - "strings" -) - -// See: http://en.wikipedia.org/wiki/Binary_prefix -const ( - // Decimal - - KB = 1000 - MB = 1000 * KB - GB = 1000 * MB - TB = 1000 * GB - PB = 1000 * TB - - // Binary - - KiB = 1024 - MiB = 1024 * KiB - GiB = 1024 * MiB - TiB = 1024 * GiB - PiB = 1024 * TiB -) - -type unitMap map[string]int64 - -var ( - decimalMap = unitMap{"k": KB, "m": MB, "g": GB, "t": TB, "p": PB} - binaryMap = unitMap{"k": KiB, "m": MiB, "g": GiB, "t": TiB, "p": PiB} - sizeRegex = regexp.MustCompile(`^(\d+(\.\d+)*) ?([kKmMgGtTpP])?[bB]?$`) -) - -var decimapAbbrs = []string{"B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"} -var binaryAbbrs = []string{"B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"} - -func getSizeAndUnit(size float64, base float64, _map []string) (float64, string) { - i := 0 - unitsLimit := len(_map) - 1 - for size >= base && i < unitsLimit { - size = size / base - i++ - } - return size, _map[i] -} - -// CustomSize returns a human-readable approximation of a size -// using custom format. -func CustomSize(format string, size float64, base float64, _map []string) string { - size, unit := getSizeAndUnit(size, base, _map) - return fmt.Sprintf(format, size, unit) -} - -// HumanSizeWithPrecision allows the size to be in any precision, -// instead of 4 digit precision used in units.HumanSize. -func HumanSizeWithPrecision(size float64, precision int) string { - size, unit := getSizeAndUnit(size, 1000.0, decimapAbbrs) - return fmt.Sprintf("%.*g %s", precision, size, unit) -} - -// HumanSize returns a human-readable approximation of a size -// capped at 4 valid numbers (eg. "2.746 MB", "796 KB"). -func HumanSize(size float64) string { - return HumanSizeWithPrecision(size, 4) -} - -// BytesSize returns a human-readable size in bytes, kibibytes, -// mebibytes, gibibytes, or tebibytes (eg. "44kiB", "17MiB"). -func BytesSize(size float64) string { - return CustomSize("%.4g %s", size, 1024.0, binaryAbbrs) -} - -// FromHumanSize returns an integer from a human-readable specification of a -// size using SI standard (eg. "44kB", "17MB"). -func FromHumanSize(size string) (int64, error) { - return parseSize(size, decimalMap) -} - -// RAMInBytes parses a human-readable string representing an amount of RAM -// in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and -// returns the number of bytes, or -1 if the string is unparseable. -// Units are case-insensitive, and the 'b' suffix is optional. -func RAMInBytes(size string) (int64, error) { - return parseSize(size, binaryMap) -} - -// Parses the human-readable size string into the amount it represents. -func parseSize(sizeStr string, uMap unitMap) (int64, error) { - matches := sizeRegex.FindStringSubmatch(sizeStr) - if len(matches) != 4 { - return -1, fmt.Errorf("invalid size: '%s'", sizeStr) - } - - size, err := strconv.ParseFloat(matches[1], 64) - if err != nil { - return -1, err - } - - unitPrefix := strings.ToLower(matches[3]) - if mul, ok := uMap[unitPrefix]; ok { - size *= float64(mul) - } - - return int64(size), nil -} diff --git a/vendor/github.com/docker/go-units/ulimit.go b/vendor/github.com/docker/go-units/ulimit.go deleted file mode 100644 index 5ac7fd8..0000000 --- a/vendor/github.com/docker/go-units/ulimit.go +++ /dev/null @@ -1,118 +0,0 @@ -package units - -import ( - "fmt" - "strconv" - "strings" -) - -// Ulimit is a human friendly version of Rlimit. -type Ulimit struct { - Name string - Hard int64 - Soft int64 -} - -// Rlimit specifies the resource limits, such as max open files. -type Rlimit struct { - Type int `json:"type,omitempty"` - Hard uint64 `json:"hard,omitempty"` - Soft uint64 `json:"soft,omitempty"` -} - -const ( - // magic numbers for making the syscall - // some of these are defined in the syscall package, but not all. - // Also since Windows client doesn't get access to the syscall package, need to - // define these here - rlimitAs = 9 - rlimitCore = 4 - rlimitCPU = 0 - rlimitData = 2 - rlimitFsize = 1 - rlimitLocks = 10 - rlimitMemlock = 8 - rlimitMsgqueue = 12 - rlimitNice = 13 - rlimitNofile = 7 - rlimitNproc = 6 - rlimitRss = 5 - rlimitRtprio = 14 - rlimitRttime = 15 - rlimitSigpending = 11 - rlimitStack = 3 -) - -var ulimitNameMapping = map[string]int{ - //"as": rlimitAs, // Disabled since this doesn't seem usable with the way Docker inits a container. - "core": rlimitCore, - "cpu": rlimitCPU, - "data": rlimitData, - "fsize": rlimitFsize, - "locks": rlimitLocks, - "memlock": rlimitMemlock, - "msgqueue": rlimitMsgqueue, - "nice": rlimitNice, - "nofile": rlimitNofile, - "nproc": rlimitNproc, - "rss": rlimitRss, - "rtprio": rlimitRtprio, - "rttime": rlimitRttime, - "sigpending": rlimitSigpending, - "stack": rlimitStack, -} - -// ParseUlimit parses and returns a Ulimit from the specified string. -func ParseUlimit(val string) (*Ulimit, error) { - parts := strings.SplitN(val, "=", 2) - if len(parts) != 2 { - return nil, fmt.Errorf("invalid ulimit argument: %s", val) - } - - if _, exists := ulimitNameMapping[parts[0]]; !exists { - return nil, fmt.Errorf("invalid ulimit type: %s", parts[0]) - } - - var ( - soft int64 - hard = &soft // default to soft in case no hard was set - temp int64 - err error - ) - switch limitVals := strings.Split(parts[1], ":"); len(limitVals) { - case 2: - temp, err = strconv.ParseInt(limitVals[1], 10, 64) - if err != nil { - return nil, err - } - hard = &temp - fallthrough - case 1: - soft, err = strconv.ParseInt(limitVals[0], 10, 64) - if err != nil { - return nil, err - } - default: - return nil, fmt.Errorf("too many limit value arguments - %s, can only have up to two, `soft[:hard]`", parts[1]) - } - - if soft > *hard { - return nil, fmt.Errorf("ulimit soft limit must be less than or equal to hard limit: %d > %d", soft, *hard) - } - - return &Ulimit{Name: parts[0], Soft: soft, Hard: *hard}, nil -} - -// GetRlimit returns the RLimit corresponding to Ulimit. -func (u *Ulimit) GetRlimit() (*Rlimit, error) { - t, exists := ulimitNameMapping[u.Name] - if !exists { - return nil, fmt.Errorf("invalid ulimit name %s", u.Name) - } - - return &Rlimit{Type: t, Soft: uint64(u.Soft), Hard: uint64(u.Hard)}, nil -} - -func (u *Ulimit) String() string { - return fmt.Sprintf("%s=%d:%d", u.Name, u.Soft, u.Hard) -} diff --git a/vendor/github.com/docker/libcompose/LICENSE b/vendor/github.com/docker/libcompose/LICENSE deleted file mode 100644 index 9023c74..0000000 --- a/vendor/github.com/docker/libcompose/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2015 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/docker/libcompose/yaml/build.go b/vendor/github.com/docker/libcompose/yaml/build.go deleted file mode 100644 index 95d6dd5..0000000 --- a/vendor/github.com/docker/libcompose/yaml/build.go +++ /dev/null @@ -1,116 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" - "strconv" - "strings" -) - -// Build represents a build element in compose file. -// It can take multiple form in the compose file, hence this special type -type Build struct { - Context string - Dockerfile string - Args map[string]string -} - -// MarshalYAML implements the Marshaller interface. -func (b Build) MarshalYAML() (interface{}, error) { - m := map[string]interface{}{} - if b.Context != "" { - m["context"] = b.Context - } - if b.Dockerfile != "" { - m["dockerfile"] = b.Dockerfile - } - if len(b.Args) > 0 { - m["args"] = b.Args - } - return m, nil -} - -// UnmarshalYAML implements the Unmarshaller interface. -func (b *Build) UnmarshalYAML(unmarshal func(interface{}) error) error { - var stringType string - if err := unmarshal(&stringType); err == nil { - b.Context = stringType - return nil - } - - var mapType map[interface{}]interface{} - if err := unmarshal(&mapType); err == nil { - for mapKey, mapValue := range mapType { - switch mapKey { - case "context": - b.Context = mapValue.(string) - case "dockerfile": - b.Dockerfile = mapValue.(string) - case "args": - args, err := handleBuildArgs(mapValue) - if err != nil { - return err - } - b.Args = args - default: - // Ignore unknown keys - continue - } - } - return nil - } - - return errors.New("Failed to unmarshal Build") -} - -func handleBuildArgs(value interface{}) (map[string]string, error) { - var args map[string]string - switch v := value.(type) { - case map[interface{}]interface{}: - return handleBuildArgMap(v) - case []interface{}: - return handleBuildArgSlice(v) - default: - return args, fmt.Errorf("Failed to unmarshal Build args: %#v", value) - } -} - -func handleBuildArgSlice(s []interface{}) (map[string]string, error) { - var args = map[string]string{} - for _, arg := range s { - // check if a value is provided - switch v := strings.SplitN(arg.(string), "=", 2); len(v) { - case 1: - // if we have not specified a a value for this build arg, we assign it an ascii null value and query the environment - // later when we build the service - args[v[0]] = "\x00" - case 2: - // if we do have a value provided, we use it - args[v[0]] = v[1] - } - } - return args, nil -} - -func handleBuildArgMap(m map[interface{}]interface{}) (map[string]string, error) { - args := map[string]string{} - for mapKey, mapValue := range m { - var argValue string - name, ok := mapKey.(string) - if !ok { - return args, fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - switch a := mapValue.(type) { - case string: - argValue = a - case int: - argValue = strconv.Itoa(a) - case int64: - argValue = strconv.Itoa(int(a)) - default: - return args, fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", mapValue, mapValue) - } - args[name] = argValue - } - return args, nil -} diff --git a/vendor/github.com/docker/libcompose/yaml/command.go b/vendor/github.com/docker/libcompose/yaml/command.go deleted file mode 100644 index ace69b5..0000000 --- a/vendor/github.com/docker/libcompose/yaml/command.go +++ /dev/null @@ -1,42 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" - - "github.com/docker/docker/api/types/strslice" - "github.com/flynn/go-shlex" -) - -// Command represents a docker command, can be a string or an array of strings. -type Command strslice.StrSlice - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *Command) UnmarshalYAML(unmarshal func(interface{}) error) error { - var stringType string - if err := unmarshal(&stringType); err == nil { - parts, err := shlex.Split(stringType) - if err != nil { - return err - } - *s = parts - return nil - } - - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - parts, err := toStrings(sliceType) - if err != nil { - return err - } - *s = parts - return nil - } - - var interfaceType interface{} - if err := unmarshal(&interfaceType); err == nil { - fmt.Println(interfaceType) - } - - return errors.New("Failed to unmarshal Command") -} diff --git a/vendor/github.com/docker/libcompose/yaml/external.go b/vendor/github.com/docker/libcompose/yaml/external.go deleted file mode 100644 index be7efca..0000000 --- a/vendor/github.com/docker/libcompose/yaml/external.go +++ /dev/null @@ -1,37 +0,0 @@ -package yaml - -// External represents an external network entry in compose file. -// It can be a boolean (true|false) or have a name -type External struct { - External bool - Name string -} - -// MarshalYAML implements the Marshaller interface. -func (n External) MarshalYAML() (interface{}, error) { - if n.Name == "" { - return n.External, nil - } - return map[string]interface{}{ - "name": n.Name, - }, nil -} - -// UnmarshalYAML implements the Unmarshaller interface. -func (n *External) UnmarshalYAML(unmarshal func(interface{}) error) error { - if err := unmarshal(&n.External); err == nil { - return nil - } - var dummyExternal struct { - Name string - } - - err := unmarshal(&dummyExternal) - if err != nil { - return err - } - n.Name = dummyExternal.Name - n.External = true - - return nil -} diff --git a/vendor/github.com/docker/libcompose/yaml/network.go b/vendor/github.com/docker/libcompose/yaml/network.go deleted file mode 100644 index 2776b85..0000000 --- a/vendor/github.com/docker/libcompose/yaml/network.go +++ /dev/null @@ -1,108 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" -) - -// Networks represents a list of service networks in compose file. -// It has several representation, hence this specific struct. -type Networks struct { - Networks []*Network -} - -// Network represents a service network in compose file. -type Network struct { - Name string `yaml:"-"` - RealName string `yaml:"-"` - Aliases []string `yaml:"aliases,omitempty"` - IPv4Address string `yaml:"ipv4_address,omitempty"` - IPv6Address string `yaml:"ipv6_address,omitempty"` -} - -// MarshalYAML implements the Marshaller interface. -func (n Networks) MarshalYAML() (interface{}, error) { - m := map[string]*Network{} - for _, network := range n.Networks { - m[network.Name] = network - } - return m, nil -} - -// UnmarshalYAML implements the Unmarshaller interface. -func (n *Networks) UnmarshalYAML(unmarshal func(interface{}) error) error { - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - n.Networks = []*Network{} - for _, network := range sliceType { - name, ok := network.(string) - if !ok { - return fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - n.Networks = append(n.Networks, &Network{ - Name: name, - }) - } - return nil - } - - var mapType map[interface{}]interface{} - if err := unmarshal(&mapType); err == nil { - n.Networks = []*Network{} - for mapKey, mapValue := range mapType { - name, ok := mapKey.(string) - if !ok { - return fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - network, err := handleNetwork(name, mapValue) - if err != nil { - return err - } - n.Networks = append(n.Networks, network) - } - return nil - } - - return errors.New("Failed to unmarshal Networks") -} - -func handleNetwork(name string, value interface{}) (*Network, error) { - if value == nil { - return &Network{ - Name: name, - }, nil - } - switch v := value.(type) { - case map[interface{}]interface{}: - network := &Network{ - Name: name, - } - for mapKey, mapValue := range v { - name, ok := mapKey.(string) - if !ok { - return &Network{}, fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - switch name { - case "aliases": - aliases, ok := mapValue.([]interface{}) - if !ok { - return &Network{}, fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", aliases, aliases) - } - network.Aliases = []string{} - for _, alias := range aliases { - network.Aliases = append(network.Aliases, alias.(string)) - } - case "ipv4_address": - network.IPv4Address = mapValue.(string) - case "ipv6_address": - network.IPv6Address = mapValue.(string) - default: - // Ignorer unknown keys ? - continue - } - } - return network, nil - default: - return &Network{}, fmt.Errorf("Failed to unmarshal Network: %#v", value) - } -} diff --git a/vendor/github.com/docker/libcompose/yaml/types_yaml.go b/vendor/github.com/docker/libcompose/yaml/types_yaml.go deleted file mode 100644 index d0a5c78..0000000 --- a/vendor/github.com/docker/libcompose/yaml/types_yaml.go +++ /dev/null @@ -1,256 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" - "strconv" - "strings" - - "github.com/docker/docker/api/types/strslice" - "github.com/docker/go-units" -) - -// StringorInt represents a string or an integer. -type StringorInt int64 - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *StringorInt) UnmarshalYAML(unmarshal func(interface{}) error) error { - var intType int64 - if err := unmarshal(&intType); err == nil { - *s = StringorInt(intType) - return nil - } - - var stringType string - if err := unmarshal(&stringType); err == nil { - intType, err := strconv.ParseInt(stringType, 10, 64) - - if err != nil { - return err - } - *s = StringorInt(intType) - return nil - } - - return errors.New("Failed to unmarshal StringorInt") -} - -// MemStringorInt represents a string or an integer -// the String supports notations like 10m for then Megabyte of memory -type MemStringorInt int64 - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *MemStringorInt) UnmarshalYAML(unmarshal func(interface{}) error) error { - var intType int64 - if err := unmarshal(&intType); err == nil { - *s = MemStringorInt(intType) - return nil - } - - var stringType string - if err := unmarshal(&stringType); err == nil { - intType, err := units.RAMInBytes(stringType) - - if err != nil { - return err - } - *s = MemStringorInt(intType) - return nil - } - - return errors.New("Failed to unmarshal MemStringorInt") -} - -// Stringorslice represents -// Using engine-api Strslice and augment it with YAML marshalling stuff. a string or an array of strings. -type Stringorslice strslice.StrSlice - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error { - var stringType string - if err := unmarshal(&stringType); err == nil { - *s = []string{stringType} - return nil - } - - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - parts, err := toStrings(sliceType) - if err != nil { - return err - } - *s = parts - return nil - } - - return errors.New("Failed to unmarshal Stringorslice") -} - -// SliceorMap represents a slice or a map of strings. -type SliceorMap map[string]string - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *SliceorMap) UnmarshalYAML(unmarshal func(interface{}) error) error { - - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - parts := map[string]string{} - for _, s := range sliceType { - if str, ok := s.(string); ok { - str := strings.TrimSpace(str) - keyValueSlice := strings.SplitN(str, "=", 2) - - key := keyValueSlice[0] - val := "" - if len(keyValueSlice) == 2 { - val = keyValueSlice[1] - } - parts[key] = val - } else { - return fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", s, s) - } - } - *s = parts - return nil - } - - var mapType map[interface{}]interface{} - if err := unmarshal(&mapType); err == nil { - parts := map[string]string{} - for k, v := range mapType { - if sk, ok := k.(string); ok { - if sv, ok := v.(string); ok { - parts[sk] = sv - } else { - return fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", v, v) - } - } else { - return fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", k, k) - } - } - *s = parts - return nil - } - - return errors.New("Failed to unmarshal SliceorMap") -} - -// MaporEqualSlice represents a slice of strings that gets unmarshal from a -// YAML map into 'key=value' string. -type MaporEqualSlice []string - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *MaporEqualSlice) UnmarshalYAML(unmarshal func(interface{}) error) error { - parts, err := unmarshalToStringOrSepMapParts(unmarshal, "=") - if err != nil { - return err - } - *s = parts - return nil -} - -// ToMap returns the list of string as a map splitting using = the key=value -func (s *MaporEqualSlice) ToMap() map[string]string { - return toMap(*s, "=") -} - -// MaporColonSlice represents a slice of strings that gets unmarshal from a -// YAML map into 'key:value' string. -type MaporColonSlice []string - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *MaporColonSlice) UnmarshalYAML(unmarshal func(interface{}) error) error { - parts, err := unmarshalToStringOrSepMapParts(unmarshal, ":") - if err != nil { - return err - } - *s = parts - return nil -} - -// ToMap returns the list of string as a map splitting using = the key=value -func (s *MaporColonSlice) ToMap() map[string]string { - return toMap(*s, ":") -} - -// MaporSpaceSlice represents a slice of strings that gets unmarshal from a -// YAML map into 'key value' string. -type MaporSpaceSlice []string - -// UnmarshalYAML implements the Unmarshaller interface. -func (s *MaporSpaceSlice) UnmarshalYAML(unmarshal func(interface{}) error) error { - parts, err := unmarshalToStringOrSepMapParts(unmarshal, " ") - if err != nil { - return err - } - *s = parts - return nil -} - -// ToMap returns the list of string as a map splitting using = the key=value -func (s *MaporSpaceSlice) ToMap() map[string]string { - return toMap(*s, " ") -} - -func unmarshalToStringOrSepMapParts(unmarshal func(interface{}) error, key string) ([]string, error) { - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - return toStrings(sliceType) - } - var mapType map[interface{}]interface{} - if err := unmarshal(&mapType); err == nil { - return toSepMapParts(mapType, key) - } - return nil, errors.New("Failed to unmarshal MaporSlice") -} - -func toSepMapParts(value map[interface{}]interface{}, sep string) ([]string, error) { - if len(value) == 0 { - return nil, nil - } - parts := make([]string, 0, len(value)) - for k, v := range value { - if sk, ok := k.(string); ok { - if sv, ok := v.(string); ok { - parts = append(parts, sk+sep+sv) - } else if sv, ok := v.(int); ok { - parts = append(parts, sk+sep+strconv.Itoa(sv)) - } else if sv, ok := v.(int64); ok { - parts = append(parts, sk+sep+strconv.FormatInt(sv, 10)) - } else if sv, ok := v.(float64); ok { - parts = append(parts, sk+sep+strconv.FormatFloat(sv, 'f', -1, 64)) - } else if v == nil { - parts = append(parts, sk) - } else { - return nil, fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", v, v) - } - } else { - return nil, fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", k, k) - } - } - return parts, nil -} - -func toStrings(s []interface{}) ([]string, error) { - if len(s) == 0 { - return nil, nil - } - r := make([]string, len(s)) - for k, v := range s { - if sv, ok := v.(string); ok { - r[k] = sv - } else { - return nil, fmt.Errorf("Cannot unmarshal '%v' of type %T into a string value", v, v) - } - } - return r, nil -} - -func toMap(s []string, sep string) map[string]string { - m := map[string]string{} - for _, v := range s { - values := strings.Split(v, sep) - m[values[0]] = values[1] - } - return m -} diff --git a/vendor/github.com/docker/libcompose/yaml/ulimit.go b/vendor/github.com/docker/libcompose/yaml/ulimit.go deleted file mode 100644 index c25c493..0000000 --- a/vendor/github.com/docker/libcompose/yaml/ulimit.go +++ /dev/null @@ -1,108 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" - "sort" -) - -// Ulimits represents a list of Ulimit. -// It is, however, represented in yaml as keys (and thus map in Go) -type Ulimits struct { - Elements []Ulimit -} - -// MarshalYAML implements the Marshaller interface. -func (u Ulimits) MarshalYAML() (interface{}, error) { - ulimitMap := make(map[string]Ulimit) - for _, ulimit := range u.Elements { - ulimitMap[ulimit.Name] = ulimit - } - return ulimitMap, nil -} - -// UnmarshalYAML implements the Unmarshaller interface. -func (u *Ulimits) UnmarshalYAML(unmarshal func(interface{}) error) error { - ulimits := make(map[string]Ulimit) - - var mapType map[interface{}]interface{} - if err := unmarshal(&mapType); err == nil { - for mapKey, mapValue := range mapType { - name, ok := mapKey.(string) - if !ok { - return fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - var soft, hard int64 - switch mv := mapValue.(type) { - case int: - soft = int64(mv) - hard = int64(mv) - case map[interface{}]interface{}: - if len(mv) != 2 { - return fmt.Errorf("Failed to unmarshal Ulimit: %#v", mapValue) - } - for mkey, mvalue := range mv { - switch mkey { - case "soft": - soft = int64(mvalue.(int)) - case "hard": - hard = int64(mvalue.(int)) - default: - // FIXME(vdemeester) Should we ignore or fail ? - continue - } - } - default: - return fmt.Errorf("Failed to unmarshal Ulimit: %v, %T", mapValue, mapValue) - } - ulimits[name] = Ulimit{ - Name: name, - ulimitValues: ulimitValues{ - Soft: soft, - Hard: hard, - }, - } - } - keys := make([]string, 0, len(ulimits)) - for key := range ulimits { - keys = append(keys, key) - } - sort.Strings(keys) - for _, key := range keys { - u.Elements = append(u.Elements, ulimits[key]) - } - return nil - } - - return errors.New("Failed to unmarshal Ulimit") -} - -// Ulimit represents ulimit information. -type Ulimit struct { - ulimitValues - Name string -} - -type ulimitValues struct { - Soft int64 `yaml:"soft"` - Hard int64 `yaml:"hard"` -} - -// MarshalYAML implements the Marshaller interface. -func (u Ulimit) MarshalYAML() (interface{}, error) { - if u.Soft == u.Hard { - return u.Soft, nil - } - return u.ulimitValues, nil -} - -// NewUlimit creates a Ulimit based on the specified parts. -func NewUlimit(name string, soft int64, hard int64) Ulimit { - return Ulimit{ - Name: name, - ulimitValues: ulimitValues{ - Soft: soft, - Hard: hard, - }, - } -} diff --git a/vendor/github.com/docker/libcompose/yaml/volume.go b/vendor/github.com/docker/libcompose/yaml/volume.go deleted file mode 100644 index 530aa61..0000000 --- a/vendor/github.com/docker/libcompose/yaml/volume.go +++ /dev/null @@ -1,83 +0,0 @@ -package yaml - -import ( - "errors" - "fmt" - "strings" -) - -// Volumes represents a list of service volumes in compose file. -// It has several representation, hence this specific struct. -type Volumes struct { - Volumes []*Volume -} - -// Volume represent a service volume -type Volume struct { - Source string `yaml:"-"` - Destination string `yaml:"-"` - AccessMode string `yaml:"-"` -} - -// String implements the Stringer interface. -func (v *Volume) String() string { - var paths []string - if v.Source != "" { - paths = []string{v.Source, v.Destination} - } else { - paths = []string{v.Destination} - } - if v.AccessMode != "" { - paths = append(paths, v.AccessMode) - } - return strings.Join(paths, ":") -} - -// MarshalYAML implements the Marshaller interface. -func (v Volumes) MarshalYAML() (interface{}, error) { - vs := []string{} - for _, volume := range v.Volumes { - vs = append(vs, volume.String()) - } - return vs, nil -} - -// UnmarshalYAML implements the Unmarshaller interface. -func (v *Volumes) UnmarshalYAML(unmarshal func(interface{}) error) error { - var sliceType []interface{} - if err := unmarshal(&sliceType); err == nil { - v.Volumes = []*Volume{} - for _, volume := range sliceType { - name, ok := volume.(string) - if !ok { - return fmt.Errorf("Cannot unmarshal '%v' to type %T into a string value", name, name) - } - elts := strings.SplitN(name, ":", 3) - var vol *Volume - switch { - case len(elts) == 1: - vol = &Volume{ - Destination: elts[0], - } - case len(elts) == 2: - vol = &Volume{ - Source: elts[0], - Destination: elts[1], - } - case len(elts) == 3: - vol = &Volume{ - Source: elts[0], - Destination: elts[1], - AccessMode: elts[2], - } - default: - // FIXME - return fmt.Errorf("") - } - v.Volumes = append(v.Volumes, vol) - } - return nil - } - - return errors.New("Failed to unmarshal Volumes") -} diff --git a/vendor/github.com/drone/drone-go/LICENSE b/vendor/github.com/drone/drone-go/LICENSE deleted file mode 100644 index e06d208..0000000 --- a/vendor/github.com/drone/drone-go/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/vendor/github.com/drone/drone-go/drone/client.go b/vendor/github.com/drone/drone-go/drone/client.go deleted file mode 100644 index bcc527b..0000000 --- a/vendor/github.com/drone/drone-go/drone/client.go +++ /dev/null @@ -1,541 +0,0 @@ -package drone - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "strconv" - "strings" -) - -const ( - pathSelf = "%s/api/user" - pathFeed = "%s/api/user/feed" - pathRepos = "%s/api/user/repos" - pathRepo = "%s/api/repos/%s/%s" - pathRepoMove = "%s/api/repos/%s/%s/move?to=%s" - pathChown = "%s/api/repos/%s/%s/chown" - pathRepair = "%s/api/repos/%s/%s/repair" - pathBuilds = "%s/api/repos/%s/%s/builds" - pathBuild = "%s/api/repos/%s/%s/builds/%v" - pathApprove = "%s/api/repos/%s/%s/builds/%d/approve" - pathDecline = "%s/api/repos/%s/%s/builds/%d/decline" - pathJob = "%s/api/repos/%s/%s/builds/%d/%d" - pathLog = "%s/api/repos/%s/%s/logs/%d/%d" - pathLogPurge = "%s/api/repos/%s/%s/logs/%d" - pathRepoSecrets = "%s/api/repos/%s/%s/secrets" - pathRepoSecret = "%s/api/repos/%s/%s/secrets/%s" - pathRepoRegistries = "%s/api/repos/%s/%s/registry" - pathRepoRegistry = "%s/api/repos/%s/%s/registry/%s" - pathUsers = "%s/api/users" - pathUser = "%s/api/users/%s" - pathBuildQueue = "%s/api/builds" - pathServers = "%s/api/servers" - pathServer = "%s/api/servers/%s" - pathScalerPause = "%s/api/pause" - pathScalerResume = "%s/api/resume" - pathVarz = "%s/varz" - pathVersion = "%s/version" -) - -type client struct { - client *http.Client - addr string -} - -// // Options provides a list of client options. -// type Options struct { -// token string -// proxy string -// pool *x509.CertPool -// conf *tls.Config -// skip bool -// } -// -// // Option defines client options. -// type Option func(opts *Options) -// -// // WithToken returns an option to set the token. -// func WithToken(token string) Option { -// return func(opts *Options) { -// opts.token = token -// } -// } -// -// // WithTLS returns an option to use custom tls configuration. -// func WithTLS(conf *tls.Config) Option { -// return func(opts *Options) { -// opts.conf = conf -// } -// } -// -// // WithSocks returns a client option to provide a socks5 proxy. -// func WithSocks(proxy string) Option { -// return func(opts *Options) { -// opts.proxy = proxy -// } -// } -// -// // WithSkipVerify returns a client option to skip ssl verification. -// func WithSkipVerify(skip bool) Option { -// return func(opts *Options) { -// opts.skip = skip -// } -// } -// -// // WithCertPool returns a client option to provide a custom cert pool. -// func WithCertPool(pool *x509.CertPool) Option { -// return func(opts *Options) { -// opts.pool = pool -// } -// } - -// New returns a client at the specified url. -func New(uri string) Client { - return &client{http.DefaultClient, strings.TrimSuffix(uri, "/")} -} - -// NewClient returns a client at the specified url. -func NewClient(uri string, cli *http.Client) Client { - return &client{cli, strings.TrimSuffix(uri, "/")} -} - -// SetClient sets the http.Client. -func (c *client) SetClient(client *http.Client) { - c.client = client -} - -// SetAddress sets the server address. -func (c *client) SetAddress(addr string) { - c.addr = addr -} - -// Self returns the currently authenticated user. -func (c *client) Self() (*User, error) { - out := new(User) - uri := fmt.Sprintf(pathSelf, c.addr) - err := c.get(uri, out) - return out, err -} - -// User returns a user by login. -func (c *client) User(login string) (*User, error) { - out := new(User) - uri := fmt.Sprintf(pathUser, c.addr, login) - err := c.get(uri, out) - return out, err -} - -// UserList returns a list of all registered users. -func (c *client) UserList() ([]*User, error) { - var out []*User - uri := fmt.Sprintf(pathUsers, c.addr) - err := c.get(uri, &out) - return out, err -} - -// UserPost creates a new user account. -func (c *client) UserPost(in *User) (*User, error) { - out := new(User) - uri := fmt.Sprintf(pathUsers, c.addr) - err := c.post(uri, in, out) - return out, err -} - -// UserPatch updates a user account. -func (c *client) UserPatch(in *User) (*User, error) { - out := new(User) - uri := fmt.Sprintf(pathUser, c.addr, in.Login) - err := c.patch(uri, in, out) - return out, err -} - -// UserDel deletes a user account. -func (c *client) UserDel(login string) error { - uri := fmt.Sprintf(pathUser, c.addr, login) - err := c.delete(uri) - return err -} - -// Repo returns a repository by name. -func (c *client) Repo(owner string, name string) (*Repo, error) { - out := new(Repo) - uri := fmt.Sprintf(pathRepo, c.addr, owner, name) - err := c.get(uri, out) - return out, err -} - -// RepoList returns a list of all repositories to which -// the user has explicit access in the host system. -func (c *client) RepoList() ([]*Repo, error) { - var out []*Repo - uri := fmt.Sprintf(pathRepos, c.addr) - err := c.get(uri, &out) - return out, err -} - -// RepoListOpts returns a list of all repositories to which -// the user has explicit access in the host system. -func (c *client) RepoListOpts(sync, all bool) ([]*Repo, error) { - var out []*Repo - uri := fmt.Sprintf(pathRepos+"?flush=%v&all=%v", c.addr, sync, all) - err := c.get(uri, &out) - return out, err -} - -// RepoPost activates a repository. -func (c *client) RepoPost(owner string, name string) (*Repo, error) { - out := new(Repo) - uri := fmt.Sprintf(pathRepo, c.addr, owner, name) - err := c.post(uri, nil, out) - return out, err -} - -// RepoChown updates a repository owner. -func (c *client) RepoChown(owner string, name string) (*Repo, error) { - out := new(Repo) - uri := fmt.Sprintf(pathChown, c.addr, owner, name) - err := c.post(uri, nil, out) - return out, err -} - -// RepoRepair repais the repository hooks. -func (c *client) RepoRepair(owner string, name string) error { - uri := fmt.Sprintf(pathRepair, c.addr, owner, name) - return c.post(uri, nil, nil) -} - -// RepoPatch updates a repository. -func (c *client) RepoPatch(owner, name string, in *RepoPatch) (*Repo, error) { - out := new(Repo) - uri := fmt.Sprintf(pathRepo, c.addr, owner, name) - err := c.patch(uri, in, out) - return out, err -} - -// RepoDel deletes a repository. -func (c *client) RepoDel(owner, name string) error { - uri := fmt.Sprintf(pathRepo, c.addr, owner, name) - err := c.delete(uri) - return err -} - -// RepoMove moves a repository -func (c *client) RepoMove(owner, name, newFullName string) error { - uri := fmt.Sprintf(pathRepoMove, c.addr, owner, name, newFullName) - return c.post(uri, nil, nil) -} - -// Build returns a repository build by number. -func (c *client) Build(owner, name string, num int) (*Build, error) { - out := new(Build) - uri := fmt.Sprintf(pathBuild, c.addr, owner, name, num) - err := c.get(uri, out) - return out, err -} - -// Build returns the latest repository build by branch. -func (c *client) BuildLast(owner, name, branch string) (*Build, error) { - out := new(Build) - uri := fmt.Sprintf(pathBuild, c.addr, owner, name, "latest") - if len(branch) != 0 { - uri += "?branch=" + branch - } - err := c.get(uri, out) - return out, err -} - -// BuildList returns a list of recent builds for the -// the specified repository. -func (c *client) BuildList(owner, name string) ([]*Build, error) { - var out []*Build - uri := fmt.Sprintf(pathBuilds, c.addr, owner, name) - err := c.get(uri, &out) - return out, err -} - -// BuildQueue returns a list of enqueued builds. -func (c *client) BuildQueue() ([]*Activity, error) { - var out []*Activity - uri := fmt.Sprintf(pathBuildQueue, c.addr) - err := c.get(uri, &out) - return out, err -} - -// BuildStart re-starts a stopped build. -func (c *client) BuildStart(owner, name string, num int, params map[string]string) (*Build, error) { - out := new(Build) - val := mapValues(params) - uri := fmt.Sprintf(pathBuild, c.addr, owner, name, num) - err := c.post(uri+"?"+val.Encode(), nil, out) - return out, err -} - -// BuildStop cancels the running job. -func (c *client) BuildStop(owner, name string, num, job int) error { - uri := fmt.Sprintf(pathJob, c.addr, owner, name, num, job) - err := c.delete(uri) - return err -} - -// BuildApprove approves a blocked build. -func (c *client) BuildApprove(owner, name string, num int) (*Build, error) { - out := new(Build) - uri := fmt.Sprintf(pathApprove, c.addr, owner, name, num) - err := c.post(uri, nil, out) - return out, err -} - -// BuildDecline declines a blocked build. -func (c *client) BuildDecline(owner, name string, num int) (*Build, error) { - out := new(Build) - uri := fmt.Sprintf(pathDecline, c.addr, owner, name, num) - err := c.post(uri, nil, out) - return out, err -} - -// BuildKill force kills the running build. -func (c *client) BuildKill(owner, name string, num int) error { - uri := fmt.Sprintf(pathBuild, c.addr, owner, name, num) - err := c.delete(uri) - return err -} - -// BuildLogs returns the build logs for the specified job. -func (c *client) BuildLogs(owner, name string, num, job int) (io.ReadCloser, error) { - return nil, errors.New("Method not implemented") -} - -// Deploy triggers a deployment for an existing build using the -// specified target environment. -func (c *client) Deploy(owner, name string, num int, env string, params map[string]string) (*Build, error) { - out := new(Build) - val := mapValues(params) - val.Set("event", "deployment") - val.Set("deploy_to", env) - uri := fmt.Sprintf(pathBuild, c.addr, owner, name, num) - err := c.post(uri+"?"+val.Encode(), nil, out) - return out, err -} - -// LogsPurge purges the build logs for the specified build. -func (c *client) LogsPurge(owner, name string, num int) error { - uri := fmt.Sprintf(pathLogPurge, c.addr, owner, name, num) - err := c.delete(uri) - return err -} - -// Registry returns a registry by hostname. -func (c *client) Registry(owner, name, hostname string) (*Registry, error) { - out := new(Registry) - uri := fmt.Sprintf(pathRepoRegistry, c.addr, owner, name, hostname) - err := c.get(uri, out) - return out, err -} - -// RegistryList returns a list of all repository registries. -func (c *client) RegistryList(owner string, name string) ([]*Registry, error) { - var out []*Registry - uri := fmt.Sprintf(pathRepoRegistries, c.addr, owner, name) - err := c.get(uri, &out) - return out, err -} - -// RegistryCreate creates a registry. -func (c *client) RegistryCreate(owner, name string, in *Registry) (*Registry, error) { - out := new(Registry) - uri := fmt.Sprintf(pathRepoRegistries, c.addr, owner, name) - err := c.post(uri, in, out) - return out, err -} - -// RegistryUpdate updates a registry. -func (c *client) RegistryUpdate(owner, name string, in *Registry) (*Registry, error) { - out := new(Registry) - uri := fmt.Sprintf(pathRepoRegistry, c.addr, owner, name, in.Address) - err := c.patch(uri, in, out) - return out, err -} - -// RegistryDelete deletes a registry. -func (c *client) RegistryDelete(owner, name, hostname string) error { - uri := fmt.Sprintf(pathRepoRegistry, c.addr, owner, name, hostname) - return c.delete(uri) -} - -// Secret returns a secret by name. -func (c *client) Secret(owner, name, secret string) (*Secret, error) { - out := new(Secret) - uri := fmt.Sprintf(pathRepoSecret, c.addr, owner, name, secret) - err := c.get(uri, out) - return out, err -} - -// SecretList returns a list of all repository secrets. -func (c *client) SecretList(owner string, name string) ([]*Secret, error) { - var out []*Secret - uri := fmt.Sprintf(pathRepoSecrets, c.addr, owner, name) - err := c.get(uri, &out) - return out, err -} - -// SecretCreate creates a secret. -func (c *client) SecretCreate(owner, name string, in *Secret) (*Secret, error) { - out := new(Secret) - uri := fmt.Sprintf(pathRepoSecrets, c.addr, owner, name) - err := c.post(uri, in, out) - return out, err -} - -// SecretUpdate updates a secret. -func (c *client) SecretUpdate(owner, name string, in *Secret) (*Secret, error) { - out := new(Secret) - uri := fmt.Sprintf(pathRepoSecret, c.addr, owner, name, in.Name) - err := c.patch(uri, in, out) - return out, err -} - -// SecretDelete deletes a secret. -func (c *client) SecretDelete(owner, name, secret string) error { - uri := fmt.Sprintf(pathRepoSecret, c.addr, owner, name, secret) - return c.delete(uri) -} - -// Server returns the named servers details. -func (c *client) Server(name string) (*Server, error) { - out := new(Server) - uri := fmt.Sprintf(pathServer, c.addr, name) - err := c.get(uri, &out) - return out, err -} - -// ServerList returns a list of all active build servers. -func (c *client) ServerList() ([]*Server, error) { - var out []*Server - uri := fmt.Sprintf(pathServers, c.addr) - err := c.get(uri, &out) - return out, err -} - -// ServerCreate creates a new server. -func (c *client) ServerCreate() (*Server, error) { - out := new(Server) - uri := fmt.Sprintf(pathServers, c.addr) - err := c.post(uri, nil, out) - return out, err -} - -// ServerDelete terminates a server. -func (c *client) ServerDelete(name string) error { - uri := fmt.Sprintf(pathServer, c.addr, name) - return c.delete(uri) -} - -// AutoscalePause pauses the autoscaler. -func (c *client) AutoscalePause() error { - uri := fmt.Sprintf(pathScalerPause, c.addr) - return c.post(uri, nil, nil) -} - -// AutoscaleResume resumes the autoscaler. -func (c *client) AutoscaleResume() error { - uri := fmt.Sprintf(pathScalerResume, c.addr) - return c.post(uri, nil, nil) -} - -// AutoscaleVersion resumes the autoscaler. -func (c *client) AutoscaleVersion() (*Version, error) { - out := new(Version) - uri := fmt.Sprintf(pathVersion, c.addr) - err := c.get(uri, out) - return out, err -} - -// -// http request helper functions -// - -// helper function for making an http GET request. -func (c *client) get(rawurl string, out interface{}) error { - return c.do(rawurl, "GET", nil, out) -} - -// helper function for making an http POST request. -func (c *client) post(rawurl string, in, out interface{}) error { - return c.do(rawurl, "POST", in, out) -} - -// helper function for making an http PUT request. -func (c *client) put(rawurl string, in, out interface{}) error { - return c.do(rawurl, "PUT", in, out) -} - -// helper function for making an http PATCH request. -func (c *client) patch(rawurl string, in, out interface{}) error { - return c.do(rawurl, "PATCH", in, out) -} - -// helper function for making an http DELETE request. -func (c *client) delete(rawurl string) error { - return c.do(rawurl, "DELETE", nil, nil) -} - -// helper function to make an http request -func (c *client) do(rawurl, method string, in, out interface{}) error { - body, err := c.open(rawurl, method, in, out) - if err != nil { - return err - } - defer body.Close() - if out != nil { - return json.NewDecoder(body).Decode(out) - } - return nil -} - -// helper function to open an http request -func (c *client) open(rawurl, method string, in, out interface{}) (io.ReadCloser, error) { - uri, err := url.Parse(rawurl) - if err != nil { - return nil, err - } - req, err := http.NewRequest(method, uri.String(), nil) - if err != nil { - return nil, err - } - if in != nil { - decoded, derr := json.Marshal(in) - if derr != nil { - return nil, derr - } - buf := bytes.NewBuffer(decoded) - req.Body = ioutil.NopCloser(buf) - req.ContentLength = int64(len(decoded)) - req.Header.Set("Content-Length", strconv.Itoa(len(decoded))) - req.Header.Set("Content-Type", "application/json") - } - resp, err := c.client.Do(req) - if err != nil { - return nil, err - } - if resp.StatusCode > http.StatusPartialContent { - defer resp.Body.Close() - out, _ := ioutil.ReadAll(resp.Body) - return nil, fmt.Errorf("client error %d: %s", resp.StatusCode, string(out)) - } - return resp.Body, nil -} - -// mapValues converts a map to url.Values -func mapValues(params map[string]string) url.Values { - values := url.Values{} - for key, val := range params { - values.Add(key, val) - } - return values -} diff --git a/vendor/github.com/drone/drone-go/drone/const.go b/vendor/github.com/drone/drone-go/drone/const.go deleted file mode 100644 index f61b612..0000000 --- a/vendor/github.com/drone/drone-go/drone/const.go +++ /dev/null @@ -1,21 +0,0 @@ -package drone - -// Event values. -const ( - EventPush = "push" - EventPull = "pull_request" - EventTag = "tag" - EventDeploy = "deployment" -) - -// Status values. -const ( - StatusBlocked = "blocked" - StatusSkipped = "skipped" - StatusPending = "pending" - StatusRunning = "running" - StatusSuccess = "success" - StatusFailure = "failure" - StatusKilled = "killed" - StatusError = "error" -) diff --git a/vendor/github.com/drone/drone-go/drone/interface.go b/vendor/github.com/drone/drone-go/drone/interface.go deleted file mode 100644 index 0b24d7f..0000000 --- a/vendor/github.com/drone/drone-go/drone/interface.go +++ /dev/null @@ -1,146 +0,0 @@ -package drone - -import "net/http" - -// Client is used to communicate with a Drone server. -type Client interface { - // SetClient sets the http.Client. - SetClient(*http.Client) - - // SetAddress sets the server address. - SetAddress(string) - - // Self returns the currently authenticated user. - Self() (*User, error) - - // User returns a user by login. - User(string) (*User, error) - - // UserList returns a list of all registered users. - UserList() ([]*User, error) - - // UserPost creates a new user account. - UserPost(*User) (*User, error) - - // UserPatch updates a user account. - UserPatch(*User) (*User, error) - - // UserDel deletes a user account. - UserDel(string) error - - // Repo returns a repository by name. - Repo(string, string) (*Repo, error) - - // RepoList returns a list of all repositories to which the user has explicit - // access in the host system. - RepoList() ([]*Repo, error) - - // RepoListOpts returns a list of all repositories to which the user has - // explicit access in the host system. - RepoListOpts(bool, bool) ([]*Repo, error) - - // RepoPost activates a repository. - RepoPost(string, string) (*Repo, error) - - // RepoPatch updates a repository. - RepoPatch(string, string, *RepoPatch) (*Repo, error) - - // RepoMove moves the repository - RepoMove(string, string, string) error - - // RepoChown updates a repository owner. - RepoChown(string, string) (*Repo, error) - - // RepoRepair repairs the repository hooks. - RepoRepair(string, string) error - - // RepoDel deletes a repository. - RepoDel(string, string) error - - // Build returns a repository build by number. - Build(string, string, int) (*Build, error) - - // BuildLast returns the latest repository build by branch. An empty branch - // will result in the default branch. - BuildLast(string, string, string) (*Build, error) - - // BuildList returns a list of recent builds for the - // the specified repository. - BuildList(string, string) ([]*Build, error) - - // BuildQueue returns a list of enqueued builds. - BuildQueue() ([]*Activity, error) - - // BuildStart re-starts a stopped build. - BuildStart(string, string, int, map[string]string) (*Build, error) - - // BuildStop stops the specified running job for given build. - BuildStop(string, string, int, int) error - - // BuildApprove approves a blocked build. - BuildApprove(string, string, int) (*Build, error) - - // BuildDecline declines a blocked build. - BuildDecline(string, string, int) (*Build, error) - - // BuildKill force kills the running build. - BuildKill(string, string, int) error - - // Deploy triggers a deployment for an existing build using the specified - // target environment. - Deploy(string, string, int, string, map[string]string) (*Build, error) - - // LogsPurge purges the build logs for the specified build. - LogsPurge(string, string, int) error - - // Registry returns a registry by hostname. - Registry(owner, name, hostname string) (*Registry, error) - - // RegistryList returns a list of all repository registries. - RegistryList(owner, name string) ([]*Registry, error) - - // RegistryCreate creates a registry. - RegistryCreate(owner, name string, registry *Registry) (*Registry, error) - - // RegistryUpdate updates a registry. - RegistryUpdate(owner, name string, registry *Registry) (*Registry, error) - - // RegistryDelete deletes a registry. - RegistryDelete(owner, name, hostname string) error - - // Secret returns a secret by name. - Secret(owner, name, secret string) (*Secret, error) - - // SecretList returns a list of all repository secrets. - SecretList(owner, name string) ([]*Secret, error) - - // SecretCreate creates a registry. - SecretCreate(owner, name string, secret *Secret) (*Secret, error) - - // SecretUpdate updates a registry. - SecretUpdate(owner, name string, secret *Secret) (*Secret, error) - - // SecretDelete deletes a secret. - SecretDelete(owner, name, secret string) error - - // Server returns the named servers details. - Server(name string) (*Server, error) - - // ServerList returns a list of all active build servers. - ServerList() ([]*Server, error) - - // ServerCreate creates a new server. - ServerCreate() (*Server, error) - - // ServerDelete terminates a server. - ServerDelete(name string) error - - // AutoscalePause pauses the autoscaler. - AutoscalePause() error - - // AutoscaleResume resumes the autoscaler. - AutoscaleResume() error - - // AutoscaleVersion returns the autoscaler version. - AutoscaleVersion() (*Version, error) -} diff --git a/vendor/github.com/drone/drone-go/drone/types.go b/vendor/github.com/drone/drone-go/drone/types.go deleted file mode 100644 index b805000..0000000 --- a/vendor/github.com/drone/drone-go/drone/types.go +++ /dev/null @@ -1,172 +0,0 @@ -package drone - -type ( - // User represents a user account. - User struct { - ID int64 `json:"id"` - Login string `json:"login"` - Email string `json:"email"` - Avatar string `json:"avatar_url"` - Active bool `json:"active"` - Admin bool `json:"admin"` - } - - // Repo represents a repository. - Repo struct { - ID int64 `json:"id,omitempty"` - Owner string `json:"owner"` - Name string `json:"name"` - FullName string `json:"full_name"` - Avatar string `json:"avatar_url,omitempty"` - Link string `json:"link_url,omitempty"` - Kind string `json:"scm,omitempty"` - Clone string `json:"clone_url,omitempty"` - Branch string `json:"default_branch,omitempty"` - Timeout int64 `json:"timeout,omitempty"` - Visibility string `json:"visibility"` - IsPrivate bool `json:"private,omitempty"` - IsTrusted bool `json:"trusted"` - IsStarred bool `json:"starred,omitempty"` - IsGated bool `json:"gated"` - AllowPull bool `json:"allow_pr"` - AllowPush bool `json:"allow_push"` - AllowDeploy bool `json:"allow_deploys"` - AllowTag bool `json:"allow_tags"` - Config string `json:"config_file"` - } - - // RepoPatch defines a repository patch request. - RepoPatch struct { - Config *string `json:"config_file,omitempty"` - IsTrusted *bool `json:"trusted,omitempty"` - IsGated *bool `json:"gated,omitempty"` - Timeout *int64 `json:"timeout,omitempty"` - Visibility *string `json:"visibility"` - AllowPull *bool `json:"allow_pr,omitempty"` - AllowPush *bool `json:"allow_push,omitempty"` - AllowDeploy *bool `json:"allow_deploy,omitempty"` - AllowTag *bool `json:"allow_tag,omitempty"` - BuildCounter *int `json:"build_counter,omitempty"` - } - - // Build defines a build object. - Build struct { - ID int64 `json:"id"` - Number int `json:"number"` - Parent int `json:"parent"` - Event string `json:"event"` - Status string `json:"status"` - Error string `json:"error"` - Enqueued int64 `json:"enqueued_at"` - Created int64 `json:"created_at"` - Started int64 `json:"started_at"` - Finished int64 `json:"finished_at"` - Deploy string `json:"deploy_to"` - Commit string `json:"commit"` - Branch string `json:"branch"` - Ref string `json:"ref"` - Refspec string `json:"refspec"` - Remote string `json:"remote"` - Title string `json:"title"` - Message string `json:"message"` - Timestamp int64 `json:"timestamp"` - Sender string `json:"sender"` - Author string `json:"author"` - Avatar string `json:"author_avatar"` - Email string `json:"author_email"` - Link string `json:"link_url"` - Reviewer string `json:"reviewed_by"` - Reviewed int64 `json:"reviewed_at"` - Procs []*Proc `json:"procs,omitempty"` - } - - // Proc represents a process in the build pipeline. - Proc struct { - ID int64 `json:"id"` - PID int `json:"pid"` - PPID int `json:"ppid"` - PGID int `json:"pgid"` - Name string `json:"name"` - State string `json:"state"` - Error string `json:"error,omitempty"` - ExitCode int `json:"exit_code"` - Started int64 `json:"start_time,omitempty"` - Stopped int64 `json:"end_time,omitempty"` - Machine string `json:"machine,omitempty"` - Platform string `json:"platform,omitempty"` - Environ map[string]string `json:"environ,omitempty"` - Children []*Proc `json:"children,omitempty"` - } - - // Registry represents a docker registry with credentials. - Registry struct { - ID int64 `json:"id"` - Address string `json:"address"` - Username string `json:"username"` - Password string `json:"password,omitempty"` - Email string `json:"email"` - Token string `json:"token"` - } - - // Secret represents a secret variable, such as a password or token. - Secret struct { - ID int64 `json:"id"` - Name string `json:"name"` - Value string `json:"value,omitempty"` - Images []string `json:"image"` - Events []string `json:"event"` - } - - // Activity represents an item in the user's feed or timeline. - Activity struct { - Owner string `json:"owner"` - Name string `json:"name"` - FullName string `json:"full_name"` - Number int `json:"number,omitempty"` - Event string `json:"event,omitempty"` - Status string `json:"status,omitempty"` - Created int64 `json:"created_at,omitempty"` - Started int64 `json:"started_at,omitempty"` - Finished int64 `json:"finished_at,omitempty"` - Commit string `json:"commit,omitempty"` - Branch string `json:"branch,omitempty"` - Ref string `json:"ref,omitempty"` - Refspec string `json:"refspec,omitempty"` - Remote string `json:"remote,omitempty"` - Title string `json:"title,omitempty"` - Message string `json:"message,omitempty"` - Author string `json:"author,omitempty"` - Avatar string `json:"author_avatar,omitempty"` - Email string `json:"author_email,omitempty"` - } - - // Server represents a server node. - Server struct { - ID string `json:"id"` - Provider string `json:"provider"` - State string `json:"state"` - Name string `json:"name"` - Image string `json:"image"` - Region string `json:"region"` - Size string `json:"size"` - Address string `json:"address"` - Capacity int `json:"capacity"` - Secret string `json:"secret"` - Error string `json:"error"` - CAKey []byte `json:"ca_key"` - CACert []byte `json:"ca_cert"` - TLSKey []byte `json:"tls_key"` - TLSCert []byte `json:"tls_cert"` - Created int64 `json:"created"` - Updated int64 `json:"updated"` - Started int64 `json:"started"` - Stopped int64 `json:"stopped"` - } - - // Version provides system version details. - Version struct { - Source string `json:"source,omitempty"` - Version string `json:"version,omitempty"` - Commit string `json:"commit,omitempty"` - } -) diff --git a/vendor/github.com/drone/envsubst/LICENSE b/vendor/github.com/drone/envsubst/LICENSE deleted file mode 100644 index 1de55b7..0000000 --- a/vendor/github.com/drone/envsubst/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 drone.io - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/drone/envsubst/eval.go b/vendor/github.com/drone/envsubst/eval.go deleted file mode 100644 index 375ca4c..0000000 --- a/vendor/github.com/drone/envsubst/eval.go +++ /dev/null @@ -1,19 +0,0 @@ -package envsubst - -import "os" - -// Eval replaces ${var} in the string based on the mapping function. -func Eval(s string, mapping func(string) string) (string, error) { - t, err := Parse(s) - if err != nil { - return s, err - } - return t.Execute(mapping) -} - -// EvalEnv replaces ${var} in the string according to the values of the -// current environment variables. References to undefined variables are -// replaced by the empty string. -func EvalEnv(s string) (string, error) { - return Eval(s, os.Getenv) -} diff --git a/vendor/github.com/drone/envsubst/funcs.go b/vendor/github.com/drone/envsubst/funcs.go deleted file mode 100644 index d253415..0000000 --- a/vendor/github.com/drone/envsubst/funcs.go +++ /dev/null @@ -1,226 +0,0 @@ -package envsubst - -import ( - "strconv" - "strings" - "unicode" - "unicode/utf8" -) - -// defines a parameter substitution function. -type substituteFunc func(string, ...string) string - -// toLen returns the length of string s. -func toLen(s string, args ...string) string { - return strconv.Itoa(len(s)) -} - -// toLower returns a copy of the string s with all characters -// mapped to their lower case. -func toLower(s string, args ...string) string { - return strings.ToLower(s) -} - -// toUpper returns a copy of the string s with all characters -// mapped to their upper case. -func toUpper(s string, args ...string) string { - return strings.ToUpper(s) -} - -// toLowerFirst returns a copy of the string s with the first -// character mapped to its lower case. -func toLowerFirst(s string, args ...string) string { - if s == "" { - return s - } - r, n := utf8.DecodeRuneInString(s) - return string(unicode.ToLower(r)) + s[n:] -} - -// toUpperFirst returns a copy of the string s with the first -// character mapped to its upper case. -func toUpperFirst(s string, args ...string) string { - if s == "" { - return s - } - r, n := utf8.DecodeRuneInString(s) - return string(unicode.ToUpper(r)) + s[n:] -} - -// toDefault returns a copy of the string s if not empty, else -// returns a copy of the first string arugment. -func toDefault(s string, args ...string) string { - if len(s) == 0 && len(args) == 1 { - s = args[0] - } - return s -} - -// toSubstr returns a slice of the string s at the specified -// length and position. -func toSubstr(s string, args ...string) string { - if len(args) == 0 { - return s // should never happen - } - - pos, err := strconv.Atoi(args[0]) - if err != nil { - // bash returns the string if the position - // cannot be parsed. - return s - } - - if len(args) == 1 { - if pos < len(s) { - return s[pos:] - } - // if the position exceeds the length of the - // string an empty string is returned - return "" - } - - length, err := strconv.Atoi(args[1]) - if err != nil { - // bash returns the string if the length - // cannot be parsed. - return s - } - - if pos+length >= len(s) { - // if the position exceeds the length of the - // string an empty string is returned - return "" - } - - return s[pos : pos+length] -} - -// replaceAll returns a copy of the string s with all instances -// of the substring replaced with the replacement string. -func replaceAll(s string, args ...string) string { - switch len(args) { - case 0: - return s - case 1: - return strings.Replace(s, args[0], "", -1) - default: - return strings.Replace(s, args[0], args[1], -1) - } -} - -// replaceFirst returns a copy of the string s with the first -// instance of the substring replaced with the replacement string. -func replaceFirst(s string, args ...string) string { - switch len(args) { - case 0: - return s - case 1: - return strings.Replace(s, args[0], "", 1) - default: - return strings.Replace(s, args[0], args[1], 1) - } -} - -// replacePrefix returns a copy of the string s with the matching -// prefix replaced with the replacement string. -func replacePrefix(s string, args ...string) string { - if len(args) != 2 { - return s - } - if strings.HasPrefix(s, args[0]) { - return strings.Replace(s, args[0], args[1], 1) - } - return s -} - -// replaceSuffix returns a copy of the string s with the matching -// suffix replaced with the replacement string. -func replaceSuffix(s string, args ...string) string { - if len(args) != 2 { - return s - } - if strings.HasSuffix(s, args[0]) { - s = strings.TrimSuffix(s, args[0]) - s = s + args[1] - } - return s -} - -// TODO - -func trimShortestPrefix(s string, args ...string) string { - if len(args) != 0 { - s = trimShortest(s, args[0]) - } - return s -} - -func trimShortestSuffix(s string, args ...string) string { - if len(args) != 0 { - r := reverse(s) - rarg := reverse(args[0]) - s = reverse(trimShortest(r, rarg)) - } - return s -} - -func trimLongestPrefix(s string, args ...string) string { - if len(args) != 0 { - s = trimLongest(s, args[0]) - } - return s -} - -func trimLongestSuffix(s string, args ...string) string { - if len(args) != 0 { - r := reverse(s) - rarg := reverse(args[0]) - s = reverse(trimLongest(r, rarg)) - } - return s -} - -func trimShortest(s, arg string) string { - var shortestMatch string - for i :=0 ; i < len(s); i++ { - match, err := Match(arg, s[0:len(s)-i]) - - if err != nil { - return s - } - - if match { - shortestMatch = s[0:len(s)-i] - } - } - - if shortestMatch != "" { - return strings.TrimPrefix(s, shortestMatch) - } - - return s -} - -func trimLongest(s, arg string) string { - for i :=0 ; i < len(s); i++ { - match, err := Match(arg, s[0:len(s)-i]) - - if err != nil { - return s - } - - if match { - return strings.TrimPrefix(s, s[0:len(s)-i]) - } - } - - return s -} - -func reverse(s string) string { - r := []rune(s) - for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 { - r[i], r[j] = r[j], r[i] - } - return string(r) -} diff --git a/vendor/github.com/drone/envsubst/match.go b/vendor/github.com/drone/envsubst/match.go deleted file mode 100644 index a159aff..0000000 --- a/vendor/github.com/drone/envsubst/match.go +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright 2010 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 envsubst - -import ( - "errors" - "unicode/utf8" -) - -// ErrBadPattern indicates a globbing pattern was malformed. -var ErrBadPattern = errors.New("syntax error in pattern") - -// Match reports whether name matches the shell file name pattern. -// The pattern syntax is: -// -// pattern: -// { term } -// term: -// '*' matches any sequence of non-/ characters -// '?' matches any single non-/ character -// '[' [ '^' ] { character-range } ']' -// character class (must be non-empty) -// c matches character c (c != '*', '?', '\\', '[') -// '\\' c matches character c -// -// character-range: -// c matches character c (c != '\\', '-', ']') -// '\\' c matches character c -// lo '-' hi matches character c for lo <= c <= hi -// -// Match requires pattern to match all of name, not just a substring. -// The only possible returned error is ErrBadPattern, when pattern -// is malformed. -// -func Match(pattern, name string) (matched bool, err error) { -Pattern: - for len(pattern) > 0 { - var star bool - var chunk string - star, chunk, pattern = scanChunk(pattern) - if star && chunk == "" { - // Trailing * matches rest of string unless it has a /. - // return !strings.Contains(name, "/"), nil - - // Return rest of string - return true, nil - } - // Look for match at current position. - t, ok, err := matchChunk(chunk, name) - // if we're the last chunk, make sure we've exhausted the name - // otherwise we'll give a false result even if we could still match - // using the star - if ok && (len(t) == 0 || len(pattern) > 0) { - name = t - continue - } - if err != nil { - return false, err - } - if star { - // Look for match skipping i+1 bytes. - for i := 0; i < len(name); i++ { - t, ok, err := matchChunk(chunk, name[i+1:]) - if ok { - // if we're the last chunk, make sure we exhausted the name - if len(pattern) == 0 && len(t) > 0 { - continue - } - name = t - continue Pattern - } - if err != nil { - return false, err - } - } - } - return false, nil - } - return len(name) == 0, nil -} - -// scanChunk gets the next segment of pattern, which is a non-star string -// possibly preceded by a star. -func scanChunk(pattern string) (star bool, chunk, rest string) { - for len(pattern) > 0 && pattern[0] == '*' { - pattern = pattern[1:] - star = true - } - inrange := false - var i int -Scan: - for i = 0; i < len(pattern); i++ { - switch pattern[i] { - case '\\': - // error check handled in matchChunk: bad pattern. - if i+1 < len(pattern) { - i++ - } - case '[': - inrange = true - case ']': - inrange = false - case '*': - if !inrange { - break Scan - } - } - } - return star, pattern[0:i], pattern[i:] -} - -// matchChunk checks whether chunk matches the beginning of s. -// If so, it returns the remainder of s (after the match). -// Chunk is all single-character operators: literals, char classes, and ?. -func matchChunk(chunk, s string) (rest string, ok bool, err error) { - for len(chunk) > 0 { - if len(s) == 0 { - return - } - switch chunk[0] { - case '[': - // character class - r, n := utf8.DecodeRuneInString(s) - s = s[n:] - chunk = chunk[1:] - // possibly negated - notNegated := true - if len(chunk) > 0 && chunk[0] == '^' { - notNegated = false - chunk = chunk[1:] - } - // parse all ranges - match := false - nrange := 0 - for { - if len(chunk) > 0 && chunk[0] == ']' && nrange > 0 { - chunk = chunk[1:] - break - } - var lo, hi rune - if lo, chunk, err = getEsc(chunk); err != nil { - return - } - hi = lo - if chunk[0] == '-' { - if hi, chunk, err = getEsc(chunk[1:]); err != nil { - return - } - } - if lo <= r && r <= hi { - match = true - } - nrange++ - } - if match != notNegated { - return - } - - case '?': - _, n := utf8.DecodeRuneInString(s) - s = s[n:] - chunk = chunk[1:] - - case '\\': - chunk = chunk[1:] - if len(chunk) == 0 { - err = ErrBadPattern - return - } - fallthrough - - default: - if chunk[0] != s[0] { - return - } - s = s[1:] - chunk = chunk[1:] - } - } - return s, true, nil -} - -// getEsc gets a possibly-escaped character from chunk, for a character class. -func getEsc(chunk string) (r rune, nchunk string, err error) { - if len(chunk) == 0 || chunk[0] == '-' || chunk[0] == ']' { - err = ErrBadPattern - return - } - if chunk[0] == '\\' { - chunk = chunk[1:] - if len(chunk) == 0 { - err = ErrBadPattern - return - } - } - r, n := utf8.DecodeRuneInString(chunk) - if r == utf8.RuneError && n == 1 { - err = ErrBadPattern - } - nchunk = chunk[n:] - if len(nchunk) == 0 { - err = ErrBadPattern - } - return -} diff --git a/vendor/github.com/drone/envsubst/parse/node.go b/vendor/github.com/drone/envsubst/parse/node.go deleted file mode 100644 index 09787eb..0000000 --- a/vendor/github.com/drone/envsubst/parse/node.go +++ /dev/null @@ -1,86 +0,0 @@ -package parse - -// Node is an element in the parse tree. -type Node interface { - node() -} - -// empty string node -var empty = new(TextNode) - -// a template is represented by a tree consisting of one -// or more of the following nodes. -type ( - // TextNode represents a string of text. - TextNode struct { - Value string - } - - // FuncNode represents a string function. - FuncNode struct { - Param string - Name string - Args []Node - } - - // ListNode represents a list of nodes. - ListNode struct { - Nodes []Node - } - - // ParamNode struct{ - // Name string - // } - // - // CaseNode struct { - // Name string - // First bool - // } - // - // LowerNode struct { - // Name string - // First bool - // } - // - // SubstrNode struct { - // Name string - // Pos Node - // Len Node - // } - // - // ReplaceNode struct { - // Name string - // Substring Node - // Replacement Node - // } - // - // TrimNode struct{ - // - // } - // - // DefaultNode struct { - // Name string - // Default Node - // } -) - -// newTextNode returns a new TextNode. -func newTextNode(text string) *TextNode { - return &TextNode{Value: text} -} - -// newListNode returns a new ListNode. -func newListNode(nodes ...Node) *ListNode { - return &ListNode{Nodes: nodes} -} - -// newFuncNode returns a new FuncNode. -func newFuncNode(name string) *FuncNode { - return &FuncNode{Param: name} -} - -// node() defines the node in a parse tree - -func (*TextNode) node() {} -func (*ListNode) node() {} -func (*FuncNode) node() {} diff --git a/vendor/github.com/drone/envsubst/parse/parse.go b/vendor/github.com/drone/envsubst/parse/parse.go deleted file mode 100644 index 683b44d..0000000 --- a/vendor/github.com/drone/envsubst/parse/parse.go +++ /dev/null @@ -1,374 +0,0 @@ -package parse - -import "errors" - -// ErrBadSubstitution represents a substitution parsing error. -var ErrBadSubstitution = errors.New("bad substitution") - -// Tree is the representation of a single parsed SQL statement. -type Tree struct { - Root Node - - // Parsing only; cleared after parse. - scanner *scanner -} - -// Parse parses the string and returns a Tree. -func Parse(buf string) (*Tree, error) { - t := new(Tree) - t.scanner = new(scanner) - return t.Parse(buf) -} - -// Parse parses the string buffer to construct an ast -// representation for expansion. -func (t *Tree) Parse(buf string) (tree *Tree, err error) { - t.scanner.init(buf) - t.Root, err = t.parseAny() - return t, err -} - -func (t *Tree) parseAny() (Node, error) { - t.scanner.accept = acceptRune - t.scanner.mode = scanIdent | scanLbrack | scanEscape - - switch t.scanner.scan() { - case tokenIdent: - left := newTextNode( - t.scanner.string(), - ) - right, err := t.parseAny() - switch { - case err != nil: - return nil, err - case right == empty: - return left, nil - } - return newListNode(left, right), nil - case tokenEOF: - return empty, nil - case tokenLbrack: - left, err := t.parseFunc() - if err != nil { - return nil, err - } - - right, err := t.parseAny() - switch { - case err != nil: - return nil, err - case right == empty: - return left, nil - } - return newListNode(left, right), nil - } - - return nil, ErrBadSubstitution -} - -func (t *Tree) parseFunc() (Node, error) { - switch t.scanner.peek() { - case '#': - return t.parseLenFunc() - } - - var name string - t.scanner.accept = acceptIdent - t.scanner.mode = scanIdent - - switch t.scanner.scan() { - case tokenIdent: - name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - switch t.scanner.peek() { - case ':': - return t.parseDefaultOrSubstr(name) - case '=': - return t.parseDefaultFunc(name) - case ',', '^': - return t.parseCasingFunc(name) - case '/': - return t.parseReplaceFunc(name) - case '#': - return t.parseRemoveFunc(name, acceptHashFunc) - case '%': - return t.parseRemoveFunc(name, acceptPercentFunc) - } - - t.scanner.accept = acceptIdent - t.scanner.mode = scanRbrack - switch t.scanner.scan() { - case tokenRbrack: - return newFuncNode(name), nil - default: - return nil, ErrBadSubstitution - } -} - -// parse a substitution function parameter. -func (t *Tree) parseParam(accept acceptFunc, mode byte) (Node, error) { - t.scanner.accept = accept - t.scanner.mode = mode | scanLbrack - switch t.scanner.scan() { - case tokenLbrack: - return t.parseFunc() - case tokenIdent: - return newTextNode( - t.scanner.string(), - ), nil - default: - return nil, ErrBadSubstitution - } -} - -// parse either a default or substring substitution function. -func (t *Tree) parseDefaultOrSubstr(name string) (Node, error) { - t.scanner.read() - r := t.scanner.peek() - t.scanner.unread() - switch r { - case '=', '-', '?', '+': - return t.parseDefaultFunc(name) - default: - return t.parseSubstrFunc(name) - } -} - -// parses the ${param:offset} string function -// parses the ${param:offset:length} string function -func (t *Tree) parseSubstrFunc(name string) (Node, error) { - node := new(FuncNode) - node.Param = name - - t.scanner.accept = acceptOneColon - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - // scan arg[1] - { - param, err := t.parseParam(rejectColonClose, scanIdent) - if err != nil { - return nil, err - } - - // param.Value = t.scanner.string() - node.Args = append(node.Args, param) - } - - // expect delimiter or close - t.scanner.accept = acceptColon - t.scanner.mode = scanIdent | scanRbrack - switch t.scanner.scan() { - case tokenRbrack: - return node, nil - case tokenIdent: - // no-op - default: - return nil, ErrBadSubstitution - } - - // scan arg[2] - { - param, err := t.parseParam(acceptNotClosing, scanIdent) - if err != nil { - return nil, err - } - node.Args = append(node.Args, param) - } - - return node, t.consumeRbrack() -} - -// parses the ${param%word} string function -// parses the ${param%%word} string function -// parses the ${param#word} string function -// parses the ${param##word} string function -func (t *Tree) parseRemoveFunc(name string, accept acceptFunc) (Node, error) { - node := new(FuncNode) - node.Param = name - - t.scanner.accept = accept - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - // scan arg[1] - { - param, err := t.parseParam(acceptNotClosing, scanIdent) - if err != nil { - return nil, err - } - - // param.Value = t.scanner.string() - node.Args = append(node.Args, param) - } - - return node, t.consumeRbrack() -} - -// parses the ${param/pattern/string} string function -// parses the ${param//pattern/string} string function -// parses the ${param/#pattern/string} string function -// parses the ${param/%pattern/string} string function -func (t *Tree) parseReplaceFunc(name string) (Node, error) { - node := new(FuncNode) - node.Param = name - - t.scanner.accept = acceptReplaceFunc - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - // scan arg[1] - { - param, err := t.parseParam(acceptNotSlash, scanIdent|scanEscape) - if err != nil { - return nil, err - } - node.Args = append(node.Args, param) - } - - // expect delimiter - t.scanner.accept = acceptSlash - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - // no-op - default: - return nil, ErrBadSubstitution - } - - // check for blank string - switch t.scanner.peek() { - case '}': - return node, t.consumeRbrack() - } - - // scan arg[2] - { - param, err := t.parseParam(acceptNotClosing, scanIdent|scanEscape) - if err != nil { - return nil, err - } - node.Args = append(node.Args, param) - } - - return node, t.consumeRbrack() -} - -// parses the ${parameter=word} string function -// parses the ${parameter:=word} string function -// parses the ${parameter:-word} string function -// parses the ${parameter:?word} string function -// parses the ${parameter:+word} string function -func (t *Tree) parseDefaultFunc(name string) (Node, error) { - node := new(FuncNode) - node.Param = name - - t.scanner.accept = acceptDefaultFunc - if t.scanner.peek() == '=' { - t.scanner.accept = acceptOneEqual - } - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - // scan arg[1] - { - param, err := t.parseParam(acceptNotClosing, scanIdent) - if err != nil { - return nil, err - } - - // param.Value = t.scanner.string() - node.Args = append(node.Args, param) - } - - return node, t.consumeRbrack() -} - -// parses the ${param,} string function -// parses the ${param,,} string function -// parses the ${param^} string function -// parses the ${param^^} string function -func (t *Tree) parseCasingFunc(name string) (Node, error) { - node := new(FuncNode) - node.Param = name - - t.scanner.accept = acceptCasingFunc - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - return node, t.consumeRbrack() -} - -// parses the ${#param} string function -func (t *Tree) parseLenFunc() (Node, error) { - node := new(FuncNode) - - t.scanner.accept = acceptOneHash - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Name = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - t.scanner.accept = acceptIdent - t.scanner.mode = scanIdent - switch t.scanner.scan() { - case tokenIdent: - node.Param = t.scanner.string() - default: - return nil, ErrBadSubstitution - } - - return node, t.consumeRbrack() -} - -// consumeRbrack consumes a right closing bracket. If a closing -// bracket token is not consumed an ErrBadSubstitution is returned. -func (t *Tree) consumeRbrack() error { - t.scanner.mode = scanRbrack - if t.scanner.scan() != tokenRbrack { - return ErrBadSubstitution - } - return nil -} - -// consumeDelimiter consumes a function argument delimiter. If a -// delimiter is not consumed an ErrBadSubstitution is returned. -// func (t *Tree) consumeDelimiter(accept acceptFunc, mode uint) error { -// t.scanner.accept = accept -// t.scanner.mode = mode -// if t.scanner.scan() != tokenRbrack { -// return ErrBadSubstitution -// } -// return nil -// } diff --git a/vendor/github.com/drone/envsubst/parse/scan.go b/vendor/github.com/drone/envsubst/parse/scan.go deleted file mode 100644 index 94812c1..0000000 --- a/vendor/github.com/drone/envsubst/parse/scan.go +++ /dev/null @@ -1,280 +0,0 @@ -package parse - -import ( - "unicode" - "unicode/utf8" -) - -// eof rune sent when end of file is reached -var eof = rune(0) - -// token is a lexical token. -type token uint - -// list of lexical tokens. -const ( - // special tokens - tokenIllegal token = iota - tokenEOF - - // identifiers and literals - tokenIdent - - // operators and delimiters - tokenLbrack - tokenRbrack - tokenQuote -) - -// predefined mode bits to control recognition of tokens. -const ( - scanIdent byte = 1 << iota - scanLbrack - scanRbrack - scanEscape -) - -// returns true if rune is accepted. -type acceptFunc func(r rune, i int) bool - -// scanner implements a lexical scanner that reads unicode -// characters and tokens from a string buffer. -type scanner struct { - buf string - pos int - start int - width int - mode byte - - accept acceptFunc -} - -// init initializes a scanner with a new buffer. -func (s *scanner) init(buf string) { - s.buf = buf - s.pos = 0 - s.start = 0 - s.width = 0 - s.accept = nil -} - -// read returns the next unicode character. It returns eof at -// the end of the string buffer. -func (s *scanner) read() rune { - if s.pos >= len(s.buf) { - s.width = 0 - return eof - } - r, w := utf8.DecodeRuneInString(s.buf[s.pos:]) - s.width = w - s.pos += s.width - return r -} - -func (s *scanner) unread() { - s.pos -= s.width -} - -// skip skips over the curring unicode character in the buffer -// by slicing and removing from the buffer. -func (s *scanner) skip() { - l := s.buf[:s.pos-1] - r := s.buf[s.pos:] - s.buf = l + r -} - -// peek returns the next unicode character in the buffer without -// advancing the scanner. It returns eof if the scanner's position -// is at the last character of the source. -func (s *scanner) peek() rune { - r := s.read() - s.unread() - return r -} - -// string returns the string corresponding to the most recently -// scanned token. Valid after calling scan(). -func (s *scanner) string() string { - return s.buf[s.start:s.pos] -} - -// scan reads the next token or Unicode character from source and -// returns it. It returns EOF at the end of the source. -func (s *scanner) scan() token { - s.start = s.pos - r := s.read() - switch { - case r == eof: - return tokenEOF - case s.scanLbrack(r): - return tokenLbrack - case s.scanRbrack(r): - return tokenRbrack - case s.scanIdent(r): - return tokenIdent - } - return tokenIllegal -} - -// scanIdent reads the next token or Unicode character from source -// and returns true if the Ident character is accepted. -func (s *scanner) scanIdent(r rune) bool { - if s.mode&scanIdent == 0 { - return false - } - if s.scanEscaped(r) { - s.skip() - } else if !s.accept(r, s.pos-s.start) { - return false - } -loop: - for { - r := s.read() - switch { - case r == eof: - s.unread() - break loop - case s.scanLbrack(r): - s.unread() - s.unread() - break loop - } - if s.scanEscaped(r) { - s.skip() - continue - } - if !s.accept(r, s.pos-s.start) { - s.unread() - break loop - } - } - return true -} - -// scanLbrack reads the next token or Unicode character from source -// and returns true if the open bracket is encountered. -func (s *scanner) scanLbrack(r rune) bool { - if s.mode&scanLbrack == 0 { - return false - } - if r == '$' { - if s.read() == '{' { - return true - } - s.unread() - } - return false -} - -// scanRbrack reads the next token or Unicode character from source -// and returns true if the closing bracket is encountered. -func (s *scanner) scanRbrack(r rune) bool { - if s.mode&scanRbrack == 0 { - return false - } - return r == '}' -} - -// scanEscaped reads the next token or Unicode character from source -// and returns true if it being escaped and should be sipped. -func (s *scanner) scanEscaped(r rune) bool { - if s.mode&scanEscape == 0 { - return false - } - if r == '$' { - if s.peek() == '$' { - return true - } - } - if r != '\\' { - return false - } - switch s.peek() { - case '/', '\\': - return true - default: - return false - } -} - -// -// scanner functions accept or reject runes. -// - -func acceptRune(r rune, i int) bool { - return true -} - -func acceptIdent(r rune, i int) bool { - return unicode.IsLetter(r) || unicode.IsDigit(r) || r == '_' -} - -func acceptColon(r rune, i int) bool { - return r == ':' -} - -func acceptOneHash(r rune, i int) bool { - return r == '#' && i == 1 -} - -func acceptNone(r rune, i int) bool { - return false -} - -func acceptNotClosing(r rune, i int) bool { - return r != '}' -} - -func acceptHashFunc(r rune, i int) bool { - return r == '#' && i < 3 -} - -func acceptPercentFunc(r rune, i int) bool { - return r == '%' && i < 3 -} - -func acceptDefaultFunc(r rune, i int) bool { - switch { - case i == 1 && r == ':': - return true - case i == 2 && (r == '=' || r == '-' || r == '?' || r == '+'): - return true - default: - return false - } -} - -func acceptReplaceFunc(r rune, i int) bool { - switch { - case i == 1 && r == '/': - return true - case i == 2 && (r == '/' || r == '#' || r == '%'): - return true - default: - return false - } -} - -func acceptOneEqual(r rune, i int) bool { - return i == 1 && r == '=' -} - -func acceptOneColon(r rune, i int) bool { - return i == 1 && r == ':' -} - -func rejectColonClose(r rune, i int) bool { - return r != ':' && r != '}' -} - -func acceptSlash(r rune, i int) bool { - return r == '/' -} - -func acceptNotSlash(r rune, i int) bool { - return r != '/' -} - -func acceptCasingFunc(r rune, i int) bool { - return (r == ',' || r == '^') && i < 3 -} diff --git a/vendor/github.com/drone/envsubst/template.go b/vendor/github.com/drone/envsubst/template.go deleted file mode 100644 index b725d4f..0000000 --- a/vendor/github.com/drone/envsubst/template.go +++ /dev/null @@ -1,157 +0,0 @@ -package envsubst - -import ( - "bytes" - "io" - "io/ioutil" - - "github.com/drone/envsubst/parse" -) - -// state represents the state of template execution. It is not part of the -// template so that multiple executions can run in parallel. -type state struct { - template *Template - writer io.Writer - node parse.Node // current node - - // maps variable names to values - mapper func(string) string -} - -// Template is the representation of a parsed shell format string. -type Template struct { - tree *parse.Tree -} - -// Parse creates a new shell format template and parses the template -// definition from string s. -func Parse(s string) (t *Template, err error) { - t = new(Template) - t.tree, err = parse.Parse(s) - if err != nil { - return nil, err - } - return t, nil -} - -// ParseFile creates a new shell format template and parses the template -// definition from the named file. -func ParseFile(path string) (*Template, error) { - b, err := ioutil.ReadFile(path) - if err != nil { - return nil, err - } - return Parse(string(b)) -} - -// Execute applies a parsed template to the specified data mapping. -func (t *Template) Execute(mapping func(string) string) (str string, err error) { - b := new(bytes.Buffer) - s := new(state) - s.node = t.tree.Root - s.mapper = mapping - s.writer = b - err = t.eval(s) - if err != nil { - return - } - return b.String(), nil -} - -func (t *Template) eval(s *state) (err error) { - switch node := s.node.(type) { - case *parse.TextNode: - err = t.evalText(s, node) - case *parse.FuncNode: - err = t.evalFunc(s, node) - case *parse.ListNode: - err = t.evalList(s, node) - } - return err -} - -func (t *Template) evalText(s *state, node *parse.TextNode) error { - _, err := io.WriteString(s.writer, node.Value) - return err -} - -func (t *Template) evalList(s *state, node *parse.ListNode) (err error) { - for _, n := range node.Nodes { - s.node = n - err = t.eval(s) - if err != nil { - return err - } - } - return nil -} - -func (t *Template) evalFunc(s *state, node *parse.FuncNode) error { - var w = s.writer - var buf bytes.Buffer - var args []string - for _, n := range node.Args { - buf.Reset() - s.writer = &buf - s.node = n - err := t.eval(s) - if err != nil { - return err - } - args = append(args, buf.String()) - } - - // restore the origin writer - s.writer = w - s.node = node - - v := s.mapper(node.Param) - - fn := lookupFunc(node.Name, len(args)) - - _, err := io.WriteString(s.writer, fn(v, args...)) - return err -} - -// lookupFunc returns the parameters substitution function by name. If the -// named function does not exists, a default function is returned. -func lookupFunc(name string, args int) substituteFunc { - switch name { - case ",": - return toLowerFirst - case ",,": - return toLower - case "^": - return toUpperFirst - case "^^": - return toUpper - case "#": - if args == 0 { - return toLen - } - return trimShortestPrefix - case "##": - return trimLongestPrefix - case "%": - return trimShortestSuffix - case "%%": - return trimLongestSuffix - case ":": - return toSubstr - case "/#": - return replacePrefix - case "/%": - return replaceSuffix - case "/": - return replaceFirst - case "//": - return replaceAll - case "=", ":=", ":-": - return toDefault - case ":?", ":+", "-", "+": - return toDefault - default: - return toDefault - } -} diff --git a/vendor/github.com/fatih/color/LICENSE.md b/vendor/github.com/fatih/color/LICENSE.md deleted file mode 100644 index 25fdaf6..0000000 --- a/vendor/github.com/fatih/color/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Fatih Arslan - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/fatih/color/color.go b/vendor/github.com/fatih/color/color.go deleted file mode 100644 index b1f591d..0000000 --- a/vendor/github.com/fatih/color/color.go +++ /dev/null @@ -1,600 +0,0 @@ -package color - -import ( - "fmt" - "io" - "os" - "strconv" - "strings" - "sync" - - "github.com/mattn/go-colorable" - "github.com/mattn/go-isatty" -) - -var ( - // NoColor defines if the output is colorized or not. It's dynamically set to - // false or true based on the stdout's file descriptor referring to a terminal - // or not. This is a global option and affects all colors. For more control - // over each color block use the methods DisableColor() individually. - NoColor = os.Getenv("TERM") == "dumb" || - (!isatty.IsTerminal(os.Stdout.Fd()) && !isatty.IsCygwinTerminal(os.Stdout.Fd())) - - // Output defines the standard output of the print functions. By default - // os.Stdout is used. - Output = colorable.NewColorableStdout() - - // colorsCache is used to reduce the count of created Color objects and - // allows to reuse already created objects with required Attribute. - colorsCache = make(map[Attribute]*Color) - colorsCacheMu sync.Mutex // protects colorsCache -) - -// Color defines a custom color object which is defined by SGR parameters. -type Color struct { - params []Attribute - noColor *bool -} - -// Attribute defines a single SGR Code -type Attribute int - -const escape = "\x1b" - -// Base attributes -const ( - Reset Attribute = iota - Bold - Faint - Italic - Underline - BlinkSlow - BlinkRapid - ReverseVideo - Concealed - CrossedOut -) - -// Foreground text colors -const ( - FgBlack Attribute = iota + 30 - FgRed - FgGreen - FgYellow - FgBlue - FgMagenta - FgCyan - FgWhite -) - -// Foreground Hi-Intensity text colors -const ( - FgHiBlack Attribute = iota + 90 - FgHiRed - FgHiGreen - FgHiYellow - FgHiBlue - FgHiMagenta - FgHiCyan - FgHiWhite -) - -// Background text colors -const ( - BgBlack Attribute = iota + 40 - BgRed - BgGreen - BgYellow - BgBlue - BgMagenta - BgCyan - BgWhite -) - -// Background Hi-Intensity text colors -const ( - BgHiBlack Attribute = iota + 100 - BgHiRed - BgHiGreen - BgHiYellow - BgHiBlue - BgHiMagenta - BgHiCyan - BgHiWhite -) - -// New returns a newly created color object. -func New(value ...Attribute) *Color { - c := &Color{params: make([]Attribute, 0)} - c.Add(value...) - return c -} - -// Set sets the given parameters immediately. It will change the color of -// output with the given SGR parameters until color.Unset() is called. -func Set(p ...Attribute) *Color { - c := New(p...) - c.Set() - return c -} - -// Unset resets all escape attributes and clears the output. Usually should -// be called after Set(). -func Unset() { - if NoColor { - return - } - - fmt.Fprintf(Output, "%s[%dm", escape, Reset) -} - -// Set sets the SGR sequence. -func (c *Color) Set() *Color { - if c.isNoColorSet() { - return c - } - - fmt.Fprintf(Output, c.format()) - return c -} - -func (c *Color) unset() { - if c.isNoColorSet() { - return - } - - Unset() -} - -func (c *Color) setWriter(w io.Writer) *Color { - if c.isNoColorSet() { - return c - } - - fmt.Fprintf(w, c.format()) - return c -} - -func (c *Color) unsetWriter(w io.Writer) { - if c.isNoColorSet() { - return - } - - if NoColor { - return - } - - fmt.Fprintf(w, "%s[%dm", escape, Reset) -} - -// Add is used to chain SGR parameters. Use as many as parameters to combine -// and create custom color objects. Example: Add(color.FgRed, color.Underline). -func (c *Color) Add(value ...Attribute) *Color { - c.params = append(c.params, value...) - return c -} - -func (c *Color) prepend(value Attribute) { - c.params = append(c.params, 0) - copy(c.params[1:], c.params[0:]) - c.params[0] = value -} - -// Fprint formats using the default formats for its operands and writes to w. -// Spaces are added between operands when neither is a string. -// It returns the number of bytes written and any write error encountered. -// On Windows, users should wrap w with colorable.NewColorable() if w is of -// type *os.File. -func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) { - c.setWriter(w) - defer c.unsetWriter(w) - - return fmt.Fprint(w, a...) -} - -// Print formats using the default formats for its operands and writes to -// standard output. Spaces are added between operands when neither is a -// string. It returns the number of bytes written and any write error -// encountered. This is the standard fmt.Print() method wrapped with the given -// color. -func (c *Color) Print(a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - - return fmt.Fprint(Output, a...) -} - -// Fprintf formats according to a format specifier and writes to w. -// It returns the number of bytes written and any write error encountered. -// On Windows, users should wrap w with colorable.NewColorable() if w is of -// type *os.File. -func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { - c.setWriter(w) - defer c.unsetWriter(w) - - return fmt.Fprintf(w, format, a...) -} - -// Printf formats according to a format specifier and writes to standard output. -// It returns the number of bytes written and any write error encountered. -// This is the standard fmt.Printf() method wrapped with the given color. -func (c *Color) Printf(format string, a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - - return fmt.Fprintf(Output, format, a...) -} - -// Fprintln formats using the default formats for its operands and writes to w. -// Spaces are always added between operands and a newline is appended. -// On Windows, users should wrap w with colorable.NewColorable() if w is of -// type *os.File. -func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) { - c.setWriter(w) - defer c.unsetWriter(w) - - return fmt.Fprintln(w, a...) -} - -// Println formats using the default formats for its operands and writes to -// standard output. Spaces are always added between operands and a newline is -// appended. It returns the number of bytes written and any write error -// encountered. This is the standard fmt.Print() method wrapped with the given -// color. -func (c *Color) Println(a ...interface{}) (n int, err error) { - c.Set() - defer c.unset() - - return fmt.Fprintln(Output, a...) -} - -// Sprint is just like Print, but returns a string instead of printing it. -func (c *Color) Sprint(a ...interface{}) string { - return c.wrap(fmt.Sprint(a...)) -} - -// Sprintln is just like Println, but returns a string instead of printing it. -func (c *Color) Sprintln(a ...interface{}) string { - return c.wrap(fmt.Sprintln(a...)) -} - -// Sprintf is just like Printf, but returns a string instead of printing it. -func (c *Color) Sprintf(format string, a ...interface{}) string { - return c.wrap(fmt.Sprintf(format, a...)) -} - -// FprintFunc returns a new function that prints the passed arguments as -// colorized with color.Fprint(). -func (c *Color) FprintFunc() func(w io.Writer, a ...interface{}) { - return func(w io.Writer, a ...interface{}) { - c.Fprint(w, a...) - } -} - -// PrintFunc returns a new function that prints the passed arguments as -// colorized with color.Print(). -func (c *Color) PrintFunc() func(a ...interface{}) { - return func(a ...interface{}) { - c.Print(a...) - } -} - -// FprintfFunc returns a new function that prints the passed arguments as -// colorized with color.Fprintf(). -func (c *Color) FprintfFunc() func(w io.Writer, format string, a ...interface{}) { - return func(w io.Writer, format string, a ...interface{}) { - c.Fprintf(w, format, a...) - } -} - -// PrintfFunc returns a new function that prints the passed arguments as -// colorized with color.Printf(). -func (c *Color) PrintfFunc() func(format string, a ...interface{}) { - return func(format string, a ...interface{}) { - c.Printf(format, a...) - } -} - -// FprintlnFunc returns a new function that prints the passed arguments as -// colorized with color.Fprintln(). -func (c *Color) FprintlnFunc() func(w io.Writer, a ...interface{}) { - return func(w io.Writer, a ...interface{}) { - c.Fprintln(w, a...) - } -} - -// PrintlnFunc returns a new function that prints the passed arguments as -// colorized with color.Println(). -func (c *Color) PrintlnFunc() func(a ...interface{}) { - return func(a ...interface{}) { - c.Println(a...) - } -} - -// SprintFunc returns a new function that returns colorized strings for the -// given arguments with fmt.Sprint(). Useful to put into or mix into other -// string. Windows users should use this in conjunction with color.Output, example: -// -// put := New(FgYellow).SprintFunc() -// fmt.Fprintf(color.Output, "This is a %s", put("warning")) -func (c *Color) SprintFunc() func(a ...interface{}) string { - return func(a ...interface{}) string { - return c.wrap(fmt.Sprint(a...)) - } -} - -// SprintfFunc returns a new function that returns colorized strings for the -// given arguments with fmt.Sprintf(). Useful to put into or mix into other -// string. Windows users should use this in conjunction with color.Output. -func (c *Color) SprintfFunc() func(format string, a ...interface{}) string { - return func(format string, a ...interface{}) string { - return c.wrap(fmt.Sprintf(format, a...)) - } -} - -// SprintlnFunc returns a new function that returns colorized strings for the -// given arguments with fmt.Sprintln(). Useful to put into or mix into other -// string. Windows users should use this in conjunction with color.Output. -func (c *Color) SprintlnFunc() func(a ...interface{}) string { - return func(a ...interface{}) string { - return c.wrap(fmt.Sprintln(a...)) - } -} - -// sequence returns a formatted SGR sequence to be plugged into a "\x1b[...m" -// an example output might be: "1;36" -> bold cyan -func (c *Color) sequence() string { - format := make([]string, len(c.params)) - for i, v := range c.params { - format[i] = strconv.Itoa(int(v)) - } - - return strings.Join(format, ";") -} - -// wrap wraps the s string with the colors attributes. The string is ready to -// be printed. -func (c *Color) wrap(s string) string { - if c.isNoColorSet() { - return s - } - - return c.format() + s + c.unformat() -} - -func (c *Color) format() string { - return fmt.Sprintf("%s[%sm", escape, c.sequence()) -} - -func (c *Color) unformat() string { - return fmt.Sprintf("%s[%dm", escape, Reset) -} - -// DisableColor disables the color output. Useful to not change any existing -// code and still being able to output. Can be used for flags like -// "--no-color". To enable back use EnableColor() method. -func (c *Color) DisableColor() { - c.noColor = boolPtr(true) -} - -// EnableColor enables the color output. Use it in conjunction with -// DisableColor(). Otherwise this method has no side effects. -func (c *Color) EnableColor() { - c.noColor = boolPtr(false) -} - -func (c *Color) isNoColorSet() bool { - // check first if we have user setted action - if c.noColor != nil { - return *c.noColor - } - - // if not return the global option, which is disabled by default - return NoColor -} - -// Equals returns a boolean value indicating whether two colors are equal. -func (c *Color) Equals(c2 *Color) bool { - if len(c.params) != len(c2.params) { - return false - } - - for _, attr := range c.params { - if !c2.attrExists(attr) { - return false - } - } - - return true -} - -func (c *Color) attrExists(a Attribute) bool { - for _, attr := range c.params { - if attr == a { - return true - } - } - - return false -} - -func boolPtr(v bool) *bool { - return &v -} - -func getCachedColor(p Attribute) *Color { - colorsCacheMu.Lock() - defer colorsCacheMu.Unlock() - - c, ok := colorsCache[p] - if !ok { - c = New(p) - colorsCache[p] = c - } - - return c -} - -func colorPrint(format string, p Attribute, a ...interface{}) { - c := getCachedColor(p) - - if !strings.HasSuffix(format, "\n") { - format += "\n" - } - - if len(a) == 0 { - c.Print(format) - } else { - c.Printf(format, a...) - } -} - -func colorString(format string, p Attribute, a ...interface{}) string { - c := getCachedColor(p) - - if len(a) == 0 { - return c.SprintFunc()(format) - } - - return c.SprintfFunc()(format, a...) -} - -// Black is a convenient helper function to print with black foreground. A -// newline is appended to format by default. -func Black(format string, a ...interface{}) { colorPrint(format, FgBlack, a...) } - -// Red is a convenient helper function to print with red foreground. A -// newline is appended to format by default. -func Red(format string, a ...interface{}) { colorPrint(format, FgRed, a...) } - -// Green is a convenient helper function to print with green foreground. A -// newline is appended to format by default. -func Green(format string, a ...interface{}) { colorPrint(format, FgGreen, a...) } - -// Yellow is a convenient helper function to print with yellow foreground. -// A newline is appended to format by default. -func Yellow(format string, a ...interface{}) { colorPrint(format, FgYellow, a...) } - -// Blue is a convenient helper function to print with blue foreground. A -// newline is appended to format by default. -func Blue(format string, a ...interface{}) { colorPrint(format, FgBlue, a...) } - -// Magenta is a convenient helper function to print with magenta foreground. -// A newline is appended to format by default. -func Magenta(format string, a ...interface{}) { colorPrint(format, FgMagenta, a...) } - -// Cyan is a convenient helper function to print with cyan foreground. A -// newline is appended to format by default. -func Cyan(format string, a ...interface{}) { colorPrint(format, FgCyan, a...) } - -// White is a convenient helper function to print with white foreground. A -// newline is appended to format by default. -func White(format string, a ...interface{}) { colorPrint(format, FgWhite, a...) } - -// BlackString is a convenient helper function to return a string with black -// foreground. -func BlackString(format string, a ...interface{}) string { return colorString(format, FgBlack, a...) } - -// RedString is a convenient helper function to return a string with red -// foreground. -func RedString(format string, a ...interface{}) string { return colorString(format, FgRed, a...) } - -// GreenString is a convenient helper function to return a string with green -// foreground. -func GreenString(format string, a ...interface{}) string { return colorString(format, FgGreen, a...) } - -// YellowString is a convenient helper function to return a string with yellow -// foreground. -func YellowString(format string, a ...interface{}) string { return colorString(format, FgYellow, a...) } - -// BlueString is a convenient helper function to return a string with blue -// foreground. -func BlueString(format string, a ...interface{}) string { return colorString(format, FgBlue, a...) } - -// MagentaString is a convenient helper function to return a string with magenta -// foreground. -func MagentaString(format string, a ...interface{}) string { - return colorString(format, FgMagenta, a...) -} - -// CyanString is a convenient helper function to return a string with cyan -// foreground. -func CyanString(format string, a ...interface{}) string { return colorString(format, FgCyan, a...) } - -// WhiteString is a convenient helper function to return a string with white -// foreground. -func WhiteString(format string, a ...interface{}) string { return colorString(format, FgWhite, a...) } - -// HiBlack is a convenient helper function to print with hi-intensity black foreground. A -// newline is appended to format by default. -func HiBlack(format string, a ...interface{}) { colorPrint(format, FgHiBlack, a...) } - -// HiRed is a convenient helper function to print with hi-intensity red foreground. A -// newline is appended to format by default. -func HiRed(format string, a ...interface{}) { colorPrint(format, FgHiRed, a...) } - -// HiGreen is a convenient helper function to print with hi-intensity green foreground. A -// newline is appended to format by default. -func HiGreen(format string, a ...interface{}) { colorPrint(format, FgHiGreen, a...) } - -// HiYellow is a convenient helper function to print with hi-intensity yellow foreground. -// A newline is appended to format by default. -func HiYellow(format string, a ...interface{}) { colorPrint(format, FgHiYellow, a...) } - -// HiBlue is a convenient helper function to print with hi-intensity blue foreground. A -// newline is appended to format by default. -func HiBlue(format string, a ...interface{}) { colorPrint(format, FgHiBlue, a...) } - -// HiMagenta is a convenient helper function to print with hi-intensity magenta foreground. -// A newline is appended to format by default. -func HiMagenta(format string, a ...interface{}) { colorPrint(format, FgHiMagenta, a...) } - -// HiCyan is a convenient helper function to print with hi-intensity cyan foreground. A -// newline is appended to format by default. -func HiCyan(format string, a ...interface{}) { colorPrint(format, FgHiCyan, a...) } - -// HiWhite is a convenient helper function to print with hi-intensity white foreground. A -// newline is appended to format by default. -func HiWhite(format string, a ...interface{}) { colorPrint(format, FgHiWhite, a...) } - -// HiBlackString is a convenient helper function to return a string with hi-intensity black -// foreground. -func HiBlackString(format string, a ...interface{}) string { - return colorString(format, FgHiBlack, a...) -} - -// HiRedString is a convenient helper function to return a string with hi-intensity red -// foreground. -func HiRedString(format string, a ...interface{}) string { return colorString(format, FgHiRed, a...) } - -// HiGreenString is a convenient helper function to return a string with hi-intensity green -// foreground. -func HiGreenString(format string, a ...interface{}) string { - return colorString(format, FgHiGreen, a...) -} - -// HiYellowString is a convenient helper function to return a string with hi-intensity yellow -// foreground. -func HiYellowString(format string, a ...interface{}) string { - return colorString(format, FgHiYellow, a...) -} - -// HiBlueString is a convenient helper function to return a string with hi-intensity blue -// foreground. -func HiBlueString(format string, a ...interface{}) string { return colorString(format, FgHiBlue, a...) } - -// HiMagentaString is a convenient helper function to return a string with hi-intensity magenta -// foreground. -func HiMagentaString(format string, a ...interface{}) string { - return colorString(format, FgHiMagenta, a...) -} - -// HiCyanString is a convenient helper function to return a string with hi-intensity cyan -// foreground. -func HiCyanString(format string, a ...interface{}) string { return colorString(format, FgHiCyan, a...) } - -// HiWhiteString is a convenient helper function to return a string with hi-intensity white -// foreground. -func HiWhiteString(format string, a ...interface{}) string { - return colorString(format, FgHiWhite, a...) -} diff --git a/vendor/github.com/fatih/color/doc.go b/vendor/github.com/fatih/color/doc.go deleted file mode 100644 index cf1e965..0000000 --- a/vendor/github.com/fatih/color/doc.go +++ /dev/null @@ -1,133 +0,0 @@ -/* -Package color is an ANSI color package to output colorized or SGR defined -output to the standard output. The API can be used in several way, pick one -that suits you. - -Use simple and default helper functions with predefined foreground colors: - - color.Cyan("Prints text in cyan.") - - // a newline will be appended automatically - color.Blue("Prints %s in blue.", "text") - - // More default foreground colors.. - color.Red("We have red") - color.Yellow("Yellow color too!") - color.Magenta("And many others ..") - - // Hi-intensity colors - color.HiGreen("Bright green color.") - color.HiBlack("Bright black means gray..") - color.HiWhite("Shiny white color!") - -However there are times where custom color mixes are required. Below are some -examples to create custom color objects and use the print functions of each -separate color object. - - // Create a new color object - c := color.New(color.FgCyan).Add(color.Underline) - c.Println("Prints cyan text with an underline.") - - // Or just add them to New() - d := color.New(color.FgCyan, color.Bold) - d.Printf("This prints bold cyan %s\n", "too!.") - - - // Mix up foreground and background colors, create new mixes! - red := color.New(color.FgRed) - - boldRed := red.Add(color.Bold) - boldRed.Println("This will print text in bold red.") - - whiteBackground := red.Add(color.BgWhite) - whiteBackground.Println("Red text with White background.") - - // Use your own io.Writer output - color.New(color.FgBlue).Fprintln(myWriter, "blue color!") - - blue := color.New(color.FgBlue) - blue.Fprint(myWriter, "This will print text in blue.") - -You can create PrintXxx functions to simplify even more: - - // Create a custom print function for convenient - red := color.New(color.FgRed).PrintfFunc() - red("warning") - red("error: %s", err) - - // Mix up multiple attributes - notice := color.New(color.Bold, color.FgGreen).PrintlnFunc() - notice("don't forget this...") - -You can also FprintXxx functions to pass your own io.Writer: - - blue := color.New(FgBlue).FprintfFunc() - blue(myWriter, "important notice: %s", stars) - - // Mix up with multiple attributes - success := color.New(color.Bold, color.FgGreen).FprintlnFunc() - success(myWriter, don't forget this...") - - -Or create SprintXxx functions to mix strings with other non-colorized strings: - - yellow := New(FgYellow).SprintFunc() - red := New(FgRed).SprintFunc() - - fmt.Printf("this is a %s and this is %s.\n", yellow("warning"), red("error")) - - info := New(FgWhite, BgGreen).SprintFunc() - fmt.Printf("this %s rocks!\n", info("package")) - -Windows support is enabled by default. All Print functions work as intended. -However only for color.SprintXXX functions, user should use fmt.FprintXXX and -set the output to color.Output: - - fmt.Fprintf(color.Output, "Windows support: %s", color.GreenString("PASS")) - - info := New(FgWhite, BgGreen).SprintFunc() - fmt.Fprintf(color.Output, "this %s rocks!\n", info("package")) - -Using with existing code is possible. Just use the Set() method to set the -standard output to the given parameters. That way a rewrite of an existing -code is not required. - - // Use handy standard colors. - color.Set(color.FgYellow) - - fmt.Println("Existing text will be now in Yellow") - fmt.Printf("This one %s\n", "too") - - color.Unset() // don't forget to unset - - // You can mix up parameters - color.Set(color.FgMagenta, color.Bold) - defer color.Unset() // use it in your function - - fmt.Println("All text will be now bold magenta.") - -There might be a case where you want to disable color output (for example to -pipe the standard output of your app to somewhere else). `Color` has support to -disable colors both globally and for single color definition. For example -suppose you have a CLI app and a `--no-color` bool flag. You can easily disable -the color output with: - - var flagNoColor = flag.Bool("no-color", false, "Disable color output") - - if *flagNoColor { - color.NoColor = true // disables colorized output - } - -It also has support for single color definitions (local). You can -disable/enable color output on the fly: - - c := color.New(color.FgCyan) - c.Println("Prints cyan text") - - c.DisableColor() - c.Println("This is printed without any color") - - c.EnableColor() - c.Println("This prints again cyan...") -*/ -package color diff --git a/vendor/github.com/flynn/go-shlex/COPYING b/vendor/github.com/flynn/go-shlex/COPYING deleted file mode 100644 index d645695..0000000 --- a/vendor/github.com/flynn/go-shlex/COPYING +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/flynn/go-shlex/shlex.go b/vendor/github.com/flynn/go-shlex/shlex.go deleted file mode 100644 index 7aeace8..0000000 --- a/vendor/github.com/flynn/go-shlex/shlex.go +++ /dev/null @@ -1,457 +0,0 @@ -/* -Copyright 2012 Google Inc. All Rights Reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package shlex - -/* -Package shlex implements a simple lexer which splits input in to tokens using -shell-style rules for quoting and commenting. -*/ -import ( - "bufio" - "errors" - "fmt" - "io" - "strings" -) - -/* -A TokenType is a top-level token; a word, space, comment, unknown. -*/ -type TokenType int - -/* -A RuneTokenType is the type of a UTF-8 character; a character, quote, space, escape. -*/ -type RuneTokenType int - -type lexerState int - -type Token struct { - tokenType TokenType - value string -} - -/* -Two tokens are equal if both their types and values are equal. A nil token can -never equal another token. -*/ -func (a *Token) Equal(b *Token) bool { - if a == nil || b == nil { - return false - } - if a.tokenType != b.tokenType { - return false - } - return a.value == b.value -} - -const ( - RUNE_CHAR string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._-,/@$*()+=><:;&^%~|!?[]{}" - RUNE_SPACE string = " \t\r\n" - RUNE_ESCAPING_QUOTE string = "\"" - RUNE_NONESCAPING_QUOTE string = "'" - RUNE_ESCAPE = "\\" - RUNE_COMMENT = "#" - - RUNETOKEN_UNKNOWN RuneTokenType = 0 - RUNETOKEN_CHAR RuneTokenType = 1 - RUNETOKEN_SPACE RuneTokenType = 2 - RUNETOKEN_ESCAPING_QUOTE RuneTokenType = 3 - RUNETOKEN_NONESCAPING_QUOTE RuneTokenType = 4 - RUNETOKEN_ESCAPE RuneTokenType = 5 - RUNETOKEN_COMMENT RuneTokenType = 6 - RUNETOKEN_EOF RuneTokenType = 7 - - TOKEN_UNKNOWN TokenType = 0 - TOKEN_WORD TokenType = 1 - TOKEN_SPACE TokenType = 2 - TOKEN_COMMENT TokenType = 3 - - STATE_START lexerState = 0 - STATE_INWORD lexerState = 1 - STATE_ESCAPING lexerState = 2 - STATE_ESCAPING_QUOTED lexerState = 3 - STATE_QUOTED_ESCAPING lexerState = 4 - STATE_QUOTED lexerState = 5 - STATE_COMMENT lexerState = 6 - - INITIAL_TOKEN_CAPACITY int = 100 -) - -/* -A type for classifying characters. This allows for different sorts of -classifiers - those accepting extended non-ascii chars, or strict posix -compatibility, for example. -*/ -type TokenClassifier struct { - typeMap map[int32]RuneTokenType -} - -func addRuneClass(typeMap *map[int32]RuneTokenType, runes string, tokenType RuneTokenType) { - for _, rune := range runes { - (*typeMap)[int32(rune)] = tokenType - } -} - -/* -Create a new classifier for basic ASCII characters. -*/ -func NewDefaultClassifier() *TokenClassifier { - typeMap := map[int32]RuneTokenType{} - addRuneClass(&typeMap, RUNE_CHAR, RUNETOKEN_CHAR) - addRuneClass(&typeMap, RUNE_SPACE, RUNETOKEN_SPACE) - addRuneClass(&typeMap, RUNE_ESCAPING_QUOTE, RUNETOKEN_ESCAPING_QUOTE) - addRuneClass(&typeMap, RUNE_NONESCAPING_QUOTE, RUNETOKEN_NONESCAPING_QUOTE) - addRuneClass(&typeMap, RUNE_ESCAPE, RUNETOKEN_ESCAPE) - addRuneClass(&typeMap, RUNE_COMMENT, RUNETOKEN_COMMENT) - return &TokenClassifier{ - typeMap: typeMap} -} - -func (classifier *TokenClassifier) ClassifyRune(rune int32) RuneTokenType { - return classifier.typeMap[rune] -} - -/* -A type for turning an input stream in to a sequence of strings. Whitespace and -comments are skipped. -*/ -type Lexer struct { - tokenizer *Tokenizer -} - -/* -Create a new lexer. -*/ -func NewLexer(r io.Reader) (*Lexer, error) { - - tokenizer, err := NewTokenizer(r) - if err != nil { - return nil, err - } - lexer := &Lexer{tokenizer: tokenizer} - return lexer, nil -} - -/* -Return the next word, and an error value. If there are no more words, the error -will be io.EOF. -*/ -func (l *Lexer) NextWord() (string, error) { - var token *Token - var err error - for { - token, err = l.tokenizer.NextToken() - if err != nil { - return "", err - } - switch token.tokenType { - case TOKEN_WORD: - { - return token.value, nil - } - case TOKEN_COMMENT: - { - // skip comments - } - default: - { - panic(fmt.Sprintf("Unknown token type: %v", token.tokenType)) - } - } - } - return "", io.EOF -} - -/* -A type for turning an input stream in to a sequence of typed tokens. -*/ -type Tokenizer struct { - input *bufio.Reader - classifier *TokenClassifier -} - -/* -Create a new tokenizer. -*/ -func NewTokenizer(r io.Reader) (*Tokenizer, error) { - input := bufio.NewReader(r) - classifier := NewDefaultClassifier() - tokenizer := &Tokenizer{ - input: input, - classifier: classifier} - return tokenizer, nil -} - -/* -Scan the stream for the next token. - -This uses an internal state machine. It will panic if it encounters a character -which it does not know how to handle. -*/ -func (t *Tokenizer) scanStream() (*Token, error) { - state := STATE_START - var tokenType TokenType - value := make([]int32, 0, INITIAL_TOKEN_CAPACITY) - var ( - nextRune int32 - nextRuneType RuneTokenType - err error - ) -SCAN: - for { - nextRune, _, err = t.input.ReadRune() - nextRuneType = t.classifier.ClassifyRune(nextRune) - if err != nil { - if err == io.EOF { - nextRuneType = RUNETOKEN_EOF - err = nil - } else { - return nil, err - } - } - switch state { - case STATE_START: // no runes read yet - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - return nil, io.EOF - } - case RUNETOKEN_CHAR: - { - tokenType = TOKEN_WORD - value = append(value, nextRune) - state = STATE_INWORD - } - case RUNETOKEN_SPACE: - { - } - case RUNETOKEN_ESCAPING_QUOTE: - { - tokenType = TOKEN_WORD - state = STATE_QUOTED_ESCAPING - } - case RUNETOKEN_NONESCAPING_QUOTE: - { - tokenType = TOKEN_WORD - state = STATE_QUOTED - } - case RUNETOKEN_ESCAPE: - { - tokenType = TOKEN_WORD - state = STATE_ESCAPING - } - case RUNETOKEN_COMMENT: - { - tokenType = TOKEN_COMMENT - state = STATE_COMMENT - } - default: - { - return nil, errors.New(fmt.Sprintf("Unknown rune: %v", nextRune)) - } - } - } - case STATE_INWORD: // in a regular word - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_COMMENT: - { - value = append(value, nextRune) - } - case RUNETOKEN_SPACE: - { - t.input.UnreadRune() - break SCAN - } - case RUNETOKEN_ESCAPING_QUOTE: - { - state = STATE_QUOTED_ESCAPING - } - case RUNETOKEN_NONESCAPING_QUOTE: - { - state = STATE_QUOTED - } - case RUNETOKEN_ESCAPE: - { - state = STATE_ESCAPING - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - case STATE_ESCAPING: // the next rune after an escape character - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - err = errors.New("EOF found after escape character") - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_SPACE, RUNETOKEN_ESCAPING_QUOTE, RUNETOKEN_NONESCAPING_QUOTE, RUNETOKEN_ESCAPE, RUNETOKEN_COMMENT: - { - state = STATE_INWORD - value = append(value, nextRune) - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - case STATE_ESCAPING_QUOTED: // the next rune after an escape character, in double quotes - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - err = errors.New("EOF found after escape character") - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_SPACE, RUNETOKEN_ESCAPING_QUOTE, RUNETOKEN_NONESCAPING_QUOTE, RUNETOKEN_ESCAPE, RUNETOKEN_COMMENT: - { - state = STATE_QUOTED_ESCAPING - value = append(value, nextRune) - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - case STATE_QUOTED_ESCAPING: // in escaping double quotes - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - err = errors.New("EOF found when expecting closing quote.") - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_UNKNOWN, RUNETOKEN_SPACE, RUNETOKEN_NONESCAPING_QUOTE, RUNETOKEN_COMMENT: - { - value = append(value, nextRune) - } - case RUNETOKEN_ESCAPING_QUOTE: - { - state = STATE_INWORD - } - case RUNETOKEN_ESCAPE: - { - state = STATE_ESCAPING_QUOTED - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - case STATE_QUOTED: // in non-escaping single quotes - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - err = errors.New("EOF found when expecting closing quote.") - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_UNKNOWN, RUNETOKEN_SPACE, RUNETOKEN_ESCAPING_QUOTE, RUNETOKEN_ESCAPE, RUNETOKEN_COMMENT: - { - value = append(value, nextRune) - } - case RUNETOKEN_NONESCAPING_QUOTE: - { - state = STATE_INWORD - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - case STATE_COMMENT: - { - switch nextRuneType { - case RUNETOKEN_EOF: - { - break SCAN - } - case RUNETOKEN_CHAR, RUNETOKEN_UNKNOWN, RUNETOKEN_ESCAPING_QUOTE, RUNETOKEN_ESCAPE, RUNETOKEN_COMMENT, RUNETOKEN_NONESCAPING_QUOTE: - { - value = append(value, nextRune) - } - case RUNETOKEN_SPACE: - { - if nextRune == '\n' { - state = STATE_START - break SCAN - } else { - value = append(value, nextRune) - } - } - default: - { - return nil, errors.New(fmt.Sprintf("Uknown rune: %v", nextRune)) - } - } - } - default: - { - panic(fmt.Sprintf("Unexpected state: %v", state)) - } - } - } - token := &Token{ - tokenType: tokenType, - value: string(value)} - return token, err -} - -/* -Return the next token in the stream, and an error value. If there are no more -tokens available, the error value will be io.EOF. -*/ -func (t *Tokenizer) NextToken() (*Token, error) { - return t.scanStream() -} - -/* -Split a string in to a slice of strings, based upon shell-style rules for -quoting, escaping, and spaces. -*/ -func Split(s string) ([]string, error) { - l, err := NewLexer(strings.NewReader(s)) - if err != nil { - return nil, err - } - subStrings := []string{} - for { - word, err := l.NextWord() - if err != nil { - if err == io.EOF { - return subStrings, nil - } - return subStrings, err - } - subStrings = append(subStrings, word) - } - return subStrings, nil -} diff --git a/vendor/github.com/ghodss/yaml/LICENSE b/vendor/github.com/ghodss/yaml/LICENSE deleted file mode 100644 index 7805d36..0000000 --- a/vendor/github.com/ghodss/yaml/LICENSE +++ /dev/null @@ -1,50 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Sam Ghods - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -Copyright (c) 2012 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/ghodss/yaml/fields.go b/vendor/github.com/ghodss/yaml/fields.go deleted file mode 100644 index 5860074..0000000 --- a/vendor/github.com/ghodss/yaml/fields.go +++ /dev/null @@ -1,501 +0,0 @@ -// Copyright 2013 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 yaml - -import ( - "bytes" - "encoding" - "encoding/json" - "reflect" - "sort" - "strings" - "sync" - "unicode" - "unicode/utf8" -) - -// indirect walks down v allocating pointers as needed, -// until it gets to a non-pointer. -// if it encounters an Unmarshaler, indirect stops and returns that. -// if decodingNull is true, indirect stops at the last pointer so it can be set to nil. -func indirect(v reflect.Value, decodingNull bool) (json.Unmarshaler, encoding.TextUnmarshaler, reflect.Value) { - // If v is a named type and is addressable, - // start with its address, so that if the type has pointer methods, - // we find them. - if v.Kind() != reflect.Ptr && v.Type().Name() != "" && v.CanAddr() { - v = v.Addr() - } - for { - // Load value from interface, but only if the result will be - // usefully addressable. - if v.Kind() == reflect.Interface && !v.IsNil() { - e := v.Elem() - if e.Kind() == reflect.Ptr && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Ptr) { - v = e - continue - } - } - - if v.Kind() != reflect.Ptr { - break - } - - if v.Elem().Kind() != reflect.Ptr && decodingNull && v.CanSet() { - break - } - if v.IsNil() { - if v.CanSet() { - v.Set(reflect.New(v.Type().Elem())) - } else { - v = reflect.New(v.Type().Elem()) - } - } - if v.Type().NumMethod() > 0 { - if u, ok := v.Interface().(json.Unmarshaler); ok { - return u, nil, reflect.Value{} - } - if u, ok := v.Interface().(encoding.TextUnmarshaler); ok { - return nil, u, reflect.Value{} - } - } - v = v.Elem() - } - return nil, nil, v -} - -// A field represents a single field found in a struct. -type field struct { - name string - nameBytes []byte // []byte(name) - equalFold func(s, t []byte) bool // bytes.EqualFold or equivalent - - tag bool - index []int - typ reflect.Type - omitEmpty bool - quoted bool -} - -func fillField(f field) field { - f.nameBytes = []byte(f.name) - f.equalFold = foldFunc(f.nameBytes) - return f -} - -// byName sorts field by name, breaking ties with depth, -// then breaking ties with "name came from json tag", then -// breaking ties with index sequence. -type byName []field - -func (x byName) Len() int { return len(x) } - -func (x byName) Swap(i, j int) { x[i], x[j] = x[j], x[i] } - -func (x byName) Less(i, j int) bool { - if x[i].name != x[j].name { - return x[i].name < x[j].name - } - if len(x[i].index) != len(x[j].index) { - return len(x[i].index) < len(x[j].index) - } - if x[i].tag != x[j].tag { - return x[i].tag - } - return byIndex(x).Less(i, j) -} - -// byIndex sorts field by index sequence. -type byIndex []field - -func (x byIndex) Len() int { return len(x) } - -func (x byIndex) Swap(i, j int) { x[i], x[j] = x[j], x[i] } - -func (x byIndex) Less(i, j int) bool { - for k, xik := range x[i].index { - if k >= len(x[j].index) { - return false - } - if xik != x[j].index[k] { - return xik < x[j].index[k] - } - } - return len(x[i].index) < len(x[j].index) -} - -// typeFields returns a list of fields that JSON should recognize for the given type. -// The algorithm is breadth-first search over the set of structs to include - the top struct -// and then any reachable anonymous structs. -func typeFields(t reflect.Type) []field { - // Anonymous fields to explore at the current level and the next. - current := []field{} - next := []field{{typ: t}} - - // Count of queued names for current level and the next. - count := map[reflect.Type]int{} - nextCount := map[reflect.Type]int{} - - // Types already visited at an earlier level. - visited := map[reflect.Type]bool{} - - // Fields found. - var fields []field - - for len(next) > 0 { - current, next = next, current[:0] - count, nextCount = nextCount, map[reflect.Type]int{} - - for _, f := range current { - if visited[f.typ] { - continue - } - visited[f.typ] = true - - // Scan f.typ for fields to include. - for i := 0; i < f.typ.NumField(); i++ { - sf := f.typ.Field(i) - if sf.PkgPath != "" { // unexported - continue - } - tag := sf.Tag.Get("json") - if tag == "-" { - continue - } - name, opts := parseTag(tag) - if !isValidTag(name) { - name = "" - } - index := make([]int, len(f.index)+1) - copy(index, f.index) - index[len(f.index)] = i - - ft := sf.Type - if ft.Name() == "" && ft.Kind() == reflect.Ptr { - // Follow pointer. - ft = ft.Elem() - } - - // Record found field and index sequence. - if name != "" || !sf.Anonymous || ft.Kind() != reflect.Struct { - tagged := name != "" - if name == "" { - name = sf.Name - } - fields = append(fields, fillField(field{ - name: name, - tag: tagged, - index: index, - typ: ft, - omitEmpty: opts.Contains("omitempty"), - quoted: opts.Contains("string"), - })) - if count[f.typ] > 1 { - // If there were multiple instances, add a second, - // so that the annihilation code will see a duplicate. - // It only cares about the distinction between 1 or 2, - // so don't bother generating any more copies. - fields = append(fields, fields[len(fields)-1]) - } - continue - } - - // Record new anonymous struct to explore in next round. - nextCount[ft]++ - if nextCount[ft] == 1 { - next = append(next, fillField(field{name: ft.Name(), index: index, typ: ft})) - } - } - } - } - - sort.Sort(byName(fields)) - - // Delete all fields that are hidden by the Go rules for embedded fields, - // except that fields with JSON tags are promoted. - - // The fields are sorted in primary order of name, secondary order - // of field index length. Loop over names; for each name, delete - // hidden fields by choosing the one dominant field that survives. - out := fields[:0] - for advance, i := 0, 0; i < len(fields); i += advance { - // One iteration per name. - // Find the sequence of fields with the name of this first field. - fi := fields[i] - name := fi.name - for advance = 1; i+advance < len(fields); advance++ { - fj := fields[i+advance] - if fj.name != name { - break - } - } - if advance == 1 { // Only one field with this name - out = append(out, fi) - continue - } - dominant, ok := dominantField(fields[i : i+advance]) - if ok { - out = append(out, dominant) - } - } - - fields = out - sort.Sort(byIndex(fields)) - - return fields -} - -// dominantField looks through the fields, all of which are known to -// have the same name, to find the single field that dominates the -// others using Go's embedding rules, modified by the presence of -// JSON tags. If there are multiple top-level fields, the boolean -// will be false: This condition is an error in Go and we skip all -// the fields. -func dominantField(fields []field) (field, bool) { - // The fields are sorted in increasing index-length order. The winner - // must therefore be one with the shortest index length. Drop all - // longer entries, which is easy: just truncate the slice. - length := len(fields[0].index) - tagged := -1 // Index of first tagged field. - for i, f := range fields { - if len(f.index) > length { - fields = fields[:i] - break - } - if f.tag { - if tagged >= 0 { - // Multiple tagged fields at the same level: conflict. - // Return no field. - return field{}, false - } - tagged = i - } - } - if tagged >= 0 { - return fields[tagged], true - } - // All remaining fields have the same length. If there's more than one, - // we have a conflict (two fields named "X" at the same level) and we - // return no field. - if len(fields) > 1 { - return field{}, false - } - return fields[0], true -} - -var fieldCache struct { - sync.RWMutex - m map[reflect.Type][]field -} - -// cachedTypeFields is like typeFields but uses a cache to avoid repeated work. -func cachedTypeFields(t reflect.Type) []field { - fieldCache.RLock() - f := fieldCache.m[t] - fieldCache.RUnlock() - if f != nil { - return f - } - - // Compute fields without lock. - // Might duplicate effort but won't hold other computations back. - f = typeFields(t) - if f == nil { - f = []field{} - } - - fieldCache.Lock() - if fieldCache.m == nil { - fieldCache.m = map[reflect.Type][]field{} - } - fieldCache.m[t] = f - fieldCache.Unlock() - return f -} - -func isValidTag(s string) bool { - if s == "" { - return false - } - for _, c := range s { - switch { - case strings.ContainsRune("!#$%&()*+-./:<=>?@[]^_{|}~ ", c): - // Backslash and quote chars are reserved, but - // otherwise any punctuation chars are allowed - // in a tag name. - default: - if !unicode.IsLetter(c) && !unicode.IsDigit(c) { - return false - } - } - } - return true -} - -const ( - caseMask = ^byte(0x20) // Mask to ignore case in ASCII. - kelvin = '\u212a' - smallLongEss = '\u017f' -) - -// foldFunc returns one of four different case folding equivalence -// functions, from most general (and slow) to fastest: -// -// 1) bytes.EqualFold, if the key s contains any non-ASCII UTF-8 -// 2) equalFoldRight, if s contains special folding ASCII ('k', 'K', 's', 'S') -// 3) asciiEqualFold, no special, but includes non-letters (including _) -// 4) simpleLetterEqualFold, no specials, no non-letters. -// -// The letters S and K are special because they map to 3 runes, not just 2: -// * S maps to s and to U+017F 'ſ' Latin small letter long s -// * k maps to K and to U+212A 'K' Kelvin sign -// See http://play.golang.org/p/tTxjOc0OGo -// -// The returned function is specialized for matching against s and -// should only be given s. It's not curried for performance reasons. -func foldFunc(s []byte) func(s, t []byte) bool { - nonLetter := false - special := false // special letter - for _, b := range s { - if b >= utf8.RuneSelf { - return bytes.EqualFold - } - upper := b & caseMask - if upper < 'A' || upper > 'Z' { - nonLetter = true - } else if upper == 'K' || upper == 'S' { - // See above for why these letters are special. - special = true - } - } - if special { - return equalFoldRight - } - if nonLetter { - return asciiEqualFold - } - return simpleLetterEqualFold -} - -// equalFoldRight is a specialization of bytes.EqualFold when s is -// known to be all ASCII (including punctuation), but contains an 's', -// 'S', 'k', or 'K', requiring a Unicode fold on the bytes in t. -// See comments on foldFunc. -func equalFoldRight(s, t []byte) bool { - for _, sb := range s { - if len(t) == 0 { - return false - } - tb := t[0] - if tb < utf8.RuneSelf { - if sb != tb { - sbUpper := sb & caseMask - if 'A' <= sbUpper && sbUpper <= 'Z' { - if sbUpper != tb&caseMask { - return false - } - } else { - return false - } - } - t = t[1:] - continue - } - // sb is ASCII and t is not. t must be either kelvin - // sign or long s; sb must be s, S, k, or K. - tr, size := utf8.DecodeRune(t) - switch sb { - case 's', 'S': - if tr != smallLongEss { - return false - } - case 'k', 'K': - if tr != kelvin { - return false - } - default: - return false - } - t = t[size:] - - } - if len(t) > 0 { - return false - } - return true -} - -// asciiEqualFold is a specialization of bytes.EqualFold for use when -// s is all ASCII (but may contain non-letters) and contains no -// special-folding letters. -// See comments on foldFunc. -func asciiEqualFold(s, t []byte) bool { - if len(s) != len(t) { - return false - } - for i, sb := range s { - tb := t[i] - if sb == tb { - continue - } - if ('a' <= sb && sb <= 'z') || ('A' <= sb && sb <= 'Z') { - if sb&caseMask != tb&caseMask { - return false - } - } else { - return false - } - } - return true -} - -// simpleLetterEqualFold is a specialization of bytes.EqualFold for -// use when s is all ASCII letters (no underscores, etc) and also -// doesn't contain 'k', 'K', 's', or 'S'. -// See comments on foldFunc. -func simpleLetterEqualFold(s, t []byte) bool { - if len(s) != len(t) { - return false - } - for i, b := range s { - if b&caseMask != t[i]&caseMask { - return false - } - } - return true -} - -// tagOptions is the string following a comma in a struct field's "json" -// tag, or the empty string. It does not include the leading comma. -type tagOptions string - -// parseTag splits a struct field's json tag into its name and -// comma-separated options. -func parseTag(tag string) (string, tagOptions) { - if idx := strings.Index(tag, ","); idx != -1 { - return tag[:idx], tagOptions(tag[idx+1:]) - } - return tag, tagOptions("") -} - -// Contains reports whether a comma-separated list of options -// contains a particular substr flag. substr must be surrounded by a -// string boundary or commas. -func (o tagOptions) Contains(optionName string) bool { - if len(o) == 0 { - return false - } - s := string(o) - for s != "" { - var next string - i := strings.Index(s, ",") - if i >= 0 { - s, next = s[:i], s[i+1:] - } - if s == optionName { - return true - } - s = next - } - return false -} diff --git a/vendor/github.com/ghodss/yaml/yaml.go b/vendor/github.com/ghodss/yaml/yaml.go deleted file mode 100644 index 4fb4054..0000000 --- a/vendor/github.com/ghodss/yaml/yaml.go +++ /dev/null @@ -1,277 +0,0 @@ -package yaml - -import ( - "bytes" - "encoding/json" - "fmt" - "reflect" - "strconv" - - "gopkg.in/yaml.v2" -) - -// Marshals the object into JSON then converts JSON to YAML and returns the -// YAML. -func Marshal(o interface{}) ([]byte, error) { - j, err := json.Marshal(o) - if err != nil { - return nil, fmt.Errorf("error marshaling into JSON: %v", err) - } - - y, err := JSONToYAML(j) - if err != nil { - return nil, fmt.Errorf("error converting JSON to YAML: %v", err) - } - - return y, nil -} - -// Converts YAML to JSON then uses JSON to unmarshal into an object. -func Unmarshal(y []byte, o interface{}) error { - vo := reflect.ValueOf(o) - j, err := yamlToJSON(y, &vo) - if err != nil { - return fmt.Errorf("error converting YAML to JSON: %v", err) - } - - err = json.Unmarshal(j, o) - if err != nil { - return fmt.Errorf("error unmarshaling JSON: %v", err) - } - - return nil -} - -// Convert JSON to YAML. -func JSONToYAML(j []byte) ([]byte, error) { - // Convert the JSON to an object. - var jsonObj interface{} - // We are using yaml.Unmarshal here (instead of json.Unmarshal) because the - // Go JSON library doesn't try to pick the right number type (int, float, - // etc.) when unmarshalling to interface{}, it just picks float64 - // universally. go-yaml does go through the effort of picking the right - // number type, so we can preserve number type throughout this process. - err := yaml.Unmarshal(j, &jsonObj) - if err != nil { - return nil, err - } - - // Marshal this object into YAML. - return yaml.Marshal(jsonObj) -} - -// Convert YAML to JSON. Since JSON is a subset of YAML, passing JSON through -// this method should be a no-op. -// -// Things YAML can do that are not supported by JSON: -// * In YAML you can have binary and null keys in your maps. These are invalid -// in JSON. (int and float keys are converted to strings.) -// * Binary data in YAML with the !!binary tag is not supported. If you want to -// use binary data with this library, encode the data as base64 as usual but do -// not use the !!binary tag in your YAML. This will ensure the original base64 -// encoded data makes it all the way through to the JSON. -func YAMLToJSON(y []byte) ([]byte, error) { - return yamlToJSON(y, nil) -} - -func yamlToJSON(y []byte, jsonTarget *reflect.Value) ([]byte, error) { - // Convert the YAML to an object. - var yamlObj interface{} - err := yaml.Unmarshal(y, &yamlObj) - if err != nil { - return nil, err - } - - // YAML objects are not completely compatible with JSON objects (e.g. you - // can have non-string keys in YAML). So, convert the YAML-compatible object - // to a JSON-compatible object, failing with an error if irrecoverable - // incompatibilties happen along the way. - jsonObj, err := convertToJSONableObject(yamlObj, jsonTarget) - if err != nil { - return nil, err - } - - // Convert this object to JSON and return the data. - return json.Marshal(jsonObj) -} - -func convertToJSONableObject(yamlObj interface{}, jsonTarget *reflect.Value) (interface{}, error) { - var err error - - // Resolve jsonTarget to a concrete value (i.e. not a pointer or an - // interface). We pass decodingNull as false because we're not actually - // decoding into the value, we're just checking if the ultimate target is a - // string. - if jsonTarget != nil { - ju, tu, pv := indirect(*jsonTarget, false) - // We have a JSON or Text Umarshaler at this level, so we can't be trying - // to decode into a string. - if ju != nil || tu != nil { - jsonTarget = nil - } else { - jsonTarget = &pv - } - } - - // If yamlObj is a number or a boolean, check if jsonTarget is a string - - // if so, coerce. Else return normal. - // If yamlObj is a map or array, find the field that each key is - // unmarshaling to, and when you recurse pass the reflect.Value for that - // field back into this function. - switch typedYAMLObj := yamlObj.(type) { - case map[interface{}]interface{}: - // JSON does not support arbitrary keys in a map, so we must convert - // these keys to strings. - // - // From my reading of go-yaml v2 (specifically the resolve function), - // keys can only have the types string, int, int64, float64, binary - // (unsupported), or null (unsupported). - strMap := make(map[string]interface{}) - for k, v := range typedYAMLObj { - // Resolve the key to a string first. - var keyString string - switch typedKey := k.(type) { - case string: - keyString = typedKey - case int: - keyString = strconv.Itoa(typedKey) - case int64: - // go-yaml will only return an int64 as a key if the system - // architecture is 32-bit and the key's value is between 32-bit - // and 64-bit. Otherwise the key type will simply be int. - keyString = strconv.FormatInt(typedKey, 10) - case float64: - // Stolen from go-yaml to use the same conversion to string as - // the go-yaml library uses to convert float to string when - // Marshaling. - s := strconv.FormatFloat(typedKey, 'g', -1, 32) - switch s { - case "+Inf": - s = ".inf" - case "-Inf": - s = "-.inf" - case "NaN": - s = ".nan" - } - keyString = s - case bool: - if typedKey { - keyString = "true" - } else { - keyString = "false" - } - default: - return nil, fmt.Errorf("Unsupported map key of type: %s, key: %+#v, value: %+#v", - reflect.TypeOf(k), k, v) - } - - // jsonTarget should be a struct or a map. If it's a struct, find - // the field it's going to map to and pass its reflect.Value. If - // it's a map, find the element type of the map and pass the - // reflect.Value created from that type. If it's neither, just pass - // nil - JSON conversion will error for us if it's a real issue. - if jsonTarget != nil { - t := *jsonTarget - if t.Kind() == reflect.Struct { - keyBytes := []byte(keyString) - // Find the field that the JSON library would use. - var f *field - fields := cachedTypeFields(t.Type()) - for i := range fields { - ff := &fields[i] - if bytes.Equal(ff.nameBytes, keyBytes) { - f = ff - break - } - // Do case-insensitive comparison. - if f == nil && ff.equalFold(ff.nameBytes, keyBytes) { - f = ff - } - } - if f != nil { - // Find the reflect.Value of the most preferential - // struct field. - jtf := t.Field(f.index[0]) - strMap[keyString], err = convertToJSONableObject(v, &jtf) - if err != nil { - return nil, err - } - continue - } - } else if t.Kind() == reflect.Map { - // Create a zero value of the map's element type to use as - // the JSON target. - jtv := reflect.Zero(t.Type().Elem()) - strMap[keyString], err = convertToJSONableObject(v, &jtv) - if err != nil { - return nil, err - } - continue - } - } - strMap[keyString], err = convertToJSONableObject(v, nil) - if err != nil { - return nil, err - } - } - return strMap, nil - case []interface{}: - // We need to recurse into arrays in case there are any - // map[interface{}]interface{}'s inside and to convert any - // numbers to strings. - - // If jsonTarget is a slice (which it really should be), find the - // thing it's going to map to. If it's not a slice, just pass nil - // - JSON conversion will error for us if it's a real issue. - var jsonSliceElemValue *reflect.Value - if jsonTarget != nil { - t := *jsonTarget - if t.Kind() == reflect.Slice { - // By default slices point to nil, but we need a reflect.Value - // pointing to a value of the slice type, so we create one here. - ev := reflect.Indirect(reflect.New(t.Type().Elem())) - jsonSliceElemValue = &ev - } - } - - // Make and use a new array. - arr := make([]interface{}, len(typedYAMLObj)) - for i, v := range typedYAMLObj { - arr[i], err = convertToJSONableObject(v, jsonSliceElemValue) - if err != nil { - return nil, err - } - } - return arr, nil - default: - // If the target type is a string and the YAML type is a number, - // convert the YAML type to a string. - if jsonTarget != nil && (*jsonTarget).Kind() == reflect.String { - // Based on my reading of go-yaml, it may return int, int64, - // float64, or uint64. - var s string - switch typedVal := typedYAMLObj.(type) { - case int: - s = strconv.FormatInt(int64(typedVal), 10) - case int64: - s = strconv.FormatInt(typedVal, 10) - case float64: - s = strconv.FormatFloat(typedVal, 'g', -1, 32) - case uint64: - s = strconv.FormatUint(typedVal, 10) - case bool: - if typedVal { - s = "true" - } else { - s = "false" - } - } - if len(s) > 0 { - yamlObj = interface{}(s) - } - } - return yamlObj, nil - } - - return nil, nil -} diff --git a/vendor/github.com/golang/protobuf/AUTHORS b/vendor/github.com/golang/protobuf/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/github.com/golang/protobuf/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/github.com/golang/protobuf/CONTRIBUTORS b/vendor/github.com/golang/protobuf/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/github.com/golang/protobuf/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/github.com/golang/protobuf/LICENSE b/vendor/github.com/golang/protobuf/LICENSE deleted file mode 100644 index 1b1b192..0000000 --- a/vendor/github.com/golang/protobuf/LICENSE +++ /dev/null @@ -1,31 +0,0 @@ -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/vendor/github.com/golang/protobuf/proto/clone.go b/vendor/github.com/golang/protobuf/proto/clone.go deleted file mode 100644 index e392575..0000000 --- a/vendor/github.com/golang/protobuf/proto/clone.go +++ /dev/null @@ -1,229 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer deep copy and merge. -// TODO: RawMessage. - -package proto - -import ( - "log" - "reflect" - "strings" -) - -// Clone returns a deep copy of a protocol buffer. -func Clone(pb Message) Message { - in := reflect.ValueOf(pb) - if in.IsNil() { - return pb - } - - out := reflect.New(in.Type().Elem()) - // out is empty so a merge is a deep copy. - mergeStruct(out.Elem(), in.Elem()) - return out.Interface().(Message) -} - -// Merge merges src into dst. -// Required and optional fields that are set in src will be set to that value in dst. -// Elements of repeated fields will be appended. -// Merge panics if src and dst are not the same type, or if dst is nil. -func Merge(dst, src Message) { - in := reflect.ValueOf(src) - out := reflect.ValueOf(dst) - if out.IsNil() { - panic("proto: nil destination") - } - if in.Type() != out.Type() { - // Explicit test prior to mergeStruct so that mistyped nils will fail - panic("proto: type mismatch") - } - if in.IsNil() { - // Merging nil into non-nil is a quiet no-op - return - } - mergeStruct(out.Elem(), in.Elem()) -} - -func mergeStruct(out, in reflect.Value) { - sprop := GetProperties(in.Type()) - for i := 0; i < in.NumField(); i++ { - f := in.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) - } - - if emIn, ok := extendable(in.Addr().Interface()); ok { - emOut, _ := extendable(out.Addr().Interface()) - mIn, muIn := emIn.extensionsRead() - if mIn != nil { - mOut := emOut.extensionsWrite() - muIn.Lock() - mergeExtension(mOut, mIn) - muIn.Unlock() - } - } - - uf := in.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return - } - uin := uf.Bytes() - if len(uin) > 0 { - out.FieldByName("XXX_unrecognized").SetBytes(append([]byte(nil), uin...)) - } -} - -// mergeAny performs a merge between two values of the same type. -// viaPtr indicates whether the values were indirected through a pointer (implying proto2). -// prop is set if this is a struct field (it may be nil). -func mergeAny(out, in reflect.Value, viaPtr bool, prop *Properties) { - if in.Type() == protoMessageType { - if !in.IsNil() { - if out.IsNil() { - out.Set(reflect.ValueOf(Clone(in.Interface().(Message)))) - } else { - Merge(out.Interface().(Message), in.Interface().(Message)) - } - } - return - } - switch in.Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - if !viaPtr && isProto3Zero(in) { - return - } - out.Set(in) - case reflect.Interface: - // Probably a oneof field; copy non-nil values. - if in.IsNil() { - return - } - // Allocate destination if it is not set, or set to a different type. - // Otherwise we will merge as normal. - if out.IsNil() || out.Elem().Type() != in.Elem().Type() { - out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T) - } - mergeAny(out.Elem(), in.Elem(), false, nil) - case reflect.Map: - if in.Len() == 0 { - return - } - if out.IsNil() { - out.Set(reflect.MakeMap(in.Type())) - } - // For maps with value types of *T or []byte we need to deep copy each value. - elemKind := in.Type().Elem().Kind() - for _, key := range in.MapKeys() { - var val reflect.Value - switch elemKind { - case reflect.Ptr: - val = reflect.New(in.Type().Elem().Elem()) - mergeAny(val, in.MapIndex(key), false, nil) - case reflect.Slice: - val = in.MapIndex(key) - val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) - default: - val = in.MapIndex(key) - } - out.SetMapIndex(key, val) - } - case reflect.Ptr: - if in.IsNil() { - return - } - if out.IsNil() { - out.Set(reflect.New(in.Elem().Type())) - } - mergeAny(out.Elem(), in.Elem(), true, nil) - case reflect.Slice: - if in.IsNil() { - return - } - if in.Type().Elem().Kind() == reflect.Uint8 { - // []byte is a scalar bytes field, not a repeated field. - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value, and should not - // be merged. - if prop != nil && prop.proto3 && in.Len() == 0 { - return - } - - // Make a deep copy. - // Append to []byte{} instead of []byte(nil) so that we never end up - // with a nil result. - out.SetBytes(append([]byte{}, in.Bytes()...)) - return - } - n := in.Len() - if out.IsNil() { - out.Set(reflect.MakeSlice(in.Type(), 0, n)) - } - switch in.Type().Elem().Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - out.Set(reflect.AppendSlice(out, in)) - default: - for i := 0; i < n; i++ { - x := reflect.Indirect(reflect.New(in.Type().Elem())) - mergeAny(x, in.Index(i), false, nil) - out.Set(reflect.Append(out, x)) - } - } - case reflect.Struct: - mergeStruct(out, in) - default: - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to copy %v", in) - } -} - -func mergeExtension(out, in map[int32]Extension) { - for extNum, eIn := range in { - eOut := Extension{desc: eIn.desc} - if eIn.value != nil { - v := reflect.New(reflect.TypeOf(eIn.value)).Elem() - mergeAny(v, reflect.ValueOf(eIn.value), false, nil) - eOut.value = v.Interface() - } - if eIn.enc != nil { - eOut.enc = make([]byte, len(eIn.enc)) - copy(eOut.enc, eIn.enc) - } - - out[extNum] = eOut - } -} diff --git a/vendor/github.com/golang/protobuf/proto/decode.go b/vendor/github.com/golang/protobuf/proto/decode.go deleted file mode 100644 index aa20729..0000000 --- a/vendor/github.com/golang/protobuf/proto/decode.go +++ /dev/null @@ -1,970 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for decoding protocol buffer data to construct in-memory representations. - */ - -import ( - "errors" - "fmt" - "io" - "os" - "reflect" -) - -// errOverflow is returned when an integer is too large to be represented. -var errOverflow = errors.New("proto: integer overflow") - -// ErrInternalBadWireType is returned by generated code when an incorrect -// wire type is encountered. It does not get returned to user code. -var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") - -// The fundamental decoders that interpret bytes on the wire. -// Those that take integer types all return uint64 and are -// therefore of type valueDecoder. - -// DecodeVarint reads a varint-encoded integer from the slice. -// It returns the integer and the number of bytes consumed, or -// zero if there is not enough. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func DecodeVarint(buf []byte) (x uint64, n int) { - for shift := uint(0); shift < 64; shift += 7 { - if n >= len(buf) { - return 0, 0 - } - b := uint64(buf[n]) - n++ - x |= (b & 0x7F) << shift - if (b & 0x80) == 0 { - return x, n - } - } - - // The number is too large to represent in a 64-bit value. - return 0, 0 -} - -func (p *Buffer) decodeVarintSlow() (x uint64, err error) { - i := p.index - l := len(p.buf) - - for shift := uint(0); shift < 64; shift += 7 { - if i >= l { - err = io.ErrUnexpectedEOF - return - } - b := p.buf[i] - i++ - x |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - p.index = i - return - } - } - - // The number is too large to represent in a 64-bit value. - err = errOverflow - return -} - -// DecodeVarint reads a varint-encoded integer from the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) DecodeVarint() (x uint64, err error) { - i := p.index - buf := p.buf - - if i >= len(buf) { - return 0, io.ErrUnexpectedEOF - } else if buf[i] < 0x80 { - p.index++ - return uint64(buf[i]), nil - } else if len(buf)-i < 10 { - return p.decodeVarintSlow() - } - - var b uint64 - // we already checked the first byte - x = uint64(buf[i]) - 0x80 - i++ - - b = uint64(buf[i]) - i++ - x += b << 7 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 7 - - b = uint64(buf[i]) - i++ - x += b << 14 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 14 - - b = uint64(buf[i]) - i++ - x += b << 21 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 21 - - b = uint64(buf[i]) - i++ - x += b << 28 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 28 - - b = uint64(buf[i]) - i++ - x += b << 35 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 35 - - b = uint64(buf[i]) - i++ - x += b << 42 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 42 - - b = uint64(buf[i]) - i++ - x += b << 49 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 49 - - b = uint64(buf[i]) - i++ - x += b << 56 - if b&0x80 == 0 { - goto done - } - x -= 0x80 << 56 - - b = uint64(buf[i]) - i++ - x += b << 63 - if b&0x80 == 0 { - goto done - } - // x -= 0x80 << 63 // Always zero. - - return 0, errOverflow - -done: - p.index = i - return x, nil -} - -// DecodeFixed64 reads a 64-bit integer from the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) DecodeFixed64() (x uint64, err error) { - // x, err already 0 - i := p.index + 8 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-8]) - x |= uint64(p.buf[i-7]) << 8 - x |= uint64(p.buf[i-6]) << 16 - x |= uint64(p.buf[i-5]) << 24 - x |= uint64(p.buf[i-4]) << 32 - x |= uint64(p.buf[i-3]) << 40 - x |= uint64(p.buf[i-2]) << 48 - x |= uint64(p.buf[i-1]) << 56 - return -} - -// DecodeFixed32 reads a 32-bit integer from the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) DecodeFixed32() (x uint64, err error) { - // x, err already 0 - i := p.index + 4 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-4]) - x |= uint64(p.buf[i-3]) << 8 - x |= uint64(p.buf[i-2]) << 16 - x |= uint64(p.buf[i-1]) << 24 - return -} - -// DecodeZigzag64 reads a zigzag-encoded 64-bit integer -// from the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) DecodeZigzag64() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) - return -} - -// DecodeZigzag32 reads a zigzag-encoded 32-bit integer -// from the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) DecodeZigzag32() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) - return -} - -// These are not ValueDecoders: they produce an array of bytes or a string. -// bytes, embedded messages - -// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { - n, err := p.DecodeVarint() - if err != nil { - return nil, err - } - - nb := int(n) - if nb < 0 { - return nil, fmt.Errorf("proto: bad byte length %d", nb) - } - end := p.index + nb - if end < p.index || end > len(p.buf) { - return nil, io.ErrUnexpectedEOF - } - - if !alloc { - // todo: check if can get more uses of alloc=false - buf = p.buf[p.index:end] - p.index += nb - return - } - - buf = make([]byte, nb) - copy(buf, p.buf[p.index:]) - p.index += nb - return -} - -// DecodeStringBytes reads an encoded string from the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) DecodeStringBytes() (s string, err error) { - buf, err := p.DecodeRawBytes(false) - if err != nil { - return - } - return string(buf), nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -// If the protocol buffer has extensions, and the field matches, add it as an extension. -// Otherwise, if the XXX_unrecognized field exists, append the skipped data there. -func (o *Buffer) skipAndSave(t reflect.Type, tag, wire int, base structPointer, unrecField field) error { - oi := o.index - - err := o.skip(t, tag, wire) - if err != nil { - return err - } - - if !unrecField.IsValid() { - return nil - } - - ptr := structPointer_Bytes(base, unrecField) - - // Add the skipped field to struct field - obuf := o.buf - - o.buf = *ptr - o.EncodeVarint(uint64(tag<<3 | wire)) - *ptr = append(o.buf, obuf[oi:o.index]...) - - o.buf = obuf - - return nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -func (o *Buffer) skip(t reflect.Type, tag, wire int) error { - - var u uint64 - var err error - - switch wire { - case WireVarint: - _, err = o.DecodeVarint() - case WireFixed64: - _, err = o.DecodeFixed64() - case WireBytes: - _, err = o.DecodeRawBytes(false) - case WireFixed32: - _, err = o.DecodeFixed32() - case WireStartGroup: - for { - u, err = o.DecodeVarint() - if err != nil { - break - } - fwire := int(u & 0x7) - if fwire == WireEndGroup { - break - } - ftag := int(u >> 3) - err = o.skip(t, ftag, fwire) - if err != nil { - break - } - } - default: - err = fmt.Errorf("proto: can't skip unknown wire type %d for %s", wire, t) - } - return err -} - -// Unmarshaler is the interface representing objects that can -// unmarshal themselves. The method should reset the receiver before -// decoding starts. The argument points to data that may be -// overwritten, so implementations should not keep references to the -// buffer. -type Unmarshaler interface { - Unmarshal([]byte) error -} - -// Unmarshal parses the protocol buffer representation in buf and places the -// decoded result in pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// Unmarshal resets pb before starting to unmarshal, so any -// existing data in pb is always removed. Use UnmarshalMerge -// to preserve and append to existing data. -func Unmarshal(buf []byte, pb Message) error { - pb.Reset() - return UnmarshalMerge(buf, pb) -} - -// UnmarshalMerge parses the protocol buffer representation in buf and -// writes the decoded result to pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// UnmarshalMerge merges into existing data in pb. -// Most code should use Unmarshal instead. -func UnmarshalMerge(buf []byte, pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - return u.Unmarshal(buf) - } - return NewBuffer(buf).Unmarshal(pb) -} - -// DecodeMessage reads a count-delimited message from the Buffer. -func (p *Buffer) DecodeMessage(pb Message) error { - enc, err := p.DecodeRawBytes(false) - if err != nil { - return err - } - return NewBuffer(enc).Unmarshal(pb) -} - -// DecodeGroup reads a tag-delimited group from the Buffer. -func (p *Buffer) DecodeGroup(pb Message) error { - typ, base, err := getbase(pb) - if err != nil { - return err - } - return p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), true, base) -} - -// Unmarshal parses the protocol buffer representation in the -// Buffer and places the decoded result in pb. If the struct -// underlying pb does not match the data in the buffer, the results can be -// unpredictable. -// -// Unlike proto.Unmarshal, this does not reset pb before starting to unmarshal. -func (p *Buffer) Unmarshal(pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - err := u.Unmarshal(p.buf[p.index:]) - p.index = len(p.buf) - return err - } - - typ, base, err := getbase(pb) - if err != nil { - return err - } - - err = p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), false, base) - - if collectStats { - stats.Decode++ - } - - return err -} - -// unmarshalType does the work of unmarshaling a structure. -func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group bool, base structPointer) error { - var state errorState - required, reqFields := prop.reqCount, uint64(0) - - var err error - for err == nil && o.index < len(o.buf) { - oi := o.index - var u uint64 - u, err = o.DecodeVarint() - if err != nil { - break - } - wire := int(u & 0x7) - if wire == WireEndGroup { - if is_group { - if required > 0 { - // Not enough information to determine the exact field. - // (See below.) - return &RequiredNotSetError{"{Unknown}"} - } - return nil // input is satisfied - } - return fmt.Errorf("proto: %s: wiretype end group for non-group", st) - } - tag := int(u >> 3) - if tag <= 0 { - return fmt.Errorf("proto: %s: illegal tag %d (wire type %d)", st, tag, wire) - } - fieldnum, ok := prop.decoderTags.get(tag) - if !ok { - // Maybe it's an extension? - if prop.extendable { - if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) { - if err = o.skip(st, tag, wire); err == nil { - extmap := e.extensionsWrite() - ext := extmap[int32(tag)] // may be missing - ext.enc = append(ext.enc, o.buf[oi:o.index]...) - extmap[int32(tag)] = ext - } - continue - } - } - // Maybe it's a oneof? - if prop.oneofUnmarshaler != nil { - m := structPointer_Interface(base, st).(Message) - // First return value indicates whether tag is a oneof field. - ok, err = prop.oneofUnmarshaler(m, tag, wire, o) - if err == ErrInternalBadWireType { - // Map the error to something more descriptive. - // Do the formatting here to save generated code space. - err = fmt.Errorf("bad wiretype for oneof field in %T", m) - } - if ok { - continue - } - } - err = o.skipAndSave(st, tag, wire, base, prop.unrecField) - continue - } - p := prop.Prop[fieldnum] - - if p.dec == nil { - fmt.Fprintf(os.Stderr, "proto: no protobuf decoder for %s.%s\n", st, st.Field(fieldnum).Name) - continue - } - dec := p.dec - if wire != WireStartGroup && wire != p.WireType { - if wire == WireBytes && p.packedDec != nil { - // a packable field - dec = p.packedDec - } else { - err = fmt.Errorf("proto: bad wiretype for field %s.%s: got wiretype %d, want %d", st, st.Field(fieldnum).Name, wire, p.WireType) - continue - } - } - decErr := dec(o, p, base) - if decErr != nil && !state.shouldContinue(decErr, p) { - err = decErr - } - if err == nil && p.Required { - // Successfully decoded a required field. - if tag <= 64 { - // use bitmap for fields 1-64 to catch field reuse. - var mask uint64 = 1 << uint64(tag-1) - if reqFields&mask == 0 { - // new required field - reqFields |= mask - required-- - } - } else { - // This is imprecise. It can be fooled by a required field - // with a tag > 64 that is encoded twice; that's very rare. - // A fully correct implementation would require allocating - // a data structure, which we would like to avoid. - required-- - } - } - } - if err == nil { - if is_group { - return io.ErrUnexpectedEOF - } - if state.err != nil { - return state.err - } - if required > 0 { - // Not enough information to determine the exact field. If we use extra - // CPU, we could determine the field only if the missing required field - // has a tag <= 64 and we check reqFields. - return &RequiredNotSetError{"{Unknown}"} - } - } - return err -} - -// Individual type decoders -// For each, -// u is the decoded value, -// v is a pointer to the field (pointer) in the struct - -// Sizes of the pools to allocate inside the Buffer. -// The goal is modest amortization and allocation -// on at least 16-byte boundaries. -const ( - boolPoolSize = 16 - uint32PoolSize = 8 - uint64PoolSize = 4 -) - -// Decode a bool. -func (o *Buffer) dec_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - if len(o.bools) == 0 { - o.bools = make([]bool, boolPoolSize) - } - o.bools[0] = u != 0 - *structPointer_Bool(base, p.field) = &o.bools[0] - o.bools = o.bools[1:] - return nil -} - -func (o *Buffer) dec_proto3_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - *structPointer_BoolVal(base, p.field) = u != 0 - return nil -} - -// Decode an int32. -func (o *Buffer) dec_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32_Set(structPointer_Word32(base, p.field), o, uint32(u)) - return nil -} - -func (o *Buffer) dec_proto3_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32Val_Set(structPointer_Word32Val(base, p.field), uint32(u)) - return nil -} - -// Decode an int64. -func (o *Buffer) dec_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64_Set(structPointer_Word64(base, p.field), o, u) - return nil -} - -func (o *Buffer) dec_proto3_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64Val_Set(structPointer_Word64Val(base, p.field), o, u) - return nil -} - -// Decode a string. -func (o *Buffer) dec_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_String(base, p.field) = &s - return nil -} - -func (o *Buffer) dec_proto3_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_StringVal(base, p.field) = s - return nil -} - -// Decode a slice of bytes ([]byte). -func (o *Buffer) dec_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - *structPointer_Bytes(base, p.field) = b - return nil -} - -// Decode a slice of bools ([]bool). -func (o *Buffer) dec_slice_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - v := structPointer_BoolSlice(base, p.field) - *v = append(*v, u != 0) - return nil -} - -// Decode a slice of bools ([]bool) in packed format. -func (o *Buffer) dec_slice_packed_bool(p *Properties, base structPointer) error { - v := structPointer_BoolSlice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded bools - fin := o.index + nb - if fin < o.index { - return errOverflow - } - - y := *v - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - y = append(y, u != 0) - } - - *v = y - return nil -} - -// Decode a slice of int32s ([]int32). -func (o *Buffer) dec_slice_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - structPointer_Word32Slice(base, p.field).Append(uint32(u)) - return nil -} - -// Decode a slice of int32s ([]int32) in packed format. -func (o *Buffer) dec_slice_packed_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int32s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(uint32(u)) - } - return nil -} - -// Decode a slice of int64s ([]int64). -func (o *Buffer) dec_slice_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - - structPointer_Word64Slice(base, p.field).Append(u) - return nil -} - -// Decode a slice of int64s ([]int64) in packed format. -func (o *Buffer) dec_slice_packed_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int64s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(u) - } - return nil -} - -// Decode a slice of strings ([]string). -func (o *Buffer) dec_slice_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - v := structPointer_StringSlice(base, p.field) - *v = append(*v, s) - return nil -} - -// Decode a slice of slice of bytes ([][]byte). -func (o *Buffer) dec_slice_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - v := structPointer_BytesSlice(base, p.field) - *v = append(*v, b) - return nil -} - -// Decode a map field. -func (o *Buffer) dec_new_map(p *Properties, base structPointer) error { - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - oi := o.index // index at the end of this map entry - o.index -= len(raw) // move buffer back to start of map entry - - mptr := structPointer_NewAt(base, p.field, p.mtype) // *map[K]V - if mptr.Elem().IsNil() { - mptr.Elem().Set(reflect.MakeMap(mptr.Type().Elem())) - } - v := mptr.Elem() // map[K]V - - // Prepare addressable doubly-indirect placeholders for the key and value types. - // See enc_new_map for why. - keyptr := reflect.New(reflect.PtrTo(p.mtype.Key())).Elem() // addressable *K - keybase := toStructPointer(keyptr.Addr()) // **K - - var valbase structPointer - var valptr reflect.Value - switch p.mtype.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valptr = reflect.ValueOf(&dummy) // *[]byte - valbase = toStructPointer(valptr) // *[]byte - case reflect.Ptr: - // message; valptr is **Msg; need to allocate the intermediate pointer - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valptr.Set(reflect.New(valptr.Type().Elem())) - valbase = toStructPointer(valptr) - default: - // everything else - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valbase = toStructPointer(valptr.Addr()) // **V - } - - // Decode. - // This parses a restricted wire format, namely the encoding of a message - // with two fields. See enc_new_map for the format. - for o.index < oi { - // tagcode for key and value properties are always a single byte - // because they have tags 1 and 2. - tagcode := o.buf[o.index] - o.index++ - switch tagcode { - case p.mkeyprop.tagcode[0]: - if err := p.mkeyprop.dec(o, p.mkeyprop, keybase); err != nil { - return err - } - case p.mvalprop.tagcode[0]: - if err := p.mvalprop.dec(o, p.mvalprop, valbase); err != nil { - return err - } - default: - // TODO: Should we silently skip this instead? - return fmt.Errorf("proto: bad map data tag %d", raw[0]) - } - } - keyelem, valelem := keyptr.Elem(), valptr.Elem() - if !keyelem.IsValid() { - keyelem = reflect.Zero(p.mtype.Key()) - } - if !valelem.IsValid() { - valelem = reflect.Zero(p.mtype.Elem()) - } - - v.SetMapIndex(keyelem, valelem) - return nil -} - -// Decode a group. -func (o *Buffer) dec_struct_group(p *Properties, base structPointer) error { - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - return o.unmarshalType(p.stype, p.sprop, true, bas) -} - -// Decode an embedded message. -func (o *Buffer) dec_struct_message(p *Properties, base structPointer) (err error) { - raw, e := o.DecodeRawBytes(false) - if e != nil { - return e - } - - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := structPointer_Interface(bas, p.stype) - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, false, bas) - o.buf = obuf - o.index = oi - - return err -} - -// Decode a slice of embedded messages. -func (o *Buffer) dec_slice_struct_message(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, false, base) -} - -// Decode a slice of embedded groups. -func (o *Buffer) dec_slice_struct_group(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, true, base) -} - -// Decode a slice of structs ([]*struct). -func (o *Buffer) dec_slice_struct(p *Properties, is_group bool, base structPointer) error { - v := reflect.New(p.stype) - bas := toStructPointer(v) - structPointer_StructPointerSlice(base, p.field).Append(bas) - - if is_group { - err := o.unmarshalType(p.stype, p.sprop, is_group, bas) - return err - } - - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := v.Interface() - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, is_group, bas) - - o.buf = obuf - o.index = oi - - return err -} diff --git a/vendor/github.com/golang/protobuf/proto/discard.go b/vendor/github.com/golang/protobuf/proto/discard.go deleted file mode 100644 index bd0e3bb..0000000 --- a/vendor/github.com/golang/protobuf/proto/discard.go +++ /dev/null @@ -1,151 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2017 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -import ( - "fmt" - "reflect" - "strings" -) - -// DiscardUnknown recursively discards all unknown fields from this message -// and all embedded messages. -// -// When unmarshaling a message with unrecognized fields, the tags and values -// of such fields are preserved in the Message. This allows a later call to -// marshal to be able to produce a message that continues to have those -// unrecognized fields. To avoid this, DiscardUnknown is used to -// explicitly clear the unknown fields after unmarshaling. -// -// For proto2 messages, the unknown fields of message extensions are only -// discarded from messages that have been accessed via GetExtension. -func DiscardUnknown(m Message) { - discardLegacy(m) -} - -func discardLegacy(m Message) { - v := reflect.ValueOf(m) - if v.Kind() != reflect.Ptr || v.IsNil() { - return - } - v = v.Elem() - if v.Kind() != reflect.Struct { - return - } - t := v.Type() - - for i := 0; i < v.NumField(); i++ { - f := t.Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - vf := v.Field(i) - tf := f.Type - - // Unwrap tf to get its most basic type. - var isPointer, isSlice bool - if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 { - isSlice = true - tf = tf.Elem() - } - if tf.Kind() == reflect.Ptr { - isPointer = true - tf = tf.Elem() - } - if isPointer && isSlice && tf.Kind() != reflect.Struct { - panic(fmt.Sprintf("%T.%s cannot be a slice of pointers to primitive types", m, f.Name)) - } - - switch tf.Kind() { - case reflect.Struct: - switch { - case !isPointer: - panic(fmt.Sprintf("%T.%s cannot be a direct struct value", m, f.Name)) - case isSlice: // E.g., []*pb.T - for j := 0; j < vf.Len(); j++ { - discardLegacy(vf.Index(j).Interface().(Message)) - } - default: // E.g., *pb.T - discardLegacy(vf.Interface().(Message)) - } - case reflect.Map: - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a map or a slice of map values", m, f.Name)) - default: // E.g., map[K]V - tv := vf.Type().Elem() - if tv.Kind() == reflect.Ptr && tv.Implements(protoMessageType) { // Proto struct (e.g., *T) - for _, key := range vf.MapKeys() { - val := vf.MapIndex(key) - discardLegacy(val.Interface().(Message)) - } - } - } - case reflect.Interface: - // Must be oneof field. - switch { - case isPointer || isSlice: - panic(fmt.Sprintf("%T.%s cannot be a pointer to a interface or a slice of interface values", m, f.Name)) - default: // E.g., test_proto.isCommunique_Union interface - if !vf.IsNil() && f.Tag.Get("protobuf_oneof") != "" { - vf = vf.Elem() // E.g., *test_proto.Communique_Msg - if !vf.IsNil() { - vf = vf.Elem() // E.g., test_proto.Communique_Msg - vf = vf.Field(0) // E.g., Proto struct (e.g., *T) or primitive value - if vf.Kind() == reflect.Ptr { - discardLegacy(vf.Interface().(Message)) - } - } - } - } - } - } - - if vf := v.FieldByName("XXX_unrecognized"); vf.IsValid() { - if vf.Type() != reflect.TypeOf([]byte{}) { - panic("expected XXX_unrecognized to be of type []byte") - } - vf.Set(reflect.ValueOf([]byte(nil))) - } - - // For proto2 messages, only discard unknown fields in message extensions - // that have been accessed via GetExtension. - if em, ok := extendable(m); ok { - // Ignore lock since discardLegacy is not concurrency safe. - emm, _ := em.extensionsRead() - for _, mx := range emm { - if m, ok := mx.value.(Message); ok { - discardLegacy(m) - } - } - } -} diff --git a/vendor/github.com/golang/protobuf/proto/encode.go b/vendor/github.com/golang/protobuf/proto/encode.go deleted file mode 100644 index 8b84d1b..0000000 --- a/vendor/github.com/golang/protobuf/proto/encode.go +++ /dev/null @@ -1,1362 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "errors" - "fmt" - "reflect" - "sort" -) - -// RequiredNotSetError is the error returned if Marshal is called with -// a protocol buffer struct whose required fields have not -// all been initialized. It is also the error returned if Unmarshal is -// called with an encoded protocol buffer that does not include all the -// required fields. -// -// When printed, RequiredNotSetError reports the first unset required field in a -// message. If the field cannot be precisely determined, it is reported as -// "{Unknown}". -type RequiredNotSetError struct { - field string -} - -func (e *RequiredNotSetError) Error() string { - return fmt.Sprintf("proto: required field %q not set", e.field) -} - -var ( - // errRepeatedHasNil is the error returned if Marshal is called with - // a struct with a repeated field containing a nil element. - errRepeatedHasNil = errors.New("proto: repeated field has nil element") - - // errOneofHasNil is the error returned if Marshal is called with - // a struct with a oneof field containing a nil element. - errOneofHasNil = errors.New("proto: oneof field has nil value") - - // ErrNil is the error returned if Marshal is called with nil. - ErrNil = errors.New("proto: Marshal called with nil") - - // ErrTooLarge is the error returned if Marshal is called with a - // message that encodes to >2GB. - ErrTooLarge = errors.New("proto: message encodes to over 2 GB") -) - -// The fundamental encoders that put bytes on the wire. -// Those that take integer types all accept uint64 and are -// therefore of type valueEncoder. - -const maxVarintBytes = 10 // maximum length of a varint - -// maxMarshalSize is the largest allowed size of an encoded protobuf, -// since C++ and Java use signed int32s for the size. -const maxMarshalSize = 1<<31 - 1 - -// EncodeVarint returns the varint encoding of x. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -// Not used by the package itself, but helpful to clients -// wishing to use the same encoding. -func EncodeVarint(x uint64) []byte { - var buf [maxVarintBytes]byte - var n int - for n = 0; x > 127; n++ { - buf[n] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - buf[n] = uint8(x) - n++ - return buf[0:n] -} - -// EncodeVarint writes a varint-encoded integer to the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) EncodeVarint(x uint64) error { - for x >= 1<<7 { - p.buf = append(p.buf, uint8(x&0x7f|0x80)) - x >>= 7 - } - p.buf = append(p.buf, uint8(x)) - return nil -} - -// SizeVarint returns the varint encoding size of an integer. -func SizeVarint(x uint64) int { - return sizeVarint(x) -} - -func sizeVarint(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} - -// EncodeFixed64 writes a 64-bit integer to the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) EncodeFixed64(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24), - uint8(x>>32), - uint8(x>>40), - uint8(x>>48), - uint8(x>>56)) - return nil -} - -func sizeFixed64(x uint64) int { - return 8 -} - -// EncodeFixed32 writes a 32-bit integer to the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) EncodeFixed32(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24)) - return nil -} - -func sizeFixed32(x uint64) int { - return 4 -} - -// EncodeZigzag64 writes a zigzag-encoded 64-bit integer -// to the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) EncodeZigzag64(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint((x << 1) ^ uint64((int64(x) >> 63))) -} - -func sizeZigzag64(x uint64) int { - return sizeVarint((x << 1) ^ uint64((int64(x) >> 63))) -} - -// EncodeZigzag32 writes a zigzag-encoded 32-bit integer -// to the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) EncodeZigzag32(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -func sizeZigzag32(x uint64) int { - return sizeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) EncodeRawBytes(b []byte) error { - p.EncodeVarint(uint64(len(b))) - p.buf = append(p.buf, b...) - return nil -} - -func sizeRawBytes(b []byte) int { - return sizeVarint(uint64(len(b))) + - len(b) -} - -// EncodeStringBytes writes an encoded string to the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) EncodeStringBytes(s string) error { - p.EncodeVarint(uint64(len(s))) - p.buf = append(p.buf, s...) - return nil -} - -func sizeStringBytes(s string) int { - return sizeVarint(uint64(len(s))) + - len(s) -} - -// Marshaler is the interface representing objects that can marshal themselves. -type Marshaler interface { - Marshal() ([]byte, error) -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, returning the data. -func Marshal(pb Message) ([]byte, error) { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - return m.Marshal() - } - p := NewBuffer(nil) - err := p.Marshal(pb) - if p.buf == nil && err == nil { - // Return a non-nil slice on success. - return []byte{}, nil - } - return p.buf, err -} - -// EncodeMessage writes the protocol buffer to the Buffer, -// prefixed by a varint-encoded length. -func (p *Buffer) EncodeMessage(pb Message) error { - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - var state errorState - err = p.enc_len_struct(GetProperties(t.Elem()), base, &state) - } - return err -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, writing the result to the -// Buffer. -func (p *Buffer) Marshal(pb Message) error { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - data, err := m.Marshal() - p.buf = append(p.buf, data...) - return err - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - err = p.enc_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - (stats).Encode++ // Parens are to work around a goimports bug. - } - - if len(p.buf) > maxMarshalSize { - return ErrTooLarge - } - return err -} - -// Size returns the encoded size of a protocol buffer. -func Size(pb Message) (n int) { - // Can the object marshal itself? If so, Size is slow. - // TODO: add Size to Marshaler, or add a Sizer interface. - if m, ok := pb.(Marshaler); ok { - b, _ := m.Marshal() - return len(b) - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return 0 - } - if err == nil { - n = size_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - (stats).Size++ // Parens are to work around a goimports bug. - } - - return -} - -// Individual type encoders. - -// Encode a bool. -func (o *Buffer) enc_bool(p *Properties, base structPointer) error { - v := *structPointer_Bool(base, p.field) - if v == nil { - return ErrNil - } - x := 0 - if *v { - x = 1 - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_bool(p *Properties, base structPointer) error { - v := *structPointer_BoolVal(base, p.field) - if !v { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, 1) - return nil -} - -func size_bool(p *Properties, base structPointer) int { - v := *structPointer_Bool(base, p.field) - if v == nil { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -func size_proto3_bool(p *Properties, base structPointer) int { - v := *structPointer_BoolVal(base, p.field) - if !v && !p.oneof { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -// Encode an int32. -func (o *Buffer) enc_int32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode a uint32. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := word32_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := word32_Get(v) - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode an int64. -func (o *Buffer) enc_int64(p *Properties, base structPointer) error { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return ErrNil - } - x := word64_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func (o *Buffer) enc_proto3_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func size_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return 0 - } - x := word64_Get(v) - n += len(p.tagcode) - n += p.valSize(x) - return -} - -func size_proto3_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(x) - return -} - -// Encode a string. -func (o *Buffer) enc_string(p *Properties, base structPointer) error { - v := *structPointer_String(base, p.field) - if v == nil { - return ErrNil - } - x := *v - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(x) - return nil -} - -func (o *Buffer) enc_proto3_string(p *Properties, base structPointer) error { - v := *structPointer_StringVal(base, p.field) - if v == "" { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(v) - return nil -} - -func size_string(p *Properties, base structPointer) (n int) { - v := *structPointer_String(base, p.field) - if v == nil { - return 0 - } - x := *v - n += len(p.tagcode) - n += sizeStringBytes(x) - return -} - -func size_proto3_string(p *Properties, base structPointer) (n int) { - v := *structPointer_StringVal(base, p.field) - if v == "" && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeStringBytes(v) - return -} - -// All protocol buffer fields are nillable, but be careful. -func isNil(v reflect.Value) bool { - switch v.Kind() { - case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: - return v.IsNil() - } - return false -} - -// Encode a message struct. -func (o *Buffer) enc_struct_message(p *Properties, base structPointer) error { - var state errorState - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return ErrNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - return state.err - } - - o.buf = append(o.buf, p.tagcode...) - return o.enc_len_struct(p.sprop, structp, &state) -} - -func size_struct_message(p *Properties, base structPointer) int { - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return 0 - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n0 := len(p.tagcode) - n1 := sizeRawBytes(data) - return n0 + n1 - } - - n0 := len(p.tagcode) - n1 := size_struct(p.sprop, structp) - n2 := sizeVarint(uint64(n1)) // size of encoded length - return n0 + n1 + n2 -} - -// Encode a group struct. -func (o *Buffer) enc_struct_group(p *Properties, base structPointer) error { - var state errorState - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return ErrNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - err := o.enc_struct(p.sprop, b) - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return state.err -} - -func size_struct_group(p *Properties, base structPointer) (n int) { - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return 0 - } - - n += sizeVarint(uint64((p.Tag << 3) | WireStartGroup)) - n += size_struct(p.sprop, b) - n += sizeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return -} - -// Encode a slice of bools ([]bool). -func (o *Buffer) enc_slice_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - for _, x := range s { - o.buf = append(o.buf, p.tagcode...) - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_bool(p *Properties, base structPointer) int { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - return l * (len(p.tagcode) + 1) // each bool takes exactly one byte -} - -// Encode a slice of bools ([]bool) in packed format. -func (o *Buffer) enc_slice_packed_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(l)) // each bool takes exactly one byte - for _, x := range s { - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_packed_bool(p *Properties, base structPointer) (n int) { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - n += len(p.tagcode) - n += sizeVarint(uint64(l)) - n += l // each bool takes exactly one byte - return -} - -// Encode a slice of bytes ([]byte). -func (o *Buffer) enc_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if s == nil { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func (o *Buffer) enc_proto3_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func size_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if s == nil && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -func size_proto3_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -// Encode a slice of int32s ([]int32). -func (o *Buffer) enc_slice_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of int32s ([]int32) in packed format. -func (o *Buffer) enc_slice_packed_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(buf, uint64(x)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - bufSize += p.valSize(uint64(x)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of uint32s ([]uint32). -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := s.Index(i) - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := s.Index(i) - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of uint32s ([]uint32) in packed format. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_packed_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, uint64(s.Index(i))) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(uint64(s.Index(i))) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of int64s ([]int64). -func (o *Buffer) enc_slice_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, s.Index(i)) - } - return nil -} - -func size_slice_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - n += p.valSize(s.Index(i)) - } - return -} - -// Encode a slice of int64s ([]int64) in packed format. -func (o *Buffer) enc_slice_packed_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, s.Index(i)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(s.Index(i)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of slice of bytes ([][]byte). -func (o *Buffer) enc_slice_slice_byte(p *Properties, base structPointer) error { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(ss[i]) - } - return nil -} - -func size_slice_slice_byte(p *Properties, base structPointer) (n int) { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return 0 - } - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeRawBytes(ss[i]) - } - return -} - -// Encode a slice of strings ([]string). -func (o *Buffer) enc_slice_string(p *Properties, base structPointer) error { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(ss[i]) - } - return nil -} - -func size_slice_string(p *Properties, base structPointer) (n int) { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeStringBytes(ss[i]) - } - return -} - -// Encode a slice of message structs ([]*struct). -func (o *Buffer) enc_slice_struct_message(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return errRepeatedHasNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - continue - } - - o.buf = append(o.buf, p.tagcode...) - err := o.enc_len_struct(p.sprop, structp, &state) - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - } - return state.err -} - -func size_slice_struct_message(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return // return the size up to this point - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n += sizeRawBytes(data) - continue - } - - n0 := size_struct(p.sprop, structp) - n1 := sizeVarint(uint64(n0)) // size of encoded length - n += n0 + n1 - } - return -} - -// Encode a slice of group structs ([]*struct). -func (o *Buffer) enc_slice_struct_group(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return errRepeatedHasNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - - err := o.enc_struct(p.sprop, b) - - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - } - return state.err -} - -func size_slice_struct_group(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - n += l * sizeVarint(uint64((p.Tag<<3)|WireStartGroup)) - n += l * sizeVarint(uint64((p.Tag<<3)|WireEndGroup)) - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return // return size up to this point - } - - n += size_struct(p.sprop, b) - } - return -} - -// Encode an extension map. -func (o *Buffer) enc_map(p *Properties, base structPointer) error { - exts := structPointer_ExtMap(base, p.field) - if err := encodeExtensionsMap(*exts); err != nil { - return err - } - - return o.enc_map_body(*exts) -} - -func (o *Buffer) enc_exts(p *Properties, base structPointer) error { - exts := structPointer_Extensions(base, p.field) - - v, mu := exts.extensionsRead() - if v == nil { - return nil - } - - mu.Lock() - defer mu.Unlock() - if err := encodeExtensionsMap(v); err != nil { - return err - } - - return o.enc_map_body(v) -} - -func (o *Buffer) enc_map_body(v map[int32]Extension) error { - // Fast-path for common cases: zero or one extensions. - if len(v) <= 1 { - for _, e := range v { - o.buf = append(o.buf, e.enc...) - } - return nil - } - - // Sort keys to provide a deterministic encoding. - keys := make([]int, 0, len(v)) - for k := range v { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - for _, k := range keys { - o.buf = append(o.buf, v[int32(k)].enc...) - } - return nil -} - -func size_map(p *Properties, base structPointer) int { - v := structPointer_ExtMap(base, p.field) - return extensionsMapSize(*v) -} - -func size_exts(p *Properties, base structPointer) int { - v := structPointer_Extensions(base, p.field) - return extensionsSize(v) -} - -// Encode a map field. -func (o *Buffer) enc_new_map(p *Properties, base structPointer) error { - var state errorState // XXX: or do we need to plumb this through? - - /* - A map defined as - map map_field = N; - is encoded in the same way as - message MapFieldEntry { - key_type key = 1; - value_type value = 2; - } - repeated MapFieldEntry map_field = N; - */ - - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - if v.Len() == 0 { - return nil - } - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - enc := func() error { - if err := p.mkeyprop.enc(o, p.mkeyprop, keybase); err != nil { - return err - } - if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil { - return err - } - return nil - } - - // Don't sort map keys. It is not required by the spec, and C++ doesn't do it. - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - - keycopy.Set(key) - valcopy.Set(val) - - o.buf = append(o.buf, p.tagcode...) - if err := o.enc_len_thing(enc, &state); err != nil { - return err - } - } - return nil -} - -func size_new_map(p *Properties, base structPointer) int { - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - n := 0 - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - keycopy.Set(key) - valcopy.Set(val) - - // Tag codes for key and val are the responsibility of the sub-sizer. - keysize := p.mkeyprop.size(p.mkeyprop, keybase) - valsize := p.mvalprop.size(p.mvalprop, valbase) - entry := keysize + valsize - // Add on tag code and length of map entry itself. - n += len(p.tagcode) + sizeVarint(uint64(entry)) + entry - } - return n -} - -// mapEncodeScratch returns a new reflect.Value matching the map's value type, -// and a structPointer suitable for passing to an encoder or sizer. -func mapEncodeScratch(mapType reflect.Type) (keycopy, valcopy reflect.Value, keybase, valbase structPointer) { - // Prepare addressable doubly-indirect placeholders for the key and value types. - // This is needed because the element-type encoders expect **T, but the map iteration produces T. - - keycopy = reflect.New(mapType.Key()).Elem() // addressable K - keyptr := reflect.New(reflect.PtrTo(keycopy.Type())).Elem() // addressable *K - keyptr.Set(keycopy.Addr()) // - keybase = toStructPointer(keyptr.Addr()) // **K - - // Value types are more varied and require special handling. - switch mapType.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valcopy = reflect.ValueOf(&dummy).Elem() // addressable []byte - valbase = toStructPointer(valcopy.Addr()) - case reflect.Ptr: - // message; the generated field type is map[K]*Msg (so V is *Msg), - // so we only need one level of indirection. - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valbase = toStructPointer(valcopy.Addr()) - default: - // everything else - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valptr := reflect.New(reflect.PtrTo(valcopy.Type())).Elem() // addressable *V - valptr.Set(valcopy.Addr()) // - valbase = toStructPointer(valptr.Addr()) // **V - } - return -} - -// Encode a struct. -func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { - var state errorState - // Encode fields in tag order so that decoders may use optimizations - // that depend on the ordering. - // https://developers.google.com/protocol-buffers/docs/encoding#order - for _, i := range prop.order { - p := prop.Prop[i] - if p.enc != nil { - err := p.enc(o, p, base) - if err != nil { - if err == ErrNil { - if p.Required && state.err == nil { - state.err = &RequiredNotSetError{p.Name} - } - } else if err == errRepeatedHasNil { - // Give more context to nil values in repeated fields. - return errors.New("repeated field " + p.OrigName + " has nil element") - } else if !state.shouldContinue(err, p) { - return err - } - } - if len(o.buf) > maxMarshalSize { - return ErrTooLarge - } - } - } - - // Do oneof fields. - if prop.oneofMarshaler != nil { - m := structPointer_Interface(base, prop.stype).(Message) - if err := prop.oneofMarshaler(m, o); err == ErrNil { - return errOneofHasNil - } else if err != nil { - return err - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - if len(o.buf)+len(v) > maxMarshalSize { - return ErrTooLarge - } - if len(v) > 0 { - o.buf = append(o.buf, v...) - } - } - - return state.err -} - -func size_struct(prop *StructProperties, base structPointer) (n int) { - for _, i := range prop.order { - p := prop.Prop[i] - if p.size != nil { - n += p.size(p, base) - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - n += len(v) - } - - // Factor in any oneof fields. - if prop.oneofSizer != nil { - m := structPointer_Interface(base, prop.stype).(Message) - n += prop.oneofSizer(m) - } - - return -} - -var zeroes [20]byte // longer than any conceivable sizeVarint - -// Encode a struct, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_struct(prop *StructProperties, base structPointer, state *errorState) error { - return o.enc_len_thing(func() error { return o.enc_struct(prop, base) }, state) -} - -// Encode something, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_thing(enc func() error, state *errorState) error { - iLen := len(o.buf) - o.buf = append(o.buf, 0, 0, 0, 0) // reserve four bytes for length - iMsg := len(o.buf) - err := enc() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - lMsg := len(o.buf) - iMsg - lLen := sizeVarint(uint64(lMsg)) - switch x := lLen - (iMsg - iLen); { - case x > 0: // actual length is x bytes larger than the space we reserved - // Move msg x bytes right. - o.buf = append(o.buf, zeroes[:x]...) - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - case x < 0: // actual length is x bytes smaller than the space we reserved - // Move msg x bytes left. - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - o.buf = o.buf[:len(o.buf)+x] // x is negative - } - // Encode the length in the reserved space. - o.buf = o.buf[:iLen] - o.EncodeVarint(uint64(lMsg)) - o.buf = o.buf[:len(o.buf)+lMsg] - return state.err -} - -// errorState maintains the first error that occurs and updates that error -// with additional context. -type errorState struct { - err error -} - -// shouldContinue reports whether encoding should continue upon encountering the -// given error. If the error is RequiredNotSetError, shouldContinue returns true -// and, if this is the first appearance of that error, remembers it for future -// reporting. -// -// If prop is not nil, it may update any error with additional context about the -// field with the error. -func (s *errorState) shouldContinue(err error, prop *Properties) bool { - // Ignore unset required fields. - reqNotSet, ok := err.(*RequiredNotSetError) - if !ok { - return false - } - if s.err == nil { - if prop != nil { - err = &RequiredNotSetError{prop.Name + "." + reqNotSet.field} - } - s.err = err - } - return true -} diff --git a/vendor/github.com/golang/protobuf/proto/equal.go b/vendor/github.com/golang/protobuf/proto/equal.go deleted file mode 100644 index 2ed1cf5..0000000 --- a/vendor/github.com/golang/protobuf/proto/equal.go +++ /dev/null @@ -1,300 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer comparison. - -package proto - -import ( - "bytes" - "log" - "reflect" - "strings" -) - -/* -Equal returns true iff protocol buffers a and b are equal. -The arguments must both be pointers to protocol buffer structs. - -Equality is defined in this way: - - Two messages are equal iff they are the same type, - corresponding fields are equal, unknown field sets - are equal, and extensions sets are equal. - - Two set scalar fields are equal iff their values are equal. - If the fields are of a floating-point type, remember that - NaN != x for all x, including NaN. If the message is defined - in a proto3 .proto file, fields are not "set"; specifically, - zero length proto3 "bytes" fields are equal (nil == {}). - - Two repeated fields are equal iff their lengths are the same, - and their corresponding elements are equal. Note a "bytes" field, - although represented by []byte, is not a repeated field and the - rule for the scalar fields described above applies. - - Two unset fields are equal. - - Two unknown field sets are equal if their current - encoded state is equal. - - Two extension sets are equal iff they have corresponding - elements that are pairwise equal. - - Two map fields are equal iff their lengths are the same, - and they contain the same set of elements. Zero-length map - fields are equal. - - Every other combination of things are not equal. - -The return value is undefined if a and b are not protocol buffers. -*/ -func Equal(a, b Message) bool { - if a == nil || b == nil { - return a == b - } - v1, v2 := reflect.ValueOf(a), reflect.ValueOf(b) - if v1.Type() != v2.Type() { - return false - } - if v1.Kind() == reflect.Ptr { - if v1.IsNil() { - return v2.IsNil() - } - if v2.IsNil() { - return false - } - v1, v2 = v1.Elem(), v2.Elem() - } - if v1.Kind() != reflect.Struct { - return false - } - return equalStruct(v1, v2) -} - -// v1 and v2 are known to have the same type. -func equalStruct(v1, v2 reflect.Value) bool { - sprop := GetProperties(v1.Type()) - for i := 0; i < v1.NumField(); i++ { - f := v1.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - f1, f2 := v1.Field(i), v2.Field(i) - if f.Type.Kind() == reflect.Ptr { - if n1, n2 := f1.IsNil(), f2.IsNil(); n1 && n2 { - // both unset - continue - } else if n1 != n2 { - // set/unset mismatch - return false - } - b1, ok := f1.Interface().(raw) - if ok { - b2 := f2.Interface().(raw) - // RawMessage - if !bytes.Equal(b1.Bytes(), b2.Bytes()) { - return false - } - continue - } - f1, f2 = f1.Elem(), f2.Elem() - } - if !equalAny(f1, f2, sprop.Prop[i]) { - return false - } - } - - if em1 := v1.FieldByName("XXX_InternalExtensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_InternalExtensions") - if !equalExtensions(v1.Type(), em1.Interface().(XXX_InternalExtensions), em2.Interface().(XXX_InternalExtensions)) { - return false - } - } - - if em1 := v1.FieldByName("XXX_extensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_extensions") - if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { - return false - } - } - - uf := v1.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return true - } - - u1 := uf.Bytes() - u2 := v2.FieldByName("XXX_unrecognized").Bytes() - if !bytes.Equal(u1, u2) { - return false - } - - return true -} - -// v1 and v2 are known to have the same type. -// prop may be nil. -func equalAny(v1, v2 reflect.Value, prop *Properties) bool { - if v1.Type() == protoMessageType { - m1, _ := v1.Interface().(Message) - m2, _ := v2.Interface().(Message) - return Equal(m1, m2) - } - switch v1.Kind() { - case reflect.Bool: - return v1.Bool() == v2.Bool() - case reflect.Float32, reflect.Float64: - return v1.Float() == v2.Float() - case reflect.Int32, reflect.Int64: - return v1.Int() == v2.Int() - case reflect.Interface: - // Probably a oneof field; compare the inner values. - n1, n2 := v1.IsNil(), v2.IsNil() - if n1 || n2 { - return n1 == n2 - } - e1, e2 := v1.Elem(), v2.Elem() - if e1.Type() != e2.Type() { - return false - } - return equalAny(e1, e2, nil) - case reflect.Map: - if v1.Len() != v2.Len() { - return false - } - for _, key := range v1.MapKeys() { - val2 := v2.MapIndex(key) - if !val2.IsValid() { - // This key was not found in the second map. - return false - } - if !equalAny(v1.MapIndex(key), val2, nil) { - return false - } - } - return true - case reflect.Ptr: - // Maps may have nil values in them, so check for nil. - if v1.IsNil() && v2.IsNil() { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return equalAny(v1.Elem(), v2.Elem(), prop) - case reflect.Slice: - if v1.Type().Elem().Kind() == reflect.Uint8 { - // short circuit: []byte - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value. - if prop != nil && prop.proto3 && v1.Len() == 0 && v2.Len() == 0 { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return bytes.Equal(v1.Interface().([]byte), v2.Interface().([]byte)) - } - - if v1.Len() != v2.Len() { - return false - } - for i := 0; i < v1.Len(); i++ { - if !equalAny(v1.Index(i), v2.Index(i), prop) { - return false - } - } - return true - case reflect.String: - return v1.Interface().(string) == v2.Interface().(string) - case reflect.Struct: - return equalStruct(v1, v2) - case reflect.Uint32, reflect.Uint64: - return v1.Uint() == v2.Uint() - } - - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to compare %v", v1) - return false -} - -// base is the struct type that the extensions are based on. -// x1 and x2 are InternalExtensions. -func equalExtensions(base reflect.Type, x1, x2 XXX_InternalExtensions) bool { - em1, _ := x1.extensionsRead() - em2, _ := x2.extensionsRead() - return equalExtMap(base, em1, em2) -} - -func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { - if len(em1) != len(em2) { - return false - } - - for extNum, e1 := range em1 { - e2, ok := em2[extNum] - if !ok { - return false - } - - m1, m2 := e1.value, e2.value - - if m1 != nil && m2 != nil { - // Both are unencoded. - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - continue - } - - // At least one is encoded. To do a semantically correct comparison - // we need to unmarshal them first. - var desc *ExtensionDesc - if m := extensionMaps[base]; m != nil { - desc = m[extNum] - } - if desc == nil { - log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) - continue - } - var err error - if m1 == nil { - m1, err = decodeExtension(e1.enc, desc) - } - if m2 == nil && err == nil { - m2, err = decodeExtension(e2.enc, desc) - } - if err != nil { - // The encoded form is invalid. - log.Printf("proto: badly encoded extension %d of %v: %v", extNum, base, err) - return false - } - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - } - - return true -} diff --git a/vendor/github.com/golang/protobuf/proto/extensions.go b/vendor/github.com/golang/protobuf/proto/extensions.go deleted file mode 100644 index eaad218..0000000 --- a/vendor/github.com/golang/protobuf/proto/extensions.go +++ /dev/null @@ -1,587 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Types and routines for supporting protocol buffer extensions. - */ - -import ( - "errors" - "fmt" - "reflect" - "strconv" - "sync" -) - -// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. -var ErrMissingExtension = errors.New("proto: missing extension") - -// ExtensionRange represents a range of message extensions for a protocol buffer. -// Used in code generated by the protocol compiler. -type ExtensionRange struct { - Start, End int32 // both inclusive -} - -// extendableProto is an interface implemented by any protocol buffer generated by the current -// proto compiler that may be extended. -type extendableProto interface { - Message - ExtensionRangeArray() []ExtensionRange - extensionsWrite() map[int32]Extension - extensionsRead() (map[int32]Extension, sync.Locker) -} - -// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous -// version of the proto compiler that may be extended. -type extendableProtoV1 interface { - Message - ExtensionRangeArray() []ExtensionRange - ExtensionMap() map[int32]Extension -} - -// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. -type extensionAdapter struct { - extendableProtoV1 -} - -func (e extensionAdapter) extensionsWrite() map[int32]Extension { - return e.ExtensionMap() -} - -func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { - return e.ExtensionMap(), notLocker{} -} - -// notLocker is a sync.Locker whose Lock and Unlock methods are nops. -type notLocker struct{} - -func (n notLocker) Lock() {} -func (n notLocker) Unlock() {} - -// extendable returns the extendableProto interface for the given generated proto message. -// If the proto message has the old extension format, it returns a wrapper that implements -// the extendableProto interface. -func extendable(p interface{}) (extendableProto, bool) { - if ep, ok := p.(extendableProto); ok { - return ep, ok - } - if ep, ok := p.(extendableProtoV1); ok { - return extensionAdapter{ep}, ok - } - return nil, false -} - -// XXX_InternalExtensions is an internal representation of proto extensions. -// -// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, -// thus gaining the unexported 'extensions' method, which can be called only from the proto package. -// -// The methods of XXX_InternalExtensions are not concurrency safe in general, -// but calls to logically read-only methods such as has and get may be executed concurrently. -type XXX_InternalExtensions struct { - // The struct must be indirect so that if a user inadvertently copies a - // generated message and its embedded XXX_InternalExtensions, they - // avoid the mayhem of a copied mutex. - // - // The mutex serializes all logically read-only operations to p.extensionMap. - // It is up to the client to ensure that write operations to p.extensionMap are - // mutually exclusive with other accesses. - p *struct { - mu sync.Mutex - extensionMap map[int32]Extension - } -} - -// extensionsWrite returns the extension map, creating it on first use. -func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { - if e.p == nil { - e.p = new(struct { - mu sync.Mutex - extensionMap map[int32]Extension - }) - e.p.extensionMap = make(map[int32]Extension) - } - return e.p.extensionMap -} - -// extensionsRead returns the extensions map for read-only use. It may be nil. -// The caller must hold the returned mutex's lock when accessing Elements within the map. -func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { - if e.p == nil { - return nil, nil - } - return e.p.extensionMap, &e.p.mu -} - -var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem() -var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem() - -// ExtensionDesc represents an extension specification. -// Used in generated code from the protocol compiler. -type ExtensionDesc struct { - ExtendedType Message // nil pointer to the type that is being extended - ExtensionType interface{} // nil pointer to the extension type - Field int32 // field number - Name string // fully-qualified name of extension, for text formatting - Tag string // protobuf tag style - Filename string // name of the file in which the extension is defined -} - -func (ed *ExtensionDesc) repeated() bool { - t := reflect.TypeOf(ed.ExtensionType) - return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 -} - -// Extension represents an extension in a message. -type Extension struct { - // When an extension is stored in a message using SetExtension - // only desc and value are set. When the message is marshaled - // enc will be set to the encoded form of the message. - // - // When a message is unmarshaled and contains extensions, each - // extension will have only enc set. When such an extension is - // accessed using GetExtension (or GetExtensions) desc and value - // will be set. - desc *ExtensionDesc - value interface{} - enc []byte -} - -// SetRawExtension is for testing only. -func SetRawExtension(base Message, id int32, b []byte) { - epb, ok := extendable(base) - if !ok { - return - } - extmap := epb.extensionsWrite() - extmap[id] = Extension{enc: b} -} - -// isExtensionField returns true iff the given field number is in an extension range. -func isExtensionField(pb extendableProto, field int32) bool { - for _, er := range pb.ExtensionRangeArray() { - if er.Start <= field && field <= er.End { - return true - } - } - return false -} - -// checkExtensionTypes checks that the given extension is valid for pb. -func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { - var pbi interface{} = pb - // Check the extended type. - if ea, ok := pbi.(extensionAdapter); ok { - pbi = ea.extendableProtoV1 - } - if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { - return errors.New("proto: bad extended type; " + b.String() + " does not extend " + a.String()) - } - // Check the range. - if !isExtensionField(pb, extension.Field) { - return errors.New("proto: bad extension number; not in declared ranges") - } - return nil -} - -// extPropKey is sufficient to uniquely identify an extension. -type extPropKey struct { - base reflect.Type - field int32 -} - -var extProp = struct { - sync.RWMutex - m map[extPropKey]*Properties -}{ - m: make(map[extPropKey]*Properties), -} - -func extensionProperties(ed *ExtensionDesc) *Properties { - key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} - - extProp.RLock() - if prop, ok := extProp.m[key]; ok { - extProp.RUnlock() - return prop - } - extProp.RUnlock() - - extProp.Lock() - defer extProp.Unlock() - // Check again. - if prop, ok := extProp.m[key]; ok { - return prop - } - - prop := new(Properties) - prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) - extProp.m[key] = prop - return prop -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensions(e *XXX_InternalExtensions) error { - m, mu := e.extensionsRead() - if m == nil { - return nil // fast path - } - mu.Lock() - defer mu.Unlock() - return encodeExtensionsMap(m) -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensionsMap(m map[int32]Extension) error { - for k, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - p := NewBuffer(nil) - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - if err := props.enc(p, props, toStructPointer(x)); err != nil { - return err - } - e.enc = p.buf - m[k] = e - } - return nil -} - -func extensionsSize(e *XXX_InternalExtensions) (n int) { - m, mu := e.extensionsRead() - if m == nil { - return 0 - } - mu.Lock() - defer mu.Unlock() - return extensionsMapSize(m) -} - -func extensionsMapSize(m map[int32]Extension) (n int) { - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - n += len(e.enc) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - n += props.size(props, toStructPointer(x)) - } - return -} - -// HasExtension returns whether the given extension is present in pb. -func HasExtension(pb Message, extension *ExtensionDesc) bool { - // TODO: Check types, field numbers, etc.? - epb, ok := extendable(pb) - if !ok { - return false - } - extmap, mu := epb.extensionsRead() - if extmap == nil { - return false - } - mu.Lock() - _, ok = extmap[extension.Field] - mu.Unlock() - return ok -} - -// ClearExtension removes the given extension from pb. -func ClearExtension(pb Message, extension *ExtensionDesc) { - epb, ok := extendable(pb) - if !ok { - return - } - // TODO: Check types, field numbers, etc.? - extmap := epb.extensionsWrite() - delete(extmap, extension.Field) -} - -// GetExtension parses and returns the given extension of pb. -// If the extension is not present and has no default value it returns ErrMissingExtension. -func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") - } - - if err := checkExtensionTypes(epb, extension); err != nil { - return nil, err - } - - emap, mu := epb.extensionsRead() - if emap == nil { - return defaultExtensionValue(extension) - } - mu.Lock() - defer mu.Unlock() - e, ok := emap[extension.Field] - if !ok { - // defaultExtensionValue returns the default value or - // ErrMissingExtension if there is no default. - return defaultExtensionValue(extension) - } - - if e.value != nil { - // Already decoded. Check the descriptor, though. - if e.desc != extension { - // This shouldn't happen. If it does, it means that - // GetExtension was called twice with two different - // descriptors with the same field number. - return nil, errors.New("proto: descriptor conflict") - } - return e.value, nil - } - - v, err := decodeExtension(e.enc, extension) - if err != nil { - return nil, err - } - - // Remember the decoded version and drop the encoded version. - // That way it is safe to mutate what we return. - e.value = v - e.desc = extension - e.enc = nil - emap[extension.Field] = e - return e.value, nil -} - -// defaultExtensionValue returns the default value for extension. -// If no default for an extension is defined ErrMissingExtension is returned. -func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { - t := reflect.TypeOf(extension.ExtensionType) - props := extensionProperties(extension) - - sf, _, err := fieldDefault(t, props) - if err != nil { - return nil, err - } - - if sf == nil || sf.value == nil { - // There is no default value. - return nil, ErrMissingExtension - } - - if t.Kind() != reflect.Ptr { - // We do not need to return a Ptr, we can directly return sf.value. - return sf.value, nil - } - - // We need to return an interface{} that is a pointer to sf.value. - value := reflect.New(t).Elem() - value.Set(reflect.New(value.Type().Elem())) - if sf.kind == reflect.Int32 { - // We may have an int32 or an enum, but the underlying data is int32. - // Since we can't set an int32 into a non int32 reflect.value directly - // set it as a int32. - value.Elem().SetInt(int64(sf.value.(int32))) - } else { - value.Elem().Set(reflect.ValueOf(sf.value)) - } - return value.Interface(), nil -} - -// decodeExtension decodes an extension encoded in b. -func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { - o := NewBuffer(b) - - t := reflect.TypeOf(extension.ExtensionType) - - props := extensionProperties(extension) - - // t is a pointer to a struct, pointer to basic type or a slice. - // Allocate a "field" to store the pointer/slice itself; the - // pointer/slice will be stored here. We pass - // the address of this field to props.dec. - // This passes a zero field and a *t and lets props.dec - // interpret it as a *struct{ x t }. - value := reflect.New(t).Elem() - - for { - // Discard wire type and field number varint. It isn't needed. - if _, err := o.DecodeVarint(); err != nil { - return nil, err - } - - if err := props.dec(o, props, toStructPointer(value.Addr())); err != nil { - return nil, err - } - - if o.index >= len(o.buf) { - break - } - } - return value.Interface(), nil -} - -// GetExtensions returns a slice of the extensions present in pb that are also listed in es. -// The returned slice has the same length as es; missing extensions will appear as nil elements. -func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") - } - extensions = make([]interface{}, len(es)) - for i, e := range es { - extensions[i], err = GetExtension(epb, e) - if err == ErrMissingExtension { - err = nil - } - if err != nil { - return - } - } - return -} - -// ExtensionDescs returns a new slice containing pb's extension descriptors, in undefined order. -// For non-registered extensions, ExtensionDescs returns an incomplete descriptor containing -// just the Field field, which defines the extension's field number. -func ExtensionDescs(pb Message) ([]*ExtensionDesc, error) { - epb, ok := extendable(pb) - if !ok { - return nil, fmt.Errorf("proto: %T is not an extendable proto.Message", pb) - } - registeredExtensions := RegisteredExtensions(pb) - - emap, mu := epb.extensionsRead() - if emap == nil { - return nil, nil - } - mu.Lock() - defer mu.Unlock() - extensions := make([]*ExtensionDesc, 0, len(emap)) - for extid, e := range emap { - desc := e.desc - if desc == nil { - desc = registeredExtensions[extid] - if desc == nil { - desc = &ExtensionDesc{Field: extid} - } - } - - extensions = append(extensions, desc) - } - return extensions, nil -} - -// SetExtension sets the specified extension of pb to the specified value. -func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { - epb, ok := extendable(pb) - if !ok { - return errors.New("proto: not an extendable proto") - } - if err := checkExtensionTypes(epb, extension); err != nil { - return err - } - typ := reflect.TypeOf(extension.ExtensionType) - if typ != reflect.TypeOf(value) { - return errors.New("proto: bad extension value type") - } - // nil extension values need to be caught early, because the - // encoder can't distinguish an ErrNil due to a nil extension - // from an ErrNil due to a missing field. Extensions are - // always optional, so the encoder would just swallow the error - // and drop all the extensions from the encoded message. - if reflect.ValueOf(value).IsNil() { - return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) - } - - extmap := epb.extensionsWrite() - extmap[extension.Field] = Extension{desc: extension, value: value} - return nil -} - -// ClearAllExtensions clears all extensions from pb. -func ClearAllExtensions(pb Message) { - epb, ok := extendable(pb) - if !ok { - return - } - m := epb.extensionsWrite() - for k := range m { - delete(m, k) - } -} - -// A global registry of extensions. -// The generated code will register the generated descriptors by calling RegisterExtension. - -var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) - -// RegisterExtension is called from the generated code. -func RegisterExtension(desc *ExtensionDesc) { - st := reflect.TypeOf(desc.ExtendedType).Elem() - m := extensionMaps[st] - if m == nil { - m = make(map[int32]*ExtensionDesc) - extensionMaps[st] = m - } - if _, ok := m[desc.Field]; ok { - panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) - } - m[desc.Field] = desc -} - -// RegisteredExtensions returns a map of the registered extensions of a -// protocol buffer struct, indexed by the extension number. -// The argument pb should be a nil pointer to the struct type. -func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { - return extensionMaps[reflect.TypeOf(pb).Elem()] -} diff --git a/vendor/github.com/golang/protobuf/proto/lib.go b/vendor/github.com/golang/protobuf/proto/lib.go deleted file mode 100644 index 1c22550..0000000 --- a/vendor/github.com/golang/protobuf/proto/lib.go +++ /dev/null @@ -1,897 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* -Package proto converts data structures to and from the wire format of -protocol buffers. It works in concert with the Go source code generated -for .proto files by the protocol compiler. - -A summary of the properties of the protocol buffer interface -for a protocol buffer variable v: - - - Names are turned from camel_case to CamelCase for export. - - There are no methods on v to set fields; just treat - them as structure fields. - - There are getters that return a field's value if set, - and return the field's default value if unset. - The getters work even if the receiver is a nil message. - - The zero value for a struct is its correct initialization state. - All desired fields must be set before marshaling. - - A Reset() method will restore a protobuf struct to its zero state. - - Non-repeated fields are pointers to the values; nil means unset. - That is, optional or required field int32 f becomes F *int32. - - Repeated fields are slices. - - Helper functions are available to aid the setting of fields. - msg.Foo = proto.String("hello") // set field - - Constants are defined to hold the default values of all fields that - have them. They have the form Default_StructName_FieldName. - Because the getter methods handle defaulted values, - direct use of these constants should be rare. - - Enums are given type names and maps from names to values. - Enum values are prefixed by the enclosing message's name, or by the - enum's type name if it is a top-level enum. Enum types have a String - method, and a Enum method to assist in message construction. - - Nested messages, groups and enums have type names prefixed with the name of - the surrounding message type. - - Extensions are given descriptor names that start with E_, - followed by an underscore-delimited list of the nested messages - that contain it (if any) followed by the CamelCased name of the - extension field itself. HasExtension, ClearExtension, GetExtension - and SetExtension are functions for manipulating extensions. - - Oneof field sets are given a single field in their message, - with distinguished wrapper types for each possible field value. - - Marshal and Unmarshal are functions to encode and decode the wire format. - -When the .proto file specifies `syntax="proto3"`, there are some differences: - - - Non-repeated fields of non-message type are values instead of pointers. - - Enum types do not get an Enum method. - -The simplest way to describe this is to see an example. -Given file test.proto, containing - - package example; - - enum FOO { X = 17; } - - message Test { - required string label = 1; - optional int32 type = 2 [default=77]; - repeated int64 reps = 3; - optional group OptionalGroup = 4 { - required string RequiredField = 5; - } - oneof union { - int32 number = 6; - string name = 7; - } - } - -The resulting file, test.pb.go, is: - - package example - - import proto "github.com/golang/protobuf/proto" - import math "math" - - type FOO int32 - const ( - FOO_X FOO = 17 - ) - var FOO_name = map[int32]string{ - 17: "X", - } - var FOO_value = map[string]int32{ - "X": 17, - } - - func (x FOO) Enum() *FOO { - p := new(FOO) - *p = x - return p - } - func (x FOO) String() string { - return proto.EnumName(FOO_name, int32(x)) - } - func (x *FOO) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FOO_value, data) - if err != nil { - return err - } - *x = FOO(value) - return nil - } - - type Test struct { - Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` - Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"` - Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` - Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup" json:"optionalgroup,omitempty"` - // Types that are valid to be assigned to Union: - // *Test_Number - // *Test_Name - Union isTest_Union `protobuf_oneof:"union"` - XXX_unrecognized []byte `json:"-"` - } - func (m *Test) Reset() { *m = Test{} } - func (m *Test) String() string { return proto.CompactTextString(m) } - func (*Test) ProtoMessage() {} - - type isTest_Union interface { - isTest_Union() - } - - type Test_Number struct { - Number int32 `protobuf:"varint,6,opt,name=number"` - } - type Test_Name struct { - Name string `protobuf:"bytes,7,opt,name=name"` - } - - func (*Test_Number) isTest_Union() {} - func (*Test_Name) isTest_Union() {} - - func (m *Test) GetUnion() isTest_Union { - if m != nil { - return m.Union - } - return nil - } - const Default_Test_Type int32 = 77 - - func (m *Test) GetLabel() string { - if m != nil && m.Label != nil { - return *m.Label - } - return "" - } - - func (m *Test) GetType() int32 { - if m != nil && m.Type != nil { - return *m.Type - } - return Default_Test_Type - } - - func (m *Test) GetOptionalgroup() *Test_OptionalGroup { - if m != nil { - return m.Optionalgroup - } - return nil - } - - type Test_OptionalGroup struct { - RequiredField *string `protobuf:"bytes,5,req" json:"RequiredField,omitempty"` - } - func (m *Test_OptionalGroup) Reset() { *m = Test_OptionalGroup{} } - func (m *Test_OptionalGroup) String() string { return proto.CompactTextString(m) } - - func (m *Test_OptionalGroup) GetRequiredField() string { - if m != nil && m.RequiredField != nil { - return *m.RequiredField - } - return "" - } - - func (m *Test) GetNumber() int32 { - if x, ok := m.GetUnion().(*Test_Number); ok { - return x.Number - } - return 0 - } - - func (m *Test) GetName() string { - if x, ok := m.GetUnion().(*Test_Name); ok { - return x.Name - } - return "" - } - - func init() { - proto.RegisterEnum("example.FOO", FOO_name, FOO_value) - } - -To create and play with a Test object: - - package main - - import ( - "log" - - "github.com/golang/protobuf/proto" - pb "./example.pb" - ) - - func main() { - test := &pb.Test{ - Label: proto.String("hello"), - Type: proto.Int32(17), - Reps: []int64{1, 2, 3}, - Optionalgroup: &pb.Test_OptionalGroup{ - RequiredField: proto.String("good bye"), - }, - Union: &pb.Test_Name{"fred"}, - } - data, err := proto.Marshal(test) - if err != nil { - log.Fatal("marshaling error: ", err) - } - newTest := &pb.Test{} - err = proto.Unmarshal(data, newTest) - if err != nil { - log.Fatal("unmarshaling error: ", err) - } - // Now test and newTest contain the same data. - if test.GetLabel() != newTest.GetLabel() { - log.Fatalf("data mismatch %q != %q", test.GetLabel(), newTest.GetLabel()) - } - // Use a type switch to determine which oneof was set. - switch u := test.Union.(type) { - case *pb.Test_Number: // u.Number contains the number. - case *pb.Test_Name: // u.Name contains the string. - } - // etc. - } -*/ -package proto - -import ( - "encoding/json" - "fmt" - "log" - "reflect" - "sort" - "strconv" - "sync" -) - -// Message is implemented by generated protocol buffer messages. -type Message interface { - Reset() - String() string - ProtoMessage() -} - -// Stats records allocation details about the protocol buffer encoders -// and decoders. Useful for tuning the library itself. -type Stats struct { - Emalloc uint64 // mallocs in encode - Dmalloc uint64 // mallocs in decode - Encode uint64 // number of encodes - Decode uint64 // number of decodes - Chit uint64 // number of cache hits - Cmiss uint64 // number of cache misses - Size uint64 // number of sizes -} - -// Set to true to enable stats collection. -const collectStats = false - -var stats Stats - -// GetStats returns a copy of the global Stats structure. -func GetStats() Stats { return stats } - -// A Buffer is a buffer manager for marshaling and unmarshaling -// protocol buffers. It may be reused between invocations to -// reduce memory usage. It is not necessary to use a Buffer; -// the global functions Marshal and Unmarshal create a -// temporary Buffer and are fine for most applications. -type Buffer struct { - buf []byte // encode/decode byte stream - index int // read point - - // pools of basic types to amortize allocation. - bools []bool - uint32s []uint32 - uint64s []uint64 - - // extra pools, only used with pointer_reflect.go - int32s []int32 - int64s []int64 - float32s []float32 - float64s []float64 -} - -// NewBuffer allocates a new Buffer and initializes its internal data to -// the contents of the argument slice. -func NewBuffer(e []byte) *Buffer { - return &Buffer{buf: e} -} - -// Reset resets the Buffer, ready for marshaling a new protocol buffer. -func (p *Buffer) Reset() { - p.buf = p.buf[0:0] // for reading/writing - p.index = 0 // for reading -} - -// SetBuf replaces the internal buffer with the slice, -// ready for unmarshaling the contents of the slice. -func (p *Buffer) SetBuf(s []byte) { - p.buf = s - p.index = 0 -} - -// Bytes returns the contents of the Buffer. -func (p *Buffer) Bytes() []byte { return p.buf } - -/* - * Helper routines for simplifying the creation of optional fields of basic type. - */ - -// Bool is a helper routine that allocates a new bool value -// to store v and returns a pointer to it. -func Bool(v bool) *bool { - return &v -} - -// Int32 is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it. -func Int32(v int32) *int32 { - return &v -} - -// Int is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it, but unlike Int32 -// its argument value is an int. -func Int(v int) *int32 { - p := new(int32) - *p = int32(v) - return p -} - -// Int64 is a helper routine that allocates a new int64 value -// to store v and returns a pointer to it. -func Int64(v int64) *int64 { - return &v -} - -// Float32 is a helper routine that allocates a new float32 value -// to store v and returns a pointer to it. -func Float32(v float32) *float32 { - return &v -} - -// Float64 is a helper routine that allocates a new float64 value -// to store v and returns a pointer to it. -func Float64(v float64) *float64 { - return &v -} - -// Uint32 is a helper routine that allocates a new uint32 value -// to store v and returns a pointer to it. -func Uint32(v uint32) *uint32 { - return &v -} - -// Uint64 is a helper routine that allocates a new uint64 value -// to store v and returns a pointer to it. -func Uint64(v uint64) *uint64 { - return &v -} - -// String is a helper routine that allocates a new string value -// to store v and returns a pointer to it. -func String(v string) *string { - return &v -} - -// EnumName is a helper function to simplify printing protocol buffer enums -// by name. Given an enum map and a value, it returns a useful string. -func EnumName(m map[int32]string, v int32) string { - s, ok := m[v] - if ok { - return s - } - return strconv.Itoa(int(v)) -} - -// UnmarshalJSONEnum is a helper function to simplify recovering enum int values -// from their JSON-encoded representation. Given a map from the enum's symbolic -// names to its int values, and a byte buffer containing the JSON-encoded -// value, it returns an int32 that can be cast to the enum type by the caller. -// -// The function can deal with both JSON representations, numeric and symbolic. -func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { - if data[0] == '"' { - // New style: enums are strings. - var repr string - if err := json.Unmarshal(data, &repr); err != nil { - return -1, err - } - val, ok := m[repr] - if !ok { - return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) - } - return val, nil - } - // Old style: enums are ints. - var val int32 - if err := json.Unmarshal(data, &val); err != nil { - return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) - } - return val, nil -} - -// DebugPrint dumps the encoded data in b in a debugging format with a header -// including the string s. Used in testing but made available for general debugging. -func (p *Buffer) DebugPrint(s string, b []byte) { - var u uint64 - - obuf := p.buf - index := p.index - p.buf = b - p.index = 0 - depth := 0 - - fmt.Printf("\n--- %s ---\n", s) - -out: - for { - for i := 0; i < depth; i++ { - fmt.Print(" ") - } - - index := p.index - if index == len(p.buf) { - break - } - - op, err := p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: fetching op err %v\n", index, err) - break out - } - tag := op >> 3 - wire := op & 7 - - switch wire { - default: - fmt.Printf("%3d: t=%3d unknown wire=%d\n", - index, tag, wire) - break out - - case WireBytes: - var r []byte - - r, err = p.DecodeRawBytes(false) - if err != nil { - break out - } - fmt.Printf("%3d: t=%3d bytes [%d]", index, tag, len(r)) - if len(r) <= 6 { - for i := 0; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } else { - for i := 0; i < 3; i++ { - fmt.Printf(" %.2x", r[i]) - } - fmt.Printf(" ..") - for i := len(r) - 3; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } - fmt.Printf("\n") - - case WireFixed32: - u, err = p.DecodeFixed32() - if err != nil { - fmt.Printf("%3d: t=%3d fix32 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix32 %d\n", index, tag, u) - - case WireFixed64: - u, err = p.DecodeFixed64() - if err != nil { - fmt.Printf("%3d: t=%3d fix64 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix64 %d\n", index, tag, u) - - case WireVarint: - u, err = p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: t=%3d varint err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d varint %d\n", index, tag, u) - - case WireStartGroup: - fmt.Printf("%3d: t=%3d start\n", index, tag) - depth++ - - case WireEndGroup: - depth-- - fmt.Printf("%3d: t=%3d end\n", index, tag) - } - } - - if depth != 0 { - fmt.Printf("%3d: start-end not balanced %d\n", p.index, depth) - } - fmt.Printf("\n") - - p.buf = obuf - p.index = index -} - -// SetDefaults sets unset protocol buffer fields to their default values. -// It only modifies fields that are both unset and have defined defaults. -// It recursively sets default values in any non-nil sub-messages. -func SetDefaults(pb Message) { - setDefaults(reflect.ValueOf(pb), true, false) -} - -// v is a pointer to a struct. -func setDefaults(v reflect.Value, recur, zeros bool) { - v = v.Elem() - - defaultMu.RLock() - dm, ok := defaults[v.Type()] - defaultMu.RUnlock() - if !ok { - dm = buildDefaultMessage(v.Type()) - defaultMu.Lock() - defaults[v.Type()] = dm - defaultMu.Unlock() - } - - for _, sf := range dm.scalars { - f := v.Field(sf.index) - if !f.IsNil() { - // field already set - continue - } - dv := sf.value - if dv == nil && !zeros { - // no explicit default, and don't want to set zeros - continue - } - fptr := f.Addr().Interface() // **T - // TODO: Consider batching the allocations we do here. - switch sf.kind { - case reflect.Bool: - b := new(bool) - if dv != nil { - *b = dv.(bool) - } - *(fptr.(**bool)) = b - case reflect.Float32: - f := new(float32) - if dv != nil { - *f = dv.(float32) - } - *(fptr.(**float32)) = f - case reflect.Float64: - f := new(float64) - if dv != nil { - *f = dv.(float64) - } - *(fptr.(**float64)) = f - case reflect.Int32: - // might be an enum - if ft := f.Type(); ft != int32PtrType { - // enum - f.Set(reflect.New(ft.Elem())) - if dv != nil { - f.Elem().SetInt(int64(dv.(int32))) - } - } else { - // int32 field - i := new(int32) - if dv != nil { - *i = dv.(int32) - } - *(fptr.(**int32)) = i - } - case reflect.Int64: - i := new(int64) - if dv != nil { - *i = dv.(int64) - } - *(fptr.(**int64)) = i - case reflect.String: - s := new(string) - if dv != nil { - *s = dv.(string) - } - *(fptr.(**string)) = s - case reflect.Uint8: - // exceptional case: []byte - var b []byte - if dv != nil { - db := dv.([]byte) - b = make([]byte, len(db)) - copy(b, db) - } else { - b = []byte{} - } - *(fptr.(*[]byte)) = b - case reflect.Uint32: - u := new(uint32) - if dv != nil { - *u = dv.(uint32) - } - *(fptr.(**uint32)) = u - case reflect.Uint64: - u := new(uint64) - if dv != nil { - *u = dv.(uint64) - } - *(fptr.(**uint64)) = u - default: - log.Printf("proto: can't set default for field %v (sf.kind=%v)", f, sf.kind) - } - } - - for _, ni := range dm.nested { - f := v.Field(ni) - // f is *T or []*T or map[T]*T - switch f.Kind() { - case reflect.Ptr: - if f.IsNil() { - continue - } - setDefaults(f, recur, zeros) - - case reflect.Slice: - for i := 0; i < f.Len(); i++ { - e := f.Index(i) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - - case reflect.Map: - for _, k := range f.MapKeys() { - e := f.MapIndex(k) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - } - } -} - -var ( - // defaults maps a protocol buffer struct type to a slice of the fields, - // with its scalar fields set to their proto-declared non-zero default values. - defaultMu sync.RWMutex - defaults = make(map[reflect.Type]defaultMessage) - - int32PtrType = reflect.TypeOf((*int32)(nil)) -) - -// defaultMessage represents information about the default values of a message. -type defaultMessage struct { - scalars []scalarField - nested []int // struct field index of nested messages -} - -type scalarField struct { - index int // struct field index - kind reflect.Kind // element type (the T in *T or []T) - value interface{} // the proto-declared default value, or nil -} - -// t is a struct type. -func buildDefaultMessage(t reflect.Type) (dm defaultMessage) { - sprop := GetProperties(t) - for _, prop := range sprop.Prop { - fi, ok := sprop.decoderTags.get(prop.Tag) - if !ok { - // XXX_unrecognized - continue - } - ft := t.Field(fi).Type - - sf, nested, err := fieldDefault(ft, prop) - switch { - case err != nil: - log.Print(err) - case nested: - dm.nested = append(dm.nested, fi) - case sf != nil: - sf.index = fi - dm.scalars = append(dm.scalars, *sf) - } - } - - return dm -} - -// fieldDefault returns the scalarField for field type ft. -// sf will be nil if the field can not have a default. -// nestedMessage will be true if this is a nested message. -// Note that sf.index is not set on return. -func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMessage bool, err error) { - var canHaveDefault bool - switch ft.Kind() { - case reflect.Ptr: - if ft.Elem().Kind() == reflect.Struct { - nestedMessage = true - } else { - canHaveDefault = true // proto2 scalar field - } - - case reflect.Slice: - switch ft.Elem().Kind() { - case reflect.Ptr: - nestedMessage = true // repeated message - case reflect.Uint8: - canHaveDefault = true // bytes field - } - - case reflect.Map: - if ft.Elem().Kind() == reflect.Ptr { - nestedMessage = true // map with message values - } - } - - if !canHaveDefault { - if nestedMessage { - return nil, true, nil - } - return nil, false, nil - } - - // We now know that ft is a pointer or slice. - sf = &scalarField{kind: ft.Elem().Kind()} - - // scalar fields without defaults - if !prop.HasDefault { - return sf, false, nil - } - - // a scalar field: either *T or []byte - switch ft.Elem().Kind() { - case reflect.Bool: - x, err := strconv.ParseBool(prop.Default) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default bool %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Float32: - x, err := strconv.ParseFloat(prop.Default, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float32 %q: %v", prop.Default, err) - } - sf.value = float32(x) - case reflect.Float64: - x, err := strconv.ParseFloat(prop.Default, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Int32: - x, err := strconv.ParseInt(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int32 %q: %v", prop.Default, err) - } - sf.value = int32(x) - case reflect.Int64: - x, err := strconv.ParseInt(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.String: - sf.value = prop.Default - case reflect.Uint8: - // []byte (not *uint8) - sf.value = []byte(prop.Default) - case reflect.Uint32: - x, err := strconv.ParseUint(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint32 %q: %v", prop.Default, err) - } - sf.value = uint32(x) - case reflect.Uint64: - x, err := strconv.ParseUint(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint64 %q: %v", prop.Default, err) - } - sf.value = x - default: - return nil, false, fmt.Errorf("proto: unhandled def kind %v", ft.Elem().Kind()) - } - - return sf, false, nil -} - -// Map fields may have key types of non-float scalars, strings and enums. -// The easiest way to sort them in some deterministic order is to use fmt. -// If this turns out to be inefficient we can always consider other options, -// such as doing a Schwartzian transform. - -func mapKeys(vs []reflect.Value) sort.Interface { - s := mapKeySorter{ - vs: vs, - // default Less function: textual comparison - less: func(a, b reflect.Value) bool { - return fmt.Sprint(a.Interface()) < fmt.Sprint(b.Interface()) - }, - } - - // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps; - // numeric keys are sorted numerically. - if len(vs) == 0 { - return s - } - switch vs[0].Kind() { - case reflect.Int32, reflect.Int64: - s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } - case reflect.Uint32, reflect.Uint64: - s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } - } - - return s -} - -type mapKeySorter struct { - vs []reflect.Value - less func(a, b reflect.Value) bool -} - -func (s mapKeySorter) Len() int { return len(s.vs) } -func (s mapKeySorter) Swap(i, j int) { s.vs[i], s.vs[j] = s.vs[j], s.vs[i] } -func (s mapKeySorter) Less(i, j int) bool { - return s.less(s.vs[i], s.vs[j]) -} - -// isProto3Zero reports whether v is a zero proto3 value. -func isProto3Zero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return !v.Bool() - case reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint32, reflect.Uint64: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.String: - return v.String() == "" - } - return false -} - -// ProtoPackageIsVersion2 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion2 = true - -// ProtoPackageIsVersion1 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion1 = true diff --git a/vendor/github.com/golang/protobuf/proto/message_set.go b/vendor/github.com/golang/protobuf/proto/message_set.go deleted file mode 100644 index fd982de..0000000 --- a/vendor/github.com/golang/protobuf/proto/message_set.go +++ /dev/null @@ -1,311 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Support for message sets. - */ - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "reflect" - "sort" -) - -// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. -// A message type ID is required for storing a protocol buffer in a message set. -var errNoMessageTypeID = errors.New("proto does not have a message type ID") - -// The first two types (_MessageSet_Item and messageSet) -// model what the protocol compiler produces for the following protocol message: -// message MessageSet { -// repeated group Item = 1 { -// required int32 type_id = 2; -// required string message = 3; -// }; -// } -// That is the MessageSet wire format. We can't use a proto to generate these -// because that would introduce a circular dependency between it and this package. - -type _MessageSet_Item struct { - TypeId *int32 `protobuf:"varint,2,req,name=type_id"` - Message []byte `protobuf:"bytes,3,req,name=message"` -} - -type messageSet struct { - Item []*_MessageSet_Item `protobuf:"group,1,rep"` - XXX_unrecognized []byte - // TODO: caching? -} - -// Make sure messageSet is a Message. -var _ Message = (*messageSet)(nil) - -// messageTypeIder is an interface satisfied by a protocol buffer type -// that may be stored in a MessageSet. -type messageTypeIder interface { - MessageTypeId() int32 -} - -func (ms *messageSet) find(pb Message) *_MessageSet_Item { - mti, ok := pb.(messageTypeIder) - if !ok { - return nil - } - id := mti.MessageTypeId() - for _, item := range ms.Item { - if *item.TypeId == id { - return item - } - } - return nil -} - -func (ms *messageSet) Has(pb Message) bool { - if ms.find(pb) != nil { - return true - } - return false -} - -func (ms *messageSet) Unmarshal(pb Message) error { - if item := ms.find(pb); item != nil { - return Unmarshal(item.Message, pb) - } - if _, ok := pb.(messageTypeIder); !ok { - return errNoMessageTypeID - } - return nil // TODO: return error instead? -} - -func (ms *messageSet) Marshal(pb Message) error { - msg, err := Marshal(pb) - if err != nil { - return err - } - if item := ms.find(pb); item != nil { - // reuse existing item - item.Message = msg - return nil - } - - mti, ok := pb.(messageTypeIder) - if !ok { - return errNoMessageTypeID - } - - mtid := mti.MessageTypeId() - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: &mtid, - Message: msg, - }) - return nil -} - -func (ms *messageSet) Reset() { *ms = messageSet{} } -func (ms *messageSet) String() string { return CompactTextString(ms) } -func (*messageSet) ProtoMessage() {} - -// Support for the message_set_wire_format message option. - -func skipVarint(buf []byte) []byte { - i := 0 - for ; buf[i]&0x80 != 0; i++ { - } - return buf[i+1:] -} - -// MarshalMessageSet encodes the extension map represented by m in the message set wire format. -// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSet(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - if err := encodeExtensions(exts); err != nil { - return nil, err - } - m, _ = exts.extensionsRead() - case map[int32]Extension: - if err := encodeExtensionsMap(exts); err != nil { - return nil, err - } - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - - // Sort extension IDs to provide a deterministic encoding. - // See also enc_map in encode.go. - ids := make([]int, 0, len(m)) - for id := range m { - ids = append(ids, int(id)) - } - sort.Ints(ids) - - ms := &messageSet{Item: make([]*_MessageSet_Item, 0, len(m))} - for _, id := range ids { - e := m[int32(id)] - // Remove the wire type and field number varint, as well as the length varint. - msg := skipVarint(skipVarint(e.enc)) - - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: Int32(int32(id)), - Message: msg, - }) - } - return Marshal(ms) -} - -// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. -// It is called by generated Unmarshal methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSet(buf []byte, exts interface{}) error { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m = exts.extensionsWrite() - case map[int32]Extension: - m = exts - default: - return errors.New("proto: not an extension map") - } - - ms := new(messageSet) - if err := Unmarshal(buf, ms); err != nil { - return err - } - for _, item := range ms.Item { - id := *item.TypeId - msg := item.Message - - // Restore wire type and field number varint, plus length varint. - // Be careful to preserve duplicate items. - b := EncodeVarint(uint64(id)<<3 | WireBytes) - if ext, ok := m[id]; ok { - // Existing data; rip off the tag and length varint - // so we join the new data correctly. - // We can assume that ext.enc is set because we are unmarshaling. - o := ext.enc[len(b):] // skip wire type and field number - _, n := DecodeVarint(o) // calculate length of length varint - o = o[n:] // skip length varint - msg = append(o, msg...) // join old data and new data - } - b = append(b, EncodeVarint(uint64(len(msg)))...) - b = append(b, msg...) - - m[id] = Extension{enc: b} - } - return nil -} - -// MarshalMessageSetJSON encodes the extension map represented by m in JSON format. -// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSetJSON(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m, _ = exts.extensionsRead() - case map[int32]Extension: - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - var b bytes.Buffer - b.WriteByte('{') - - // Process the map in key order for deterministic output. - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) // int32Slice defined in text.go - - for i, id := range ids { - ext := m[id] - if i > 0 { - b.WriteByte(',') - } - - msd, ok := messageSetMap[id] - if !ok { - // Unknown type; we can't render it, so skip it. - continue - } - fmt.Fprintf(&b, `"[%s]":`, msd.name) - - x := ext.value - if x == nil { - x = reflect.New(msd.t.Elem()).Interface() - if err := Unmarshal(ext.enc, x.(Message)); err != nil { - return nil, err - } - } - d, err := json.Marshal(x) - if err != nil { - return nil, err - } - b.Write(d) - } - b.WriteByte('}') - return b.Bytes(), nil -} - -// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format. -// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error { - // Common-case fast path. - if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) { - return nil - } - - // This is fairly tricky, and it's not clear that it is needed. - return errors.New("TODO: UnmarshalMessageSetJSON not yet implemented") -} - -// A global registry of types that can be used in a MessageSet. - -var messageSetMap = make(map[int32]messageSetDesc) - -type messageSetDesc struct { - t reflect.Type // pointer to struct - name string -} - -// RegisterMessageSetType is called from the generated code. -func RegisterMessageSetType(m Message, fieldNum int32, name string) { - messageSetMap[fieldNum] = messageSetDesc{ - t: reflect.TypeOf(m), - name: name, - } -} diff --git a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/vendor/github.com/golang/protobuf/proto/pointer_reflect.go deleted file mode 100644 index fb512e2..0000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_reflect.go +++ /dev/null @@ -1,484 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build appengine js - -// This file contains an implementation of proto field accesses using package reflect. -// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can -// be used on App Engine. - -package proto - -import ( - "math" - "reflect" -) - -// A structPointer is a pointer to a struct. -type structPointer struct { - v reflect.Value -} - -// toStructPointer returns a structPointer equivalent to the given reflect value. -// The reflect value must itself be a pointer to a struct. -func toStructPointer(v reflect.Value) structPointer { - return structPointer{v} -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p.v.IsNil() -} - -// Interface returns the struct pointer as an interface value. -func structPointer_Interface(p structPointer, _ reflect.Type) interface{} { - return p.v.Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by the sequence of field indices -// passed to reflect's FieldByIndex. -type field []int - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return f.Index -} - -// invalidField is an invalid field identifier. -var invalidField = field(nil) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { return f != nil } - -// field returns the given field in the struct as a reflect value. -func structPointer_field(p structPointer, f field) reflect.Value { - // Special case: an extension map entry with a value of type T - // passes a *T to the struct-handling code with a zero field, - // expecting that it will be treated as equivalent to *struct{ X T }, - // which has the same memory layout. We have to handle that case - // specially, because reflect will panic if we call FieldByIndex on a - // non-struct. - if f == nil { - return p.v.Elem() - } - - return p.v.Elem().FieldByIndex(f) -} - -// ifield returns the given field in the struct as an interface value. -func structPointer_ifield(p structPointer, f field) interface{} { - return structPointer_field(p, f).Addr().Interface() -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return structPointer_ifield(p, f).(*[]byte) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return structPointer_ifield(p, f).(*[][]byte) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return structPointer_ifield(p, f).(**bool) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return structPointer_ifield(p, f).(*bool) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return structPointer_ifield(p, f).(*[]bool) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return structPointer_ifield(p, f).(**string) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return structPointer_ifield(p, f).(*string) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return structPointer_ifield(p, f).(*[]string) -} - -// Extensions returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return structPointer_ifield(p, f).(*XXX_InternalExtensions) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return structPointer_ifield(p, f).(*map[int32]Extension) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return structPointer_field(p, f).Addr() -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - structPointer_field(p, f).Set(q.v) -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return structPointer{structPointer_field(p, f)} -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) structPointerSlice { - return structPointerSlice{structPointer_field(p, f)} -} - -// A structPointerSlice represents the address of a slice of pointers to structs -// (themselves messages or groups). That is, v.Type() is *[]*struct{...}. -type structPointerSlice struct { - v reflect.Value -} - -func (p structPointerSlice) Len() int { return p.v.Len() } -func (p structPointerSlice) Index(i int) structPointer { return structPointer{p.v.Index(i)} } -func (p structPointerSlice) Append(q structPointer) { - p.v.Set(reflect.Append(p.v, q.v)) -} - -var ( - int32Type = reflect.TypeOf(int32(0)) - uint32Type = reflect.TypeOf(uint32(0)) - float32Type = reflect.TypeOf(float32(0)) - int64Type = reflect.TypeOf(int64(0)) - uint64Type = reflect.TypeOf(uint64(0)) - float64Type = reflect.TypeOf(float64(0)) -) - -// A word32 represents a field of type *int32, *uint32, *float32, or *enum. -// That is, v.Type() is *int32, *uint32, *float32, or *enum and v is assignable. -type word32 struct { - v reflect.Value -} - -// IsNil reports whether p is nil. -func word32_IsNil(p word32) bool { - return p.v.IsNil() -} - -// Set sets p to point at a newly allocated word with bits set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - t := p.v.Type().Elem() - switch t { - case int32Type: - if len(o.int32s) == 0 { - o.int32s = make([]int32, uint32PoolSize) - } - o.int32s[0] = int32(x) - p.v.Set(reflect.ValueOf(&o.int32s[0])) - o.int32s = o.int32s[1:] - return - case uint32Type: - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - p.v.Set(reflect.ValueOf(&o.uint32s[0])) - o.uint32s = o.uint32s[1:] - return - case float32Type: - if len(o.float32s) == 0 { - o.float32s = make([]float32, uint32PoolSize) - } - o.float32s[0] = math.Float32frombits(x) - p.v.Set(reflect.ValueOf(&o.float32s[0])) - o.float32s = o.float32s[1:] - return - } - - // must be enum - p.v.Set(reflect.New(t)) - p.v.Elem().SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32_Get(p word32) uint32 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32 returns a reference to a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32{structPointer_field(p, f)} -} - -// A word32Val represents a field of type int32, uint32, float32, or enum. -// That is, v.Type() is int32, uint32, float32, or enum and v is assignable. -type word32Val struct { - v reflect.Value -} - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - switch p.v.Type() { - case int32Type: - p.v.SetInt(int64(x)) - return - case uint32Type: - p.v.SetUint(uint64(x)) - return - case float32Type: - p.v.SetFloat(float64(math.Float32frombits(x))) - return - } - - // must be enum - p.v.SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32Val_Get(p word32Val) uint32 { - elem := p.v - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Val returns a reference to a int32, uint32, float32, or enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val{structPointer_field(p, f)} -} - -// A word32Slice is a slice of 32-bit values. -// That is, v.Type() is []int32, []uint32, []float32, or []enum. -type word32Slice struct { - v reflect.Value -} - -func (p word32Slice) Append(x uint32) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int32: - elem.SetInt(int64(int32(x))) - case reflect.Uint32: - elem.SetUint(uint64(x)) - case reflect.Float32: - elem.SetFloat(float64(math.Float32frombits(x))) - } -} - -func (p word32Slice) Len() int { - return p.v.Len() -} - -func (p word32Slice) Index(i int) uint32 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Slice returns a reference to a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) word32Slice { - return word32Slice{structPointer_field(p, f)} -} - -// word64 is like word32 but for 64-bit values. -type word64 struct { - v reflect.Value -} - -func word64_Set(p word64, o *Buffer, x uint64) { - t := p.v.Type().Elem() - switch t { - case int64Type: - if len(o.int64s) == 0 { - o.int64s = make([]int64, uint64PoolSize) - } - o.int64s[0] = int64(x) - p.v.Set(reflect.ValueOf(&o.int64s[0])) - o.int64s = o.int64s[1:] - return - case uint64Type: - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - p.v.Set(reflect.ValueOf(&o.uint64s[0])) - o.uint64s = o.uint64s[1:] - return - case float64Type: - if len(o.float64s) == 0 { - o.float64s = make([]float64, uint64PoolSize) - } - o.float64s[0] = math.Float64frombits(x) - p.v.Set(reflect.ValueOf(&o.float64s[0])) - o.float64s = o.float64s[1:] - return - } - panic("unreachable") -} - -func word64_IsNil(p word64) bool { - return p.v.IsNil() -} - -func word64_Get(p word64) uint64 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64{structPointer_field(p, f)} -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val struct { - v reflect.Value -} - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - switch p.v.Type() { - case int64Type: - p.v.SetInt(int64(x)) - return - case uint64Type: - p.v.SetUint(x) - return - case float64Type: - p.v.SetFloat(math.Float64frombits(x)) - return - } - panic("unreachable") -} - -func word64Val_Get(p word64Val) uint64 { - elem := p.v - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val{structPointer_field(p, f)} -} - -type word64Slice struct { - v reflect.Value -} - -func (p word64Slice) Append(x uint64) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int64: - elem.SetInt(int64(int64(x))) - case reflect.Uint64: - elem.SetUint(uint64(x)) - case reflect.Float64: - elem.SetFloat(float64(math.Float64frombits(x))) - } -} - -func (p word64Slice) Len() int { - return p.v.Len() -} - -func (p word64Slice) Index(i int) uint64 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return uint64(elem.Uint()) - case reflect.Float64: - return math.Float64bits(float64(elem.Float())) - } - panic("unreachable") -} - -func structPointer_Word64Slice(p structPointer, f field) word64Slice { - return word64Slice{structPointer_field(p, f)} -} diff --git a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go deleted file mode 100644 index 6b5567d..0000000 --- a/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go +++ /dev/null @@ -1,270 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build !appengine,!js - -// This file contains the implementation of the proto field accesses using package unsafe. - -package proto - -import ( - "reflect" - "unsafe" -) - -// NOTE: These type_Foo functions would more idiomatically be methods, -// but Go does not allow methods on pointer types, and we must preserve -// some pointer type for the garbage collector. We use these -// funcs with clunky names as our poor approximation to methods. -// -// An alternative would be -// type structPointer struct { p unsafe.Pointer } -// but that does not registerize as well. - -// A structPointer is a pointer to a struct. -type structPointer unsafe.Pointer - -// toStructPointer returns a structPointer equivalent to the given reflect value. -func toStructPointer(v reflect.Value) structPointer { - return structPointer(unsafe.Pointer(v.Pointer())) -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p == nil -} - -// Interface returns the struct pointer, assumed to have element type t, -// as an interface value. -func structPointer_Interface(p structPointer, t reflect.Type) interface{} { - return reflect.NewAt(t, unsafe.Pointer(p)).Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by its byte offset from the start of the struct. -type field uintptr - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return field(f.Offset) -} - -// invalidField is an invalid field identifier. -const invalidField = ^field(0) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { - return f != ^field(0) -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return (*[]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return (*[][]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return (**bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return (*bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return (*[]bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return (**string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return (*string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return (*[]string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return (*XXX_InternalExtensions)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return (*map[int32]Extension)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return reflect.NewAt(typ, unsafe.Pointer(uintptr(p)+uintptr(f))) -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) = q -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) *structPointerSlice { - return (*structPointerSlice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// A structPointerSlice represents a slice of pointers to structs (themselves submessages or groups). -type structPointerSlice []structPointer - -func (v *structPointerSlice) Len() int { return len(*v) } -func (v *structPointerSlice) Index(i int) structPointer { return (*v)[i] } -func (v *structPointerSlice) Append(p structPointer) { *v = append(*v, p) } - -// A word32 is the address of a "pointer to 32-bit value" field. -type word32 **uint32 - -// IsNil reports whether *v is nil. -func word32_IsNil(p word32) bool { - return *p == nil -} - -// Set sets *v to point at a newly allocated word set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - *p = &o.uint32s[0] - o.uint32s = o.uint32s[1:] -} - -// Get gets the value pointed at by *v. -func word32_Get(p word32) uint32 { - return **p -} - -// Word32 returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32((**uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Val is the address of a 32-bit value field. -type word32Val *uint32 - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - *p = x -} - -// Get gets the value pointed at by p. -func word32Val_Get(p word32Val) uint32 { - return *p -} - -// Word32Val returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val((*uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Slice is a slice of 32-bit values. -type word32Slice []uint32 - -func (v *word32Slice) Append(x uint32) { *v = append(*v, x) } -func (v *word32Slice) Len() int { return len(*v) } -func (v *word32Slice) Index(i int) uint32 { return (*v)[i] } - -// Word32Slice returns the address of a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) *word32Slice { - return (*word32Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// word64 is like word32 but for 64-bit values. -type word64 **uint64 - -func word64_Set(p word64, o *Buffer, x uint64) { - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - *p = &o.uint64s[0] - o.uint64s = o.uint64s[1:] -} - -func word64_IsNil(p word64) bool { - return *p == nil -} - -func word64_Get(p word64) uint64 { - return **p -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64((**uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val *uint64 - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - *p = x -} - -func word64Val_Get(p word64Val) uint64 { - return *p -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val((*uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Slice is like word32Slice but for 64-bit values. -type word64Slice []uint64 - -func (v *word64Slice) Append(x uint64) { *v = append(*v, x) } -func (v *word64Slice) Len() int { return len(*v) } -func (v *word64Slice) Index(i int) uint64 { return (*v)[i] } - -func structPointer_Word64Slice(p structPointer, f field) *word64Slice { - return (*word64Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} diff --git a/vendor/github.com/golang/protobuf/proto/properties.go b/vendor/github.com/golang/protobuf/proto/properties.go deleted file mode 100644 index ec2289c..0000000 --- a/vendor/github.com/golang/protobuf/proto/properties.go +++ /dev/null @@ -1,872 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "fmt" - "log" - "os" - "reflect" - "sort" - "strconv" - "strings" - "sync" -) - -const debug bool = false - -// Constants that identify the encoding of a value on the wire. -const ( - WireVarint = 0 - WireFixed64 = 1 - WireBytes = 2 - WireStartGroup = 3 - WireEndGroup = 4 - WireFixed32 = 5 -) - -const startSize = 10 // initial slice/string sizes - -// Encoders are defined in encode.go -// An encoder outputs the full representation of a field, including its -// tag and encoder type. -type encoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueEncoder encodes a single integer in a particular encoding. -type valueEncoder func(o *Buffer, x uint64) error - -// Sizers are defined in encode.go -// A sizer returns the encoded size of a field, including its tag and encoder -// type. -type sizer func(prop *Properties, base structPointer) int - -// A valueSizer returns the encoded size of a single integer in a particular -// encoding. -type valueSizer func(x uint64) int - -// Decoders are defined in decode.go -// A decoder creates a value from its wire representation. -// Unrecognized subelements are saved in unrec. -type decoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueDecoder decodes a single integer in a particular encoding. -type valueDecoder func(o *Buffer) (x uint64, err error) - -// A oneofMarshaler does the marshaling for all oneof fields in a message. -type oneofMarshaler func(Message, *Buffer) error - -// A oneofUnmarshaler does the unmarshaling for a oneof field in a message. -type oneofUnmarshaler func(Message, int, int, *Buffer) (bool, error) - -// A oneofSizer does the sizing for all oneof fields in a message. -type oneofSizer func(Message) int - -// tagMap is an optimization over map[int]int for typical protocol buffer -// use-cases. Encoded protocol buffers are often in tag order with small tag -// numbers. -type tagMap struct { - fastTags []int - slowTags map[int]int -} - -// tagMapFastLimit is the upper bound on the tag number that will be stored in -// the tagMap slice rather than its map. -const tagMapFastLimit = 1024 - -func (p *tagMap) get(t int) (int, bool) { - if t > 0 && t < tagMapFastLimit { - if t >= len(p.fastTags) { - return 0, false - } - fi := p.fastTags[t] - return fi, fi >= 0 - } - fi, ok := p.slowTags[t] - return fi, ok -} - -func (p *tagMap) put(t int, fi int) { - if t > 0 && t < tagMapFastLimit { - for len(p.fastTags) < t+1 { - p.fastTags = append(p.fastTags, -1) - } - p.fastTags[t] = fi - return - } - if p.slowTags == nil { - p.slowTags = make(map[int]int) - } - p.slowTags[t] = fi -} - -// StructProperties represents properties for all the fields of a struct. -// decoderTags and decoderOrigNames should only be used by the decoder. -type StructProperties struct { - Prop []*Properties // properties for each field - reqCount int // required count - decoderTags tagMap // map from proto tag to struct field number - decoderOrigNames map[string]int // map from original name to struct field number - order []int // list of struct field numbers in tag order - unrecField field // field id of the XXX_unrecognized []byte field - extendable bool // is this an extendable proto - - oneofMarshaler oneofMarshaler - oneofUnmarshaler oneofUnmarshaler - oneofSizer oneofSizer - stype reflect.Type - - // OneofTypes contains information about the oneof fields in this message. - // It is keyed by the original name of a field. - OneofTypes map[string]*OneofProperties -} - -// OneofProperties represents information about a specific field in a oneof. -type OneofProperties struct { - Type reflect.Type // pointer to generated struct type for this oneof field - Field int // struct field number of the containing oneof in the message - Prop *Properties -} - -// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. -// See encode.go, (*Buffer).enc_struct. - -func (sp *StructProperties) Len() int { return len(sp.order) } -func (sp *StructProperties) Less(i, j int) bool { - return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag -} -func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } - -// Properties represents the protocol-specific behavior of a single struct field. -type Properties struct { - Name string // name of the field, for error messages - OrigName string // original name before protocol compiler (always set) - JSONName string // name to use for JSON; determined by protoc - Wire string - WireType int - Tag int - Required bool - Optional bool - Repeated bool - Packed bool // relevant for repeated primitives only - Enum string // set for enum types only - proto3 bool // whether this is known to be a proto3 field; set for []byte only - oneof bool // whether this is a oneof field - - Default string // default value - HasDefault bool // whether an explicit default was provided - def_uint64 uint64 - - enc encoder - valEnc valueEncoder // set for bool and numeric types only - field field - tagcode []byte // encoding of EncodeVarint((Tag<<3)|WireType) - tagbuf [8]byte - stype reflect.Type // set for struct types only - sprop *StructProperties // set for struct types only - isMarshaler bool - isUnmarshaler bool - - mtype reflect.Type // set for map types only - mkeyprop *Properties // set for map types only - mvalprop *Properties // set for map types only - - size sizer - valSize valueSizer // set for bool and numeric types only - - dec decoder - valDec valueDecoder // set for bool and numeric types only - - // If this is a packable field, this will be the decoder for the packed version of the field. - packedDec decoder -} - -// String formats the properties in the protobuf struct field tag style. -func (p *Properties) String() string { - s := p.Wire - s = "," - s += strconv.Itoa(p.Tag) - if p.Required { - s += ",req" - } - if p.Optional { - s += ",opt" - } - if p.Repeated { - s += ",rep" - } - if p.Packed { - s += ",packed" - } - s += ",name=" + p.OrigName - if p.JSONName != p.OrigName { - s += ",json=" + p.JSONName - } - if p.proto3 { - s += ",proto3" - } - if p.oneof { - s += ",oneof" - } - if len(p.Enum) > 0 { - s += ",enum=" + p.Enum - } - if p.HasDefault { - s += ",def=" + p.Default - } - return s -} - -// Parse populates p by parsing a string in the protobuf struct field tag style. -func (p *Properties) Parse(s string) { - // "bytes,49,opt,name=foo,def=hello!" - fields := strings.Split(s, ",") // breaks def=, but handled below. - if len(fields) < 2 { - fmt.Fprintf(os.Stderr, "proto: tag has too few fields: %q\n", s) - return - } - - p.Wire = fields[0] - switch p.Wire { - case "varint": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeVarint - p.valDec = (*Buffer).DecodeVarint - p.valSize = sizeVarint - case "fixed32": - p.WireType = WireFixed32 - p.valEnc = (*Buffer).EncodeFixed32 - p.valDec = (*Buffer).DecodeFixed32 - p.valSize = sizeFixed32 - case "fixed64": - p.WireType = WireFixed64 - p.valEnc = (*Buffer).EncodeFixed64 - p.valDec = (*Buffer).DecodeFixed64 - p.valSize = sizeFixed64 - case "zigzag32": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag32 - p.valDec = (*Buffer).DecodeZigzag32 - p.valSize = sizeZigzag32 - case "zigzag64": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag64 - p.valDec = (*Buffer).DecodeZigzag64 - p.valSize = sizeZigzag64 - case "bytes", "group": - p.WireType = WireBytes - // no numeric converter for non-numeric types - default: - fmt.Fprintf(os.Stderr, "proto: tag has unknown wire type: %q\n", s) - return - } - - var err error - p.Tag, err = strconv.Atoi(fields[1]) - if err != nil { - return - } - - for i := 2; i < len(fields); i++ { - f := fields[i] - switch { - case f == "req": - p.Required = true - case f == "opt": - p.Optional = true - case f == "rep": - p.Repeated = true - case f == "packed": - p.Packed = true - case strings.HasPrefix(f, "name="): - p.OrigName = f[5:] - case strings.HasPrefix(f, "json="): - p.JSONName = f[5:] - case strings.HasPrefix(f, "enum="): - p.Enum = f[5:] - case f == "proto3": - p.proto3 = true - case f == "oneof": - p.oneof = true - case strings.HasPrefix(f, "def="): - p.HasDefault = true - p.Default = f[4:] // rest of string - if i+1 < len(fields) { - // Commas aren't escaped, and def is always last. - p.Default += "," + strings.Join(fields[i+1:], ",") - break - } - } - } -} - -func logNoSliceEnc(t1, t2 reflect.Type) { - fmt.Fprintf(os.Stderr, "proto: no slice oenc for %T = []%T\n", t1, t2) -} - -var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() - -// Initialize the fields for encoding and decoding. -func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { - p.enc = nil - p.dec = nil - p.size = nil - - switch t1 := typ; t1.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no coders for %v\n", t1) - - // proto3 scalar types - - case reflect.Bool: - p.enc = (*Buffer).enc_proto3_bool - p.dec = (*Buffer).dec_proto3_bool - p.size = size_proto3_bool - case reflect.Int32: - p.enc = (*Buffer).enc_proto3_int32 - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_proto3_uint32 - p.dec = (*Buffer).dec_proto3_int32 // can reuse - p.size = size_proto3_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_proto3_int64 - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_proto3_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_proto3_int64 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.String: - p.enc = (*Buffer).enc_proto3_string - p.dec = (*Buffer).dec_proto3_string - p.size = size_proto3_string - - case reflect.Ptr: - switch t2 := t1.Elem(); t2.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no encoder function for %v -> %v\n", t1, t2) - break - case reflect.Bool: - p.enc = (*Buffer).enc_bool - p.dec = (*Buffer).dec_bool - p.size = size_bool - case reflect.Int32: - p.enc = (*Buffer).enc_int32 - p.dec = (*Buffer).dec_int32 - p.size = size_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_uint32 - p.dec = (*Buffer).dec_int32 // can reuse - p.size = size_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_int64 - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_int32 - p.size = size_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_int64 // can just treat them as bits - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.String: - p.enc = (*Buffer).enc_string - p.dec = (*Buffer).dec_string - p.size = size_string - case reflect.Struct: - p.stype = t1.Elem() - p.isMarshaler = isMarshaler(t1) - p.isUnmarshaler = isUnmarshaler(t1) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_struct_message - p.dec = (*Buffer).dec_struct_message - p.size = size_struct_message - } else { - p.enc = (*Buffer).enc_struct_group - p.dec = (*Buffer).dec_struct_group - p.size = size_struct_group - } - } - - case reflect.Slice: - switch t2 := t1.Elem(); t2.Kind() { - default: - logNoSliceEnc(t1, t2) - break - case reflect.Bool: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_bool - p.size = size_slice_packed_bool - } else { - p.enc = (*Buffer).enc_slice_bool - p.size = size_slice_bool - } - p.dec = (*Buffer).dec_slice_bool - p.packedDec = (*Buffer).dec_slice_packed_bool - case reflect.Int32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int32 - p.size = size_slice_packed_int32 - } else { - p.enc = (*Buffer).enc_slice_int32 - p.size = size_slice_int32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Uint32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Int64, reflect.Uint64: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - case reflect.Uint8: - p.dec = (*Buffer).dec_slice_byte - if p.proto3 { - p.enc = (*Buffer).enc_proto3_slice_byte - p.size = size_proto3_slice_byte - } else { - p.enc = (*Buffer).enc_slice_byte - p.size = size_slice_byte - } - case reflect.Float32, reflect.Float64: - switch t2.Bits() { - case 32: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case 64: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - default: - logNoSliceEnc(t1, t2) - break - } - case reflect.String: - p.enc = (*Buffer).enc_slice_string - p.dec = (*Buffer).dec_slice_string - p.size = size_slice_string - case reflect.Ptr: - switch t3 := t2.Elem(); t3.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no ptr oenc for %T -> %T -> %T\n", t1, t2, t3) - break - case reflect.Struct: - p.stype = t2.Elem() - p.isMarshaler = isMarshaler(t2) - p.isUnmarshaler = isUnmarshaler(t2) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_slice_struct_message - p.dec = (*Buffer).dec_slice_struct_message - p.size = size_slice_struct_message - } else { - p.enc = (*Buffer).enc_slice_struct_group - p.dec = (*Buffer).dec_slice_struct_group - p.size = size_slice_struct_group - } - } - case reflect.Slice: - switch t2.Elem().Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no slice elem oenc for %T -> %T -> %T\n", t1, t2, t2.Elem()) - break - case reflect.Uint8: - p.enc = (*Buffer).enc_slice_slice_byte - p.dec = (*Buffer).dec_slice_slice_byte - p.size = size_slice_slice_byte - } - } - - case reflect.Map: - p.enc = (*Buffer).enc_new_map - p.dec = (*Buffer).dec_new_map - p.size = size_new_map - - p.mtype = t1 - p.mkeyprop = &Properties{} - p.mkeyprop.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) - p.mvalprop = &Properties{} - vtype := p.mtype.Elem() - if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { - // The value type is not a message (*T) or bytes ([]byte), - // so we need encoders for the pointer to this type. - vtype = reflect.PtrTo(vtype) - } - p.mvalprop.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) - } - - // precalculate tag code - wire := p.WireType - if p.Packed { - wire = WireBytes - } - x := uint32(p.Tag)<<3 | uint32(wire) - i := 0 - for i = 0; x > 127; i++ { - p.tagbuf[i] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - p.tagbuf[i] = uint8(x) - p.tagcode = p.tagbuf[0 : i+1] - - if p.stype != nil { - if lockGetProp { - p.sprop = GetProperties(p.stype) - } else { - p.sprop = getPropertiesLocked(p.stype) - } - } -} - -var ( - marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() - unmarshalerType = reflect.TypeOf((*Unmarshaler)(nil)).Elem() -) - -// isMarshaler reports whether type t implements Marshaler. -func isMarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isMarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isMarshaler") - } - return t.Implements(marshalerType) -} - -// isUnmarshaler reports whether type t implements Unmarshaler. -func isUnmarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isUnmarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isUnmarshaler") - } - return t.Implements(unmarshalerType) -} - -// Init populates the properties from a protocol buffer struct tag. -func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { - p.init(typ, name, tag, f, true) -} - -func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { - // "bytes,49,opt,def=hello!" - p.Name = name - p.OrigName = name - if f != nil { - p.field = toField(f) - } - if tag == "" { - return - } - p.Parse(tag) - p.setEncAndDec(typ, f, lockGetProp) -} - -var ( - propertiesMu sync.RWMutex - propertiesMap = make(map[reflect.Type]*StructProperties) -) - -// GetProperties returns the list of properties for the type represented by t. -// t must represent a generated struct type of a protocol message. -func GetProperties(t reflect.Type) *StructProperties { - if t.Kind() != reflect.Struct { - panic("proto: type must have kind struct") - } - - // Most calls to GetProperties in a long-running program will be - // retrieving details for types we have seen before. - propertiesMu.RLock() - sprop, ok := propertiesMap[t] - propertiesMu.RUnlock() - if ok { - if collectStats { - stats.Chit++ - } - return sprop - } - - propertiesMu.Lock() - sprop = getPropertiesLocked(t) - propertiesMu.Unlock() - return sprop -} - -// getPropertiesLocked requires that propertiesMu is held. -func getPropertiesLocked(t reflect.Type) *StructProperties { - if prop, ok := propertiesMap[t]; ok { - if collectStats { - stats.Chit++ - } - return prop - } - if collectStats { - stats.Cmiss++ - } - - prop := new(StructProperties) - // in case of recursive protos, fill this in now. - propertiesMap[t] = prop - - // build properties - prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) || - reflect.PtrTo(t).Implements(extendableProtoV1Type) - prop.unrecField = invalidField - prop.Prop = make([]*Properties, t.NumField()) - prop.order = make([]int, t.NumField()) - - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - p := new(Properties) - name := f.Name - p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) - - if f.Name == "XXX_InternalExtensions" { // special case - p.enc = (*Buffer).enc_exts - p.dec = nil // not needed - p.size = size_exts - } else if f.Name == "XXX_extensions" { // special case - p.enc = (*Buffer).enc_map - p.dec = nil // not needed - p.size = size_map - } else if f.Name == "XXX_unrecognized" { // special case - prop.unrecField = toField(&f) - } - oneof := f.Tag.Get("protobuf_oneof") // special case - if oneof != "" { - // Oneof fields don't use the traditional protobuf tag. - p.OrigName = oneof - } - prop.Prop[i] = p - prop.order[i] = i - if debug { - print(i, " ", f.Name, " ", t.String(), " ") - if p.Tag > 0 { - print(p.String()) - } - print("\n") - } - if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" { - fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]") - } - } - - // Re-order prop.order. - sort.Sort(prop) - - type oneofMessage interface { - XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) - } - if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { - var oots []interface{} - prop.oneofMarshaler, prop.oneofUnmarshaler, prop.oneofSizer, oots = om.XXX_OneofFuncs() - prop.stype = t - - // Interpret oneof metadata. - prop.OneofTypes = make(map[string]*OneofProperties) - for _, oot := range oots { - oop := &OneofProperties{ - Type: reflect.ValueOf(oot).Type(), // *T - Prop: new(Properties), - } - sft := oop.Type.Elem().Field(0) - oop.Prop.Name = sft.Name - oop.Prop.Parse(sft.Tag.Get("protobuf")) - // There will be exactly one interface field that - // this new value is assignable to. - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - if f.Type.Kind() != reflect.Interface { - continue - } - if !oop.Type.AssignableTo(f.Type) { - continue - } - oop.Field = i - break - } - prop.OneofTypes[oop.Prop.OrigName] = oop - } - } - - // build required counts - // build tags - reqCount := 0 - prop.decoderOrigNames = make(map[string]int) - for i, p := range prop.Prop { - if strings.HasPrefix(p.Name, "XXX_") { - // Internal fields should not appear in tags/origNames maps. - // They are handled specially when encoding and decoding. - continue - } - if p.Required { - reqCount++ - } - prop.decoderTags.put(p.Tag, i) - prop.decoderOrigNames[p.OrigName] = i - } - prop.reqCount = reqCount - - return prop -} - -// Return the Properties object for the x[0]'th field of the structure. -func propByIndex(t reflect.Type, x []int) *Properties { - if len(x) != 1 { - fmt.Fprintf(os.Stderr, "proto: field index dimension %d (not 1) for type %s\n", len(x), t) - return nil - } - prop := GetProperties(t) - return prop.Prop[x[0]] -} - -// Get the address and type of a pointer to a struct from an interface. -func getbase(pb Message) (t reflect.Type, b structPointer, err error) { - if pb == nil { - err = ErrNil - return - } - // get the reflect type of the pointer to the struct. - t = reflect.TypeOf(pb) - // get the address of the struct. - value := reflect.ValueOf(pb) - b = toStructPointer(value) - return -} - -// A global registry of enum types. -// The generated code will register the generated maps by calling RegisterEnum. - -var enumValueMaps = make(map[string]map[string]int32) - -// RegisterEnum is called from the generated code to install the enum descriptor -// maps into the global table to aid parsing text format protocol buffers. -func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { - if _, ok := enumValueMaps[typeName]; ok { - panic("proto: duplicate enum registered: " + typeName) - } - enumValueMaps[typeName] = valueMap -} - -// EnumValueMap returns the mapping from names to integers of the -// enum type enumType, or a nil if not found. -func EnumValueMap(enumType string) map[string]int32 { - return enumValueMaps[enumType] -} - -// A registry of all linked message types. -// The string is a fully-qualified proto name ("pkg.Message"). -var ( - protoTypes = make(map[string]reflect.Type) - revProtoTypes = make(map[reflect.Type]string) -) - -// RegisterType is called from generated code and maps from the fully qualified -// proto name to the type (pointer to struct) of the protocol buffer. -func RegisterType(x Message, name string) { - if _, ok := protoTypes[name]; ok { - // TODO: Some day, make this a panic. - log.Printf("proto: duplicate proto type registered: %s", name) - return - } - t := reflect.TypeOf(x) - protoTypes[name] = t - revProtoTypes[t] = name -} - -// MessageName returns the fully-qualified proto name for the given message type. -func MessageName(x Message) string { - type xname interface { - XXX_MessageName() string - } - if m, ok := x.(xname); ok { - return m.XXX_MessageName() - } - return revProtoTypes[reflect.TypeOf(x)] -} - -// MessageType returns the message type (pointer to struct) for a named message. -func MessageType(name string) reflect.Type { return protoTypes[name] } - -// A registry of all linked proto files. -var ( - protoFiles = make(map[string][]byte) // file name => fileDescriptor -) - -// RegisterFile is called from generated code and maps from the -// full file name of a .proto file to its compressed FileDescriptorProto. -func RegisterFile(filename string, fileDescriptor []byte) { - protoFiles[filename] = fileDescriptor -} - -// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. -func FileDescriptor(filename string) []byte { return protoFiles[filename] } diff --git a/vendor/github.com/golang/protobuf/proto/text.go b/vendor/github.com/golang/protobuf/proto/text.go deleted file mode 100644 index 965876b..0000000 --- a/vendor/github.com/golang/protobuf/proto/text.go +++ /dev/null @@ -1,854 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for writing the text protocol buffer format. - -import ( - "bufio" - "bytes" - "encoding" - "errors" - "fmt" - "io" - "log" - "math" - "reflect" - "sort" - "strings" -) - -var ( - newline = []byte("\n") - spaces = []byte(" ") - gtNewline = []byte(">\n") - endBraceNewline = []byte("}\n") - backslashN = []byte{'\\', 'n'} - backslashR = []byte{'\\', 'r'} - backslashT = []byte{'\\', 't'} - backslashDQ = []byte{'\\', '"'} - backslashBS = []byte{'\\', '\\'} - posInf = []byte("inf") - negInf = []byte("-inf") - nan = []byte("nan") -) - -type writer interface { - io.Writer - WriteByte(byte) error -} - -// textWriter is an io.Writer that tracks its indentation level. -type textWriter struct { - ind int - complete bool // if the current position is a complete line - compact bool // whether to write out as a one-liner - w writer -} - -func (w *textWriter) WriteString(s string) (n int, err error) { - if !strings.Contains(s, "\n") { - if !w.compact && w.complete { - w.writeIndent() - } - w.complete = false - return io.WriteString(w.w, s) - } - // WriteString is typically called without newlines, so this - // codepath and its copy are rare. We copy to avoid - // duplicating all of Write's logic here. - return w.Write([]byte(s)) -} - -func (w *textWriter) Write(p []byte) (n int, err error) { - newlines := bytes.Count(p, newline) - if newlines == 0 { - if !w.compact && w.complete { - w.writeIndent() - } - n, err = w.w.Write(p) - w.complete = false - return n, err - } - - frags := bytes.SplitN(p, newline, newlines+1) - if w.compact { - for i, frag := range frags { - if i > 0 { - if err := w.w.WriteByte(' '); err != nil { - return n, err - } - n++ - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - } - return n, nil - } - - for i, frag := range frags { - if w.complete { - w.writeIndent() - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - if i+1 < len(frags) { - if err := w.w.WriteByte('\n'); err != nil { - return n, err - } - n++ - } - } - w.complete = len(frags[len(frags)-1]) == 0 - return n, nil -} - -func (w *textWriter) WriteByte(c byte) error { - if w.compact && c == '\n' { - c = ' ' - } - if !w.compact && w.complete { - w.writeIndent() - } - err := w.w.WriteByte(c) - w.complete = c == '\n' - return err -} - -func (w *textWriter) indent() { w.ind++ } - -func (w *textWriter) unindent() { - if w.ind == 0 { - log.Print("proto: textWriter unindented too far") - return - } - w.ind-- -} - -func writeName(w *textWriter, props *Properties) error { - if _, err := w.WriteString(props.OrigName); err != nil { - return err - } - if props.Wire != "group" { - return w.WriteByte(':') - } - return nil -} - -// raw is the interface satisfied by RawMessage. -type raw interface { - Bytes() []byte -} - -func requiresQuotes(u string) bool { - // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. - for _, ch := range u { - switch { - case ch == '.' || ch == '/' || ch == '_': - continue - case '0' <= ch && ch <= '9': - continue - case 'A' <= ch && ch <= 'Z': - continue - case 'a' <= ch && ch <= 'z': - continue - default: - return true - } - } - return false -} - -// isAny reports whether sv is a google.protobuf.Any message -func isAny(sv reflect.Value) bool { - type wkt interface { - XXX_WellKnownType() string - } - t, ok := sv.Addr().Interface().(wkt) - return ok && t.XXX_WellKnownType() == "Any" -} - -// writeProto3Any writes an expanded google.protobuf.Any message. -// -// It returns (false, nil) if sv value can't be unmarshaled (e.g. because -// required messages are not linked in). -// -// It returns (true, error) when sv was written in expanded format or an error -// was encountered. -func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) { - turl := sv.FieldByName("TypeUrl") - val := sv.FieldByName("Value") - if !turl.IsValid() || !val.IsValid() { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - b, ok := val.Interface().([]byte) - if !ok { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - parts := strings.Split(turl.String(), "/") - mt := MessageType(parts[len(parts)-1]) - if mt == nil { - return false, nil - } - m := reflect.New(mt.Elem()) - if err := Unmarshal(b, m.Interface().(Message)); err != nil { - return false, nil - } - w.Write([]byte("[")) - u := turl.String() - if requiresQuotes(u) { - writeString(w, u) - } else { - w.Write([]byte(u)) - } - if w.compact { - w.Write([]byte("]:<")) - } else { - w.Write([]byte("]: <\n")) - w.ind++ - } - if err := tm.writeStruct(w, m.Elem()); err != nil { - return true, err - } - if w.compact { - w.Write([]byte("> ")) - } else { - w.ind-- - w.Write([]byte(">\n")) - } - return true, nil -} - -func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { - if tm.ExpandAny && isAny(sv) { - if canExpand, err := tm.writeProto3Any(w, sv); canExpand { - return err - } - } - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < sv.NumField(); i++ { - fv := sv.Field(i) - props := sprops.Prop[i] - name := st.Field(i).Name - - if strings.HasPrefix(name, "XXX_") { - // There are two XXX_ fields: - // XXX_unrecognized []byte - // XXX_extensions map[int32]proto.Extension - // The first is handled here; - // the second is handled at the bottom of this function. - if name == "XXX_unrecognized" && !fv.IsNil() { - if err := writeUnknownStruct(w, fv.Interface().([]byte)); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Field not filled in. This could be an optional field or - // a required field that wasn't filled in. Either way, there - // isn't anything we can show for it. - continue - } - if fv.Kind() == reflect.Slice && fv.IsNil() { - // Repeated field that is empty, or a bytes field that is unused. - continue - } - - if props.Repeated && fv.Kind() == reflect.Slice { - // Repeated field. - for j := 0; j < fv.Len(); j++ { - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - v := fv.Index(j) - if v.Kind() == reflect.Ptr && v.IsNil() { - // A nil message in a repeated field is not valid, - // but we can handle that more gracefully than panicking. - if _, err := w.Write([]byte("\n")); err != nil { - return err - } - continue - } - if err := tm.writeAny(w, v, props); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Map { - // Map fields are rendered as a repeated struct with key/value fields. - keys := fv.MapKeys() - sort.Sort(mapKeys(keys)) - for _, key := range keys { - val := fv.MapIndex(key) - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - // open struct - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - // key - if _, err := w.WriteString("key:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, key, props.mkeyprop); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - // nil values aren't legal, but we can avoid panicking because of them. - if val.Kind() != reflect.Ptr || !val.IsNil() { - // value - if _, err := w.WriteString("value:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, val, props.mvalprop); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - // close struct - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if props.proto3 && fv.Kind() == reflect.Slice && fv.Len() == 0 { - // empty bytes field - continue - } - if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { - // proto3 non-repeated scalar field; skip if zero value - if isProto3Zero(fv) { - continue - } - } - - if fv.Kind() == reflect.Interface { - // Check if it is a oneof. - if st.Field(i).Tag.Get("protobuf_oneof") != "" { - // fv is nil, or holds a pointer to generated struct. - // That generated struct has exactly one field, - // which has a protobuf struct tag. - if fv.IsNil() { - continue - } - inner := fv.Elem().Elem() // interface -> *T -> T - tag := inner.Type().Field(0).Tag.Get("protobuf") - props = new(Properties) // Overwrite the outer props var, but not its pointee. - props.Parse(tag) - // Write the value in the oneof, not the oneof itself. - fv = inner.Field(0) - - // Special case to cope with malformed messages gracefully: - // If the value in the oneof is a nil pointer, don't panic - // in writeAny. - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Use errors.New so writeAny won't render quotes. - msg := errors.New("/* nil */") - fv = reflect.ValueOf(&msg).Elem() - } - } - } - - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if b, ok := fv.Interface().(raw); ok { - if err := writeRaw(w, b.Bytes()); err != nil { - return err - } - continue - } - - // Enums have a String method, so writeAny will work fine. - if err := tm.writeAny(w, fv, props); err != nil { - return err - } - - if err := w.WriteByte('\n'); err != nil { - return err - } - } - - // Extensions (the XXX_extensions field). - pv := sv.Addr() - if _, ok := extendable(pv.Interface()); ok { - if err := tm.writeExtensions(w, pv); err != nil { - return err - } - } - - return nil -} - -// writeRaw writes an uninterpreted raw message. -func writeRaw(w *textWriter, b []byte) error { - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if err := writeUnknownStruct(w, b); err != nil { - return err - } - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - return nil -} - -// writeAny writes an arbitrary field. -func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { - v = reflect.Indirect(v) - - // Floats have special cases. - if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { - x := v.Float() - var b []byte - switch { - case math.IsInf(x, 1): - b = posInf - case math.IsInf(x, -1): - b = negInf - case math.IsNaN(x): - b = nan - } - if b != nil { - _, err := w.Write(b) - return err - } - // Other values are handled below. - } - - // We don't attempt to serialise every possible value type; only those - // that can occur in protocol buffers. - switch v.Kind() { - case reflect.Slice: - // Should only be a []byte; repeated fields are handled in writeStruct. - if err := writeString(w, string(v.Bytes())); err != nil { - return err - } - case reflect.String: - if err := writeString(w, v.String()); err != nil { - return err - } - case reflect.Struct: - // Required/optional group/message. - var bra, ket byte = '<', '>' - if props != nil && props.Wire == "group" { - bra, ket = '{', '}' - } - if err := w.WriteByte(bra); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if etm, ok := v.Interface().(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() - if err != nil { - return err - } - if _, err = w.Write(text); err != nil { - return err - } - } else if err := tm.writeStruct(w, v); err != nil { - return err - } - w.unindent() - if err := w.WriteByte(ket); err != nil { - return err - } - default: - _, err := fmt.Fprint(w, v.Interface()) - return err - } - return nil -} - -// equivalent to C's isprint. -func isprint(c byte) bool { - return c >= 0x20 && c < 0x7f -} - -// writeString writes a string in the protocol buffer text format. -// It is similar to strconv.Quote except we don't use Go escape sequences, -// we treat the string as a byte sequence, and we use octal escapes. -// These differences are to maintain interoperability with the other -// languages' implementations of the text format. -func writeString(w *textWriter, s string) error { - // use WriteByte here to get any needed indent - if err := w.WriteByte('"'); err != nil { - return err - } - // Loop over the bytes, not the runes. - for i := 0; i < len(s); i++ { - var err error - // Divergence from C++: we don't escape apostrophes. - // There's no need to escape them, and the C++ parser - // copes with a naked apostrophe. - switch c := s[i]; c { - case '\n': - _, err = w.w.Write(backslashN) - case '\r': - _, err = w.w.Write(backslashR) - case '\t': - _, err = w.w.Write(backslashT) - case '"': - _, err = w.w.Write(backslashDQ) - case '\\': - _, err = w.w.Write(backslashBS) - default: - if isprint(c) { - err = w.w.WriteByte(c) - } else { - _, err = fmt.Fprintf(w.w, "\\%03o", c) - } - } - if err != nil { - return err - } - } - return w.WriteByte('"') -} - -func writeUnknownStruct(w *textWriter, data []byte) (err error) { - if !w.compact { - if _, err := fmt.Fprintf(w, "/* %d unknown bytes */\n", len(data)); err != nil { - return err - } - } - b := NewBuffer(data) - for b.index < len(b.buf) { - x, err := b.DecodeVarint() - if err != nil { - _, err := fmt.Fprintf(w, "/* %v */\n", err) - return err - } - wire, tag := x&7, x>>3 - if wire == WireEndGroup { - w.unindent() - if _, err := w.Write(endBraceNewline); err != nil { - return err - } - continue - } - if _, err := fmt.Fprint(w, tag); err != nil { - return err - } - if wire != WireStartGroup { - if err := w.WriteByte(':'); err != nil { - return err - } - } - if !w.compact || wire == WireStartGroup { - if err := w.WriteByte(' '); err != nil { - return err - } - } - switch wire { - case WireBytes: - buf, e := b.DecodeRawBytes(false) - if e == nil { - _, err = fmt.Fprintf(w, "%q", buf) - } else { - _, err = fmt.Fprintf(w, "/* %v */", e) - } - case WireFixed32: - x, err = b.DecodeFixed32() - err = writeUnknownInt(w, x, err) - case WireFixed64: - x, err = b.DecodeFixed64() - err = writeUnknownInt(w, x, err) - case WireStartGroup: - err = w.WriteByte('{') - w.indent() - case WireVarint: - x, err = b.DecodeVarint() - err = writeUnknownInt(w, x, err) - default: - _, err = fmt.Fprintf(w, "/* unknown wire type %d */", wire) - } - if err != nil { - return err - } - if err = w.WriteByte('\n'); err != nil { - return err - } - } - return nil -} - -func writeUnknownInt(w *textWriter, x uint64, err error) error { - if err == nil { - _, err = fmt.Fprint(w, x) - } else { - _, err = fmt.Fprintf(w, "/* %v */", err) - } - return err -} - -type int32Slice []int32 - -func (s int32Slice) Len() int { return len(s) } -func (s int32Slice) Less(i, j int) bool { return s[i] < s[j] } -func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -// writeExtensions writes all the extensions in pv. -// pv is assumed to be a pointer to a protocol message struct that is extendable. -func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { - emap := extensionMaps[pv.Type().Elem()] - ep, _ := extendable(pv.Interface()) - - // Order the extensions by ID. - // This isn't strictly necessary, but it will give us - // canonical output, which will also make testing easier. - m, mu := ep.extensionsRead() - if m == nil { - return nil - } - mu.Lock() - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) - mu.Unlock() - - for _, extNum := range ids { - ext := m[extNum] - var desc *ExtensionDesc - if emap != nil { - desc = emap[extNum] - } - if desc == nil { - // Unknown extension. - if err := writeUnknownStruct(w, ext.enc); err != nil { - return err - } - continue - } - - pb, err := GetExtension(ep, desc) - if err != nil { - return fmt.Errorf("failed getting extension: %v", err) - } - - // Repeated extensions will appear as a slice. - if !desc.repeated() { - if err := tm.writeExtension(w, desc.Name, pb); err != nil { - return err - } - } else { - v := reflect.ValueOf(pb) - for i := 0; i < v.Len(); i++ { - if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { - return err - } - } - } - } - return nil -} - -func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error { - if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - return nil -} - -func (w *textWriter) writeIndent() { - if !w.complete { - return - } - remain := w.ind * 2 - for remain > 0 { - n := remain - if n > len(spaces) { - n = len(spaces) - } - w.w.Write(spaces[:n]) - remain -= n - } - w.complete = false -} - -// TextMarshaler is a configurable text format marshaler. -type TextMarshaler struct { - Compact bool // use compact text format (one line). - ExpandAny bool // expand google.protobuf.Any messages of known types -} - -// Marshal writes a given protocol buffer in text format. -// The only errors returned are from w. -func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error { - val := reflect.ValueOf(pb) - if pb == nil || val.IsNil() { - w.Write([]byte("")) - return nil - } - var bw *bufio.Writer - ww, ok := w.(writer) - if !ok { - bw = bufio.NewWriter(w) - ww = bw - } - aw := &textWriter{ - w: ww, - complete: true, - compact: tm.Compact, - } - - if etm, ok := pb.(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() - if err != nil { - return err - } - if _, err = aw.Write(text); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil - } - // Dereference the received pointer so we don't have outer < and >. - v := reflect.Indirect(val) - if err := tm.writeStruct(aw, v); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil -} - -// Text is the same as Marshal, but returns the string directly. -func (tm *TextMarshaler) Text(pb Message) string { - var buf bytes.Buffer - tm.Marshal(&buf, pb) - return buf.String() -} - -var ( - defaultTextMarshaler = TextMarshaler{} - compactTextMarshaler = TextMarshaler{Compact: true} -) - -// TODO: consider removing some of the Marshal functions below. - -// MarshalText writes a given protocol buffer in text format. -// The only errors returned are from w. -func MarshalText(w io.Writer, pb Message) error { return defaultTextMarshaler.Marshal(w, pb) } - -// MarshalTextString is the same as MarshalText, but returns the string directly. -func MarshalTextString(pb Message) string { return defaultTextMarshaler.Text(pb) } - -// CompactText writes a given protocol buffer in compact text format (one line). -func CompactText(w io.Writer, pb Message) error { return compactTextMarshaler.Marshal(w, pb) } - -// CompactTextString is the same as CompactText, but returns the string directly. -func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/vendor/github.com/golang/protobuf/proto/text_parser.go b/vendor/github.com/golang/protobuf/proto/text_parser.go deleted file mode 100644 index 5e14513..0000000 --- a/vendor/github.com/golang/protobuf/proto/text_parser.go +++ /dev/null @@ -1,895 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for parsing the Text protocol buffer format. -// TODO: message sets. - -import ( - "encoding" - "errors" - "fmt" - "reflect" - "strconv" - "strings" - "unicode/utf8" -) - -// Error string emitted when deserializing Any and fields are already set -const anyRepeatedlyUnpacked = "Any message unpacked multiple times, or %q already set" - -type ParseError struct { - Message string - Line int // 1-based line number - Offset int // 0-based byte offset from start of input -} - -func (p *ParseError) Error() string { - if p.Line == 1 { - // show offset only for first line - return fmt.Sprintf("line 1.%d: %v", p.Offset, p.Message) - } - return fmt.Sprintf("line %d: %v", p.Line, p.Message) -} - -type token struct { - value string - err *ParseError - line int // line number - offset int // byte number from start of input, not start of line - unquoted string // the unquoted version of value, if it was a quoted string -} - -func (t *token) String() string { - if t.err == nil { - return fmt.Sprintf("%q (line=%d, offset=%d)", t.value, t.line, t.offset) - } - return fmt.Sprintf("parse error: %v", t.err) -} - -type textParser struct { - s string // remaining input - done bool // whether the parsing is finished (success or error) - backed bool // whether back() was called - offset, line int - cur token -} - -func newTextParser(s string) *textParser { - p := new(textParser) - p.s = s - p.line = 1 - p.cur.line = 1 - return p -} - -func (p *textParser) errorf(format string, a ...interface{}) *ParseError { - pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} - p.cur.err = pe - p.done = true - return pe -} - -// Numbers and identifiers are matched by [-+._A-Za-z0-9] -func isIdentOrNumberChar(c byte) bool { - switch { - case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': - return true - case '0' <= c && c <= '9': - return true - } - switch c { - case '-', '+', '.', '_': - return true - } - return false -} - -func isWhitespace(c byte) bool { - switch c { - case ' ', '\t', '\n', '\r': - return true - } - return false -} - -func isQuote(c byte) bool { - switch c { - case '"', '\'': - return true - } - return false -} - -func (p *textParser) skipWhitespace() { - i := 0 - for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { - if p.s[i] == '#' { - // comment; skip to end of line or input - for i < len(p.s) && p.s[i] != '\n' { - i++ - } - if i == len(p.s) { - break - } - } - if p.s[i] == '\n' { - p.line++ - } - i++ - } - p.offset += i - p.s = p.s[i:len(p.s)] - if len(p.s) == 0 { - p.done = true - } -} - -func (p *textParser) advance() { - // Skip whitespace - p.skipWhitespace() - if p.done { - return - } - - // Start of non-whitespace - p.cur.err = nil - p.cur.offset, p.cur.line = p.offset, p.line - p.cur.unquoted = "" - switch p.s[0] { - case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': - // Single symbol - p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] - case '"', '\'': - // Quoted string - i := 1 - for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { - if p.s[i] == '\\' && i+1 < len(p.s) { - // skip escaped char - i++ - } - i++ - } - if i >= len(p.s) || p.s[i] != p.s[0] { - p.errorf("unmatched quote") - return - } - unq, err := unquoteC(p.s[1:i], rune(p.s[0])) - if err != nil { - p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) - return - } - p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] - p.cur.unquoted = unq - default: - i := 0 - for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { - i++ - } - if i == 0 { - p.errorf("unexpected byte %#x", p.s[0]) - return - } - p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] - } - p.offset += len(p.cur.value) -} - -var ( - errBadUTF8 = errors.New("proto: bad UTF-8") - errBadHex = errors.New("proto: bad hexadecimal") -) - -func unquoteC(s string, quote rune) (string, error) { - // This is based on C++'s tokenizer.cc. - // Despite its name, this is *not* parsing C syntax. - // For instance, "\0" is an invalid quoted string. - - // Avoid allocation in trivial cases. - simple := true - for _, r := range s { - if r == '\\' || r == quote { - simple = false - break - } - } - if simple { - return s, nil - } - - buf := make([]byte, 0, 3*len(s)/2) - for len(s) > 0 { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", errBadUTF8 - } - s = s[n:] - if r != '\\' { - if r < utf8.RuneSelf { - buf = append(buf, byte(r)) - } else { - buf = append(buf, string(r)...) - } - continue - } - - ch, tail, err := unescape(s) - if err != nil { - return "", err - } - buf = append(buf, ch...) - s = tail - } - return string(buf), nil -} - -func unescape(s string) (ch string, tail string, err error) { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", "", errBadUTF8 - } - s = s[n:] - switch r { - case 'a': - return "\a", s, nil - case 'b': - return "\b", s, nil - case 'f': - return "\f", s, nil - case 'n': - return "\n", s, nil - case 'r': - return "\r", s, nil - case 't': - return "\t", s, nil - case 'v': - return "\v", s, nil - case '?': - return "?", s, nil // trigraph workaround - case '\'', '"', '\\': - return string(r), s, nil - case '0', '1', '2', '3', '4', '5', '6', '7', 'x', 'X': - if len(s) < 2 { - return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) - } - base := 8 - ss := s[:2] - s = s[2:] - if r == 'x' || r == 'X' { - base = 16 - } else { - ss = string(r) + ss - } - i, err := strconv.ParseUint(ss, base, 8) - if err != nil { - return "", "", err - } - return string([]byte{byte(i)}), s, nil - case 'u', 'U': - n := 4 - if r == 'U' { - n = 8 - } - if len(s) < n { - return "", "", fmt.Errorf(`\%c requires %d digits`, r, n) - } - - bs := make([]byte, n/2) - for i := 0; i < n; i += 2 { - a, ok1 := unhex(s[i]) - b, ok2 := unhex(s[i+1]) - if !ok1 || !ok2 { - return "", "", errBadHex - } - bs[i/2] = a<<4 | b - } - s = s[n:] - return string(bs), s, nil - } - return "", "", fmt.Errorf(`unknown escape \%c`, r) -} - -// Adapted from src/pkg/strconv/quote.go. -func unhex(b byte) (v byte, ok bool) { - switch { - case '0' <= b && b <= '9': - return b - '0', true - case 'a' <= b && b <= 'f': - return b - 'a' + 10, true - case 'A' <= b && b <= 'F': - return b - 'A' + 10, true - } - return 0, false -} - -// Back off the parser by one token. Can only be done between calls to next(). -// It makes the next advance() a no-op. -func (p *textParser) back() { p.backed = true } - -// Advances the parser and returns the new current token. -func (p *textParser) next() *token { - if p.backed || p.done { - p.backed = false - return &p.cur - } - p.advance() - if p.done { - p.cur.value = "" - } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { - // Look for multiple quoted strings separated by whitespace, - // and concatenate them. - cat := p.cur - for { - p.skipWhitespace() - if p.done || !isQuote(p.s[0]) { - break - } - p.advance() - if p.cur.err != nil { - return &p.cur - } - cat.value += " " + p.cur.value - cat.unquoted += p.cur.unquoted - } - p.done = false // parser may have seen EOF, but we want to return cat - p.cur = cat - } - return &p.cur -} - -func (p *textParser) consumeToken(s string) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != s { - p.back() - return p.errorf("expected %q, found %q", s, tok.value) - } - return nil -} - -// Return a RequiredNotSetError indicating which required field was not set. -func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError { - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < st.NumField(); i++ { - if !isNil(sv.Field(i)) { - continue - } - - props := sprops.Prop[i] - if props.Required { - return &RequiredNotSetError{fmt.Sprintf("%v.%v", st, props.OrigName)} - } - } - return &RequiredNotSetError{fmt.Sprintf("%v.", st)} // should not happen -} - -// Returns the index in the struct for the named field, as well as the parsed tag properties. -func structFieldByName(sprops *StructProperties, name string) (int, *Properties, bool) { - i, ok := sprops.decoderOrigNames[name] - if ok { - return i, sprops.Prop[i], true - } - return -1, nil, false -} - -// Consume a ':' from the input stream (if the next token is a colon), -// returning an error if a colon is needed but not present. -func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ":" { - // Colon is optional when the field is a group or message. - needColon := true - switch props.Wire { - case "group": - needColon = false - case "bytes": - // A "bytes" field is either a message, a string, or a repeated field; - // those three become *T, *string and []T respectively, so we can check for - // this field being a pointer to a non-string. - if typ.Kind() == reflect.Ptr { - // *T or *string - if typ.Elem().Kind() == reflect.String { - break - } - } else if typ.Kind() == reflect.Slice { - // []T or []*T - if typ.Elem().Kind() != reflect.Ptr { - break - } - } else if typ.Kind() == reflect.String { - // The proto3 exception is for a string field, - // which requires a colon. - break - } - needColon = false - } - if needColon { - return p.errorf("expected ':', found %q", tok.value) - } - p.back() - } - return nil -} - -func (p *textParser) readStruct(sv reflect.Value, terminator string) error { - st := sv.Type() - sprops := GetProperties(st) - reqCount := sprops.reqCount - var reqFieldErr error - fieldSet := make(map[string]bool) - // A struct is a sequence of "name: value", terminated by one of - // '>' or '}', or the end of the input. A name may also be - // "[extension]" or "[type/url]". - // - // The whole struct can also be an expanded Any message, like: - // [type/url] < ... struct contents ... > - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - if tok.value == "[" { - // Looks like an extension or an Any. - // - // TODO: Check whether we need to handle - // namespace rooted names (e.g. ".something.Foo"). - extName, err := p.consumeExtName() - if err != nil { - return err - } - - if s := strings.LastIndex(extName, "/"); s >= 0 { - // If it contains a slash, it's an Any type URL. - messageName := extName[s+1:] - mt := MessageType(messageName) - if mt == nil { - return p.errorf("unrecognized message %q in google.protobuf.Any", messageName) - } - tok = p.next() - if tok.err != nil { - return tok.err - } - // consume an optional colon - if tok.value == ":" { - tok = p.next() - if tok.err != nil { - return tok.err - } - } - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - v := reflect.New(mt.Elem()) - if pe := p.readStruct(v.Elem(), terminator); pe != nil { - return pe - } - b, err := Marshal(v.Interface().(Message)) - if err != nil { - return p.errorf("failed to marshal message of type %q: %v", messageName, err) - } - if fieldSet["type_url"] { - return p.errorf(anyRepeatedlyUnpacked, "type_url") - } - if fieldSet["value"] { - return p.errorf(anyRepeatedlyUnpacked, "value") - } - sv.FieldByName("TypeUrl").SetString(extName) - sv.FieldByName("Value").SetBytes(b) - fieldSet["type_url"] = true - fieldSet["value"] = true - continue - } - - var desc *ExtensionDesc - // This could be faster, but it's functional. - // TODO: Do something smarter than a linear scan. - for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) { - if d.Name == extName { - desc = d - break - } - } - if desc == nil { - return p.errorf("unrecognized extension %q", extName) - } - - props := &Properties{} - props.Parse(desc.Tag) - - typ := reflect.TypeOf(desc.ExtensionType) - if err := p.checkForColon(props, typ); err != nil { - return err - } - - rep := desc.repeated() - - // Read the extension structure, and set it in - // the value we're constructing. - var ext reflect.Value - if !rep { - ext = reflect.New(typ).Elem() - } else { - ext = reflect.New(typ.Elem()).Elem() - } - if err := p.readAny(ext, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - ep := sv.Addr().Interface().(Message) - if !rep { - SetExtension(ep, desc, ext.Interface()) - } else { - old, err := GetExtension(ep, desc) - var sl reflect.Value - if err == nil { - sl = reflect.ValueOf(old) // existing slice - } else { - sl = reflect.MakeSlice(typ, 0, 1) - } - sl = reflect.Append(sl, ext) - SetExtension(ep, desc, sl.Interface()) - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - continue - } - - // This is a normal, non-extension field. - name := tok.value - var dst reflect.Value - fi, props, ok := structFieldByName(sprops, name) - if ok { - dst = sv.Field(fi) - } else if oop, ok := sprops.OneofTypes[name]; ok { - // It is a oneof. - props = oop.Prop - nv := reflect.New(oop.Type.Elem()) - dst = nv.Elem().Field(0) - field := sv.Field(oop.Field) - if !field.IsNil() { - return p.errorf("field '%s' would overwrite already parsed oneof '%s'", name, sv.Type().Field(oop.Field).Name) - } - field.Set(nv) - } - if !dst.IsValid() { - return p.errorf("unknown field name %q in %v", name, st) - } - - if dst.Kind() == reflect.Map { - // Consume any colon. - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Construct the map if it doesn't already exist. - if dst.IsNil() { - dst.Set(reflect.MakeMap(dst.Type())) - } - key := reflect.New(dst.Type().Key()).Elem() - val := reflect.New(dst.Type().Elem()).Elem() - - // The map entry should be this sequence of tokens: - // < key : KEY value : VALUE > - // However, implementations may omit key or value, and technically - // we should support them in any order. See b/28924776 for a time - // this went wrong. - - tok := p.next() - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - switch tok.value { - case "key": - if err := p.consumeToken(":"); err != nil { - return err - } - if err := p.readAny(key, props.mkeyprop); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - case "value": - if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil { - return err - } - if err := p.readAny(val, props.mvalprop); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - default: - p.back() - return p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) - } - } - - dst.SetMapIndex(key, val) - continue - } - - // Check that it's not already set if it's not a repeated field. - if !props.Repeated && fieldSet[name] { - return p.errorf("non-repeated field %q was repeated", name) - } - - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Parse into the field. - fieldSet[name] = true - if err := p.readAny(dst, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - if props.Required { - reqCount-- - } - - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - - } - - if reqCount > 0 { - return p.missingRequiredFieldError(sv) - } - return reqFieldErr -} - -// consumeExtName consumes extension name or expanded Any type URL and the -// following ']'. It returns the name or URL consumed. -func (p *textParser) consumeExtName() (string, error) { - tok := p.next() - if tok.err != nil { - return "", tok.err - } - - // If extension name or type url is quoted, it's a single token. - if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { - name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) - if err != nil { - return "", err - } - return name, p.consumeToken("]") - } - - // Consume everything up to "]" - var parts []string - for tok.value != "]" { - parts = append(parts, tok.value) - tok = p.next() - if tok.err != nil { - return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) - } - } - return strings.Join(parts, ""), nil -} - -// consumeOptionalSeparator consumes an optional semicolon or comma. -// It is used in readStruct to provide backward compatibility. -func (p *textParser) consumeOptionalSeparator() error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ";" && tok.value != "," { - p.back() - } - return nil -} - -func (p *textParser) readAny(v reflect.Value, props *Properties) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "" { - return p.errorf("unexpected EOF") - } - - switch fv := v; fv.Kind() { - case reflect.Slice: - at := v.Type() - if at.Elem().Kind() == reflect.Uint8 { - // Special case for []byte - if tok.value[0] != '"' && tok.value[0] != '\'' { - // Deliberately written out here, as the error after - // this switch statement would write "invalid []byte: ...", - // which is not as user-friendly. - return p.errorf("invalid string: %v", tok.value) - } - bytes := []byte(tok.unquoted) - fv.Set(reflect.ValueOf(bytes)) - return nil - } - // Repeated field. - if tok.value == "[" { - // Repeated field with list notation, like [1,2,3]. - for { - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - err := p.readAny(fv.Index(fv.Len()-1), props) - if err != nil { - return err - } - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "]" { - break - } - if tok.value != "," { - return p.errorf("Expected ']' or ',' found %q", tok.value) - } - } - return nil - } - // One value of the repeated field. - p.back() - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - return p.readAny(fv.Index(fv.Len()-1), props) - case reflect.Bool: - // true/1/t/True or false/f/0/False. - switch tok.value { - case "true", "1", "t", "True": - fv.SetBool(true) - return nil - case "false", "0", "f", "False": - fv.SetBool(false) - return nil - } - case reflect.Float32, reflect.Float64: - v := tok.value - // Ignore 'f' for compatibility with output generated by C++, but don't - // remove 'f' when the value is "-inf" or "inf". - if strings.HasSuffix(v, "f") && tok.value != "-inf" && tok.value != "inf" { - v = v[:len(v)-1] - } - if f, err := strconv.ParseFloat(v, fv.Type().Bits()); err == nil { - fv.SetFloat(f) - return nil - } - case reflect.Int32: - if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { - fv.SetInt(x) - return nil - } - - if len(props.Enum) == 0 { - break - } - m, ok := enumValueMaps[props.Enum] - if !ok { - break - } - x, ok := m[tok.value] - if !ok { - break - } - fv.SetInt(int64(x)) - return nil - case reflect.Int64: - if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { - fv.SetInt(x) - return nil - } - - case reflect.Ptr: - // A basic field (indirected through pointer), or a repeated message/group - p.back() - fv.Set(reflect.New(fv.Type().Elem())) - return p.readAny(fv.Elem(), props) - case reflect.String: - if tok.value[0] == '"' || tok.value[0] == '\'' { - fv.SetString(tok.unquoted) - return nil - } - case reflect.Struct: - var terminator string - switch tok.value { - case "{": - terminator = "}" - case "<": - terminator = ">" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - // TODO: Handle nested messages which implement encoding.TextUnmarshaler. - return p.readStruct(fv, terminator) - case reflect.Uint32: - if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { - fv.SetUint(x) - return nil - } - case reflect.Uint64: - if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { - fv.SetUint(x) - return nil - } - } - return p.errorf("invalid %v: %v", v.Type(), tok.value) -} - -// UnmarshalText reads a protocol buffer in Text format. UnmarshalText resets pb -// before starting to unmarshal, so any existing data in pb is always removed. -// If a required field is not set and no other error occurs, -// UnmarshalText returns *RequiredNotSetError. -func UnmarshalText(s string, pb Message) error { - if um, ok := pb.(encoding.TextUnmarshaler); ok { - err := um.UnmarshalText([]byte(s)) - return err - } - pb.Reset() - v := reflect.ValueOf(pb) - if pe := newTextParser(s).readStruct(v.Elem(), ""); pe != nil { - return pe - } - return nil -} diff --git a/vendor/github.com/google/go-jsonnet/LICENSE b/vendor/github.com/google/go-jsonnet/LICENSE deleted file mode 100644 index d645695..0000000 --- a/vendor/github.com/google/go-jsonnet/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/google/go-jsonnet/ast/ast.go b/vendor/github.com/google/go-jsonnet/ast/ast.go deleted file mode 100644 index 77c9c06..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/ast.go +++ /dev/null @@ -1,647 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package ast provides AST nodes and ancillary structures and algorithms. -package ast - -import ( - "fmt" -) - -// Identifier represents a variable / parameter / field name. -//+gen set -type Identifier string - -// Identifiers represents an Identifier slice. -type Identifiers []Identifier - -// TODO(jbeda) implement interning of identifiers if necessary. The C++ -// version does so. - -// --------------------------------------------------------------------------- - -// Context represents the surrounding context of a node (e.g. a function it's in) -type Context *string - -// Node represents a node in the AST. -type Node interface { - Context() Context - Loc() *LocationRange - FreeVariables() Identifiers - SetFreeVariables(Identifiers) - SetContext(Context) -} - -// Nodes represents a Node slice. -type Nodes []Node - -// --------------------------------------------------------------------------- - -// NodeBase holds fields common to all node types. -type NodeBase struct { - loc LocationRange - context Context - freeVariables Identifiers -} - -// NewNodeBase creates a new NodeBase from initial LocationRange and -// Identifiers. -func NewNodeBase(loc LocationRange, freeVariables Identifiers) NodeBase { - return NodeBase{ - loc: loc, - freeVariables: freeVariables, - } -} - -// NewNodeBaseLoc creates a new NodeBase from an initial LocationRange. -func NewNodeBaseLoc(loc LocationRange) NodeBase { - return NodeBase{ - loc: loc, - freeVariables: []Identifier{}, - } -} - -// Loc returns a NodeBase's loc. -func (n *NodeBase) Loc() *LocationRange { - return &n.loc -} - -// FreeVariables returns a NodeBase's freeVariables. -func (n *NodeBase) FreeVariables() Identifiers { - return n.freeVariables -} - -// SetFreeVariables sets a NodeBase's freeVariables. -func (n *NodeBase) SetFreeVariables(idents Identifiers) { - n.freeVariables = idents -} - -// Context returns a NodeBase's context. -func (n *NodeBase) Context() Context { - return n.context -} - -// SetContext sets a NodeBase's context. -func (n *NodeBase) SetContext(context Context) { - n.context = context -} - -// --------------------------------------------------------------------------- - -// IfSpec represents an if-specification in a comprehension. -type IfSpec struct { - Expr Node -} - -// ForSpec represents a for-specification in a comprehension. -// Example: -// expr for x in arr1 for y in arr2 for z in arr3 -// The order is the same as in python, i.e. the leftmost is the outermost. -// -// Our internal representation reflects how they are semantically nested: -// ForSpec(z, outer=ForSpec(y, outer=ForSpec(x, outer=nil))) -// Any ifspecs are attached to the relevant ForSpec. -// -// Ifs are attached to the one on the left, for example: -// expr for x in arr1 for y in arr2 if x % 2 == 0 for z in arr3 -// The if is attached to the y forspec. -// -// It desugares to: -// flatMap(\x -> -// flatMap(\y -> -// flatMap(\z -> [expr], arr3) -// arr2) -// arr3) -type ForSpec struct { - VarName Identifier - Expr Node - Conditions []IfSpec - Outer *ForSpec -} - -// --------------------------------------------------------------------------- - -// Apply represents a function call -type Apply struct { - NodeBase - Target Node - Arguments Arguments - TrailingComma bool - TailStrict bool -} - -// NamedArgument represents a named argument to function call x=1. -type NamedArgument struct { - Name Identifier - Arg Node -} - -// Arguments represents positional and named arguments to a function call -// f(x, y, z=1). -type Arguments struct { - Positional Nodes - Named []NamedArgument -} - -// --------------------------------------------------------------------------- - -// ApplyBrace represents e { }. Desugared to e + { }. -type ApplyBrace struct { - NodeBase - Left Node - Right Node -} - -// --------------------------------------------------------------------------- - -// Array represents array constructors [1, 2, 3]. -type Array struct { - NodeBase - Elements Nodes - TrailingComma bool -} - -// --------------------------------------------------------------------------- - -// ArrayComp represents array comprehensions (which are like Python list -// comprehensions) -type ArrayComp struct { - NodeBase - Body Node - TrailingComma bool - Spec ForSpec -} - -// --------------------------------------------------------------------------- - -// Assert represents an assert expression (not an object-level assert). -// -// After parsing, message can be nil indicating that no message was -// specified. This AST is elimiated by desugaring. -type Assert struct { - NodeBase - Cond Node - Message Node - Rest Node -} - -// --------------------------------------------------------------------------- - -// BinaryOp represents a binary operator. -type BinaryOp int - -// Binary operators -const ( - BopMult BinaryOp = iota - BopDiv - BopPercent - - BopPlus - BopMinus - - BopShiftL - BopShiftR - - BopGreater - BopGreaterEq - BopLess - BopLessEq - BopIn - - BopManifestEqual - BopManifestUnequal - - BopBitwiseAnd - BopBitwiseXor - BopBitwiseOr - - BopAnd - BopOr -) - -var bopStrings = []string{ - BopMult: "*", - BopDiv: "/", - BopPercent: "%", - - BopPlus: "+", - BopMinus: "-", - - BopShiftL: "<<", - BopShiftR: ">>", - - BopGreater: ">", - BopGreaterEq: ">=", - BopLess: "<", - BopLessEq: "<=", - BopIn: "in", - - BopManifestEqual: "==", - BopManifestUnequal: "!=", - - BopBitwiseAnd: "&", - BopBitwiseXor: "^", - BopBitwiseOr: "|", - - BopAnd: "&&", - BopOr: "||", -} - -// BopMap is a map from binary operator token strings to BinaryOp values. -var BopMap = map[string]BinaryOp{ - "*": BopMult, - "/": BopDiv, - "%": BopPercent, - - "+": BopPlus, - "-": BopMinus, - - "<<": BopShiftL, - ">>": BopShiftR, - - ">": BopGreater, - ">=": BopGreaterEq, - "<": BopLess, - "<=": BopLessEq, - "in": BopIn, - - "==": BopManifestEqual, - "!=": BopManifestUnequal, - - "&": BopBitwiseAnd, - "^": BopBitwiseXor, - "|": BopBitwiseOr, - - "&&": BopAnd, - "||": BopOr, -} - -func (b BinaryOp) String() string { - if b < 0 || int(b) >= len(bopStrings) { - panic(fmt.Sprintf("INTERNAL ERROR: Unrecognised binary operator: %d", b)) - } - return bopStrings[b] -} - -// Binary represents binary operators. -type Binary struct { - NodeBase - Left Node - Op BinaryOp - Right Node -} - -// --------------------------------------------------------------------------- - -// Conditional represents if/then/else. -// -// After parsing, branchFalse can be nil indicating that no else branch -// was specified. The desugarer fills this in with a LiteralNull -type Conditional struct { - NodeBase - Cond Node - BranchTrue Node - BranchFalse Node -} - -// --------------------------------------------------------------------------- - -// Dollar represents the $ keyword -type Dollar struct{ NodeBase } - -// --------------------------------------------------------------------------- - -// Error represents the error e. -type Error struct { - NodeBase - Expr Node -} - -// --------------------------------------------------------------------------- - -// Function represents a function definition -type Function struct { - NodeBase - Parameters Parameters - TrailingComma bool - Body Node -} - -// NamedParameter represents an optional named parameter of a function. -type NamedParameter struct { - Name Identifier - DefaultArg Node -} - -// Parameters represents the required positional parameters and optional named -// parameters to a function definition. -type Parameters struct { - Required Identifiers - Optional []NamedParameter -} - -// --------------------------------------------------------------------------- - -// Import represents import "file". -type Import struct { - NodeBase - File *LiteralString -} - -// --------------------------------------------------------------------------- - -// ImportStr represents importstr "file". -type ImportStr struct { - NodeBase - File *LiteralString -} - -// --------------------------------------------------------------------------- - -// Index represents both e[e] and the syntax sugar e.f. -// -// One of index and id will be nil before desugaring. After desugaring id -// will be nil. -type Index struct { - NodeBase - Target Node - Index Node - Id *Identifier -} - -// Slice represents an array slice a[begin:end:step]. -type Slice struct { - NodeBase - Target Node - - // Each of these can be nil - BeginIndex Node - EndIndex Node - Step Node -} - -// --------------------------------------------------------------------------- - -// LocalBind is a helper struct for astLocal -type LocalBind struct { - Variable Identifier - Body Node - Fun *Function -} - -// LocalBinds represents a LocalBind slice. -type LocalBinds []LocalBind - -// Local represents local x = e; e. After desugaring, functionSugar is false. -type Local struct { - NodeBase - Binds LocalBinds - Body Node -} - -// --------------------------------------------------------------------------- - -// LiteralBoolean represents true and false -type LiteralBoolean struct { - NodeBase - Value bool -} - -// --------------------------------------------------------------------------- - -// LiteralNull represents the null keyword -type LiteralNull struct{ NodeBase } - -// --------------------------------------------------------------------------- - -// LiteralNumber represents a JSON number -type LiteralNumber struct { - NodeBase - Value float64 - OriginalString string -} - -// --------------------------------------------------------------------------- - -// LiteralStringKind represents the kind of a literal string. -type LiteralStringKind int - -// Literal string kinds -const ( - StringSingle LiteralStringKind = iota - StringDouble - StringBlock - VerbatimStringDouble - VerbatimStringSingle -) - -// FullyEscaped returns true iff the literal string kind may contain escape -// sequences that require unescaping. -func (k LiteralStringKind) FullyEscaped() bool { - switch k { - case StringSingle, StringDouble: - return true - case StringBlock, VerbatimStringDouble, VerbatimStringSingle: - return false - } - panic(fmt.Sprintf("Unknown string kind: %v", k)) -} - -// LiteralString represents a JSON string -type LiteralString struct { - NodeBase - Value string - Kind LiteralStringKind - BlockIndent string -} - -// --------------------------------------------------------------------------- - -// ObjectFieldKind represents the kind of an object field. -type ObjectFieldKind int - -// Kinds of object fields -const ( - ObjectAssert ObjectFieldKind = iota // assert expr2 [: expr3] where expr3 can be nil - ObjectFieldID // id:[:[:]] expr2 - ObjectFieldExpr // '['expr1']':[:[:]] expr2 - ObjectFieldStr // expr1:[:[:]] expr2 - ObjectLocal // local id = expr2 - ObjectNullID // null id - ObjectNullExpr // null '['expr1']' - ObjectNullStr // null expr1 -) - -// ObjectFieldHide represents the visibility of an object field. -type ObjectFieldHide int - -// Object field visibilities -const ( - ObjectFieldHidden ObjectFieldHide = iota // f:: e - ObjectFieldInherit // f: e - ObjectFieldVisible // f::: e -) - -// ObjectField represents a field of an object or object comprehension. -// TODO(sbarzowski) consider having separate types for various kinds -type ObjectField struct { - Kind ObjectFieldKind - Hide ObjectFieldHide // (ignore if kind != astObjectField*) - SuperSugar bool // +: (ignore if kind != astObjectField*) - MethodSugar bool // f(x, y, z): ... (ignore if kind == astObjectAssert) - Method *Function - Expr1 Node // Not in scope of the object - Id *Identifier - Params *Parameters // If methodSugar == true then holds the params. - TrailingComma bool // If methodSugar == true then remembers the trailing comma - Expr2, Expr3 Node // In scope of the object (can see self). -} - -// ObjectFieldLocalNoMethod creates a non-method local object field. -func ObjectFieldLocalNoMethod(id *Identifier, body Node) ObjectField { - return ObjectField{ObjectLocal, ObjectFieldVisible, false, false, nil, nil, id, nil, false, body, nil} -} - -// ObjectFields represents an ObjectField slice. -type ObjectFields []ObjectField - -// Object represents object constructors { f: e ... }. -// -// The trailing comma is only allowed if len(fields) > 0. Converted to -// DesugaredObject during desugaring. -type Object struct { - NodeBase - Fields ObjectFields - TrailingComma bool -} - -// --------------------------------------------------------------------------- - -// DesugaredObjectField represents a desugared object field. -type DesugaredObjectField struct { - Hide ObjectFieldHide - Name Node - Body Node - PlusSuper bool -} - -// DesugaredObjectFields represents a DesugaredObjectField slice. -type DesugaredObjectFields []DesugaredObjectField - -// DesugaredObject represents object constructors { f: e ... } after -// desugaring. -// -// The assertions either return true or raise an error. -type DesugaredObject struct { - NodeBase - Asserts Nodes - Fields DesugaredObjectFields -} - -// --------------------------------------------------------------------------- - -// ObjectComp represents object comprehension -// { [e]: e for x in e for.. if... }. -type ObjectComp struct { - NodeBase - Fields ObjectFields - TrailingComma bool - Spec ForSpec -} - -// --------------------------------------------------------------------------- - -// Parens represents parentheses -// ( e ) -type Parens struct { - NodeBase - Inner Node -} - -// --------------------------------------------------------------------------- - -// Self represents the self keyword. -type Self struct{ NodeBase } - -// --------------------------------------------------------------------------- - -// SuperIndex represents the super[e] and super.f constructs. -// -// Either index or identifier will be set before desugaring. After desugaring, id will be -// nil. -type SuperIndex struct { - NodeBase - Index Node - Id *Identifier -} - -// InSuper represents the e in super construct. -type InSuper struct { - NodeBase - Index Node -} - -// --------------------------------------------------------------------------- - -// UnaryOp represents a unary operator. -type UnaryOp int - -// Unary operators -const ( - UopNot UnaryOp = iota - UopBitwiseNot - UopPlus - UopMinus -) - -var uopStrings = []string{ - UopNot: "!", - UopBitwiseNot: "~", - UopPlus: "+", - UopMinus: "-", -} - -// UopMap is a map from unary operator token strings to UnaryOp values. -var UopMap = map[string]UnaryOp{ - "!": UopNot, - "~": UopBitwiseNot, - "+": UopPlus, - "-": UopMinus, -} - -func (u UnaryOp) String() string { - if u < 0 || int(u) >= len(uopStrings) { - panic(fmt.Sprintf("INTERNAL ERROR: Unrecognised unary operator: %d", u)) - } - return uopStrings[u] -} - -// Unary represents unary operators. -type Unary struct { - NodeBase - Op UnaryOp - Expr Node -} - -// --------------------------------------------------------------------------- - -// Var represents variables. -type Var struct { - NodeBase - Id Identifier -} - -// --------------------------------------------------------------------------- diff --git a/vendor/github.com/google/go-jsonnet/ast/clone.go b/vendor/github.com/google/go-jsonnet/ast/clone.go deleted file mode 100644 index 84ca861..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/clone.go +++ /dev/null @@ -1,304 +0,0 @@ -/* -Copyright 2018 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package ast - -import ( - "fmt" - "reflect" -) - -// Updates fields of specPtr to point to deep clones. -func cloneForSpec(specPtr *ForSpec) { - clone(&specPtr.Expr) - oldOuter := specPtr.Outer - if oldOuter != nil { - specPtr.Outer = new(ForSpec) - *specPtr.Outer = *oldOuter - cloneForSpec(specPtr.Outer) - } - for i := range specPtr.Conditions { - clone(&specPtr.Conditions[i].Expr) - } -} - -// Updates fields of params to point to deep clones. -func cloneParameters(params *Parameters) { - if params == nil { - return - } - params.Optional = append(make([]NamedParameter, 0), params.Optional...) - for i := range params.Optional { - clone(¶ms.Optional[i].DefaultArg) - } -} - -// Updates fields of field to point to deep clones. -func cloneField(field *ObjectField) { - if field.Method != nil { - field.Method = Clone(field.Method).(*Function) - } - - oldParams := field.Params - if oldParams != nil { - field.Params = new(Parameters) - *field.Params = *oldParams - } - cloneParameters(field.Params) - - clone(&field.Expr1) - clone(&field.Expr2) - clone(&field.Expr3) -} - -// Updates fields of field to point to deep clones. -func cloneDesugaredField(field *DesugaredObjectField) { - clone(&field.Name) - clone(&field.Body) -} - -// Updates the NodeBase fields of astPtr to point to deep clones. -func cloneNodeBase(astPtr Node) { - if astPtr.Context() != nil { - newContext := new(string) - *newContext = *astPtr.Context() - astPtr.SetContext(newContext) - } - astPtr.SetFreeVariables(append(make(Identifiers, 0), astPtr.FreeVariables()...)) -} - -// Updates *astPtr to point to a deep clone of what it originally pointed at. -func clone(astPtr *Node) { - node := *astPtr - if node == nil { - return - } - - switch node := node.(type) { - case *Apply: - r := new(Apply) - *astPtr = r - *r = *node - clone(&r.Target) - r.Arguments.Positional = append(make(Nodes, 0), r.Arguments.Positional...) - for i := range r.Arguments.Positional { - clone(&r.Arguments.Positional[i]) - } - r.Arguments.Named = append(make([]NamedArgument, 0), r.Arguments.Named...) - for i := range r.Arguments.Named { - clone(&r.Arguments.Named[i].Arg) - } - - case *ApplyBrace: - r := new(ApplyBrace) - *astPtr = r - *r = *node - clone(&r.Left) - clone(&r.Right) - - case *Array: - r := new(Array) - *astPtr = r - *r = *node - r.Elements = append(make(Nodes, 0), r.Elements...) - for i := range r.Elements { - clone(&r.Elements[i]) - } - - case *ArrayComp: - r := new(ArrayComp) - *astPtr = r - *r = *node - clone(&r.Body) - cloneForSpec(&r.Spec) - - case *Assert: - r := new(Assert) - *astPtr = r - *r = *node - clone(&r.Cond) - clone(&r.Message) - clone(&r.Rest) - - case *Binary: - r := new(Binary) - *astPtr = r - *r = *node - clone(&r.Left) - clone(&r.Right) - - case *Conditional: - r := new(Conditional) - *astPtr = r - *r = *node - clone(&r.Cond) - clone(&r.BranchTrue) - clone(&r.BranchFalse) - - case *Dollar: - r := new(Dollar) - *astPtr = r - *r = *node - - case *Error: - r := new(Error) - *astPtr = r - *r = *node - clone(&r.Expr) - - case *Function: - r := new(Function) - *astPtr = r - *r = *node - cloneParameters(&r.Parameters) - clone(&r.Body) - - case *Import: - r := new(Import) - *astPtr = r - *r = *node - r.File = new(LiteralString) - *r.File = *node.File - - case *ImportStr: - r := new(ImportStr) - *astPtr = r - *r = *node - r.File = new(LiteralString) - *r.File = *node.File - - case *Index: - r := new(Index) - *astPtr = r - *r = *node - clone(&r.Target) - clone(&r.Index) - - case *Slice: - r := new(Slice) - *astPtr = r - *r = *node - clone(&r.Target) - clone(&r.BeginIndex) - clone(&r.EndIndex) - clone(&r.Step) - - case *Local: - r := new(Local) - *astPtr = r - *r = *node - r.Binds = append(make(LocalBinds, 0), r.Binds...) - for i := range r.Binds { - if r.Binds[i].Fun != nil { - r.Binds[i].Fun = Clone(r.Binds[i].Fun).(*Function) - } - clone(&r.Binds[i].Body) - } - clone(&r.Body) - - case *LiteralBoolean: - r := new(LiteralBoolean) - *astPtr = r - *r = *node - - case *LiteralNull: - r := new(LiteralNull) - *astPtr = r - *r = *node - - case *LiteralNumber: - r := new(LiteralNumber) - *astPtr = r - *r = *node - - case *LiteralString: - r := new(LiteralString) - *astPtr = r - *r = *node - - case *Object: - r := new(Object) - *astPtr = r - *r = *node - r.Fields = append(make(ObjectFields, 0), r.Fields...) - for i := range r.Fields { - cloneField(&r.Fields[i]) - } - - case *DesugaredObject: - r := new(DesugaredObject) - *astPtr = r - *r = *node - r.Fields = append(make(DesugaredObjectFields, 0), r.Fields...) - for i := range r.Fields { - cloneDesugaredField(&r.Fields[i]) - } - - case *ObjectComp: - r := new(ObjectComp) - *astPtr = r - *r = *node - r.Fields = append(make(ObjectFields, 0), r.Fields...) - for i := range r.Fields { - cloneField(&r.Fields[i]) - } - cloneForSpec(&r.Spec) - - case *Parens: - r := new(Parens) - *astPtr = r - *r = *node - clone(&r.Inner) - - case *Self: - r := new(Self) - *astPtr = r - *r = *node - - case *SuperIndex: - r := new(SuperIndex) - *astPtr = r - *r = *node - clone(&r.Index) - - case *InSuper: - r := new(InSuper) - *astPtr = r - *r = *node - clone(&r.Index) - - case *Unary: - r := new(Unary) - *astPtr = r - *r = *node - clone(&r.Expr) - - case *Var: - r := new(Var) - *astPtr = r - *r = *node - - default: - panic(fmt.Sprintf("ast.Clone() does not recognize ast: %s", reflect.TypeOf(node))) - } - - cloneNodeBase(*astPtr) -} - -func Clone(astPtr Node) Node { - clone(&astPtr) - return astPtr -} diff --git a/vendor/github.com/google/go-jsonnet/ast/identifier_set.go b/vendor/github.com/google/go-jsonnet/ast/identifier_set.go deleted file mode 100644 index fe16bb2..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/identifier_set.go +++ /dev/null @@ -1,172 +0,0 @@ -// Generated by: main -// TypeWriter: set -// Directive: +gen on identifier - -package ast - -// Set is a modification of https://github.com/deckarep/golang-set -// The MIT License (MIT) -// Copyright (c) 2013 Ralph Caraveo (deckarep@gmail.com) - -// IdentifierSet is the primary type that represents a set -type IdentifierSet map[Identifier]struct{} - -// NewIdentifierSet creates and returns a reference to an empty set. -func NewIdentifierSet(a ...Identifier) IdentifierSet { - s := make(IdentifierSet) - for _, i := range a { - s.Add(i) - } - return s -} - -// ToSlice returns the elements of the current set as a slice -func (set IdentifierSet) ToSlice() []Identifier { - var s []Identifier - for v := range set { - s = append(s, v) - } - return s -} - -// Add adds an item to the current set if it doesn't already exist in the set. -func (set IdentifierSet) Add(i Identifier) bool { - _, found := set[i] - set[i] = struct{}{} - return !found //False if it existed already -} - -// Contains determines if a given item is already in the set. -func (set IdentifierSet) Contains(i Identifier) bool { - _, found := set[i] - return found -} - -// ContainsAll determines if the given items are all in the set -func (set IdentifierSet) ContainsAll(i ...Identifier) bool { - for _, v := range i { - if !set.Contains(v) { - return false - } - } - return true -} - -// IsSubset determines if every item in the other set is in this set. -func (set IdentifierSet) IsSubset(other IdentifierSet) bool { - for elem := range set { - if !other.Contains(elem) { - return false - } - } - return true -} - -// IsSuperset determines if every item of this set is in the other set. -func (set IdentifierSet) IsSuperset(other IdentifierSet) bool { - return other.IsSubset(set) -} - -// Union returns a new set with all items in both sets. -func (set IdentifierSet) Union(other IdentifierSet) IdentifierSet { - unionedSet := NewIdentifierSet() - - for elem := range set { - unionedSet.Add(elem) - } - for elem := range other { - unionedSet.Add(elem) - } - return unionedSet -} - -// Intersect returns a new set with items that exist only in both sets. -func (set IdentifierSet) Intersect(other IdentifierSet) IdentifierSet { - intersection := NewIdentifierSet() - // loop over smaller set - if set.Cardinality() < other.Cardinality() { - for elem := range set { - if other.Contains(elem) { - intersection.Add(elem) - } - } - } else { - for elem := range other { - if set.Contains(elem) { - intersection.Add(elem) - } - } - } - return intersection -} - -// Difference returns a new set with items in the current set but not in the other set -func (set IdentifierSet) Difference(other IdentifierSet) IdentifierSet { - differencedSet := NewIdentifierSet() - for elem := range set { - if !other.Contains(elem) { - differencedSet.Add(elem) - } - } - return differencedSet -} - -// SymmetricDifference returns a new set with items in the current set or the other set but not in both. -func (set IdentifierSet) SymmetricDifference(other IdentifierSet) IdentifierSet { - aDiff := set.Difference(other) - bDiff := other.Difference(set) - return aDiff.Union(bDiff) -} - -// Clear clears the entire set to be the empty set. -func (set *IdentifierSet) Clear() { - *set = make(IdentifierSet) -} - -// Remove allows the removal of a single item in the set. -func (set IdentifierSet) Remove(i Identifier) { - delete(set, i) -} - -// Cardinality returns how many items are currently in the set. -func (set IdentifierSet) Cardinality() int { - return len(set) -} - -// Iter returns a channel of type identifier that you can range over. -func (set IdentifierSet) Iter() <-chan Identifier { - ch := make(chan Identifier) - go func() { - for elem := range set { - ch <- elem - } - close(ch) - }() - - return ch -} - -// Equal determines if two sets are equal to each other. -// If they both are the same size and have the same items they are considered equal. -// Order of items is not relevent for sets to be equal. -func (set IdentifierSet) Equal(other IdentifierSet) bool { - if set.Cardinality() != other.Cardinality() { - return false - } - for elem := range set { - if !other.Contains(elem) { - return false - } - } - return true -} - -// Clone returns a clone of the set. -// Does NOT clone the underlying elements. -func (set IdentifierSet) Clone() IdentifierSet { - clonedSet := NewIdentifierSet() - for elem := range set { - clonedSet.Add(elem) - } - return clonedSet -} diff --git a/vendor/github.com/google/go-jsonnet/ast/location.go b/vendor/github.com/google/go-jsonnet/ast/location.go deleted file mode 100644 index 85c7628..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/location.go +++ /dev/null @@ -1,205 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package ast - -import ( - "bytes" - "fmt" -) - -// Source represents a source file. -type Source struct { - lines []string -} - -////////////////////////////////////////////////////////////////////////////// -// Location - -// Location represents a single location in an (unspecified) file. -type Location struct { - Line int - // Column is a byte offset from the beginning of the line - Column int -} - -// IsSet returns if this Location has been set. -func (l *Location) IsSet() bool { - return l.Line != 0 -} - -func (l *Location) String() string { - return fmt.Sprintf("%v:%v", l.Line, l.Column) -} - -func locationBefore(a Location, b Location) bool { - if a.Line != b.Line { - return a.Line < b.Line - } - return a.Column < b.Column -} - -////////////////////////////////////////////////////////////////////////////// -// LocationRange - -// LocationRange represents a range of a source file. -type LocationRange struct { - FileName string - Begin Location - End Location // TODO(sbarzowski) inclusive? exclusive? a gap? - file *Source -} - -// LocationRangeBetween returns a LocationRange containing both a and b. -func LocationRangeBetween(a, b *LocationRange) LocationRange { - if a.file != b.file { - panic("Cannot create a LocationRange between different files") - } - return MakeLocationRange(a.FileName, a.file, a.Begin, b.End) -} - -// IsSet returns if this LocationRange has been set. -func (lr *LocationRange) IsSet() bool { - return lr.Begin.IsSet() -} - -func (lr *LocationRange) String() string { - if !lr.IsSet() { - return lr.FileName - } - - var filePrefix string - if len(lr.FileName) > 0 { - filePrefix = lr.FileName + ":" - } - if lr.Begin.Line == lr.End.Line { - if lr.Begin.Column == lr.End.Column { - return fmt.Sprintf("%s%v", filePrefix, lr.Begin.String()) - } - return fmt.Sprintf("%s%v-%v", filePrefix, lr.Begin.String(), lr.End.Column) - } - - return fmt.Sprintf("%s(%v)-(%v)", filePrefix, lr.Begin.String(), lr.End.String()) -} - -// WithCode returns true iff the LocationRange is linked to code. -// TODO: This is identical to lr.IsSet(). Is it required at all? -func (lr *LocationRange) WithCode() bool { - return lr.Begin.Line != 0 -} - -// MakeLocationRangeMessage creates a pseudo-LocationRange with a message but no -// location information. This is useful for special locations, e.g. -// manifestation entry point. -func MakeLocationRangeMessage(msg string) LocationRange { - return LocationRange{FileName: msg} -} - -// MakeLocationRange creates a LocationRange. -func MakeLocationRange(fn string, fc *Source, begin Location, end Location) LocationRange { - return LocationRange{FileName: fn, file: fc, Begin: begin, End: end} -} - -// SourceProvider represents a source provider. -// TODO: Need an explanation of why this exists. -type SourceProvider struct { -} - -// GetSnippet returns a code snippet corresponding to loc. -func (sp *SourceProvider) GetSnippet(loc LocationRange) string { - var result bytes.Buffer - if loc.Begin.Line == 0 { - return "" - } - for i := loc.Begin.Line; i <= loc.End.Line; i++ { - inLineRange := trimToLine(loc, i) - for j := inLineRange.Begin.Column; j < inLineRange.End.Column; j++ { - result.WriteByte(loc.file.lines[i-1][j-1]) - } - if i != loc.End.Line { - result.WriteByte('\n') - } - } - return result.String() -} - -// BuildSource transforms a source file string into a Source struct. -// TODO: This seems like a job for strings.Split() with a final \n touch-up. -func BuildSource(s string) *Source { - var result []string - var lineBuf bytes.Buffer - for _, runeValue := range s { - lineBuf.WriteRune(runeValue) - if runeValue == '\n' { - result = append(result, lineBuf.String()) - lineBuf.Reset() - } - } - rest := lineBuf.String() - // Stuff after last end-of-line (EOF or some more code) - result = append(result, rest+"\n") - return &Source{result} -} - -func trimToLine(loc LocationRange, line int) LocationRange { - if loc.Begin.Line > line { - panic("invalid") - } - if loc.Begin.Line != line { - loc.Begin.Column = 1 - } - loc.Begin.Line = line - if loc.End.Line < line { - panic("invalid") - } - if loc.End.Line != line { - loc.End.Column = len(loc.file.lines[line-1]) - } - loc.End.Line = line - return loc -} - -// LineBeginning returns the part of a line directly before LocationRange -// for example: -// local x = foo() -// ^^^^^ <- LocationRange loc -// then -// local x = foo() -// ^^^^^^^^^^ <- lineBeginning(loc) -func LineBeginning(loc *LocationRange) LocationRange { - return LocationRange{ - Begin: Location{Line: loc.Begin.Line, Column: 1}, - End: loc.Begin, - FileName: loc.FileName, - file: loc.file, - } -} - -// LineEnding returns the part of a line directly after LocationRange -// for example: -// local x = foo() + test -// ^^^^^ <- LocationRange loc -// then -// local x = foo() + test -// ^^^^^^^ <- lineEnding(loc) -func LineEnding(loc *LocationRange) LocationRange { - return LocationRange{ - Begin: loc.End, - End: Location{Line: loc.End.Line, Column: len(loc.file.lines[loc.End.Line-1])}, - FileName: loc.FileName, - file: loc.file, - } -} diff --git a/vendor/github.com/google/go-jsonnet/ast/stdast.go b/vendor/github.com/google/go-jsonnet/ast/stdast.go deleted file mode 100644 index 8ad08e0..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/stdast.go +++ /dev/null @@ -1,191223 +0,0 @@ -/////////////////////////////////////////////////////////// -// This file was auto-generated by cmd/dumpstdlibast.go. // -// https://github.com/google/go-jsonnet#generated-stdlib // -// // -// --------------- DO NOT EDIT BY HAND! --------------- // -/////////////////////////////////////////////////////////// - -package ast - -var p3Var = "$" -var p3 = &p3Var -var p9Var = "object " -var p9 = &p9Var -var p11Var = "object " -var p11 = &p11Var -var p35Var = "object " -var p35 = &p35Var -var p39Var = "object " -var p39 = &p39Var -var p42Var = "object " -var p42 = &p42Var -var p45Var = "object " -var p45 = &p45Var -var p48Var = "object " -var p48 = &p48Var -var p51Var = "object " -var p51 = &p51Var -var p54Var = "object " -var p54 = &p54Var -var p57Var = "object " -var p57 = &p57Var -var p62Var = "thunk from >" -var p62 = &p62Var -var p64Var = "thunk from >" -var p64 = &p64Var -var p68Var = "object " -var p68 = &p68Var -var p80Var = "function " -var p80 = &p80Var -var p89Var = "thunk from >" -var p89 = &p89Var -var p96Var = "object " -var p96 = &p96Var -var p98Var = "object " -var p98 = &p98Var -var p122Var = "object " -var p122 = &p122Var -var p126Var = "object " -var p126 = &p126Var -var p129Var = "object " -var p129 = &p129Var -var p132Var = "object " -var p132 = &p132Var -var p135Var = "object " -var p135 = &p135Var -var p138Var = "object " -var p138 = &p138Var -var p141Var = "object " -var p141 = &p141Var -var p144Var = "object " -var p144 = &p144Var -var p149Var = "thunk from >" -var p149 = &p149Var -var p151Var = "thunk from >" -var p151 = &p151Var -var p165Var = "function " -var p165 = &p165Var -var p174Var = "thunk from >" -var p174 = &p174Var -var p181Var = "object " -var p181 = &p181Var -var p183Var = "object " -var p183 = &p183Var -var p207Var = "object " -var p207 = &p207Var -var p211Var = "object " -var p211 = &p211Var -var p214Var = "object " -var p214 = &p214Var -var p217Var = "object " -var p217 = &p217Var -var p220Var = "object " -var p220 = &p220Var -var p223Var = "object " -var p223 = &p223Var -var p226Var = "object " -var p226 = &p226Var -var p229Var = "object " -var p229 = &p229Var -var p234Var = "thunk from >" -var p234 = &p234Var -var p236Var = "thunk from >" -var p236 = &p236Var -var p250Var = "function " -var p250 = &p250Var -var p259Var = "thunk from >" -var p259 = &p259Var -var p266Var = "object " -var p266 = &p266Var -var p268Var = "object " -var p268 = &p268Var -var p292Var = "object " -var p292 = &p292Var -var p296Var = "object " -var p296 = &p296Var -var p299Var = "object " -var p299 = &p299Var -var p302Var = "object " -var p302 = &p302Var -var p305Var = "object " -var p305 = &p305Var -var p308Var = "object " -var p308 = &p308Var -var p311Var = "object " -var p311 = &p311Var -var p314Var = "object " -var p314 = &p314Var -var p319Var = "thunk from >" -var p319 = &p319Var -var p321Var = "thunk from >" -var p321 = &p321Var -var p335Var = "function " -var p335 = &p335Var -var p344Var = "thunk from >" -var p344 = &p344Var -var p351Var = "object " -var p351 = &p351Var -var p353Var = "object " -var p353 = &p353Var -var p377Var = "object " -var p377 = &p377Var -var p381Var = "object " -var p381 = &p381Var -var p384Var = "object " -var p384 = &p384Var -var p387Var = "object " -var p387 = &p387Var -var p390Var = "object " -var p390 = &p390Var -var p393Var = "object " -var p393 = &p393Var -var p396Var = "object " -var p396 = &p396Var -var p399Var = "object " -var p399 = &p399Var -var p404Var = "thunk from >" -var p404 = &p404Var -var p406Var = "thunk from >" -var p406 = &p406Var -var p420Var = "function " -var p420 = &p420Var -var p429Var = "thunk from >" -var p429 = &p429Var -var p436Var = "object " -var p436 = &p436Var -var p438Var = "object " -var p438 = &p438Var -var p462Var = "object " -var p462 = &p462Var -var p466Var = "object " -var p466 = &p466Var -var p469Var = "object " -var p469 = &p469Var -var p472Var = "object " -var p472 = &p472Var -var p475Var = "object " -var p475 = &p475Var -var p478Var = "object " -var p478 = &p478Var -var p481Var = "object " -var p481 = &p481Var -var p484Var = "object " -var p484 = &p484Var -var p489Var = "thunk from >" -var p489 = &p489Var -var p491Var = "thunk from >" -var p491 = &p491Var -var p505Var = "function " -var p505 = &p505Var -var p514Var = "thunk from >" -var p514 = &p514Var -var p521Var = "object " -var p521 = &p521Var -var p523Var = "object " -var p523 = &p523Var -var p547Var = "object " -var p547 = &p547Var -var p551Var = "object " -var p551 = &p551Var -var p554Var = "object " -var p554 = &p554Var -var p557Var = "object " -var p557 = &p557Var -var p560Var = "object " -var p560 = &p560Var -var p563Var = "object " -var p563 = &p563Var -var p566Var = "object " -var p566 = &p566Var -var p569Var = "object " -var p569 = &p569Var -var p574Var = "thunk from >" -var p574 = &p574Var -var p576Var = "thunk from >" -var p576 = &p576Var -var p582Var = "function " -var p582 = &p582Var -var p601Var = "thunk from >" -var p601 = &p601Var -var p615Var = "object " -var p615 = &p615Var -var p617Var = "object " -var p617 = &p617Var -var p641Var = "object " -var p641 = &p641Var -var p645Var = "object " -var p645 = &p645Var -var p648Var = "object " -var p648 = &p648Var -var p651Var = "object " -var p651 = &p651Var -var p654Var = "object " -var p654 = &p654Var -var p657Var = "object " -var p657 = &p657Var -var p660Var = "object " -var p660 = &p660Var -var p663Var = "object " -var p663 = &p663Var -var p668Var = "thunk from >" -var p668 = &p668Var -var p670Var = "thunk from >" -var p670 = &p670Var -var p676Var = "function " -var p676 = &p676Var -var p697Var = "thunk from >" -var p697 = &p697Var -var p714Var = "thunk from >" -var p714 = &p714Var -var p737Var = "thunk from >" -var p737 = &p737Var -var p754Var = "thunk from >" -var p754 = &p754Var -var p777Var = "thunk from >" -var p777 = &p777Var -var p794Var = "thunk from >" -var p794 = &p794Var -var p819Var = "thunk from >" -var p819 = &p819Var -var p829Var = "thunk from >>" -var p829 = &p829Var -var p835Var = "function " -var p835 = &p835Var -var p849Var = "object " -var p849 = &p849Var -var p851Var = "object " -var p851 = &p851Var -var p875Var = "object " -var p875 = &p875Var -var p879Var = "object " -var p879 = &p879Var -var p882Var = "object " -var p882 = &p882Var -var p885Var = "object " -var p885 = &p885Var -var p888Var = "object " -var p888 = &p888Var -var p891Var = "object " -var p891 = &p891Var -var p894Var = "object " -var p894 = &p894Var -var p897Var = "object " -var p897 = &p897Var -var p902Var = "thunk from >" -var p902 = &p902Var -var p904Var = "thunk from >" -var p904 = &p904Var -var p910Var = "function " -var p910 = &p910Var -var p923Var = "thunk from >" -var p923 = &p923Var -var p934Var = "thunk from >" -var p934 = &p934Var -var p954Var = "thunk from >" -var p954 = &p954Var -var p966Var = "thunk from >>" -var p966 = &p966Var -var p974Var = "object " -var p974 = &p974Var -var p976Var = "object " -var p976 = &p976Var -var p1000Var = "object " -var p1000 = &p1000Var -var p1004Var = "object " -var p1004 = &p1004Var -var p1007Var = "object " -var p1007 = &p1007Var -var p1010Var = "object " -var p1010 = &p1010Var -var p1013Var = "object " -var p1013 = &p1013Var -var p1016Var = "object " -var p1016 = &p1016Var -var p1019Var = "object " -var p1019 = &p1019Var -var p1022Var = "object " -var p1022 = &p1022Var -var p1027Var = "thunk from >" -var p1027 = &p1027Var -var p1029Var = "thunk from >" -var p1029 = &p1029Var -var p1035Var = "function " -var p1035 = &p1035Var -var p1048Var = "thunk from >" -var p1048 = &p1048Var -var p1059Var = "thunk from >" -var p1059 = &p1059Var -var p1079Var = "thunk from >" -var p1079 = &p1079Var -var p1092Var = "thunk from >>" -var p1092 = &p1092Var -var p1103Var = "thunk from >>" -var p1103 = &p1103Var -var p1114Var = "thunk from >>" -var p1114 = &p1114Var -var p1122Var = "object " -var p1122 = &p1122Var -var p1124Var = "object " -var p1124 = &p1124Var -var p1148Var = "object " -var p1148 = &p1148Var -var p1152Var = "object " -var p1152 = &p1152Var -var p1155Var = "object " -var p1155 = &p1155Var -var p1158Var = "object " -var p1158 = &p1158Var -var p1161Var = "object " -var p1161 = &p1161Var -var p1164Var = "object " -var p1164 = &p1164Var -var p1167Var = "object " -var p1167 = &p1167Var -var p1170Var = "object " -var p1170 = &p1170Var -var p1175Var = "thunk from >" -var p1175 = &p1175Var -var p1177Var = "thunk from >" -var p1177 = &p1177Var -var p1183Var = "function " -var p1183 = &p1183Var -var p1192Var = "thunk from >" -var p1192 = &p1192Var -var p1201Var = "thunk from >>" -var p1201 = &p1201Var -var p1207Var = "function " -var p1207 = &p1207Var -var p1217Var = "object " -var p1217 = &p1217Var -var p1219Var = "object " -var p1219 = &p1219Var -var p1243Var = "object " -var p1243 = &p1243Var -var p1247Var = "object " -var p1247 = &p1247Var -var p1250Var = "object " -var p1250 = &p1250Var -var p1253Var = "object " -var p1253 = &p1253Var -var p1256Var = "object " -var p1256 = &p1256Var -var p1259Var = "object " -var p1259 = &p1259Var -var p1262Var = "object " -var p1262 = &p1262Var -var p1265Var = "object " -var p1265 = &p1265Var -var p1270Var = "thunk from >" -var p1270 = &p1270Var -var p1272Var = "thunk from >" -var p1272 = &p1272Var -var p1278Var = "function " -var p1278 = &p1278Var -var p1282Var = "thunk from >" -var p1282 = &p1282Var -var p1285Var = "function " -var p1285 = &p1285Var -var p1314Var = "thunk from >" -var p1314 = &p1314Var -var p1332Var = "thunk from >" -var p1332 = &p1332Var -var p1343Var = "thunk from >>" -var p1343 = &p1343Var -var p1354Var = "thunk from >>" -var p1354 = &p1354Var -var p1356Var = "function " -var p1356 = &p1356Var -var p1365Var = "thunk from >" -var p1365 = &p1365Var -var p1394Var = "thunk from >" -var p1394 = &p1394Var -var p1410Var = "thunk from >>" -var p1410 = &p1410Var -var p1425Var = "thunk from >" -var p1425 = &p1425Var -var p1433Var = "thunk from >>" -var p1433 = &p1433Var -var p1440Var = "object " -var p1440 = &p1440Var -var p1442Var = "object " -var p1442 = &p1442Var -var p1466Var = "object " -var p1466 = &p1466Var -var p1470Var = "object " -var p1470 = &p1470Var -var p1473Var = "object " -var p1473 = &p1473Var -var p1476Var = "object " -var p1476 = &p1476Var -var p1479Var = "object " -var p1479 = &p1479Var -var p1482Var = "object " -var p1482 = &p1482Var -var p1485Var = "object " -var p1485 = &p1485Var -var p1488Var = "object " -var p1488 = &p1488Var -var p1493Var = "thunk from >" -var p1493 = &p1493Var -var p1495Var = "thunk from >" -var p1495 = &p1495Var -var p1501Var = "function " -var p1501 = &p1501Var -var p1522Var = "thunk from >" -var p1522 = &p1522Var -var p1539Var = "thunk from >" -var p1539 = &p1539Var -var p1562Var = "thunk from >" -var p1562 = &p1562Var -var p1579Var = "thunk from >" -var p1579 = &p1579Var -var p1602Var = "thunk from >" -var p1602 = &p1602Var -var p1619Var = "thunk from >" -var p1619 = &p1619Var -var p1630Var = "thunk from >" -var p1630 = &p1630Var -var p1640Var = "object " -var p1640 = &p1640Var -var p1642Var = "object " -var p1642 = &p1642Var -var p1666Var = "object " -var p1666 = &p1666Var -var p1670Var = "object " -var p1670 = &p1670Var -var p1673Var = "object " -var p1673 = &p1673Var -var p1676Var = "object " -var p1676 = &p1676Var -var p1679Var = "object " -var p1679 = &p1679Var -var p1682Var = "object " -var p1682 = &p1682Var -var p1685Var = "object " -var p1685 = &p1685Var -var p1688Var = "object " -var p1688 = &p1688Var -var p1693Var = "thunk from >" -var p1693 = &p1693Var -var p1695Var = "thunk from >" -var p1695 = &p1695Var -var p1701Var = "function " -var p1701 = &p1701Var -var p1722Var = "thunk from >" -var p1722 = &p1722Var -var p1739Var = "thunk from >" -var p1739 = &p1739Var -var p1762Var = "thunk from >" -var p1762 = &p1762Var -var p1779Var = "thunk from >" -var p1779 = &p1779Var -var p1802Var = "thunk from >" -var p1802 = &p1802Var -var p1819Var = "thunk from >" -var p1819 = &p1819Var -var p1842Var = "thunk from >" -var p1842 = &p1842Var -var p1859Var = "thunk from >" -var p1859 = &p1859Var -var p1865Var = "thunk from >" -var p1865 = &p1865Var -var p1869Var = "function " -var p1869 = &p1869Var -var p1873Var = "thunk from >" -var p1873 = &p1873Var -var p1883Var = "thunk from >" -var p1883 = &p1883Var -var p1903Var = "thunk from >" -var p1903 = &p1903Var -var p1913Var = "thunk from >" -var p1913 = &p1913Var -var p1956Var = "thunk from >" -var p1956 = &p1956Var -var p1966Var = "thunk from >" -var p1966 = &p1966Var -var p1980Var = "thunk from >>" -var p1980 = &p1980Var -var p1989Var = "thunk from >" -var p1989 = &p1989Var -var p2009Var = "thunk from >" -var p2009 = &p2009Var -var p2020Var = "object " -var p2020 = &p2020Var -var p2022Var = "object " -var p2022 = &p2022Var -var p2046Var = "object " -var p2046 = &p2046Var -var p2050Var = "object " -var p2050 = &p2050Var -var p2053Var = "object " -var p2053 = &p2053Var -var p2056Var = "object " -var p2056 = &p2056Var -var p2059Var = "object " -var p2059 = &p2059Var -var p2062Var = "object " -var p2062 = &p2062Var -var p2065Var = "object " -var p2065 = &p2065Var -var p2068Var = "object " -var p2068 = &p2068Var -var p2073Var = "thunk from >" -var p2073 = &p2073Var -var p2075Var = "thunk from >" -var p2075 = &p2075Var -var p2091Var = "function " -var p2091 = &p2091Var -var p2100Var = "thunk from >" -var p2100 = &p2100Var -var p2122Var = "thunk from >" -var p2122 = &p2122Var -var p2144Var = "thunk from >" -var p2144 = &p2144Var -var p2166Var = "thunk from >" -var p2166 = &p2166Var -var p2175Var = "thunk from from >>" -var p2175 = &p2175Var -var p2181Var = "thunk from >" -var p2181 = &p2181Var -var p2190Var = "thunk from from >>" -var p2190 = &p2190Var -var p2196Var = "thunk from >" -var p2196 = &p2196Var -var p2216Var = "function " -var p2216 = &p2216Var -var p2233Var = "thunk from >" -var p2233 = &p2233Var -var p2237Var = "function " -var p2237 = &p2237Var -var p2272Var = "thunk from >" -var p2272 = &p2272Var -var p2278Var = "thunk from >" -var p2278 = &p2278Var -var p2291Var = "thunk from from >>" -var p2291 = &p2291Var -var p2299Var = "thunk from >" -var p2299 = &p2299Var -var p2332Var = "thunk from >" -var p2332 = &p2332Var -var p2363Var = "thunk from >" -var p2363 = &p2363Var -var p2374Var = "thunk from >>" -var p2374 = &p2374Var -var p2384Var = "thunk from >" -var p2384 = &p2384Var -var p2399Var = "object " -var p2399 = &p2399Var -var p2401Var = "object " -var p2401 = &p2401Var -var p2425Var = "object " -var p2425 = &p2425Var -var p2429Var = "object " -var p2429 = &p2429Var -var p2432Var = "object " -var p2432 = &p2432Var -var p2435Var = "object " -var p2435 = &p2435Var -var p2438Var = "object " -var p2438 = &p2438Var -var p2441Var = "object " -var p2441 = &p2441Var -var p2444Var = "object " -var p2444 = &p2444Var -var p2447Var = "object " -var p2447 = &p2447Var -var p2452Var = "thunk from >" -var p2452 = &p2452Var -var p2454Var = "thunk from >" -var p2454 = &p2454Var -var p2460Var = "function " -var p2460 = &p2460Var -var p2464Var = "thunk from >" -var p2464 = &p2464Var -var p2473Var = "thunk from >" -var p2473 = &p2473Var -var p2477Var = "function " -var p2477 = &p2477Var -var p2489Var = "thunk from >" -var p2489 = &p2489Var -var p2500Var = "thunk from >" -var p2500 = &p2500Var -var p2512Var = "thunk from >" -var p2512 = &p2512Var -var p2520Var = "thunk from >>" -var p2520 = &p2520Var -var p2534Var = "thunk from >" -var p2534 = &p2534Var -var p2544Var = "thunk from >>" -var p2544 = &p2544Var -var p2555Var = "thunk from >>>" -var p2555 = &p2555Var -var p2561Var = "object " -var p2561 = &p2561Var -var p2563Var = "object " -var p2563 = &p2563Var -var p2587Var = "object " -var p2587 = &p2587Var -var p2591Var = "object " -var p2591 = &p2591Var -var p2594Var = "object " -var p2594 = &p2594Var -var p2597Var = "object " -var p2597 = &p2597Var -var p2600Var = "object " -var p2600 = &p2600Var -var p2603Var = "object " -var p2603 = &p2603Var -var p2606Var = "object " -var p2606 = &p2606Var -var p2609Var = "object " -var p2609 = &p2609Var -var p2614Var = "thunk from >" -var p2614 = &p2614Var -var p2616Var = "thunk from >" -var p2616 = &p2616Var -var p2622Var = "function " -var p2622 = &p2622Var -var p2626Var = "thunk from >" -var p2626 = &p2626Var -var p2635Var = "thunk from >" -var p2635 = &p2635Var -var p2639Var = "function " -var p2639 = &p2639Var -var p2651Var = "thunk from >" -var p2651 = &p2651Var -var p2662Var = "thunk from >" -var p2662 = &p2662Var -var p2674Var = "thunk from >" -var p2674 = &p2674Var -var p2682Var = "thunk from >>" -var p2682 = &p2682Var -var p2696Var = "thunk from >" -var p2696 = &p2696Var -var p2706Var = "thunk from >>" -var p2706 = &p2706Var -var p2717Var = "thunk from >>>" -var p2717 = &p2717Var -var p2723Var = "object " -var p2723 = &p2723Var -var p2725Var = "object " -var p2725 = &p2725Var -var p2749Var = "object " -var p2749 = &p2749Var -var p2753Var = "object " -var p2753 = &p2753Var -var p2756Var = "object " -var p2756 = &p2756Var -var p2759Var = "object " -var p2759 = &p2759Var -var p2762Var = "object " -var p2762 = &p2762Var -var p2765Var = "object " -var p2765 = &p2765Var -var p2768Var = "object " -var p2768 = &p2768Var -var p2771Var = "object " -var p2771 = &p2771Var -var p2776Var = "thunk from >" -var p2776 = &p2776Var -var p2778Var = "thunk from >" -var p2778 = &p2778Var -var p2784Var = "function " -var p2784 = &p2784Var -var p2793Var = "thunk from >" -var p2793 = &p2793Var -var p2806Var = "function " -var p2806 = &p2806Var -var p2816Var = "object " -var p2816 = &p2816Var -var p2818Var = "object " -var p2818 = &p2818Var -var p2842Var = "object " -var p2842 = &p2842Var -var p2846Var = "object " -var p2846 = &p2846Var -var p2849Var = "object " -var p2849 = &p2849Var -var p2852Var = "object " -var p2852 = &p2852Var -var p2855Var = "object " -var p2855 = &p2855Var -var p2858Var = "object " -var p2858 = &p2858Var -var p2861Var = "object " -var p2861 = &p2861Var -var p2864Var = "object " -var p2864 = &p2864Var -var p2869Var = "thunk from >" -var p2869 = &p2869Var -var p2871Var = "thunk from >" -var p2871 = &p2871Var -var p2877Var = "function " -var p2877 = &p2877Var -var p2881Var = "thunk from >" -var p2881 = &p2881Var -var p2886Var = "object " -var p2886 = &p2886Var -var p2928Var = "thunk from >" -var p2928 = &p2928Var -var p2959Var = "thunk from >" -var p2959 = &p2959Var -var p2971Var = "thunk from >" -var p2971 = &p2971Var -var p3018Var = "thunk from >" -var p3018 = &p3018Var -var p3082Var = "thunk from >" -var p3082 = &p3082Var -var p3104Var = "thunk from >" -var p3104 = &p3104Var -var p3127Var = "thunk from >" -var p3127 = &p3127Var -var p3133Var = "thunk from >" -var p3133 = &p3133Var -var p3137Var = "function " -var p3137 = &p3137Var -var p3167Var = "thunk from >" -var p3167 = &p3167Var -var p3204Var = "thunk from >>" -var p3204 = &p3204Var -var p3228Var = "thunk from >" -var p3228 = &p3228Var -var p3255Var = "object " -var p3255 = &p3255Var -var p3257Var = "object " -var p3257 = &p3257Var -var p3281Var = "object " -var p3281 = &p3281Var -var p3285Var = "object " -var p3285 = &p3285Var -var p3288Var = "object " -var p3288 = &p3288Var -var p3291Var = "object " -var p3291 = &p3291Var -var p3294Var = "object " -var p3294 = &p3294Var -var p3297Var = "object " -var p3297 = &p3297Var -var p3300Var = "object " -var p3300 = &p3300Var -var p3303Var = "object " -var p3303 = &p3303Var -var p3308Var = "thunk from >" -var p3308 = &p3308Var -var p3310Var = "thunk from >" -var p3310 = &p3310Var -var p3316Var = "function " -var p3316 = &p3316Var -var p3325Var = "thunk from >" -var p3325 = &p3325Var -var p3334Var = "thunk from >>" -var p3334 = &p3334Var -var p3346Var = "function " -var p3346 = &p3346Var -var p3356Var = "object " -var p3356 = &p3356Var -var p3358Var = "object " -var p3358 = &p3358Var -var p3382Var = "object " -var p3382 = &p3382Var -var p3386Var = "object " -var p3386 = &p3386Var -var p3389Var = "object " -var p3389 = &p3389Var -var p3392Var = "object " -var p3392 = &p3392Var -var p3395Var = "object " -var p3395 = &p3395Var -var p3398Var = "object " -var p3398 = &p3398Var -var p3401Var = "object " -var p3401 = &p3401Var -var p3404Var = "object " -var p3404 = &p3404Var -var p3409Var = "thunk from >" -var p3409 = &p3409Var -var p3411Var = "thunk from >" -var p3411 = &p3411Var -var p3417Var = "function " -var p3417 = &p3417Var -var p3438Var = "thunk from >" -var p3438 = &p3438Var -var p3458Var = "thunk from >" -var p3458 = &p3458Var -var p3470Var = "thunk from >" -var p3470 = &p3470Var -var p3493Var = "thunk from >" -var p3493 = &p3493Var -var p3505Var = "thunk from >" -var p3505 = &p3505Var -var p3529Var = "thunk from >" -var p3529 = &p3529Var -var p3541Var = "thunk from >" -var p3541 = &p3541Var -var p3548Var = "object " -var p3548 = &p3548Var -var p3550Var = "object " -var p3550 = &p3550Var -var p3574Var = "object " -var p3574 = &p3574Var -var p3578Var = "object " -var p3578 = &p3578Var -var p3581Var = "object " -var p3581 = &p3581Var -var p3584Var = "object " -var p3584 = &p3584Var -var p3587Var = "object " -var p3587 = &p3587Var -var p3590Var = "object " -var p3590 = &p3590Var -var p3593Var = "object " -var p3593 = &p3593Var -var p3596Var = "object " -var p3596 = &p3596Var -var p3601Var = "thunk from >" -var p3601 = &p3601Var -var p3603Var = "thunk from >" -var p3603 = &p3603Var -var p3609Var = "function " -var p3609 = &p3609Var -var p3630Var = "thunk from >" -var p3630 = &p3630Var -var p3647Var = "thunk from >" -var p3647 = &p3647Var -var p3672Var = "thunk from >" -var p3672 = &p3672Var -var p3694Var = "thunk from >" -var p3694 = &p3694Var -var p3711Var = "thunk from >" -var p3711 = &p3711Var -var p3722Var = "thunk from >" -var p3722 = &p3722Var -var p3731Var = "thunk from >>" -var p3731 = &p3731Var -var p3737Var = "function " -var p3737 = &p3737Var -var p3743Var = "thunk from >" -var p3743 = &p3743Var -var p3753Var = "object " -var p3753 = &p3753Var -var p3755Var = "object " -var p3755 = &p3755Var -var p3779Var = "object " -var p3779 = &p3779Var -var p3783Var = "object " -var p3783 = &p3783Var -var p3786Var = "object " -var p3786 = &p3786Var -var p3789Var = "object " -var p3789 = &p3789Var -var p3792Var = "object " -var p3792 = &p3792Var -var p3795Var = "object " -var p3795 = &p3795Var -var p3798Var = "object " -var p3798 = &p3798Var -var p3801Var = "object " -var p3801 = &p3801Var -var p3806Var = "thunk from >" -var p3806 = &p3806Var -var p3808Var = "thunk from >" -var p3808 = &p3808Var -var p3814Var = "function " -var p3814 = &p3814Var -var p3835Var = "thunk from >" -var p3835 = &p3835Var -var p3852Var = "thunk from >" -var p3852 = &p3852Var -var p3877Var = "thunk from >" -var p3877 = &p3877Var -var p3899Var = "thunk from >" -var p3899 = &p3899Var -var p3916Var = "thunk from >" -var p3916 = &p3916Var -var p3927Var = "thunk from >" -var p3927 = &p3927Var -var p3936Var = "thunk from >>" -var p3936 = &p3936Var -var p3942Var = "function " -var p3942 = &p3942Var -var p3948Var = "thunk from >" -var p3948 = &p3948Var -var p3960Var = "object " -var p3960 = &p3960Var -var p3962Var = "object " -var p3962 = &p3962Var -var p3986Var = "object " -var p3986 = &p3986Var -var p3990Var = "object " -var p3990 = &p3990Var -var p3993Var = "object " -var p3993 = &p3993Var -var p3996Var = "object " -var p3996 = &p3996Var -var p3999Var = "object " -var p3999 = &p3999Var -var p4002Var = "object " -var p4002 = &p4002Var -var p4005Var = "object " -var p4005 = &p4005Var -var p4008Var = "object " -var p4008 = &p4008Var -var p4013Var = "thunk from >" -var p4013 = &p4013Var -var p4015Var = "thunk from >" -var p4015 = &p4015Var -var p4021Var = "function " -var p4021 = &p4021Var -var p4042Var = "thunk from >" -var p4042 = &p4042Var -var p4059Var = "thunk from >" -var p4059 = &p4059Var -var p4082Var = "thunk from >" -var p4082 = &p4082Var -var p4099Var = "thunk from >" -var p4099 = &p4099Var -var p4129Var = "object " -var p4129 = &p4129Var -var p4135Var = "thunk from >" -var p4135 = &p4135Var -var p4152Var = "thunk from >" -var p4152 = &p4152Var -var p4158Var = "object " -var p4158 = &p4158Var -var p4160Var = "object " -var p4160 = &p4160Var -var p4184Var = "object " -var p4184 = &p4184Var -var p4188Var = "object " -var p4188 = &p4188Var -var p4191Var = "object " -var p4191 = &p4191Var -var p4194Var = "object " -var p4194 = &p4194Var -var p4197Var = "object " -var p4197 = &p4197Var -var p4200Var = "object " -var p4200 = &p4200Var -var p4203Var = "object " -var p4203 = &p4203Var -var p4206Var = "object " -var p4206 = &p4206Var -var p4211Var = "thunk from >" -var p4211 = &p4211Var -var p4213Var = "thunk from >" -var p4213 = &p4213Var -var p4219Var = "function " -var p4219 = &p4219Var -var p4223Var = "thunk from >" -var p4223 = &p4223Var -var p4227Var = "function " -var p4227 = &p4227Var -var p4242Var = "thunk from >" -var p4242 = &p4242Var -var p4269Var = "thunk from >" -var p4269 = &p4269Var -var p4301Var = "thunk from >" -var p4301 = &p4301Var -var p4316Var = "thunk from >" -var p4316 = &p4316Var -var p4333Var = "thunk from >" -var p4333 = &p4333Var -var p4342Var = "thunk from >>" -var p4342 = &p4342Var -var p4355Var = "thunk from >>" -var p4355 = &p4355Var -var p4371Var = "thunk from >" -var p4371 = &p4371Var -var p4395Var = "thunk from >" -var p4395 = &p4395Var -var p4438Var = "thunk from >" -var p4438 = &p4438Var -var p4455Var = "thunk from >" -var p4455 = &p4455Var -var p4476Var = "thunk from >" -var p4476 = &p4476Var -var p4485Var = "thunk from >" -var p4485 = &p4485Var -var p4509Var = "thunk from >" -var p4509 = &p4509Var -var p4518Var = "thunk from >" -var p4518 = &p4518Var -var p4537Var = "thunk from >" -var p4537 = &p4537Var -var p4543Var = "object " -var p4543 = &p4543Var -var p4545Var = "object " -var p4545 = &p4545Var -var p4569Var = "object " -var p4569 = &p4569Var -var p4573Var = "object " -var p4573 = &p4573Var -var p4576Var = "object " -var p4576 = &p4576Var -var p4579Var = "object " -var p4579 = &p4579Var -var p4582Var = "object " -var p4582 = &p4582Var -var p4585Var = "object " -var p4585 = &p4585Var -var p4588Var = "object " -var p4588 = &p4588Var -var p4591Var = "object " -var p4591 = &p4591Var -var p4596Var = "thunk from >" -var p4596 = &p4596Var -var p4598Var = "thunk from >" -var p4598 = &p4598Var -var p4604Var = "function " -var p4604 = &p4604Var -var p4613Var = "thunk from >" -var p4613 = &p4613Var -var p4621Var = "thunk from >>" -var p4621 = &p4621Var -var p4626Var = "object " -var p4626 = &p4626Var -var p4628Var = "object " -var p4628 = &p4628Var -var p4652Var = "object " -var p4652 = &p4652Var -var p4656Var = "object " -var p4656 = &p4656Var -var p4659Var = "object " -var p4659 = &p4659Var -var p4662Var = "object " -var p4662 = &p4662Var -var p4665Var = "object " -var p4665 = &p4665Var -var p4668Var = "object " -var p4668 = &p4668Var -var p4671Var = "object " -var p4671 = &p4671Var -var p4674Var = "object " -var p4674 = &p4674Var -var p4679Var = "thunk from >" -var p4679 = &p4679Var -var p4681Var = "thunk from >" -var p4681 = &p4681Var -var p4687Var = "function " -var p4687 = &p4687Var -var p4698Var = "thunk from >" -var p4698 = &p4698Var -var p4713Var = "thunk from >" -var p4713 = &p4713Var -var p4724Var = "thunk from >" -var p4724 = &p4724Var -var p4740Var = "thunk from >>" -var p4740 = &p4740Var -var p4749Var = "thunk from >>>" -var p4749 = &p4749Var -var p4773Var = "thunk from >" -var p4773 = &p4773Var -var p4779Var = "object " -var p4779 = &p4779Var -var p4781Var = "object " -var p4781 = &p4781Var -var p4805Var = "object " -var p4805 = &p4805Var -var p4809Var = "object " -var p4809 = &p4809Var -var p4812Var = "object " -var p4812 = &p4812Var -var p4815Var = "object " -var p4815 = &p4815Var -var p4818Var = "object " -var p4818 = &p4818Var -var p4821Var = "object " -var p4821 = &p4821Var -var p4824Var = "object " -var p4824 = &p4824Var -var p4827Var = "object " -var p4827 = &p4827Var -var p4832Var = "thunk from >" -var p4832 = &p4832Var -var p4834Var = "thunk from >" -var p4834 = &p4834Var -var p4840Var = "function " -var p4840 = &p4840Var -var p4844Var = "thunk from >" -var p4844 = &p4844Var -var p4848Var = "function " -var p4848 = &p4848Var -var p4863Var = "thunk from >" -var p4863 = &p4863Var -var p4871Var = "thunk from >" -var p4871 = &p4871Var -var p4894Var = "thunk from >" -var p4894 = &p4894Var -var p4898Var = "function " -var p4898 = &p4898Var -var p4913Var = "thunk from >" -var p4913 = &p4913Var -var p4921Var = "thunk from >" -var p4921 = &p4921Var -var p4948Var = "thunk from >" -var p4948 = &p4948Var -var p4966Var = "object " -var p4966 = &p4966Var -var p4980Var = "thunk from >" -var p4980 = &p4980Var -var p4993Var = "object " -var p4993 = &p4993Var -var p5001Var = "thunk from >" -var p5001 = &p5001Var -var p5005Var = "function " -var p5005 = &p5005Var -var p5009Var = "thunk from >" -var p5009 = &p5009Var -var p5013Var = "function " -var p5013 = &p5013Var -var p5028Var = "thunk from >" -var p5028 = &p5028Var -var p5036Var = "thunk from >" -var p5036 = &p5036Var -var p5061Var = "thunk from >" -var p5061 = &p5061Var -var p5076Var = "object " -var p5076 = &p5076Var -var p5096Var = "thunk from >" -var p5096 = &p5096Var -var p5111Var = "object " -var p5111 = &p5111Var -var p5131Var = "thunk from >" -var p5131 = &p5131Var -var p5146Var = "object " -var p5146 = &p5146Var -var p5166Var = "thunk from >" -var p5166 = &p5166Var -var p5181Var = "object " -var p5181 = &p5181Var -var p5201Var = "thunk from >" -var p5201 = &p5201Var -var p5216Var = "object " -var p5216 = &p5216Var -var p5222Var = "object " -var p5222 = &p5222Var -var p5233Var = "thunk from >" -var p5233 = &p5233Var -var p5241Var = "object " -var p5241 = &p5241Var -var p5254Var = "thunk from >" -var p5254 = &p5254Var -var p5258Var = "function " -var p5258 = &p5258Var -var p5275Var = "thunk from >" -var p5275 = &p5275Var -var p5297Var = "object " -var p5297 = &p5297Var -var p5308Var = "thunk from >" -var p5308 = &p5308Var -var p5312Var = "function " -var p5312 = &p5312Var -var p5327Var = "thunk from >" -var p5327 = &p5327Var -var p5335Var = "thunk from >" -var p5335 = &p5335Var -var p5360Var = "thunk from >" -var p5360 = &p5360Var -var p5394Var = "thunk from >" -var p5394 = &p5394Var -var p5428Var = "thunk from >" -var p5428 = &p5428Var -var p5462Var = "thunk from >" -var p5462 = &p5462Var -var p5496Var = "thunk from >" -var p5496 = &p5496Var -var p5530Var = "thunk from >" -var p5530 = &p5530Var -var p5564Var = "thunk from >" -var p5564 = &p5564Var -var p5598Var = "thunk from >" -var p5598 = &p5598Var -var p5632Var = "thunk from >" -var p5632 = &p5632Var -var p5666Var = "thunk from >" -var p5666 = &p5666Var -var p5686Var = "object " -var p5686 = &p5686Var -var p5697Var = "thunk from >" -var p5697 = &p5697Var -var p5706Var = "thunk from >" -var p5706 = &p5706Var -var p5710Var = "function " -var p5710 = &p5710Var -var p5725Var = "thunk from >" -var p5725 = &p5725Var -var p5733Var = "thunk from >" -var p5733 = &p5733Var -var p5758Var = "thunk from >" -var p5758 = &p5758Var -var p5770Var = "object " -var p5770 = &p5770Var -var p5778Var = "thunk from >" -var p5778 = &p5778Var -var p5782Var = "function " -var p5782 = &p5782Var -var p5797Var = "thunk from >" -var p5797 = &p5797Var -var p5805Var = "thunk from >" -var p5805 = &p5805Var -var p5861Var = "thunk from >" -var p5861 = &p5861Var -var p5865Var = "function " -var p5865 = &p5865Var -var p5880Var = "thunk from >" -var p5880 = &p5880Var -var p5888Var = "thunk from >" -var p5888 = &p5888Var -var p5938Var = "object " -var p5938 = &p5938Var -var p5965Var = "object " -var p5965 = &p5965Var -var p5992Var = "object " -var p5992 = &p5992Var -var p6019Var = "object " -var p6019 = &p6019Var -var p6046Var = "object " -var p6046 = &p6046Var -var p6073Var = "object " -var p6073 = &p6073Var -var p6100Var = "object " -var p6100 = &p6100Var -var p6127Var = "object " -var p6127 = &p6127Var -var p6154Var = "object " -var p6154 = &p6154Var -var p6181Var = "object " -var p6181 = &p6181Var -var p6208Var = "object " -var p6208 = &p6208Var -var p6235Var = "object " -var p6235 = &p6235Var -var p6262Var = "object " -var p6262 = &p6262Var -var p6282Var = "thunk from >" -var p6282 = &p6282Var -var p6286Var = "function " -var p6286 = &p6286Var -var p6301Var = "thunk from >" -var p6301 = &p6301Var -var p6309Var = "thunk from >" -var p6309 = &p6309Var -var p6315Var = "thunk from from >>" -var p6315 = &p6315Var -var p6323Var = "thunk from >" -var p6323 = &p6323Var -var p6329Var = "thunk from from >>" -var p6329 = &p6329Var -var p6340Var = "thunk from >" -var p6340 = &p6340Var -var p6346Var = "thunk from from >>" -var p6346 = &p6346Var -var p6357Var = "thunk from >" -var p6357 = &p6357Var -var p6363Var = "thunk from from >>" -var p6363 = &p6363Var -var p6374Var = "thunk from >" -var p6374 = &p6374Var -var p6380Var = "thunk from from >>" -var p6380 = &p6380Var -var p6391Var = "thunk from >" -var p6391 = &p6391Var -var p6397Var = "thunk from from >>" -var p6397 = &p6397Var -var p6406Var = "object " -var p6406 = &p6406Var -var p6417Var = "object " -var p6417 = &p6417Var -var p6456Var = "thunk from >" -var p6456 = &p6456Var -var p6460Var = "function " -var p6460 = &p6460Var -var p6475Var = "thunk from >" -var p6475 = &p6475Var -var p6485Var = "thunk from >" -var p6485 = &p6485Var -var p6491Var = "thunk from >" -var p6491 = &p6491Var -var p6514Var = "thunk from >" -var p6514 = &p6514Var -var p6520Var = "thunk from from >>" -var p6520 = &p6520Var -var p6533Var = "thunk from >" -var p6533 = &p6533Var -var p6548Var = "thunk from >>" -var p6548 = &p6548Var -var p6562Var = "thunk from >" -var p6562 = &p6562Var -var p6581Var = "thunk from >" -var p6581 = &p6581Var -var p6587Var = "thunk from from >>" -var p6587 = &p6587Var -var p6596Var = "thunk from >" -var p6596 = &p6596Var -var p6599Var = "function " -var p6599 = &p6599Var -var p6603Var = "thunk from >" -var p6603 = &p6603Var -var p6607Var = "function " -var p6607 = &p6607Var -var p6622Var = "thunk from >" -var p6622 = &p6622Var -var p6639Var = "thunk from >" -var p6639 = &p6639Var -var p6646Var = "thunk from >" -var p6646 = &p6646Var -var p6650Var = "function " -var p6650 = &p6650Var -var p6658Var = "thunk from >" -var p6658 = &p6658Var -var p6671Var = "thunk from >>" -var p6671 = &p6671Var -var p6681Var = "thunk from >" -var p6681 = &p6681Var -var p6685Var = "function " -var p6685 = &p6685Var -var p6695Var = "thunk from >" -var p6695 = &p6695Var -var p6708Var = "thunk from >>" -var p6708 = &p6708Var -var p6716Var = "thunk from >" -var p6716 = &p6716Var -var p6720Var = "function " -var p6720 = &p6720Var -var p6724Var = "thunk from >" -var p6724 = &p6724Var -var p6733Var = "thunk from from >>" -var p6733 = &p6733Var -var p6739Var = "thunk from >" -var p6739 = &p6739Var -var p6743Var = "function " -var p6743 = &p6743Var -var p6766Var = "thunk from >" -var p6766 = &p6766Var -var p6775Var = "thunk from >>" -var p6775 = &p6775Var -var p6797Var = "thunk from >" -var p6797 = &p6797Var -var p6816Var = "thunk from from >>" -var p6816 = &p6816Var -var p6826Var = "thunk from from >>" -var p6826 = &p6826Var -var p6835Var = "thunk from from >>>" -var p6835 = &p6835Var -var p6841Var = "thunk from >" -var p6841 = &p6841Var -var p6850Var = "thunk from >" -var p6850 = &p6850Var -var p6872Var = "thunk from >" -var p6872 = &p6872Var -var p6881Var = "thunk from from >>" -var p6881 = &p6881Var -var p6889Var = "thunk from >" -var p6889 = &p6889Var -var p6895Var = "thunk from from >>" -var p6895 = &p6895Var -var p6924Var = "thunk from >" -var p6924 = &p6924Var -var p6928Var = "function " -var p6928 = &p6928Var -var p6932Var = "thunk from >" -var p6932 = &p6932Var -var p6937Var = "thunk from from >>" -var p6937 = &p6937Var -var p6954Var = "thunk from from >>" -var p6954 = &p6954Var -var p6963Var = "thunk from from >>" -var p6963 = &p6963Var -var p6973Var = "thunk from >" -var p6973 = &p6973Var -var p6982Var = "thunk from from >>" -var p6982 = &p6982Var -var p6988Var = "thunk from >" -var p6988 = &p6988Var -var p6992Var = "function " -var p6992 = &p6992Var -var p7014Var = "thunk from >" -var p7014 = &p7014Var -var p7023Var = "thunk from >>" -var p7023 = &p7023Var -var p7047Var = "thunk from >" -var p7047 = &p7047Var -var p7066Var = "thunk from from >>" -var p7066 = &p7066Var -var p7076Var = "thunk from from >>" -var p7076 = &p7076Var -var p7085Var = "thunk from from >>>" -var p7085 = &p7085Var -var p7091Var = "thunk from >" -var p7091 = &p7091Var -var p7100Var = "thunk from >" -var p7100 = &p7100Var -var p7130Var = "thunk from >" -var p7130 = &p7130Var -var p7139Var = "thunk from from >>" -var p7139 = &p7139Var -var p7147Var = "thunk from >" -var p7147 = &p7147Var -var p7166Var = "thunk from from >>" -var p7166 = &p7166Var -var p7195Var = "thunk from >" -var p7195 = &p7195Var -var p7199Var = "function " -var p7199 = &p7199Var -var p7203Var = "thunk from >" -var p7203 = &p7203Var -var p7207Var = "function " -var p7207 = &p7207Var -var p7238Var = "thunk from >" -var p7238 = &p7238Var -var p7254Var = "thunk from >" -var p7254 = &p7254Var -var p7268Var = "thunk from >" -var p7268 = &p7268Var -var p7281Var = "thunk from >>" -var p7281 = &p7281Var -var p7288Var = "thunk from >" -var p7288 = &p7288Var -var p7292Var = "function " -var p7292 = &p7292Var -var p7296Var = "thunk from >" -var p7296 = &p7296Var -var p7305Var = "thunk from from >>" -var p7305 = &p7305Var -var p7311Var = "thunk from >" -var p7311 = &p7311Var -var p7320Var = "thunk from from >>" -var p7320 = &p7320Var -var p7326Var = "thunk from >" -var p7326 = &p7326Var -var p7351Var = "thunk from >" -var p7351 = &p7351Var -var p7365Var = "thunk from >" -var p7365 = &p7365Var -var p7371Var = "thunk from from >>" -var p7371 = &p7371Var -var p7382Var = "thunk from from >>>" -var p7382 = &p7382Var -var p7422Var = "thunk from >" -var p7422 = &p7422Var -var p7431Var = "thunk from from >>" -var p7431 = &p7431Var -var p7450Var = "thunk from from >>>" -var p7450 = &p7450Var -var p7469Var = "thunk from >" -var p7469 = &p7469Var -var p7475Var = "thunk from from >>" -var p7475 = &p7475Var -var p7503Var = "thunk from >" -var p7503 = &p7503Var -var p7513Var = "thunk from >" -var p7513 = &p7513Var -var p7517Var = "function " -var p7517 = &p7517Var -var p7521Var = "thunk from >" -var p7521 = &p7521Var -var p7530Var = "thunk from from >>" -var p7530 = &p7530Var -var p7541Var = "thunk from from >>>" -var p7541 = &p7541Var -var p7550Var = "thunk from from >>>>" -var p7550 = &p7550Var -var p7561Var = "thunk from from >>>" -var p7561 = &p7561Var -var p7566Var = "thunk from >" -var p7566 = &p7566Var -var p7580Var = "thunk from from >>" -var p7580 = &p7580Var -var p7592Var = "thunk from >" -var p7592 = &p7592Var -var p7605Var = "thunk from from >>" -var p7605 = &p7605Var -var p7612Var = "thunk from >" -var p7612 = &p7612Var -var p7625Var = "thunk from from >>" -var p7625 = &p7625Var -var p7635Var = "thunk from >" -var p7635 = &p7635Var -var p7655Var = "thunk from >" -var p7655 = &p7655Var -var p7659Var = "function " -var p7659 = &p7659Var -var p7663Var = "thunk from >" -var p7663 = &p7663Var -var p7672Var = "thunk from >" -var p7672 = &p7672Var -var p7694Var = "thunk from >" -var p7694 = &p7694Var -var p7716Var = "thunk from >" -var p7716 = &p7716Var -var p7760Var = "thunk from >" -var p7760 = &p7760Var -var p7799Var = "thunk from >" -var p7799 = &p7799Var -var p7823Var = "thunk from >" -var p7823 = &p7823Var -var p7831Var = "thunk from >" -var p7831 = &p7831Var -var p7886Var = "thunk from >" -var p7886 = &p7886Var -var p7910Var = "thunk from >" -var p7910 = &p7910Var -var p7916Var = "thunk from >" -var p7916 = &p7916Var -var p7931Var = "thunk from >" -var p7931 = &p7931Var -var p7987Var = "thunk from >" -var p7987 = &p7987Var -var p8011Var = "thunk from >" -var p8011 = &p8011Var -var p8019Var = "thunk from >" -var p8019 = &p8019Var -var p8082Var = "thunk from >" -var p8082 = &p8082Var -var p8106Var = "thunk from >" -var p8106 = &p8106Var -var p8114Var = "thunk from >" -var p8114 = &p8114Var -var p8173Var = "thunk from >" -var p8173 = &p8173Var -var p8197Var = "thunk from >" -var p8197 = &p8197Var -var p8205Var = "thunk from >" -var p8205 = &p8205Var -var p8269Var = "thunk from >" -var p8269 = &p8269Var -var p8293Var = "thunk from >" -var p8293 = &p8293Var -var p8299Var = "thunk from >" -var p8299 = &p8299Var -var p8308Var = "thunk from from >>" -var p8308 = &p8308Var -var p8319Var = "thunk from from >>>" -var p8319 = &p8319Var -var p8328Var = "thunk from from >>>>" -var p8328 = &p8328Var -var p8339Var = "thunk from from >>>" -var p8339 = &p8339Var -var p8362Var = "thunk from >" -var p8362 = &p8362Var -var p8400Var = "thunk from >" -var p8400 = &p8400Var -var p8409Var = "thunk from from >>" -var p8409 = &p8409Var -var p8421Var = "thunk from >" -var p8421 = &p8421Var -var p8486Var = "thunk from >" -var p8486 = &p8486Var -var p8498Var = "thunk from >" -var p8498 = &p8498Var -var p8519Var = "thunk from >" -var p8519 = &p8519Var -var p8541Var = "thunk from >" -var p8541 = &p8541Var -var p8560Var = "thunk from >" -var p8560 = &p8560Var -var p8576Var = "thunk from >" -var p8576 = &p8576Var -var p8592Var = "thunk from >" -var p8592 = &p8592Var -var p8596Var = "function " -var p8596 = &p8596Var -var p8611Var = "thunk from >" -var p8611 = &p8611Var -var p8628Var = "thunk from >" -var p8628 = &p8628Var -var p8648Var = "thunk from >" -var p8648 = &p8648Var -var p8659Var = "thunk from >" -var p8659 = &p8659Var -var p8684Var = "thunk from >" -var p8684 = &p8684Var -var p8693Var = "thunk from >" -var p8693 = &p8693Var -var p8714Var = "thunk from >" -var p8714 = &p8714Var -var p8735Var = "object " -var p8735 = &p8735Var -var p8756Var = "thunk from >" -var p8756 = &p8756Var -var p8772Var = "thunk from >" -var p8772 = &p8772Var -var p8785Var = "object " -var p8785 = &p8785Var -var p8797Var = "thunk from >" -var p8797 = &p8797Var -var p8818Var = "object " -var p8818 = &p8818Var -var p8845Var = "thunk from >" -var p8845 = &p8845Var -var p8861Var = "thunk from >" -var p8861 = &p8861Var -var p8877Var = "object " -var p8877 = &p8877Var -var p8892Var = "thunk from >" -var p8892 = &p8892Var -var p8901Var = "thunk from >" -var p8901 = &p8901Var -var p8916Var = "thunk from from >>" -var p8916 = &p8916Var -var p8938Var = "thunk from from >>" -var p8938 = &p8938Var -var p8944Var = "thunk from >" -var p8944 = &p8944Var -var p8967Var = "thunk from from >>" -var p8967 = &p8967Var -var p8987Var = "thunk from >" -var p8987 = &p8987Var -var p9003Var = "thunk from from >>" -var p9003 = &p9003Var -var p9017Var = "thunk from from >>" -var p9017 = &p9017Var -var p9029Var = "thunk from >" -var p9029 = &p9029Var -var p9058Var = "thunk from >" -var p9058 = &p9058Var -var p9079Var = "thunk from >" -var p9079 = &p9079Var -var p9083Var = "function " -var p9083 = &p9083Var -var p9098Var = "thunk from >" -var p9098 = &p9098Var -var p9106Var = "thunk from >" -var p9106 = &p9106Var -var p9131Var = "thunk from >" -var p9131 = &p9131Var -var p9140Var = "thunk from >" -var p9140 = &p9140Var -var p9159Var = "thunk from >" -var p9159 = &p9159Var -var p9186Var = "thunk from >" -var p9186 = &p9186Var -var p9213Var = "thunk from >" -var p9213 = &p9213Var -var p9240Var = "thunk from >" -var p9240 = &p9240Var -var p9251Var = "thunk from from >>" -var p9251 = &p9251Var -var p9272Var = "thunk from >" -var p9272 = &p9272Var -var p9295Var = "thunk from from >>" -var p9295 = &p9295Var -var p9309Var = "thunk from >" -var p9309 = &p9309Var -var p9325Var = "thunk from from >>" -var p9325 = &p9325Var -var p9336Var = "thunk from from >>" -var p9336 = &p9336Var -var p9347Var = "thunk from >" -var p9347 = &p9347Var -var p9381Var = "thunk from >" -var p9381 = &p9381Var -var p9390Var = "thunk from >" -var p9390 = &p9390Var -var p9416Var = "thunk from >" -var p9416 = &p9416Var -var p9425Var = "thunk from >" -var p9425 = &p9425Var -var p9437Var = "thunk from >" -var p9437 = &p9437Var -var p9443Var = "thunk from >>" -var p9443 = &p9443Var -var p9452Var = "object " -var p9452 = &p9452Var -var p9454Var = "object " -var p9454 = &p9454Var -var p9478Var = "object " -var p9478 = &p9478Var -var p9482Var = "object " -var p9482 = &p9482Var -var p9485Var = "object " -var p9485 = &p9485Var -var p9488Var = "object " -var p9488 = &p9488Var -var p9491Var = "object " -var p9491 = &p9491Var -var p9494Var = "object " -var p9494 = &p9494Var -var p9497Var = "object " -var p9497 = &p9497Var -var p9500Var = "object " -var p9500 = &p9500Var -var p9505Var = "thunk from >" -var p9505 = &p9505Var -var p9507Var = "thunk from >" -var p9507 = &p9507Var -var p9513Var = "function " -var p9513 = &p9513Var -var p9517Var = "thunk from >" -var p9517 = &p9517Var -var p9521Var = "function " -var p9521 = &p9521Var -var p9536Var = "thunk from >" -var p9536 = &p9536Var -var p9546Var = "thunk from >>" -var p9546 = &p9546Var -var p9565Var = "thunk from >" -var p9565 = &p9565Var -var p9582Var = "thunk from >>" -var p9582 = &p9582Var -var p9589Var = "object " -var p9589 = &p9589Var -var p9591Var = "object " -var p9591 = &p9591Var -var p9615Var = "object " -var p9615 = &p9615Var -var p9619Var = "object " -var p9619 = &p9619Var -var p9622Var = "object " -var p9622 = &p9622Var -var p9625Var = "object " -var p9625 = &p9625Var -var p9628Var = "object " -var p9628 = &p9628Var -var p9631Var = "object " -var p9631 = &p9631Var -var p9634Var = "object " -var p9634 = &p9634Var -var p9637Var = "object " -var p9637 = &p9637Var -var p9642Var = "thunk from >" -var p9642 = &p9642Var -var p9644Var = "thunk from >" -var p9644 = &p9644Var -var p9650Var = "function " -var p9650 = &p9650Var -var p9654Var = "thunk from >" -var p9654 = &p9654Var -var p9658Var = "function " -var p9658 = &p9658Var -var p9673Var = "thunk from >" -var p9673 = &p9673Var -var p9683Var = "thunk from >" -var p9683 = &p9683Var -var p9693Var = "thunk from >>" -var p9693 = &p9693Var -var p9712Var = "thunk from >" -var p9712 = &p9712Var -var p9723Var = "object " -var p9723 = &p9723Var -var p9725Var = "object " -var p9725 = &p9725Var -var p9749Var = "object " -var p9749 = &p9749Var -var p9753Var = "object " -var p9753 = &p9753Var -var p9756Var = "object " -var p9756 = &p9756Var -var p9759Var = "object " -var p9759 = &p9759Var -var p9762Var = "object " -var p9762 = &p9762Var -var p9765Var = "object " -var p9765 = &p9765Var -var p9768Var = "object " -var p9768 = &p9768Var -var p9771Var = "object " -var p9771 = &p9771Var -var p9776Var = "thunk from >" -var p9776 = &p9776Var -var p9778Var = "thunk from >" -var p9778 = &p9778Var -var p9784Var = "function " -var p9784 = &p9784Var -var p9805Var = "thunk from >" -var p9805 = &p9805Var -var p9822Var = "thunk from >" -var p9822 = &p9822Var -var p9845Var = "thunk from >" -var p9845 = &p9845Var -var p9862Var = "thunk from >" -var p9862 = &p9862Var -var p9885Var = "thunk from >" -var p9885 = &p9885Var -var p9902Var = "thunk from >" -var p9902 = &p9902Var -var p9913Var = "thunk from >" -var p9913 = &p9913Var -var p9924Var = "thunk from >>" -var p9924 = &p9924Var -var p9932Var = "object " -var p9932 = &p9932Var -var p9934Var = "object " -var p9934 = &p9934Var -var p9958Var = "object " -var p9958 = &p9958Var -var p9962Var = "object " -var p9962 = &p9962Var -var p9965Var = "object " -var p9965 = &p9965Var -var p9968Var = "object " -var p9968 = &p9968Var -var p9971Var = "object " -var p9971 = &p9971Var -var p9974Var = "object " -var p9974 = &p9974Var -var p9977Var = "object " -var p9977 = &p9977Var -var p9980Var = "object " -var p9980 = &p9980Var -var p9985Var = "thunk from >" -var p9985 = &p9985Var -var p9987Var = "thunk from >" -var p9987 = &p9987Var -var p9993Var = "function " -var p9993 = &p9993Var -var p10026Var = "object " -var p10026 = &p10026Var -var p10028Var = "object " -var p10028 = &p10028Var -var p10052Var = "object " -var p10052 = &p10052Var -var p10056Var = "object " -var p10056 = &p10056Var -var p10059Var = "object " -var p10059 = &p10059Var -var p10062Var = "object " -var p10062 = &p10062Var -var p10065Var = "object " -var p10065 = &p10065Var -var p10068Var = "object " -var p10068 = &p10068Var -var p10071Var = "object " -var p10071 = &p10071Var -var p10074Var = "object " -var p10074 = &p10074Var -var p10079Var = "thunk from >" -var p10079 = &p10079Var -var p10081Var = "thunk from >" -var p10081 = &p10081Var -var p10087Var = "function " -var p10087 = &p10087Var -var p10108Var = "thunk from >" -var p10108 = &p10108Var -var p10125Var = "thunk from >" -var p10125 = &p10125Var -var p10144Var = "object " -var p10144 = &p10144Var -var p10146Var = "object " -var p10146 = &p10146Var -var p10170Var = "object " -var p10170 = &p10170Var -var p10174Var = "object " -var p10174 = &p10174Var -var p10177Var = "object " -var p10177 = &p10177Var -var p10180Var = "object " -var p10180 = &p10180Var -var p10183Var = "object " -var p10183 = &p10183Var -var p10186Var = "object " -var p10186 = &p10186Var -var p10189Var = "object " -var p10189 = &p10189Var -var p10192Var = "object " -var p10192 = &p10192Var -var p10197Var = "thunk from >" -var p10197 = &p10197Var -var p10199Var = "thunk from >" -var p10199 = &p10199Var -var p10205Var = "function " -var p10205 = &p10205Var -var p10226Var = "thunk from >" -var p10226 = &p10226Var -var p10243Var = "thunk from >" -var p10243 = &p10243Var -var p10267Var = "object " -var p10267 = &p10267Var -var p10269Var = "object " -var p10269 = &p10269Var -var p10293Var = "object " -var p10293 = &p10293Var -var p10297Var = "object " -var p10297 = &p10297Var -var p10300Var = "object " -var p10300 = &p10300Var -var p10303Var = "object " -var p10303 = &p10303Var -var p10306Var = "object " -var p10306 = &p10306Var -var p10309Var = "object " -var p10309 = &p10309Var -var p10312Var = "object " -var p10312 = &p10312Var -var p10315Var = "object " -var p10315 = &p10315Var -var p10320Var = "thunk from >" -var p10320 = &p10320Var -var p10322Var = "thunk from >" -var p10322 = &p10322Var -var p10328Var = "function " -var p10328 = &p10328Var -var p10349Var = "thunk from >" -var p10349 = &p10349Var -var p10366Var = "thunk from >" -var p10366 = &p10366Var -var p10389Var = "thunk from >" -var p10389 = &p10389Var -var p10406Var = "thunk from >" -var p10406 = &p10406Var -var p10424Var = "object " -var p10424 = &p10424Var -var p10426Var = "object " -var p10426 = &p10426Var -var p10450Var = "object " -var p10450 = &p10450Var -var p10454Var = "object " -var p10454 = &p10454Var -var p10457Var = "object " -var p10457 = &p10457Var -var p10460Var = "object " -var p10460 = &p10460Var -var p10463Var = "object " -var p10463 = &p10463Var -var p10466Var = "object " -var p10466 = &p10466Var -var p10469Var = "object " -var p10469 = &p10469Var -var p10472Var = "object " -var p10472 = &p10472Var -var p10477Var = "thunk from >" -var p10477 = &p10477Var -var p10479Var = "thunk from >" -var p10479 = &p10479Var -var p10485Var = "function " -var p10485 = &p10485Var -var p10506Var = "thunk from >" -var p10506 = &p10506Var -var p10523Var = "thunk from >" -var p10523 = &p10523Var -var p10546Var = "thunk from >" -var p10546 = &p10546Var -var p10563Var = "thunk from >" -var p10563 = &p10563Var -var p10581Var = "object " -var p10581 = &p10581Var -var p10583Var = "object " -var p10583 = &p10583Var -var p10607Var = "object " -var p10607 = &p10607Var -var p10611Var = "object " -var p10611 = &p10611Var -var p10614Var = "object " -var p10614 = &p10614Var -var p10617Var = "object " -var p10617 = &p10617Var -var p10620Var = "object " -var p10620 = &p10620Var -var p10623Var = "object " -var p10623 = &p10623Var -var p10626Var = "object " -var p10626 = &p10626Var -var p10629Var = "object " -var p10629 = &p10629Var -var p10634Var = "thunk from >" -var p10634 = &p10634Var -var p10636Var = "thunk from >" -var p10636 = &p10636Var -var p10642Var = "function " -var p10642 = &p10642Var -var p10651Var = "thunk from >" -var p10651 = &p10651Var -var p10654Var = "function " -var p10654 = &p10654Var -var p10667Var = "object " -var p10667 = &p10667Var -var p10669Var = "object " -var p10669 = &p10669Var -var p10693Var = "object " -var p10693 = &p10693Var -var p10697Var = "object " -var p10697 = &p10697Var -var p10700Var = "object " -var p10700 = &p10700Var -var p10703Var = "object " -var p10703 = &p10703Var -var p10706Var = "object " -var p10706 = &p10706Var -var p10709Var = "object " -var p10709 = &p10709Var -var p10712Var = "object " -var p10712 = &p10712Var -var p10715Var = "object " -var p10715 = &p10715Var -var p10720Var = "thunk from >" -var p10720 = &p10720Var -var p10722Var = "thunk from >" -var p10722 = &p10722Var -var p10728Var = "function " -var p10728 = &p10728Var -var p10732Var = "thunk from >" -var p10732 = &p10732Var -var p10736Var = "function " -var p10736 = &p10736Var -var p10745Var = "thunk from >" -var p10745 = &p10745Var -var p10761Var = "thunk from >>" -var p10761 = &p10761Var -var p10765Var = "thunk from >>>" -var p10765 = &p10765Var -var p10790Var = "thunk from >>>" -var p10790 = &p10790Var -var p10816Var = "thunk from >>>" -var p10816 = &p10816Var -var p10821Var = "thunk from >>>>" -var p10821 = &p10821Var -var p10839Var = "thunk from >>>" -var p10839 = &p10839Var -var p10844Var = "thunk from >>>>" -var p10844 = &p10844Var -var p10857Var = "thunk from >>" -var p10857 = &p10857Var -var p10863Var = "thunk from >" -var p10863 = &p10863Var -var p10867Var = "function " -var p10867 = &p10867Var -var p10881Var = "thunk from >" -var p10881 = &p10881Var -var p10886Var = "thunk from >>" -var p10886 = &p10886Var -var p10894Var = "thunk from >" -var p10894 = &p10894Var -var p10897Var = "thunk from >" -var p10897 = &p10897Var -var p10908Var = "thunk from from >>" -var p10908 = &p10908Var -var p10917Var = "thunk from from >>" -var p10917 = &p10917Var -var p10938Var = "thunk from from >>" -var p10938 = &p10938Var -var p10944Var = "thunk from from >>>" -var p10944 = &p10944Var -var p10956Var = "thunk from >" -var p10956 = &p10956Var -var p10965Var = "thunk from from >>" -var p10965 = &p10965Var -var p10979Var = "thunk from >" -var p10979 = &p10979Var -var p10995Var = "thunk from >>" -var p10995 = &p10995Var -var p11000Var = "thunk from >>" -var p11000 = &p11000Var -var p11005Var = "object " -var p11005 = &p11005Var -var p11007Var = "object " -var p11007 = &p11007Var -var p11031Var = "object " -var p11031 = &p11031Var -var p11035Var = "object " -var p11035 = &p11035Var -var p11038Var = "object " -var p11038 = &p11038Var -var p11041Var = "object " -var p11041 = &p11041Var -var p11044Var = "object " -var p11044 = &p11044Var -var p11047Var = "object " -var p11047 = &p11047Var -var p11050Var = "object " -var p11050 = &p11050Var -var p11053Var = "object " -var p11053 = &p11053Var -var p11058Var = "thunk from >" -var p11058 = &p11058Var -var p11060Var = "thunk from >" -var p11060 = &p11060Var -var p11066Var = "function " -var p11066 = &p11066Var -var p11070Var = "thunk from >" -var p11070 = &p11070Var -var p11079Var = "thunk from from >>" -var p11079 = &p11079Var -var p11085Var = "thunk from >" -var p11085 = &p11085Var -var p11089Var = "function " -var p11089 = &p11089Var -var p11191Var = "thunk from >" -var p11191 = &p11191Var -var p11200Var = "thunk from from >>" -var p11200 = &p11200Var -var p11236Var = "thunk from >" -var p11236 = &p11236Var -var p11258Var = "thunk from >" -var p11258 = &p11258Var -var p11274Var = "thunk from >>" -var p11274 = &p11274Var -var p11280Var = "thunk from >>>" -var p11280 = &p11280Var -var p11291Var = "thunk from >>" -var p11291 = &p11291Var -var p11297Var = "object " -var p11297 = &p11297Var -var p11299Var = "object " -var p11299 = &p11299Var -var p11323Var = "object " -var p11323 = &p11323Var -var p11327Var = "object " -var p11327 = &p11327Var -var p11330Var = "object " -var p11330 = &p11330Var -var p11333Var = "object " -var p11333 = &p11333Var -var p11336Var = "object " -var p11336 = &p11336Var -var p11339Var = "object " -var p11339 = &p11339Var -var p11342Var = "object " -var p11342 = &p11342Var -var p11345Var = "object " -var p11345 = &p11345Var -var p11350Var = "thunk from >" -var p11350 = &p11350Var -var p11352Var = "thunk from >" -var p11352 = &p11352Var -var p11358Var = "function " -var p11358 = &p11358Var -var p11367Var = "thunk from >" -var p11367 = &p11367Var -var p11373Var = "object " -var p11373 = &p11373Var -var p11375Var = "object " -var p11375 = &p11375Var -var p11399Var = "object " -var p11399 = &p11399Var -var p11403Var = "object " -var p11403 = &p11403Var -var p11406Var = "object " -var p11406 = &p11406Var -var p11409Var = "object " -var p11409 = &p11409Var -var p11412Var = "object " -var p11412 = &p11412Var -var p11415Var = "object " -var p11415 = &p11415Var -var p11418Var = "object " -var p11418 = &p11418Var -var p11421Var = "object " -var p11421 = &p11421Var -var p11426Var = "thunk from >" -var p11426 = &p11426Var -var p11428Var = "thunk from >" -var p11428 = &p11428Var -var p11434Var = "function " -var p11434 = &p11434Var -var p11438Var = "thunk from >" -var p11438 = &p11438Var -var p11447Var = "thunk from from >>" -var p11447 = &p11447Var -var p11453Var = "thunk from >" -var p11453 = &p11453Var -var p11457Var = "function " -var p11457 = &p11457Var -var p11491Var = "thunk from >" -var p11491 = &p11491Var -var p11507Var = "thunk from >>" -var p11507 = &p11507Var -var p11513Var = "thunk from >>>" -var p11513 = &p11513Var -var p11524Var = "thunk from >>" -var p11524 = &p11524Var -var p11530Var = "object " -var p11530 = &p11530Var -var p11532Var = "object " -var p11532 = &p11532Var -var p11556Var = "object " -var p11556 = &p11556Var -var p11560Var = "object " -var p11560 = &p11560Var -var p11563Var = "object " -var p11563 = &p11563Var -var p11566Var = "object " -var p11566 = &p11566Var -var p11569Var = "object " -var p11569 = &p11569Var -var p11572Var = "object " -var p11572 = &p11572Var -var p11575Var = "object " -var p11575 = &p11575Var -var p11578Var = "object " -var p11578 = &p11578Var -var p11583Var = "thunk from >" -var p11583 = &p11583Var -var p11585Var = "thunk from >" -var p11585 = &p11585Var -var p11591Var = "function " -var p11591 = &p11591Var -var p11595Var = "thunk from >" -var p11595 = &p11595Var -var p11604Var = "thunk from from >>" -var p11604 = &p11604Var -var p11610Var = "thunk from >" -var p11610 = &p11610Var -var p11614Var = "function " -var p11614 = &p11614Var -var p11639Var = "thunk from >" -var p11639 = &p11639Var -var p11643Var = "function " -var p11643 = &p11643Var -var p11653Var = "thunk from >" -var p11653 = &p11653Var -var p11664Var = "thunk from >>" -var p11664 = &p11664Var -var p11671Var = "object " -var p11671 = &p11671Var -var p11673Var = "object " -var p11673 = &p11673Var -var p11697Var = "object " -var p11697 = &p11697Var -var p11701Var = "object " -var p11701 = &p11701Var -var p11704Var = "object " -var p11704 = &p11704Var -var p11707Var = "object " -var p11707 = &p11707Var -var p11710Var = "object " -var p11710 = &p11710Var -var p11713Var = "object " -var p11713 = &p11713Var -var p11716Var = "object " -var p11716 = &p11716Var -var p11719Var = "object " -var p11719 = &p11719Var -var p11724Var = "thunk from >" -var p11724 = &p11724Var -var p11726Var = "thunk from >" -var p11726 = &p11726Var -var p11732Var = "function " -var p11732 = &p11732Var -var p11741Var = "thunk from >" -var p11741 = &p11741Var -var p11748Var = "object " -var p11748 = &p11748Var -var p11750Var = "object " -var p11750 = &p11750Var -var p11774Var = "object " -var p11774 = &p11774Var -var p11778Var = "object " -var p11778 = &p11778Var -var p11781Var = "object " -var p11781 = &p11781Var -var p11784Var = "object " -var p11784 = &p11784Var -var p11787Var = "object " -var p11787 = &p11787Var -var p11790Var = "object " -var p11790 = &p11790Var -var p11793Var = "object " -var p11793 = &p11793Var -var p11796Var = "object " -var p11796 = &p11796Var -var p11801Var = "thunk from >" -var p11801 = &p11801Var -var p11803Var = "thunk from >" -var p11803 = &p11803Var -var p11809Var = "function " -var p11809 = &p11809Var -var p11813Var = "thunk from >" -var p11813 = &p11813Var -var p11817Var = "function " -var p11817 = &p11817Var -var p11878Var = "thunk from >" -var p11878 = &p11878Var -var p11905Var = "thunk from >" -var p11905 = &p11905Var -var p11917Var = "thunk from >" -var p11917 = &p11917Var -var p11938Var = "thunk from >" -var p11938 = &p11938Var -var p11967Var = "thunk from >" -var p11967 = &p11967Var -var p11974Var = "thunk from >" -var p11974 = &p11974Var -var p11983Var = "thunk from from >>" -var p11983 = &p11983Var -var p11995Var = "thunk from from >>>" -var p11995 = &p11995Var -var p12002Var = "thunk from >" -var p12002 = &p12002Var -var p12012Var = "thunk from >" -var p12012 = &p12012Var -var p12019Var = "thunk from from >>" -var p12019 = &p12019Var -var p12029Var = "thunk from from >>" -var p12029 = &p12029Var -var p12032Var = "thunk from from >>>" -var p12032 = &p12032Var -var p12048Var = "thunk from from >>>" -var p12048 = &p12048Var -var p12052Var = "thunk from from >>>>" -var p12052 = &p12052Var -var p12062Var = "thunk from from >>>>>" -var p12062 = &p12062Var -var p12076Var = "thunk from from >>>>>>" -var p12076 = &p12076Var -var p12086Var = "thunk from from >>" -var p12086 = &p12086Var -var p12103Var = "thunk from >" -var p12103 = &p12103Var -var p12125Var = "thunk from >" -var p12125 = &p12125Var -var p12132Var = "thunk from >" -var p12132 = &p12132Var -var p12139Var = "thunk from from >>" -var p12139 = &p12139Var -var p12149Var = "thunk from from >>" -var p12149 = &p12149Var -var p12152Var = "thunk from from >>>" -var p12152 = &p12152Var -var p12168Var = "thunk from from >>>" -var p12168 = &p12168Var -var p12172Var = "thunk from from >>>>" -var p12172 = &p12172Var -var p12193Var = "thunk from from >>>>>" -var p12193 = &p12193Var -var p12202Var = "thunk from from >>>>>" -var p12202 = &p12202Var -var p12216Var = "thunk from from >>>>>>" -var p12216 = &p12216Var -var p12233Var = "thunk from from >>>" -var p12233 = &p12233Var -var p12239Var = "thunk from from >>" -var p12239 = &p12239Var -var p12256Var = "thunk from >" -var p12256 = &p12256Var -var p12266Var = "thunk from >" -var p12266 = &p12266Var -var p12274Var = "object " -var p12274 = &p12274Var -var p12276Var = "object " -var p12276 = &p12276Var -var p12300Var = "object " -var p12300 = &p12300Var -var p12304Var = "object " -var p12304 = &p12304Var -var p12307Var = "object " -var p12307 = &p12307Var -var p12310Var = "object " -var p12310 = &p12310Var -var p12313Var = "object " -var p12313 = &p12313Var -var p12316Var = "object " -var p12316 = &p12316Var -var p12319Var = "object " -var p12319 = &p12319Var -var p12322Var = "object " -var p12322 = &p12322Var -var p12327Var = "thunk from >" -var p12327 = &p12327Var -var p12329Var = "thunk from >" -var p12329 = &p12329Var -var p12335Var = "function " -var p12335 = &p12335Var -var p12339Var = "thunk from >" -var p12339 = &p12339Var -var p12343Var = "function " -var p12343 = &p12343Var -var p12404Var = "thunk from >" -var p12404 = &p12404Var -var p12431Var = "thunk from >" -var p12431 = &p12431Var -var p12438Var = "thunk from >" -var p12438 = &p12438Var -var p12447Var = "thunk from from >>" -var p12447 = &p12447Var -var p12487Var = "thunk from >" -var p12487 = &p12487Var -var p12496Var = "thunk from from >>" -var p12496 = &p12496Var -var p12508Var = "thunk from >" -var p12508 = &p12508Var -var p12518Var = "thunk from >>" -var p12518 = &p12518Var -var p12541Var = "thunk from >>" -var p12541 = &p12541Var -var p12554Var = "thunk from >" -var p12554 = &p12554Var -var p12575Var = "thunk from >" -var p12575 = &p12575Var -var p12604Var = "thunk from >" -var p12604 = &p12604Var -var p12626Var = "thunk from >" -var p12626 = &p12626Var -var p12634Var = "thunk from >" -var p12634 = &p12634Var -var p12643Var = "thunk from from >>" -var p12643 = &p12643Var -var p12655Var = "thunk from from >>>" -var p12655 = &p12655Var -var p12662Var = "thunk from >" -var p12662 = &p12662Var -var p12699Var = "thunk from from >>" -var p12699 = &p12699Var -var p12705Var = "thunk from from >>>" -var p12705 = &p12705Var -var p12720Var = "thunk from from >>>>" -var p12720 = &p12720Var -var p12725Var = "thunk from >" -var p12725 = &p12725Var -var p12751Var = "thunk from >" -var p12751 = &p12751Var -var p12780Var = "thunk from >" -var p12780 = &p12780Var -var p12802Var = "thunk from >" -var p12802 = &p12802Var -var p12810Var = "thunk from >" -var p12810 = &p12810Var -var p12833Var = "thunk from from >>" -var p12833 = &p12833Var -var p12846Var = "thunk from from >>>" -var p12846 = &p12846Var -var p12855Var = "thunk from from >>>" -var p12855 = &p12855Var -var p12870Var = "thunk from from >>>>" -var p12870 = &p12870Var -var p12875Var = "thunk from >" -var p12875 = &p12875Var -var p12884Var = "thunk from from >>" -var p12884 = &p12884Var -var p12907Var = "thunk from >" -var p12907 = &p12907Var -var p12921Var = "thunk from >" -var p12921 = &p12921Var -var p12930Var = "object " -var p12930 = &p12930Var -var p12932Var = "object " -var p12932 = &p12932Var -var p12956Var = "object " -var p12956 = &p12956Var -var p12960Var = "object " -var p12960 = &p12960Var -var p12963Var = "object " -var p12963 = &p12963Var -var p12966Var = "object " -var p12966 = &p12966Var -var p12969Var = "object " -var p12969 = &p12969Var -var p12972Var = "object " -var p12972 = &p12972Var -var p12975Var = "object " -var p12975 = &p12975Var -var p12978Var = "object " -var p12978 = &p12978Var -var p12983Var = "thunk from >" -var p12983 = &p12983Var -var p12985Var = "thunk from >" -var p12985 = &p12985Var -var p12991Var = "function " -var p12991 = &p12991Var -var p13012Var = "thunk from >" -var p13012 = &p13012Var -var p13029Var = "thunk from >" -var p13029 = &p13029Var -var p13045Var = "thunk from >" -var p13045 = &p13045Var -var p13061Var = "thunk from >>" -var p13061 = &p13061Var -var p13070Var = "thunk from >>>" -var p13070 = &p13070Var -var p13079Var = "object " -var p13079 = &p13079Var -var p13081Var = "object " -var p13081 = &p13081Var -var p13105Var = "object " -var p13105 = &p13105Var -var p13109Var = "object " -var p13109 = &p13109Var -var p13112Var = "object " -var p13112 = &p13112Var -var p13115Var = "object " -var p13115 = &p13115Var -var p13118Var = "object " -var p13118 = &p13118Var -var p13121Var = "object " -var p13121 = &p13121Var -var p13124Var = "object " -var p13124 = &p13124Var -var p13127Var = "object " -var p13127 = &p13127Var -var p13132Var = "thunk from >" -var p13132 = &p13132Var -var p13134Var = "thunk from >" -var p13134 = &p13134Var -var p13140Var = "function " -var p13140 = &p13140Var -var p13159Var = "thunk from >" -var p13159 = &p13159Var -var p13188Var = "thunk from from >>" -var p13188 = &p13188Var -var p13193Var = "thunk from from >>>" -var p13193 = &p13193Var -var p13202Var = "thunk from from >>>>" -var p13202 = &p13202Var -var p13213Var = "thunk from from >>>>" -var p13213 = &p13213Var -var p13220Var = "thunk from >" -var p13220 = &p13220Var -var p13229Var = "thunk from from >>" -var p13229 = &p13229Var -var p13244Var = "thunk from >" -var p13244 = &p13244Var -var p13253Var = "thunk from >>" -var p13253 = &p13253Var -var p13275Var = "thunk from >" -var p13275 = &p13275Var -var p13291Var = "thunk from >" -var p13291 = &p13291Var -var p13300Var = "thunk from >>" -var p13300 = &p13300Var -var p13316Var = "thunk from >>>" -var p13316 = &p13316Var -var p13325Var = "thunk from >>>>" -var p13325 = &p13325Var -var p13348Var = "thunk from >" -var p13348 = &p13348Var -var p13364Var = "thunk from >" -var p13364 = &p13364Var -var p13373Var = "thunk from >>" -var p13373 = &p13373Var -var p13394Var = "thunk from >" -var p13394 = &p13394Var -var p13418Var = "thunk from >" -var p13418 = &p13418Var -var p13430Var = "thunk from >" -var p13430 = &p13430Var -var p13479Var = "object " -var p13479 = &p13479Var -var p13481Var = "object " -var p13481 = &p13481Var -var p13505Var = "object " -var p13505 = &p13505Var -var p13509Var = "object " -var p13509 = &p13509Var -var p13512Var = "object " -var p13512 = &p13512Var -var p13515Var = "object " -var p13515 = &p13515Var -var p13518Var = "object " -var p13518 = &p13518Var -var p13521Var = "object " -var p13521 = &p13521Var -var p13524Var = "object " -var p13524 = &p13524Var -var p13527Var = "object " -var p13527 = &p13527Var -var p13532Var = "thunk from >" -var p13532 = &p13532Var -var p13534Var = "thunk from >" -var p13534 = &p13534Var -var p13540Var = "function " -var p13540 = &p13540Var -var p13566Var = "thunk from from >>" -var p13566 = &p13566Var -var p13571Var = "thunk from from >>>" -var p13571 = &p13571Var -var p13582Var = "thunk from from >>>>" -var p13582 = &p13582Var -var p13589Var = "thunk from >" -var p13589 = &p13589Var -var p13598Var = "thunk from from >>" -var p13598 = &p13598Var -var p13609Var = "thunk from >" -var p13609 = &p13609Var -var p13617Var = "thunk from >>" -var p13617 = &p13617Var -var p13622Var = "object " -var p13622 = &p13622Var -var p13624Var = "object " -var p13624 = &p13624Var -var p13648Var = "object " -var p13648 = &p13648Var -var p13652Var = "object " -var p13652 = &p13652Var -var p13655Var = "object " -var p13655 = &p13655Var -var p13658Var = "object " -var p13658 = &p13658Var -var p13661Var = "object " -var p13661 = &p13661Var -var p13664Var = "object " -var p13664 = &p13664Var -var p13667Var = "object " -var p13667 = &p13667Var -var p13670Var = "object " -var p13670 = &p13670Var -var p13675Var = "thunk from >" -var p13675 = &p13675Var -var p13677Var = "thunk from >" -var p13677 = &p13677Var -var p13683Var = "function " -var p13683 = &p13683Var -var p13696Var = "thunk from >" -var p13696 = &p13696Var -var p13718Var = "thunk from >" -var p13718 = &p13718Var -var p13724Var = "thunk from >" -var p13724 = &p13724Var -var p13728Var = "function " -var p13728 = &p13728Var -var p13739Var = "thunk from >" -var p13739 = &p13739Var -var p13747Var = "thunk from >" -var p13747 = &p13747Var -var p13756Var = "thunk from >" -var p13756 = &p13756Var -var p13769Var = "thunk from from >>" -var p13769 = &p13769Var -var p13789Var = "thunk from from >>" -var p13789 = &p13789Var -var p13799Var = "thunk from >" -var p13799 = &p13799Var -var p13813Var = "thunk from >" -var p13813 = &p13813Var -var p13847Var = "thunk from >" -var p13847 = &p13847Var -var p13856Var = "thunk from from >>" -var p13856 = &p13856Var -var p13880Var = "thunk from from >>>" -var p13880 = &p13880Var -var p13885Var = "thunk from from >>>>" -var p13885 = &p13885Var -var p13902Var = "thunk from from >>>" -var p13902 = &p13902Var -var p13913Var = "thunk from >" -var p13913 = &p13913Var -var p13917Var = "thunk from >>" -var p13917 = &p13917Var -var p13938Var = "thunk from >>>" -var p13938 = &p13938Var -var p13944Var = "thunk from >>>>" -var p13944 = &p13944Var -var p13958Var = "thunk from >" -var p13958 = &p13958Var -var p13964Var = "object " -var p13964 = &p13964Var -var p13966Var = "object " -var p13966 = &p13966Var -var p13990Var = "object " -var p13990 = &p13990Var -var p13994Var = "object " -var p13994 = &p13994Var -var p13997Var = "object " -var p13997 = &p13997Var -var p14000Var = "object " -var p14000 = &p14000Var -var p14003Var = "object " -var p14003 = &p14003Var -var p14006Var = "object " -var p14006 = &p14006Var -var p14009Var = "object " -var p14009 = &p14009Var -var p14012Var = "object " -var p14012 = &p14012Var -var p14017Var = "thunk from >" -var p14017 = &p14017Var -var p14019Var = "thunk from >" -var p14019 = &p14019Var -var p14025Var = "function " -var p14025 = &p14025Var -var p14029Var = "thunk from >" -var p14029 = &p14029Var -var p14048Var = "thunk from from >>" -var p14048 = &p14048Var -var p14060Var = "thunk from from >>" -var p14060 = &p14060Var -var p14064Var = "function " -var p14064 = &p14064Var -var p14073Var = "thunk from >" -var p14073 = &p14073Var -var p14083Var = "thunk from >" -var p14083 = &p14083Var -var p14087Var = "function " -var p14087 = &p14087Var -var p14102Var = "thunk from >" -var p14102 = &p14102Var -var p14124Var = "thunk from >" -var p14124 = &p14124Var -var p14130Var = "thunk from >" -var p14130 = &p14130Var -var p14173Var = "thunk from >" -var p14173 = &p14173Var -var p14204Var = "thunk from >" -var p14204 = &p14204Var -var p14210Var = "thunk from >" -var p14210 = &p14210Var -var p14291Var = "thunk from >" -var p14291 = &p14291Var -var p14308Var = "thunk from >" -var p14308 = &p14308Var -var p14421Var = "thunk from >" -var p14421 = &p14421Var -var p14438Var = "thunk from >" -var p14438 = &p14438Var -var p14447Var = "thunk from from >>" -var p14447 = &p14447Var -var p14450Var = "function " -var p14450 = &p14450Var -var p14476Var = "thunk from >" -var p14476 = &p14476Var -var p14484Var = "object " -var p14484 = &p14484Var -var p14486Var = "object " -var p14486 = &p14486Var -var p14510Var = "object " -var p14510 = &p14510Var -var p14514Var = "object " -var p14514 = &p14514Var -var p14517Var = "object " -var p14517 = &p14517Var -var p14520Var = "object " -var p14520 = &p14520Var -var p14523Var = "object " -var p14523 = &p14523Var -var p14526Var = "object " -var p14526 = &p14526Var -var p14529Var = "object " -var p14529 = &p14529Var -var p14532Var = "object " -var p14532 = &p14532Var -var p14537Var = "thunk from >" -var p14537 = &p14537Var -var p14539Var = "thunk from >" -var p14539 = &p14539Var -var p14545Var = "function " -var p14545 = &p14545Var -var p14574Var = "thunk from >" -var p14574 = &p14574Var -var p14595Var = "thunk from >" -var p14595 = &p14595Var -var p14599Var = "function " -var p14599 = &p14599Var -var p14614Var = "thunk from >" -var p14614 = &p14614Var -var p14622Var = "thunk from >" -var p14622 = &p14622Var -var p14626Var = "thunk from from >>" -var p14626 = &p14626Var -var p14661Var = "thunk from >" -var p14661 = &p14661Var -var p14686Var = "thunk from from >>" -var p14686 = &p14686Var -var p14727Var = "thunk from >" -var p14727 = &p14727Var -var p14752Var = "thunk from from >>" -var p14752 = &p14752Var -var p14792Var = "thunk from >" -var p14792 = &p14792Var -var p14819Var = "thunk from >" -var p14819 = &p14819Var -var p14827Var = "object " -var p14827 = &p14827Var -var p14829Var = "object " -var p14829 = &p14829Var -var p14853Var = "object " -var p14853 = &p14853Var -var p14857Var = "object " -var p14857 = &p14857Var -var p14860Var = "object " -var p14860 = &p14860Var -var p14863Var = "object " -var p14863 = &p14863Var -var p14866Var = "object " -var p14866 = &p14866Var -var p14869Var = "object " -var p14869 = &p14869Var -var p14872Var = "object " -var p14872 = &p14872Var -var p14875Var = "object " -var p14875 = &p14875Var -var p14880Var = "thunk from >" -var p14880 = &p14880Var -var p14882Var = "thunk from >" -var p14882 = &p14882Var -var p14888Var = "function " -var p14888 = &p14888Var -var p14892Var = "thunk from >" -var p14892 = &p14892Var -var p14901Var = "thunk from from >>" -var p14901 = &p14901Var -var p14912Var = "thunk from >" -var p14912 = &p14912Var -var p14922Var = "thunk from >>" -var p14922 = &p14922Var -var p14926Var = "function " -var p14926 = &p14926Var -var p14935Var = "thunk from >" -var p14935 = &p14935Var -var p14943Var = "object " -var p14943 = &p14943Var -var p14945Var = "object " -var p14945 = &p14945Var -var p14969Var = "object " -var p14969 = &p14969Var -var p14973Var = "object " -var p14973 = &p14973Var -var p14976Var = "object " -var p14976 = &p14976Var -var p14979Var = "object " -var p14979 = &p14979Var -var p14982Var = "object " -var p14982 = &p14982Var -var p14985Var = "object " -var p14985 = &p14985Var -var p14988Var = "object " -var p14988 = &p14988Var -var p14991Var = "object " -var p14991 = &p14991Var -var p14996Var = "thunk from >" -var p14996 = &p14996Var -var p14998Var = "thunk from >" -var p14998 = &p14998Var -var p15004Var = "function " -var p15004 = &p15004Var -var p15008Var = "thunk from >" -var p15008 = &p15008Var -var p15017Var = "thunk from from >>" -var p15017 = &p15017Var -var p15038Var = "thunk from >" -var p15038 = &p15038Var -var p15046Var = "thunk from >" -var p15046 = &p15046Var -var p15055Var = "thunk from >" -var p15055 = &p15055Var -var p15064Var = "thunk from from >>" -var p15064 = &p15064Var -var p15073Var = "function " -var p15073 = &p15073Var -var p15086Var = "thunk from >" -var p15086 = &p15086Var -var p15095Var = "thunk from from >>" -var p15095 = &p15095Var -var p15099Var = "function " -var p15099 = &p15099Var -var p15111Var = "thunk from >" -var p15111 = &p15111Var -var p15120Var = "thunk from from >>" -var p15120 = &p15120Var -var p15124Var = "function " -var p15124 = &p15124Var -var p15145Var = "thunk from >" -var p15145 = &p15145Var -var p15151Var = "thunk from >" -var p15151 = &p15151Var -var p15162Var = "thunk from >" -var p15162 = &p15162Var -var p15168Var = "object " -var p15168 = &p15168Var -var p15170Var = "object " -var p15170 = &p15170Var -var p15194Var = "object " -var p15194 = &p15194Var -var p15198Var = "object " -var p15198 = &p15198Var -var p15201Var = "object " -var p15201 = &p15201Var -var p15204Var = "object " -var p15204 = &p15204Var -var p15207Var = "object " -var p15207 = &p15207Var -var p15210Var = "object " -var p15210 = &p15210Var -var p15213Var = "object " -var p15213 = &p15213Var -var p15216Var = "object " -var p15216 = &p15216Var -var p15221Var = "thunk from >" -var p15221 = &p15221Var -var p15223Var = "thunk from >" -var p15223 = &p15223Var -var p15229Var = "function " -var p15229 = &p15229Var -var p15233Var = "thunk from >" -var p15233 = &p15233Var -var p15237Var = "function " -var p15237 = &p15237Var -var p15256Var = "thunk from >" -var p15256 = &p15256Var -var p15263Var = "thunk from >" -var p15263 = &p15263Var -var p15290Var = "thunk from >" -var p15290 = &p15290Var -var p15305Var = "thunk from >" -var p15305 = &p15305Var -var p15316Var = "thunk from >" -var p15316 = &p15316Var -var p15325Var = "object " -var p15325 = &p15325Var -var p15327Var = "object " -var p15327 = &p15327Var -var p15351Var = "object " -var p15351 = &p15351Var -var p15355Var = "object " -var p15355 = &p15355Var -var p15358Var = "object " -var p15358 = &p15358Var -var p15361Var = "object " -var p15361 = &p15361Var -var p15364Var = "object " -var p15364 = &p15364Var -var p15367Var = "object " -var p15367 = &p15367Var -var p15370Var = "object " -var p15370 = &p15370Var -var p15373Var = "object " -var p15373 = &p15373Var -var p15378Var = "thunk from >" -var p15378 = &p15378Var -var p15380Var = "thunk from >" -var p15380 = &p15380Var -var p15386Var = "function " -var p15386 = &p15386Var -var p15395Var = "thunk from >" -var p15395 = &p15395Var -var p15404Var = "thunk from >>" -var p15404 = &p15404Var -var p15410Var = "object " -var p15410 = &p15410Var -var p15412Var = "object " -var p15412 = &p15412Var -var p15436Var = "object " -var p15436 = &p15436Var -var p15440Var = "object " -var p15440 = &p15440Var -var p15443Var = "object " -var p15443 = &p15443Var -var p15446Var = "object " -var p15446 = &p15446Var -var p15449Var = "object " -var p15449 = &p15449Var -var p15452Var = "object " -var p15452 = &p15452Var -var p15455Var = "object " -var p15455 = &p15455Var -var p15458Var = "object " -var p15458 = &p15458Var -var p15463Var = "thunk from >" -var p15463 = &p15463Var -var p15465Var = "thunk from >" -var p15465 = &p15465Var -var p15471Var = "function " -var p15471 = &p15471Var -var p15482Var = "thunk from >" -var p15482 = &p15482Var -var p15491Var = "thunk from >>" -var p15491 = &p15491Var -var p15495Var = "thunk from >>>" -var p15495 = &p15495Var -var p15504Var = "object " -var p15504 = &p15504Var -var p15506Var = "object " -var p15506 = &p15506Var -var p15530Var = "object " -var p15530 = &p15530Var -var p15534Var = "object " -var p15534 = &p15534Var -var p15537Var = "object " -var p15537 = &p15537Var -var p15540Var = "object " -var p15540 = &p15540Var -var p15543Var = "object " -var p15543 = &p15543Var -var p15546Var = "object " -var p15546 = &p15546Var -var p15549Var = "object " -var p15549 = &p15549Var -var p15552Var = "object " -var p15552 = &p15552Var -var p15557Var = "thunk from >" -var p15557 = &p15557Var -var p15559Var = "thunk from >" -var p15559 = &p15559Var -var p15565Var = "function " -var p15565 = &p15565Var -var p15574Var = "thunk from >" -var p15574 = &p15574Var -var p15584Var = "object " -var p15584 = &p15584Var -var p15586Var = "object " -var p15586 = &p15586Var -var p15610Var = "object " -var p15610 = &p15610Var -var p15614Var = "object " -var p15614 = &p15614Var -var p15617Var = "object " -var p15617 = &p15617Var -var p15620Var = "object " -var p15620 = &p15620Var -var p15623Var = "object " -var p15623 = &p15623Var -var p15626Var = "object " -var p15626 = &p15626Var -var p15629Var = "object " -var p15629 = &p15629Var -var p15632Var = "object " -var p15632 = &p15632Var -var p15637Var = "thunk from >" -var p15637 = &p15637Var -var p15639Var = "thunk from >" -var p15639 = &p15639Var -var p15645Var = "function " -var p15645 = &p15645Var -var p15649Var = "thunk from >" -var p15649 = &p15649Var -var p15653Var = "function " -var p15653 = &p15653Var -var p15670Var = "thunk from >" -var p15670 = &p15670Var -var p15685Var = "thunk from >" -var p15685 = &p15685Var -var p15717Var = "thunk from >" -var p15717 = &p15717Var -var p15739Var = "thunk from >>" -var p15739 = &p15739Var -var p15767Var = "thunk from >" -var p15767 = &p15767Var -var p15786Var = "thunk from >" -var p15786 = &p15786Var -var p15805Var = "thunk from >" -var p15805 = &p15805Var -var p15816Var = "object " -var p15816 = &p15816Var -var p15818Var = "object " -var p15818 = &p15818Var -var p15842Var = "object " -var p15842 = &p15842Var -var p15846Var = "object " -var p15846 = &p15846Var -var p15849Var = "object " -var p15849 = &p15849Var -var p15852Var = "object " -var p15852 = &p15852Var -var p15855Var = "object " -var p15855 = &p15855Var -var p15858Var = "object " -var p15858 = &p15858Var -var p15861Var = "object " -var p15861 = &p15861Var -var p15864Var = "object " -var p15864 = &p15864Var -var p15869Var = "thunk from >" -var p15869 = &p15869Var -var p15871Var = "thunk from >" -var p15871 = &p15871Var -var p15877Var = "function " -var p15877 = &p15877Var -var p15881Var = "thunk from >" -var p15881 = &p15881Var -var p15885Var = "function " -var p15885 = &p15885Var -var p15900Var = "thunk from >" -var p15900 = &p15900Var -var p15919Var = "thunk from >" -var p15919 = &p15919Var -var p15927Var = "thunk from >" -var p15927 = &p15927Var -var p15946Var = "thunk from >>" -var p15946 = &p15946Var -var p15980Var = "thunk from >" -var p15980 = &p15980Var -var p16018Var = "thunk from >" -var p16018 = &p16018Var -var p16037Var = "thunk from >>" -var p16037 = &p16037Var -var p16049Var = "thunk from >" -var p16049 = &p16049Var -var p16068Var = "thunk from >" -var p16068 = &p16068Var -var p16079Var = "object " -var p16079 = &p16079Var -var p16081Var = "object " -var p16081 = &p16081Var -var p16105Var = "object " -var p16105 = &p16105Var -var p16109Var = "object " -var p16109 = &p16109Var -var p16112Var = "object " -var p16112 = &p16112Var -var p16115Var = "object " -var p16115 = &p16115Var -var p16118Var = "object " -var p16118 = &p16118Var -var p16121Var = "object " -var p16121 = &p16121Var -var p16124Var = "object " -var p16124 = &p16124Var -var p16127Var = "object " -var p16127 = &p16127Var -var p16132Var = "thunk from >" -var p16132 = &p16132Var -var p16134Var = "thunk from >" -var p16134 = &p16134Var -var p16140Var = "function " -var p16140 = &p16140Var -var p16159Var = "thunk from >" -var p16159 = &p16159Var -var p16166Var = "thunk from >" -var p16166 = &p16166Var -var p16185Var = "thunk from from >>" -var p16185 = &p16185Var -var p16195Var = "thunk from >" -var p16195 = &p16195Var -var p16214Var = "thunk from from >>" -var p16214 = &p16214Var -var p16226Var = "thunk from from >>" -var p16226 = &p16226Var -var p16254Var = "thunk from >" -var p16254 = &p16254Var -var p16265Var = "thunk from from >>" -var p16265 = &p16265Var -var p16277Var = "thunk from from >>" -var p16277 = &p16277Var -var p16283Var = "thunk from >" -var p16283 = &p16283Var -var p16292Var = "thunk from from >>" -var p16292 = &p16292Var -var p16303Var = "thunk from from >>>" -var p16303 = &p16303Var -var p16333Var = "object " -var p16333 = &p16333Var -var p16346Var = "thunk from >" -var p16346 = &p16346Var -var p16369Var = "thunk from >" -var p16369 = &p16369Var -var p16382Var = "thunk from >" -var p16382 = &p16382Var -var p16398Var = "thunk from >" -var p16398 = &p16398Var -var p16419Var = "thunk from >" -var p16419 = &p16419Var -var p16429Var = "object " -var p16429 = &p16429Var -var p16431Var = "object " -var p16431 = &p16431Var -var p16455Var = "object " -var p16455 = &p16455Var -var p16459Var = "object " -var p16459 = &p16459Var -var p16462Var = "object " -var p16462 = &p16462Var -var p16465Var = "object " -var p16465 = &p16465Var -var p16468Var = "object " -var p16468 = &p16468Var -var p16471Var = "object " -var p16471 = &p16471Var -var p16474Var = "object " -var p16474 = &p16474Var -var p16477Var = "object " -var p16477 = &p16477Var -var p16482Var = "thunk from >" -var p16482 = &p16482Var -var p16484Var = "thunk from >" -var p16484 = &p16484Var -var p16490Var = "function " -var p16490 = &p16490Var -var p16499Var = "thunk from >" -var p16499 = &p16499Var -var p16506Var = "object " -var p16506 = &p16506Var -var p16508Var = "object " -var p16508 = &p16508Var -var p16532Var = "object " -var p16532 = &p16532Var -var p16536Var = "object " -var p16536 = &p16536Var -var p16539Var = "object " -var p16539 = &p16539Var -var p16542Var = "object " -var p16542 = &p16542Var -var p16545Var = "object " -var p16545 = &p16545Var -var p16548Var = "object " -var p16548 = &p16548Var -var p16551Var = "object " -var p16551 = &p16551Var -var p16554Var = "object " -var p16554 = &p16554Var -var p16559Var = "thunk from >" -var p16559 = &p16559Var -var p16561Var = "thunk from >" -var p16561 = &p16561Var -var p16567Var = "function " -var p16567 = &p16567Var -var p16576Var = "thunk from >" -var p16576 = &p16576Var -var p16583Var = "object " -var p16583 = &p16583Var -var p16585Var = "object " -var p16585 = &p16585Var -var p16609Var = "object " -var p16609 = &p16609Var -var p16613Var = "object " -var p16613 = &p16613Var -var p16616Var = "object " -var p16616 = &p16616Var -var p16619Var = "object " -var p16619 = &p16619Var -var p16622Var = "object " -var p16622 = &p16622Var -var p16625Var = "object " -var p16625 = &p16625Var -var p16628Var = "object " -var p16628 = &p16628Var -var p16631Var = "object " -var p16631 = &p16631Var -var p16636Var = "thunk from >" -var p16636 = &p16636Var -var p16638Var = "thunk from >" -var p16638 = &p16638Var -var p16644Var = "function " -var p16644 = &p16644Var -var p16653Var = "thunk from >" -var p16653 = &p16653Var -var p16662Var = "object " -var p16662 = &p16662Var -var p16664Var = "object " -var p16664 = &p16664Var -var p16688Var = "object " -var p16688 = &p16688Var -var p16692Var = "object " -var p16692 = &p16692Var -var p16695Var = "object " -var p16695 = &p16695Var -var p16698Var = "object " -var p16698 = &p16698Var -var p16701Var = "object " -var p16701 = &p16701Var -var p16704Var = "object " -var p16704 = &p16704Var -var p16707Var = "object " -var p16707 = &p16707Var -var p16710Var = "object " -var p16710 = &p16710Var -var p16715Var = "thunk from >" -var p16715 = &p16715Var -var p16717Var = "thunk from >" -var p16717 = &p16717Var -var p16723Var = "function " -var p16723 = &p16723Var -var p16732Var = "thunk from >" -var p16732 = &p16732Var -var p16741Var = "object " -var p16741 = &p16741Var -var p16743Var = "object " -var p16743 = &p16743Var -var p16767Var = "object " -var p16767 = &p16767Var -var p16771Var = "object " -var p16771 = &p16771Var -var p16774Var = "object " -var p16774 = &p16774Var -var p16777Var = "object " -var p16777 = &p16777Var -var p16780Var = "object " -var p16780 = &p16780Var -var p16783Var = "object " -var p16783 = &p16783Var -var p16786Var = "object " -var p16786 = &p16786Var -var p16789Var = "object " -var p16789 = &p16789Var -var p16794Var = "thunk from >" -var p16794 = &p16794Var -var p16796Var = "thunk from >" -var p16796 = &p16796Var -var p16802Var = "function " -var p16802 = &p16802Var -var p16806Var = "thunk from >" -var p16806 = &p16806Var -var p16815Var = "thunk from from >>" -var p16815 = &p16815Var -var p16821Var = "thunk from >" -var p16821 = &p16821Var -var p16830Var = "thunk from from >>" -var p16830 = &p16830Var -var p16845Var = "thunk from >" -var p16845 = &p16845Var -var p16861Var = "thunk from >" -var p16861 = &p16861Var -var p16868Var = "thunk from >" -var p16868 = &p16868Var -var p16877Var = "thunk from from >>" -var p16877 = &p16877Var -var p16892Var = "thunk from >" -var p16892 = &p16892Var -var p16903Var = "thunk from >>" -var p16903 = &p16903Var -var p16910Var = "thunk from >" -var p16910 = &p16910Var -var p16914Var = "function " -var p16914 = &p16914Var -var p16954Var = "thunk from >" -var p16954 = &p16954Var -var p16969Var = "thunk from >" -var p16969 = &p16969Var -var p16985Var = "thunk from >" -var p16985 = &p16985Var -var p16992Var = "thunk from >" -var p16992 = &p16992Var -var p17001Var = "thunk from from >>" -var p17001 = &p17001Var -var p17007Var = "thunk from >" -var p17007 = &p17007Var -var p17016Var = "thunk from from >>" -var p17016 = &p17016Var -var p17041Var = "thunk from >" -var p17041 = &p17041Var -var p17048Var = "thunk from >" -var p17048 = &p17048Var -var p17052Var = "function " -var p17052 = &p17052Var -var p17067Var = "thunk from >" -var p17067 = &p17067Var -var p17102Var = "thunk from >" -var p17102 = &p17102Var -var p17117Var = "thunk from >" -var p17117 = &p17117Var -var p17131Var = "thunk from >" -var p17131 = &p17131Var -var p17139Var = "object " -var p17139 = &p17139Var -var p17141Var = "object " -var p17141 = &p17141Var -var p17165Var = "object " -var p17165 = &p17165Var -var p17169Var = "object " -var p17169 = &p17169Var -var p17172Var = "object " -var p17172 = &p17172Var -var p17175Var = "object " -var p17175 = &p17175Var -var p17178Var = "object " -var p17178 = &p17178Var -var p17181Var = "object " -var p17181 = &p17181Var -var p17184Var = "object " -var p17184 = &p17184Var -var p17187Var = "object " -var p17187 = &p17187Var -var p17192Var = "thunk from >" -var p17192 = &p17192Var -var p17194Var = "thunk from >" -var p17194 = &p17194Var -var p17200Var = "function " -var p17200 = &p17200Var -var p17204Var = "thunk from >" -var p17204 = &p17204Var -var p17213Var = "thunk from from >>" -var p17213 = &p17213Var -var p17225Var = "thunk from >" -var p17225 = &p17225Var -var p17237Var = "thunk from >>" -var p17237 = &p17237Var -var p17248Var = "thunk from >>>" -var p17248 = &p17248Var -var p17255Var = "function " -var p17255 = &p17255Var -var p17265Var = "thunk from >>" -var p17265 = &p17265Var -var p17271Var = "object " -var p17271 = &p17271Var -var p17273Var = "object " -var p17273 = &p17273Var -var p17297Var = "object " -var p17297 = &p17297Var -var p17301Var = "object " -var p17301 = &p17301Var -var p17304Var = "object " -var p17304 = &p17304Var -var p17307Var = "object " -var p17307 = &p17307Var -var p17310Var = "object " -var p17310 = &p17310Var -var p17313Var = "object " -var p17313 = &p17313Var -var p17316Var = "object " -var p17316 = &p17316Var -var p17319Var = "object " -var p17319 = &p17319Var -var p17324Var = "thunk from >" -var p17324 = &p17324Var -var p17326Var = "thunk from >" -var p17326 = &p17326Var -var p17332Var = "function " -var p17332 = &p17332Var -var p17336Var = "thunk from >" -var p17336 = &p17336Var -var p17340Var = "function " -var p17340 = &p17340Var -var p17344Var = "thunk from >" -var p17344 = &p17344Var -var p17353Var = "thunk from from >>" -var p17353 = &p17353Var -var p17393Var = "thunk from >" -var p17393 = &p17393Var -var p17420Var = "thunk from >" -var p17420 = &p17420Var -var p17428Var = "thunk from >" -var p17428 = &p17428Var -var p17437Var = "thunk from from >>" -var p17437 = &p17437Var -var p17471Var = "thunk from >" -var p17471 = &p17471Var -var p17480Var = "thunk from >>" -var p17480 = &p17480Var -var p17486Var = "thunk from >" -var p17486 = &p17486Var -var p17495Var = "thunk from >>" -var p17495 = &p17495Var -var p17540Var = "thunk from >" -var p17540 = &p17540Var -var p17549Var = "thunk from >>" -var p17549 = &p17549Var -var p17564Var = "object " -var p17564 = &p17564Var -var p17573Var = "thunk from >" -var p17573 = &p17573Var -var p17589Var = "thunk from >" -var p17589 = &p17589Var -var p1 = &Source{ - lines: []string{ - "/*\n", - "Copyright 2015 Google Inc. All rights reserved.\n", - "\n", - "Licensed under the Apache License, Version 2.0 (the \"License\");\n", - "you may not use this file except in compliance with the License.\n", - "You may obtain a copy of the License at\n", - "\n", - " http://www.apache.org/licenses/LICENSE-2.0\n", - "\n", - "Unless required by applicable law or agreed to in writing, software\n", - "distributed under the License is distributed on an \"AS IS\" BASIS,\n", - "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", - "See the License for the specific language governing permissions and\n", - "limitations under the License.\n", - "*/\n", - "\n", - "/* This is the Jsonnet standard library, at least the parts of it that are written in Jsonnet.\n", - " *\n", - " * There are some native methods as well, which are defined in the interpreter and added to this\n", - " * file. It is never necessary to import std.jsonnet, it is embedded into the interpreter at\n", - " * compile-time and automatically imported into all other Jsonnet programs.\n", - " */\n", - "{\n", - "\n", - " local std = self,\n", - "\n", - " isString(v):: std.type(v) == 'string',\n", - " isNumber(v):: std.type(v) == 'number',\n", - " isBoolean(v):: std.type(v) == 'boolean',\n", - " isObject(v):: std.type(v) == 'object',\n", - " isArray(v):: std.type(v) == 'array',\n", - " isFunction(v):: std.type(v) == 'function',\n", - "\n", - " toString(a)::\n", - " if std.type(a) == 'string' then a else '' + a,\n", - "\n", - " substr(str, from, len)::\n", - " if std.type(str) != 'string' then\n", - " error 'substr first parameter should be a string, got ' + std.type(str)\n", - " else if std.type(from) != 'number' then\n", - " error 'substr second parameter should be a number, got ' + std.type(from)\n", - " else if std.type(len) != 'number' then\n", - " error 'substr third parameter should be a number, got ' + std.type(len)\n", - " else if len < 0 then\n", - " error 'substr third parameter should be greater than zero, got ' + len\n", - " else\n", - " std.join('', std.makeArray(len, function(i) str[i + from])),\n", - "\n", - " startsWith(a, b)::\n", - " if std.length(a) < std.length(b) then\n", - " false\n", - " else\n", - " std.substr(a, 0, std.length(b)) == b,\n", - "\n", - " endsWith(a, b)::\n", - " if std.length(a) < std.length(b) then\n", - " false\n", - " else\n", - " std.substr(a, std.length(a) - std.length(b), std.length(b)) == b,\n", - "\n", - " stringChars(str)::\n", - " std.makeArray(std.length(str), function(i) str[i]),\n", - "\n", - " parseInt(str)::\n", - " local addDigit(aggregate, digit) =\n", - " if digit < 0 || digit > 9 then\n", - " error ('parseInt got string which does not match regex [0-9]+')\n", - " else\n", - " 10 * aggregate + digit;\n", - " local toDigits(str) =\n", - " [std.codepoint(char) - std.codepoint('0') for char in std.stringChars(str)];\n", - " if str[0] == '-' then\n", - " -std.foldl(addDigit, toDigits(str[1:]), 0)\n", - " else\n", - " std.foldl(addDigit, toDigits(str), 0),\n", - "\n", - " split(str, c)::\n", - " if std.type(str) != 'string' then\n", - " error 'std.split first parameter should be a string, got ' + std.type(str)\n", - " else if std.type(c) != 'string' then\n", - " error 'std.split second parameter should be a string, got ' + std.type(c)\n", - " else if std.length(c) != 1 then\n", - " error 'std.split second parameter should have length 1, got ' + std.length(c)\n", - " else\n", - " std.splitLimit(str, c, -1),\n", - "\n", - " splitLimit(str, c, maxsplits)::\n", - " if std.type(str) != 'string' then\n", - " error 'std.splitLimit first parameter should be a string, got ' + std.type(str)\n", - " else if std.type(c) != 'string' then\n", - " error 'std.splitLimit second parameter should be a string, got ' + std.type(c)\n", - " else if std.length(c) != 1 then\n", - " error 'std.splitLimit second parameter should have length 1, got ' + std.length(c)\n", - " else if std.type(maxsplits) != 'number' then\n", - " error 'std.splitLimit third parameter should be a number, got ' + std.type(maxsplits)\n", - " else\n", - " local aux(str, delim, i, arr, v) =\n", - " local c = str[i];\n", - " local i2 = i + 1;\n", - " if i >= std.length(str) then\n", - " arr + [v]\n", - " else if c == delim && (maxsplits == -1 || std.length(arr) < maxsplits) then\n", - " aux(str, delim, i2, arr + [v], '') tailstrict\n", - " else\n", - " aux(str, delim, i2, arr, v + c) tailstrict;\n", - " aux(str, c, 0, [], ''),\n", - "\n", - " strReplace(str, from, to)::\n", - " assert std.type(str) == 'string';\n", - " assert std.type(from) == 'string';\n", - " assert std.type(to) == 'string';\n", - " assert from != '' : \"'from' string must not be zero length.\";\n", - "\n", - " // Cache for performance.\n", - " local str_len = std.length(str);\n", - " local from_len = std.length(from);\n", - "\n", - " // True if from is at str[i].\n", - " local found_at(i) = str[i:i + from_len] == from;\n", - "\n", - " // Return the remainder of 'str' starting with 'start_index' where\n", - " // all occurrences of 'from' after 'curr_index' are replaced with 'to'.\n", - " local replace_after(start_index, curr_index, acc) =\n", - " if curr_index > str_len then\n", - " acc + str[start_index:curr_index]\n", - " else if found_at(curr_index) then\n", - " local new_index = curr_index + std.length(from);\n", - " replace_after(new_index, new_index, acc + str[start_index:curr_index] + to)\n", - " else\n", - " replace_after(start_index, curr_index + 1, acc);\n", - "\n", - " // if from_len==1, then we replace by splitting and rejoining the\n", - " // string which is much faster than recursing on replace_after\n", - " if from_len == 1 then\n", - " std.join(to, std.split(str, from))\n", - " else\n", - " replace_after(0, 0, ''),\n", - "\n", - " asciiUpper(x)::\n", - " local cp = std.codepoint;\n", - " local up_letter(c) = if cp(c) >= 97 && cp(c) < 123 then\n", - " std.char(cp(c) - 32)\n", - " else\n", - " c;\n", - " std.join('', std.map(up_letter, std.stringChars(x))),\n", - "\n", - " asciiLower(x)::\n", - " local cp = std.codepoint;\n", - " local down_letter(c) = if cp(c) >= 65 && cp(c) < 91 then\n", - " std.char(cp(c) + 32)\n", - " else\n", - " c;\n", - " std.join('', std.map(down_letter, std.stringChars(x))),\n", - "\n", - "\n", - " range(from, to)::\n", - " std.makeArray(to - from + 1, function(i) i + from),\n", - "\n", - " slice(indexable, index, end, step)::\n", - " local invar =\n", - " // loop invariant with defaults applied\n", - " {\n", - " indexable: indexable,\n", - " index:\n", - " if index == null then 0\n", - " else index,\n", - " end:\n", - " if end == null then std.length(indexable)\n", - " else end,\n", - " step:\n", - " if step == null then 1\n", - " else step,\n", - " length: std.length(indexable),\n", - " type: std.type(indexable),\n", - " };\n", - " if invar.index < 0 || invar.end < 0 || invar.step < 0 then\n", - " error ('got [%s:%s:%s] but negative index, end, and steps are not supported'\n", - " % [invar.index, invar.end, invar.step])\n", - " else if step == 0 then\n", - " error ('got %s but step must be greater than 0' % step)\n", - " else if std.type(indexable) != 'string' && std.type(indexable) != 'array' then\n", - " error ('std.slice accepts a string or an array, but got: %s' % std.type(indexable))\n", - " else\n", - " local build(slice, cur) =\n", - " if cur >= invar.end || cur >= invar.length then\n", - " slice\n", - " else\n", - " build(\n", - " if invar.type == 'string' then\n", - " slice + invar.indexable[cur]\n", - " else\n", - " slice + [invar.indexable[cur]],\n", - " cur + invar.step\n", - " ) tailstrict;\n", - " build(if invar.type == 'string' then '' else [], invar.index),\n", - "\n", - " count(arr, x):: std.length(std.filter(function(v) v == x, arr)),\n", - "\n", - " mod(a, b)::\n", - " if std.type(a) == 'number' && std.type(b) == 'number' then\n", - " std.modulo(a, b)\n", - " else if std.type(a) == 'string' then\n", - " std.format(a, b)\n", - " else\n", - " error 'Operator % cannot be used on types ' + std.type(a) + ' and ' + std.type(b) + '.',\n", - "\n", - " map(func, arr)::\n", - " if std.type(func) != 'function' then\n", - " error ('std.map first param must be function, got ' + std.type(func))\n", - " else if std.type(arr) != 'array' && std.type(arr) != 'string' then\n", - " error ('std.map second param must be array / string, got ' + std.type(arr))\n", - " else\n", - " std.makeArray(std.length(arr), function(i) func(arr[i])),\n", - "\n", - " mapWithIndex(func, arr)::\n", - " if std.type(func) != 'function' then\n", - " error ('std.mapWithIndex first param must be function, got ' + std.type(func))\n", - " else if std.type(arr) != 'array' && std.type(arr) != 'string' then\n", - " error ('std.mapWithIndex second param must be array, got ' + std.type(arr))\n", - " else\n", - " std.makeArray(std.length(arr), function(i) func(i, arr[i])),\n", - "\n", - " mapWithKey(func, obj)::\n", - " if std.type(func) != 'function' then\n", - " error ('std.mapWithKey first param must be function, got ' + std.type(func))\n", - " else if std.type(obj) != 'object' then\n", - " error ('std.mapWithKey second param must be object, got ' + std.type(obj))\n", - " else\n", - " { [k]: func(k, obj[k]) for k in std.objectFields(obj) },\n", - "\n", - " join(sep, arr)::\n", - " local aux(arr, i, first, running) =\n", - " if i >= std.length(arr) then\n", - " running\n", - " else if arr[i] == null then\n", - " aux(arr, i + 1, first, running) tailstrict\n", - " else if std.type(arr[i]) != std.type(sep) then\n", - " error 'expected %s but arr[%d] was %s ' % [std.type(sep), i, std.type(arr[i])]\n", - " else if first then\n", - " aux(arr, i + 1, false, running + arr[i]) tailstrict\n", - " else\n", - " aux(arr, i + 1, false, running + sep + arr[i]) tailstrict;\n", - " if std.type(arr) != 'array' then\n", - " error 'join second parameter should be array, got ' + std.type(arr)\n", - " else if std.type(sep) == 'string' then\n", - " aux(arr, 0, true, '')\n", - " else if std.type(sep) == 'array' then\n", - " aux(arr, 0, true, [])\n", - " else\n", - " error 'join first parameter should be string or array, got ' + std.type(sep),\n", - "\n", - " lines(arr)::\n", - " std.join('\\n', arr + ['']),\n", - "\n", - " deepJoin(arr)::\n", - " if std.isString(arr) then\n", - " arr\n", - " else if std.isArray(arr) then\n", - " std.join('', [std.deepJoin(x) for x in arr])\n", - " else\n", - " error 'Expected string or array, got %s' % std.type(arr),\n", - "\n", - "\n", - " format(str, vals)::\n", - "\n", - " /////////////////////////////\n", - " // Parse the mini-language //\n", - " /////////////////////////////\n", - "\n", - " local try_parse_mapping_key(str, i) =\n", - " if i >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[i];\n", - " if c == '(' then\n", - " local consume(str, j, v) =\n", - " if j >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[j];\n", - " if c != ')' then\n", - " consume(str, j + 1, v + c)\n", - " else\n", - " { i: j + 1, v: v };\n", - " consume(str, i + 1, '')\n", - " else\n", - " { i: i, v: null };\n", - "\n", - " local try_parse_cflags(str, i) =\n", - " local consume(str, j, v) =\n", - " if j >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[j];\n", - " if c == '#' then\n", - " consume(str, j + 1, v { alt: true })\n", - " else if c == '0' then\n", - " consume(str, j + 1, v { zero: true })\n", - " else if c == '-' then\n", - " consume(str, j + 1, v { left: true })\n", - " else if c == ' ' then\n", - " consume(str, j + 1, v { blank: true })\n", - " else if c == '+' then\n", - " consume(str, j + 1, v { sign: true })\n", - " else\n", - " { i: j, v: v };\n", - " consume(str, i, { alt: false, zero: false, left: false, blank: false, sign: false });\n", - "\n", - " local try_parse_field_width(str, i) =\n", - " if i < std.length(str) && str[i] == '*' then\n", - " { i: i + 1, v: '*' }\n", - " else\n", - " local consume(str, j, v) =\n", - " if j >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[j];\n", - " if c == '0' then\n", - " consume(str, j + 1, v * 10 + 0)\n", - " else if c == '1' then\n", - " consume(str, j + 1, v * 10 + 1)\n", - " else if c == '2' then\n", - " consume(str, j + 1, v * 10 + 2)\n", - " else if c == '3' then\n", - " consume(str, j + 1, v * 10 + 3)\n", - " else if c == '4' then\n", - " consume(str, j + 1, v * 10 + 4)\n", - " else if c == '5' then\n", - " consume(str, j + 1, v * 10 + 5)\n", - " else if c == '6' then\n", - " consume(str, j + 1, v * 10 + 6)\n", - " else if c == '7' then\n", - " consume(str, j + 1, v * 10 + 7)\n", - " else if c == '8' then\n", - " consume(str, j + 1, v * 10 + 8)\n", - " else if c == '9' then\n", - " consume(str, j + 1, v * 10 + 9)\n", - " else\n", - " { i: j, v: v };\n", - " consume(str, i, 0);\n", - "\n", - " local try_parse_precision(str, i) =\n", - " if i >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[i];\n", - " if c == '.' then\n", - " try_parse_field_width(str, i + 1)\n", - " else\n", - " { i: i, v: null };\n", - "\n", - " // Ignored, if it exists.\n", - " local try_parse_length_modifier(str, i) =\n", - " if i >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[i];\n", - " if c == 'h' || c == 'l' || c == 'L' then\n", - " i + 1\n", - " else\n", - " i;\n", - "\n", - " local parse_conv_type(str, i) =\n", - " if i >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local c = str[i];\n", - " if c == 'd' || c == 'i' || c == 'u' then\n", - " { i: i + 1, v: 'd', caps: false }\n", - " else if c == 'o' then\n", - " { i: i + 1, v: 'o', caps: false }\n", - " else if c == 'x' then\n", - " { i: i + 1, v: 'x', caps: false }\n", - " else if c == 'X' then\n", - " { i: i + 1, v: 'x', caps: true }\n", - " else if c == 'e' then\n", - " { i: i + 1, v: 'e', caps: false }\n", - " else if c == 'E' then\n", - " { i: i + 1, v: 'e', caps: true }\n", - " else if c == 'f' then\n", - " { i: i + 1, v: 'f', caps: false }\n", - " else if c == 'F' then\n", - " { i: i + 1, v: 'f', caps: true }\n", - " else if c == 'g' then\n", - " { i: i + 1, v: 'g', caps: false }\n", - " else if c == 'G' then\n", - " { i: i + 1, v: 'g', caps: true }\n", - " else if c == 'c' then\n", - " { i: i + 1, v: 'c', caps: false }\n", - " else if c == 's' then\n", - " { i: i + 1, v: 's', caps: false }\n", - " else if c == '%' then\n", - " { i: i + 1, v: '%', caps: false }\n", - " else\n", - " error 'Unrecognised conversion type: ' + c;\n", - "\n", - "\n", - " // Parsed initial %, now the rest.\n", - " local parse_code(str, i) =\n", - " if i >= std.length(str) then\n", - " error 'Truncated format code.'\n", - " else\n", - " local mkey = try_parse_mapping_key(str, i);\n", - " local cflags = try_parse_cflags(str, mkey.i);\n", - " local fw = try_parse_field_width(str, cflags.i);\n", - " local prec = try_parse_precision(str, fw.i);\n", - " local len_mod = try_parse_length_modifier(str, prec.i);\n", - " local ctype = parse_conv_type(str, len_mod);\n", - " {\n", - " i: ctype.i,\n", - " code: {\n", - " mkey: mkey.v,\n", - " cflags: cflags.v,\n", - " fw: fw.v,\n", - " prec: prec.v,\n", - " ctype: ctype.v,\n", - " caps: ctype.caps,\n", - " },\n", - " };\n", - "\n", - " // Parse a format string (containing none or more % format tags).\n", - " local parse_codes(str, i, out, cur) =\n", - " if i >= std.length(str) then\n", - " out + [cur]\n", - " else\n", - " local c = str[i];\n", - " if c == '%' then\n", - " local r = parse_code(str, i + 1);\n", - " parse_codes(str, r.i, out + [cur, r.code], '') tailstrict\n", - " else\n", - " parse_codes(str, i + 1, out, cur + c) tailstrict;\n", - "\n", - " local codes = parse_codes(str, 0, [], '');\n", - "\n", - "\n", - " ///////////////////////\n", - " // Format the values //\n", - " ///////////////////////\n", - "\n", - " // Useful utilities\n", - " local padding(w, s) =\n", - " local aux(w, v) =\n", - " if w <= 0 then\n", - " v\n", - " else\n", - " aux(w - 1, v + s);\n", - " aux(w, '');\n", - "\n", - " // Add s to the left of str so that its length is at least w.\n", - " local pad_left(str, w, s) =\n", - " padding(w - std.length(str), s) + str;\n", - "\n", - " // Add s to the right of str so that its length is at least w.\n", - " local pad_right(str, w, s) =\n", - " str + padding(w - std.length(str), s);\n", - "\n", - " // Render an integer (e.g., decimal or octal).\n", - " local render_int(n__, min_chars, min_digits, blank, sign, radix, zero_prefix) =\n", - " local n_ = std.abs(n__);\n", - " local aux(n) =\n", - " if n == 0 then\n", - " zero_prefix\n", - " else\n", - " aux(std.floor(n / radix)) + (n % radix);\n", - " local dec = if std.floor(n_) == 0 then '0' else aux(std.floor(n_));\n", - " local neg = n__ < 0;\n", - " local zp = min_chars - (if neg || blank || sign then 1 else 0);\n", - " local zp2 = std.max(zp, min_digits);\n", - " local dec2 = pad_left(dec, zp2, '0');\n", - " (if neg then '-' else if sign then '+' else if blank then ' ' else '') + dec2;\n", - "\n", - " // Render an integer in hexadecimal.\n", - " local render_hex(n__, min_chars, min_digits, blank, sign, add_zerox, capitals) =\n", - " local numerals = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n", - " + if capitals then ['A', 'B', 'C', 'D', 'E', 'F']\n", - " else ['a', 'b', 'c', 'd', 'e', 'f'];\n", - " local n_ = std.abs(n__);\n", - " local aux(n) =\n", - " if n == 0 then\n", - " ''\n", - " else\n", - " aux(std.floor(n / 16)) + numerals[n % 16];\n", - " local hex = if std.floor(n_) == 0 then '0' else aux(std.floor(n_));\n", - " local neg = n__ < 0;\n", - " local zp = min_chars - (if neg || blank || sign then 1 else 0)\n", - " - (if add_zerox then 2 else 0);\n", - " local zp2 = std.max(zp, min_digits);\n", - " local hex2 = (if add_zerox then (if capitals then '0X' else '0x') else '')\n", - " + pad_left(hex, zp2, '0');\n", - " (if neg then '-' else if sign then '+' else if blank then ' ' else '') + hex2;\n", - "\n", - " local strip_trailing_zero(str) =\n", - " local aux(str, i) =\n", - " if i < 0 then\n", - " ''\n", - " else\n", - " if str[i] == '0' then\n", - " aux(str, i - 1)\n", - " else\n", - " std.substr(str, 0, i + 1);\n", - " aux(str, std.length(str) - 1);\n", - "\n", - " // Render floating point in decimal form\n", - " local render_float_dec(n__, zero_pad, blank, sign, ensure_pt, trailing, prec) =\n", - " local n_ = std.abs(n__);\n", - " local whole = std.floor(n_);\n", - " local dot_size = if prec == 0 && !ensure_pt then 0 else 1;\n", - " local zp = zero_pad - prec - dot_size;\n", - " local str = render_int(std.sign(n__) * whole, zp, 0, blank, sign, 10, '');\n", - " if prec == 0 then\n", - " str + if ensure_pt then '.' else ''\n", - " else\n", - " local frac = std.floor((n_ - whole) * std.pow(10, prec) + 0.5);\n", - " if trailing || frac > 0 then\n", - " local frac_str = render_int(frac, prec, 0, false, false, 10, '');\n", - " str + '.' + if !trailing then strip_trailing_zero(frac_str) else frac_str\n", - " else\n", - " str;\n", - "\n", - " // Render floating point in scientific form\n", - " local render_float_sci(n__, zero_pad, blank, sign, ensure_pt, trailing, caps, prec) =\n", - " local exponent = std.floor(std.log(std.abs(n__)) / std.log(10));\n", - " local suff = (if caps then 'E' else 'e')\n", - " + render_int(exponent, 3, 0, false, true, 10, '');\n", - " local mantissa = n__ / std.pow(10, exponent);\n", - " local zp2 = zero_pad - std.length(suff);\n", - " render_float_dec(mantissa, zp2, blank, sign, ensure_pt, trailing, prec) + suff;\n", - "\n", - " // Render a value with an arbitrary format code.\n", - " local format_code(val, code, fw, prec_or_null, i) =\n", - " local cflags = code.cflags;\n", - " local fpprec = if prec_or_null != null then prec_or_null else 6;\n", - " local iprec = if prec_or_null != null then prec_or_null else 0;\n", - " local zp = if cflags.zero && !cflags.left then fw else 0;\n", - " if code.ctype == 's' then\n", - " std.toString(val)\n", - " else if code.ctype == 'd' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " render_int(val, zp, iprec, cflags.blank, cflags.sign, 10, '')\n", - " else if code.ctype == 'o' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " local zero_prefix = if cflags.alt then '0' else '';\n", - " render_int(val, zp, iprec, cflags.blank, cflags.sign, 8, zero_prefix)\n", - " else if code.ctype == 'x' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " render_hex(val,\n", - " zp,\n", - " iprec,\n", - " cflags.blank,\n", - " cflags.sign,\n", - " cflags.alt,\n", - " code.caps)\n", - " else if code.ctype == 'f' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " render_float_dec(val,\n", - " zp,\n", - " cflags.blank,\n", - " cflags.sign,\n", - " cflags.alt,\n", - " true,\n", - " fpprec)\n", - " else if code.ctype == 'e' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " render_float_sci(val,\n", - " zp,\n", - " cflags.blank,\n", - " cflags.sign,\n", - " cflags.alt,\n", - " true,\n", - " code.caps,\n", - " fpprec)\n", - " else if code.ctype == 'g' then\n", - " if std.type(val) != 'number' then\n", - " error 'Format required number at '\n", - " + i + ', got ' + std.type(val)\n", - " else\n", - " local exponent = std.floor(std.log(std.abs(val)) / std.log(10));\n", - " if exponent < -4 || exponent >= fpprec then\n", - " render_float_sci(val,\n", - " zp,\n", - " cflags.blank,\n", - " cflags.sign,\n", - " cflags.alt,\n", - " cflags.alt,\n", - " code.caps,\n", - " fpprec - 1)\n", - " else\n", - " local digits_before_pt = std.max(1, exponent + 1);\n", - " render_float_dec(val,\n", - " zp,\n", - " cflags.blank,\n", - " cflags.sign,\n", - " cflags.alt,\n", - " cflags.alt,\n", - " fpprec - digits_before_pt)\n", - " else if code.ctype == 'c' then\n", - " if std.type(val) == 'number' then\n", - " std.char(val)\n", - " else if std.type(val) == 'string' then\n", - " if std.length(val) == 1 then\n", - " val\n", - " else\n", - " error '%c expected 1-sized string got: ' + std.length(val)\n", - " else\n", - " error '%c expected number / string, got: ' + std.type(val)\n", - " else\n", - " error 'Unknown code: ' + code.ctype;\n", - "\n", - " // Render a parsed format string with an array of values.\n", - " local format_codes_arr(codes, arr, i, j, v) =\n", - " if i >= std.length(codes) then\n", - " if j < std.length(arr) then\n", - " error ('Too many values to format: ' + std.length(arr) + ', expected ' + j)\n", - " else\n", - " v\n", - " else\n", - " local code = codes[i];\n", - " if std.type(code) == 'string' then\n", - " format_codes_arr(codes, arr, i + 1, j, v + code) tailstrict\n", - " else\n", - " local tmp = if code.fw == '*' then {\n", - " j: j + 1,\n", - " fw: if j >= std.length(arr) then\n", - " error 'Not enough values to format: ' + std.length(arr)\n", - " else\n", - " arr[j],\n", - " } else {\n", - " j: j,\n", - " fw: code.fw,\n", - " };\n", - " local tmp2 = if code.prec == '*' then {\n", - " j: tmp.j + 1,\n", - " prec: if tmp.j >= std.length(arr) then\n", - " error 'Not enough values to format: ' + std.length(arr)\n", - " else\n", - " arr[tmp.j],\n", - " } else {\n", - " j: tmp.j,\n", - " prec: code.prec,\n", - " };\n", - " local j2 = tmp2.j;\n", - " local val =\n", - " if j2 < std.length(arr) then\n", - " arr[j2]\n", - " else\n", - " error 'Not enough values to format, got ' + std.length(arr);\n", - " local s =\n", - " if code.ctype == '%' then\n", - " '%'\n", - " else\n", - " format_code(val, code, tmp.fw, tmp2.prec, j2);\n", - " local s_padded =\n", - " if code.cflags.left then\n", - " pad_right(s, tmp.fw, ' ')\n", - " else\n", - " pad_left(s, tmp.fw, ' ');\n", - " local j3 =\n", - " if code.ctype == '%' then\n", - " j2\n", - " else\n", - " j2 + 1;\n", - " format_codes_arr(codes, arr, i + 1, j3, v + s_padded) tailstrict;\n", - "\n", - " // Render a parsed format string with an object of values.\n", - " local format_codes_obj(codes, obj, i, v) =\n", - " if i >= std.length(codes) then\n", - " v\n", - " else\n", - " local code = codes[i];\n", - " if std.type(code) == 'string' then\n", - " format_codes_obj(codes, obj, i + 1, v + code) tailstrict\n", - " else\n", - " local f =\n", - " if code.mkey == null then\n", - " error 'Mapping keys required.'\n", - " else\n", - " code.mkey;\n", - " local fw =\n", - " if code.fw == '*' then\n", - " error 'Cannot use * field width with object.'\n", - " else\n", - " code.fw;\n", - " local prec =\n", - " if code.prec == '*' then\n", - " error 'Cannot use * precision with object.'\n", - " else\n", - " code.prec;\n", - " local val =\n", - " if std.objectHasAll(obj, f) then\n", - " obj[f]\n", - " else\n", - " error 'No such field: ' + f;\n", - " local s =\n", - " if code.ctype == '%' then\n", - " '%'\n", - " else\n", - " format_code(val, code, fw, prec, f);\n", - " local s_padded =\n", - " if code.cflags.left then\n", - " pad_right(s, fw, ' ')\n", - " else\n", - " pad_left(s, fw, ' ');\n", - " format_codes_obj(codes, obj, i + 1, v + s_padded) tailstrict;\n", - "\n", - " if std.type(vals) == 'array' then\n", - " format_codes_arr(codes, vals, 0, 0, '')\n", - " else if std.type(vals) == 'object' then\n", - " format_codes_obj(codes, vals, 0, '')\n", - " else\n", - " format_codes_arr(codes, [vals], 0, 0, ''),\n", - "\n", - " foldr(func, arr, init)::\n", - " local aux(func, arr, running, idx) =\n", - " if idx < 0 then\n", - " running\n", - " else\n", - " aux(func, arr, func(arr[idx], running), idx - 1) tailstrict;\n", - " aux(func, arr, init, std.length(arr) - 1),\n", - "\n", - " foldl(func, arr, init)::\n", - " local aux(func, arr, running, idx) =\n", - " if idx >= std.length(arr) then\n", - " running\n", - " else\n", - " aux(func, arr, func(running, arr[idx]), idx + 1) tailstrict;\n", - " aux(func, arr, init, 0),\n", - "\n", - "\n", - " filterMap(filter_func, map_func, arr)::\n", - " if std.type(filter_func) != 'function' then\n", - " error ('std.filterMap first param must be function, got ' + std.type(filter_func))\n", - " else if std.type(map_func) != 'function' then\n", - " error ('std.filterMap second param must be function, got ' + std.type(map_func))\n", - " else if std.type(arr) != 'array' then\n", - " error ('std.filterMap third param must be array, got ' + std.type(arr))\n", - " else\n", - " std.map(map_func, std.filter(filter_func, arr)),\n", - "\n", - " assertEqual(a, b)::\n", - " if a == b then\n", - " true\n", - " else\n", - " error 'Assertion failed. ' + a + ' != ' + b,\n", - "\n", - " abs(n)::\n", - " if std.type(n) != 'number' then\n", - " error 'std.abs expected number, got ' + std.type(n)\n", - " else\n", - " if n > 0 then n else -n,\n", - "\n", - " sign(n)::\n", - " if std.type(n) != 'number' then\n", - " error 'std.sign expected number, got ' + std.type(n)\n", - " else\n", - " if n > 0 then\n", - " 1\n", - " else if n < 0 then\n", - " -1\n", - " else 0,\n", - "\n", - " max(a, b)::\n", - " if std.type(a) != 'number' then\n", - " error 'std.max first param expected number, got ' + std.type(a)\n", - " else if std.type(b) != 'number' then\n", - " error 'std.max second param expected number, got ' + std.type(b)\n", - " else\n", - " if a > b then a else b,\n", - "\n", - " min(a, b)::\n", - " if std.type(a) != 'number' then\n", - " error 'std.max first param expected number, got ' + std.type(a)\n", - " else if std.type(b) != 'number' then\n", - " error 'std.max second param expected number, got ' + std.type(b)\n", - " else\n", - " if a < b then a else b,\n", - "\n", - " flattenArrays(arrs)::\n", - " std.foldl(function(a, b) a + b, arrs, []),\n", - "\n", - " manifestIni(ini)::\n", - " local body_lines(body) =\n", - " std.join([], [\n", - " local value_or_values = body[k];\n", - " if std.type(value_or_values) == 'array' then\n", - " ['%s = %s' % [k, value] for value in value_or_values]\n", - " else\n", - " ['%s = %s' % [k, value_or_values]]\n", - "\n", - " for k in std.objectFields(body)\n", - " ]);\n", - "\n", - " local section_lines(sname, sbody) = ['[%s]' % [sname]] + body_lines(sbody),\n", - " main_body = if std.objectHas(ini, 'main') then body_lines(ini.main) else [],\n", - " all_sections = [\n", - " section_lines(k, ini.sections[k])\n", - " for k in std.objectFields(ini.sections)\n", - " ];\n", - " std.join('\\n', main_body + std.flattenArrays(all_sections) + ['']),\n", - "\n", - " escapeStringJson(str_)::\n", - " local str = std.toString(str_);\n", - " local trans(ch) =\n", - " if ch == '\"' then\n", - " '\\\\\"'\n", - " else if ch == '\\\\' then\n", - " '\\\\\\\\'\n", - " else if ch == '\\b' then\n", - " '\\\\b'\n", - " else if ch == '\\f' then\n", - " '\\\\f'\n", - " else if ch == '\\n' then\n", - " '\\\\n'\n", - " else if ch == '\\r' then\n", - " '\\\\r'\n", - " else if ch == '\\t' then\n", - " '\\\\t'\n", - " else\n", - " local cp = std.codepoint(ch);\n", - " if cp < 32 || (cp >= 126 && cp <= 159) then\n", - " '\\\\u%04x' % [cp]\n", - " else\n", - " ch;\n", - " '\"%s\"' % std.join('', [trans(ch) for ch in std.stringChars(str)]),\n", - "\n", - " escapeStringPython(str)::\n", - " std.escapeStringJson(str),\n", - "\n", - " escapeStringBash(str_)::\n", - " local str = std.toString(str_);\n", - " local trans(ch) =\n", - " if ch == \"'\" then\n", - " \"'\\\"'\\\"'\"\n", - " else\n", - " ch;\n", - " \"'%s'\" % std.join('', [trans(ch) for ch in std.stringChars(str)]),\n", - "\n", - " escapeStringDollars(str_)::\n", - " local str = std.toString(str_);\n", - " local trans(ch) =\n", - " if ch == '$' then\n", - " '$$'\n", - " else\n", - " ch;\n", - " std.foldl(function(a, b) a + trans(b), std.stringChars(str), ''),\n", - "\n", - " manifestJson(value):: std.manifestJsonEx(value, ' '),\n", - "\n", - " manifestJsonEx(value, indent)::\n", - " local aux(v, path, cindent) =\n", - " if v == true then\n", - " 'true'\n", - " else if v == false then\n", - " 'false'\n", - " else if v == null then\n", - " 'null'\n", - " else if std.type(v) == 'number' then\n", - " '' + v\n", - " else if std.type(v) == 'string' then\n", - " std.escapeStringJson(v)\n", - " else if std.type(v) == 'function' then\n", - " error 'Tried to manifest function at ' + path\n", - " else if std.type(v) == 'array' then\n", - " local range = std.range(0, std.length(v) - 1);\n", - " local new_indent = cindent + indent;\n", - " local lines = ['[\\n']\n", - " + std.join([',\\n'],\n", - " [\n", - " [new_indent + aux(v[i], path + [i], new_indent)]\n", - " for i in range\n", - " ])\n", - " + ['\\n' + cindent + ']'];\n", - " std.join('', lines)\n", - " else if std.type(v) == 'object' then\n", - " local lines = ['{\\n']\n", - " + std.join([',\\n'],\n", - " [\n", - " [cindent + indent + std.escapeStringJson(k) + ': '\n", - " + aux(v[k], path + [k], cindent + indent)]\n", - " for k in std.objectFields(v)\n", - " ])\n", - " + ['\\n' + cindent + '}'];\n", - " std.join('', lines);\n", - " aux(value, [], ''),\n", - "\n", - " manifestYamlDoc(value)::\n", - " local aux(v, in_object, path, cindent) =\n", - " if v == true then\n", - " 'true'\n", - " else if v == false then\n", - " 'false'\n", - " else if v == null then\n", - " 'null'\n", - " else if std.type(v) == 'number' then\n", - " '' + v\n", - " else if std.type(v) == 'string' then\n", - " local len = std.length(v);\n", - " if len == 0 then\n", - " '\"\"'\n", - " else if v[len - 1] == '\\n' then\n", - " local split = std.split(v, '\\n');\n", - " std.join('\\n' + cindent, ['|'] + split[0:std.length(split) - 1])\n", - " else\n", - " std.escapeStringJson(v)\n", - " else if std.type(v) == 'function' then\n", - " error 'Tried to manifest function at ' + path\n", - " else if std.type(v) == 'array' then\n", - " if std.length(v) == 0 then\n", - " '[]'\n", - " else\n", - " local range = std.range(0, std.length(v) - 1);\n", - " local actual_indent = if in_object then cindent[2:] else cindent;\n", - " local parts = [aux(v[i], false, path + [i], cindent) for i in range];\n", - " (if in_object then '\\n' + actual_indent else '')\n", - " + '- ' + std.join('\\n' + actual_indent + '- ', parts)\n", - " else if std.type(v) == 'object' then\n", - " if std.length(v) == 0 then\n", - " '{}'\n", - " else\n", - " local new_indent = cindent + ' ';\n", - " local lines = [\n", - " std.escapeStringJson(k) + ': ' + aux(v[k], true, path + [k], new_indent)\n", - " for k in std.objectFields(v)\n", - " ];\n", - " (if in_object then '\\n' + cindent else '') + std.join('\\n' + cindent, lines);\n", - " aux(value, false, [], ''),\n", - "\n", - " manifestYamlStream(value)::\n", - " if std.type(value) != 'array' then\n", - " error 'manifestYamlStream only takes arrays, got ' + std.type(value)\n", - " else\n", - " '---\\n' + std.join('\\n---\\n', [std.manifestYamlDoc(e) for e in value]) + '\\n...\\n',\n", - "\n", - "\n", - " manifestPython(o)::\n", - " if std.type(o) == 'object' then\n", - " local fields = [\n", - " '%s: %s' % [std.escapeStringPython(k), std.manifestPython(o[k])]\n", - " for k in std.objectFields(o)\n", - " ];\n", - " '{%s}' % [std.join(', ', fields)]\n", - " else if std.type(o) == 'array' then\n", - " '[%s]' % [std.join(', ', [std.manifestPython(o2) for o2 in o])]\n", - " else if std.type(o) == 'string' then\n", - " '%s' % [std.escapeStringPython(o)]\n", - " else if std.type(o) == 'function' then\n", - " error 'cannot manifest function'\n", - " else if std.type(o) == 'number' then\n", - " std.toString(o)\n", - " else if o == true then\n", - " 'True'\n", - " else if o == false then\n", - " 'False'\n", - " else if o == null then\n", - " 'None',\n", - "\n", - " manifestPythonVars(conf)::\n", - " local vars = ['%s = %s' % [k, std.manifestPython(conf[k])] for k in std.objectFields(conf)];\n", - " std.join('\\n', vars + ['']),\n", - "\n", - " manifestXmlJsonml(value)::\n", - " if !std.isArray(value) then\n", - " error 'Expected a JSONML value (an array), got %s' % std.type(value)\n", - " else\n", - " local aux(v) =\n", - " if std.isString(v) then\n", - " v\n", - " else\n", - " local tag = v[0];\n", - " local has_attrs = std.length(v) > 1 && std.type(v[1]) == 'object';\n", - " local attrs = if has_attrs then v[1] else {};\n", - " local children = if has_attrs then v[2:] else v[1:];\n", - " local attrs_str =\n", - " std.join('', [' %s=\"%s\"' % [k, attrs[k]] for k in std.objectFields(attrs)]);\n", - " std.deepJoin(['<', tag, attrs_str, '>', [aux(x) for x in children], '']);\n", - "\n", - " aux(value),\n", - "\n", - " local base64_table = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n", - " local base64_inv = { [base64_table[i]]: i for i in std.range(0, 63) },\n", - "\n", - " base64(input)::\n", - " local bytes =\n", - " if std.type(input) == 'string' then\n", - " std.map(function(c) std.codepoint(c), input)\n", - " else\n", - " input;\n", - "\n", - " local aux(arr, i, r) =\n", - " if i >= std.length(arr) then\n", - " r\n", - " else if i + 1 >= std.length(arr) then\n", - " local str =\n", - " // 6 MSB of i\n", - " base64_table[(arr[i] & 252) >> 2] +\n", - " // 2 LSB of i\n", - " base64_table[(arr[i] & 3) << 4] +\n", - " '==';\n", - " aux(arr, i + 3, r + str) tailstrict\n", - " else if i + 2 >= std.length(arr) then\n", - " local str =\n", - " // 6 MSB of i\n", - " base64_table[(arr[i] & 252) >> 2] +\n", - " // 2 LSB of i, 4 MSB of i+1\n", - " base64_table[(arr[i] & 3) << 4 | (arr[i + 1] & 240) >> 4] +\n", - " // 4 LSB of i+1\n", - " base64_table[(arr[i + 1] & 15) << 2] +\n", - " '=';\n", - " aux(arr, i + 3, r + str) tailstrict\n", - " else\n", - " local str =\n", - " // 6 MSB of i\n", - " base64_table[(arr[i] & 252) >> 2] +\n", - " // 2 LSB of i, 4 MSB of i+1\n", - " base64_table[(arr[i] & 3) << 4 | (arr[i + 1] & 240) >> 4] +\n", - " // 4 LSB of i+1, 2 MSB of i+2\n", - " base64_table[(arr[i + 1] & 15) << 2 | (arr[i + 2] & 192) >> 6] +\n", - " // 6 LSB of i+2\n", - " base64_table[(arr[i + 2] & 63)];\n", - " aux(arr, i + 3, r + str) tailstrict;\n", - "\n", - " local sanity = std.foldl(function(r, a) r && (a < 256), bytes, true);\n", - " if !sanity then\n", - " error 'Can only base64 encode strings / arrays of single bytes.'\n", - " else\n", - " aux(bytes, 0, ''),\n", - "\n", - "\n", - " base64DecodeBytes(str)::\n", - " if std.length(str) % 4 != 0 then\n", - " error 'Not a base64 encoded string \"%s\"' % str\n", - " else\n", - " local aux(str, i, r) =\n", - " if i >= std.length(str) then\n", - " r\n", - " else\n", - " // all 6 bits of i, 2 MSB of i+1\n", - " local n1 = [base64_inv[str[i]] << 2 | (base64_inv[str[i + 1]] >> 4)];\n", - " // 4 LSB of i+1, 4MSB of i+2\n", - " local n2 =\n", - " if str[i + 2] == '=' then []\n", - " else [(base64_inv[str[i + 1]] & 15) << 4 | (base64_inv[str[i + 2]] >> 2)];\n", - " // 2 LSB of i+2, all 6 bits of i+3\n", - " local n3 =\n", - " if str[i + 3] == '=' then []\n", - " else [(base64_inv[str[i + 2]] & 3) << 6 | base64_inv[str[i + 3]]];\n", - " aux(str, i + 4, r + n1 + n2 + n3) tailstrict;\n", - " aux(str, 0, []),\n", - "\n", - " base64Decode(str)::\n", - " local bytes = std.base64DecodeBytes(str);\n", - " std.join('', std.map(function(b) std.char(b), bytes)),\n", - "\n", - " // Quicksort\n", - " sort(arr)::\n", - " local l = std.length(arr);\n", - " if std.length(arr) == 0 then\n", - " []\n", - " else\n", - " local pivot = arr[0];\n", - " local rest = std.makeArray(l - 1, function(i) arr[i + 1]);\n", - " local left = std.filter(function(x) x <= pivot, rest);\n", - " local right = std.filter(function(x) x > pivot, rest);\n", - " std.sort(left) + [pivot] + std.sort(right),\n", - "\n", - " uniq(arr)::\n", - " local f(a, b) =\n", - " if std.length(a) == 0 then\n", - " [b]\n", - " else if a[std.length(a) - 1] == b then\n", - " a\n", - " else\n", - " a + [b];\n", - " std.foldl(f, arr, []),\n", - "\n", - " set(arr)::\n", - " std.uniq(std.sort(arr)),\n", - "\n", - " setMember(x, arr)::\n", - " // TODO(dcunnin): Binary chop for O(log n) complexity\n", - " std.length(std.setInter([x], arr)) > 0,\n", - "\n", - " setUnion(a, b)::\n", - " std.set(a + b),\n", - "\n", - " setInter(a, b)::\n", - " local aux(a, b, i, j, acc) =\n", - " if i >= std.length(a) || j >= std.length(b) then\n", - " acc\n", - " else\n", - " if a[i] == b[j] then\n", - " aux(a, b, i + 1, j + 1, acc + [a[i]]) tailstrict\n", - " else if a[i] < b[j] then\n", - " aux(a, b, i + 1, j, acc) tailstrict\n", - " else\n", - " aux(a, b, i, j + 1, acc) tailstrict;\n", - " aux(a, b, 0, 0, []) tailstrict,\n", - "\n", - " setDiff(a, b)::\n", - " local aux(a, b, i, j, acc) =\n", - " if i >= std.length(a) then\n", - " acc\n", - " else if j >= std.length(b) then\n", - " aux(a, b, i + 1, j, acc + [a[i]]) tailstrict\n", - " else\n", - " if a[i] == b[j] then\n", - " aux(a, b, i + 1, j + 1, acc) tailstrict\n", - " else if a[i] < b[j] then\n", - " aux(a, b, i + 1, j, acc + [a[i]]) tailstrict\n", - " else\n", - " aux(a, b, i, j + 1, acc) tailstrict;\n", - " aux(a, b, 0, 0, []) tailstrict,\n", - "\n", - " mergePatch(target, patch)::\n", - " if std.type(patch) == 'object' then\n", - " local target_object =\n", - " if std.type(target) == 'object' then target else {};\n", - "\n", - " local target_fields =\n", - " if std.type(target_object) == 'object' then std.objectFields(target_object) else [];\n", - "\n", - " local null_fields = [k for k in std.objectFields(patch) if patch[k] == null];\n", - " local both_fields = std.setUnion(target_fields, std.objectFields(patch));\n", - "\n", - " {\n", - " [k]:\n", - " if !std.objectHas(patch, k) then\n", - " target_object[k]\n", - " else if !std.objectHas(target_object, k) then\n", - " std.mergePatch(null, patch[k]) tailstrict\n", - " else\n", - " std.mergePatch(target_object[k], patch[k]) tailstrict\n", - " for k in std.setDiff(both_fields, null_fields)\n", - " }\n", - " else\n", - " patch,\n", - "\n", - " objectFields(o)::\n", - " std.objectFieldsEx(o, false),\n", - "\n", - " objectFieldsAll(o)::\n", - " std.objectFieldsEx(o, true),\n", - "\n", - " objectHas(o, f)::\n", - " std.objectHasEx(o, f, false),\n", - "\n", - " objectHasAll(o, f)::\n", - " std.objectHasEx(o, f, true),\n", - "\n", - " equals(a, b)::\n", - " local ta = std.type(a);\n", - " local tb = std.type(b);\n", - " if !std.primitiveEquals(ta, tb) then\n", - " false\n", - " else\n", - " if std.primitiveEquals(ta, 'array') then\n", - " local la = std.length(a);\n", - " if !std.primitiveEquals(la, std.length(b)) then\n", - " false\n", - " else\n", - " local aux(a, b, i) =\n", - " if i >= la then\n", - " true\n", - " else if a[i] != b[i] then\n", - " false\n", - " else\n", - " aux(a, b, i + 1) tailstrict;\n", - " aux(a, b, 0)\n", - " else if std.primitiveEquals(ta, 'object') then\n", - " local fields = std.objectFields(a);\n", - " local lfields = std.length(fields);\n", - " if fields != std.objectFields(b) then\n", - " false\n", - " else\n", - " local aux(a, b, i) =\n", - " if i >= lfields then\n", - " true\n", - " else if local f = fields[i]; a[f] != b[f] then\n", - " false\n", - " else\n", - " aux(a, b, i + 1) tailstrict;\n", - " aux(a, b, 0)\n", - " else\n", - " std.primitiveEquals(a, b),\n", - "\n", - "\n", - " resolvePath(f, r)::\n", - " local arr = std.split(f, '/');\n", - " std.join('/', std.makeArray(std.length(arr) - 1, function(i) arr[i]) + [r]),\n", - "\n", - " prune(a)::\n", - " local isContent(b) =\n", - " local t = std.type(b);\n", - " if b == null then\n", - " false\n", - " else if t == 'array' then\n", - " std.length(b) > 0\n", - " else if t == 'object' then\n", - " std.length(b) > 0\n", - " else\n", - " true;\n", - " local t = std.type(a);\n", - " if t == 'array' then\n", - " [std.prune(x) for x in a if isContent($.prune(x))]\n", - " else if t == 'object' then {\n", - " [x]: $.prune(a[x])\n", - " for x in std.objectFields(a)\n", - " if isContent(std.prune(a[x]))\n", - " } else\n", - " a,\n", - "}\n", - "\n", - }, -} - -// StdAst is the AST for the standard library. -var StdAst = _StdAst -var _StdAst = &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(23), - Column: int(1), - }, - End: Location{ - Line: int(1225), - Column: int(2), - }, - file: p1, - }, - context: p3, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p9, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p35, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p39, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p42, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p45, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p48, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p51, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p54, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p57, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p62, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p64, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(27), - Column: int(17), - }, - End: Location{ - Line: int(27), - Column: int(28), - }, - file: p1, - }, - context: p80, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(27), - Column: int(17), - }, - End: Location{ - Line: int(27), - Column: int(25), - }, - file: p1, - }, - context: p80, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(27), - Column: int(17), - }, - End: Location{ - Line: int(27), - Column: int(20), - }, - file: p1, - }, - context: p80, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(27), - Column: int(26), - }, - End: Location{ - Line: int(27), - Column: int(27), - }, - file: p1, - }, - context: p89, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(27), - Column: int(32), - }, - End: Location{ - Line: int(27), - Column: int(40), - }, - file: p1, - }, - context: p80, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isNumber", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p96, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p98, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p122, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p126, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p129, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p132, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p135, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p138, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p141, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p144, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p149, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p151, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(28), - Column: int(17), - }, - End: Location{ - Line: int(28), - Column: int(28), - }, - file: p1, - }, - context: p165, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(28), - Column: int(17), - }, - End: Location{ - Line: int(28), - Column: int(25), - }, - file: p1, - }, - context: p165, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(28), - Column: int(17), - }, - End: Location{ - Line: int(28), - Column: int(20), - }, - file: p1, - }, - context: p165, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(28), - Column: int(26), - }, - End: Location{ - Line: int(28), - Column: int(27), - }, - file: p1, - }, - context: p174, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(28), - Column: int(32), - }, - End: Location{ - Line: int(28), - Column: int(40), - }, - file: p1, - }, - context: p165, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isBoolean", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p181, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p183, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p207, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p211, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p214, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p217, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p220, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p223, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p226, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p229, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p234, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p236, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(29), - Column: int(18), - }, - End: Location{ - Line: int(29), - Column: int(29), - }, - file: p1, - }, - context: p250, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(29), - Column: int(18), - }, - End: Location{ - Line: int(29), - Column: int(26), - }, - file: p1, - }, - context: p250, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(29), - Column: int(18), - }, - End: Location{ - Line: int(29), - Column: int(21), - }, - file: p1, - }, - context: p250, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(29), - Column: int(27), - }, - End: Location{ - Line: int(29), - Column: int(28), - }, - file: p1, - }, - context: p259, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(29), - Column: int(33), - }, - End: Location{ - Line: int(29), - Column: int(42), - }, - file: p1, - }, - context: p250, - freeVariables: nil, - }, - Value: "boolean", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isObject", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p266, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p268, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p292, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p296, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p299, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p302, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p305, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p308, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p311, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p314, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p319, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p321, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(30), - Column: int(17), - }, - End: Location{ - Line: int(30), - Column: int(28), - }, - file: p1, - }, - context: p335, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(30), - Column: int(17), - }, - End: Location{ - Line: int(30), - Column: int(25), - }, - file: p1, - }, - context: p335, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(30), - Column: int(17), - }, - End: Location{ - Line: int(30), - Column: int(20), - }, - file: p1, - }, - context: p335, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(30), - Column: int(26), - }, - End: Location{ - Line: int(30), - Column: int(27), - }, - file: p1, - }, - context: p344, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(30), - Column: int(32), - }, - End: Location{ - Line: int(30), - Column: int(40), - }, - file: p1, - }, - context: p335, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p351, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p353, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p377, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p381, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p384, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p387, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p390, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p393, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p396, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p399, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p404, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p406, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(31), - Column: int(16), - }, - End: Location{ - Line: int(31), - Column: int(27), - }, - file: p1, - }, - context: p420, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(31), - Column: int(16), - }, - End: Location{ - Line: int(31), - Column: int(24), - }, - file: p1, - }, - context: p420, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(31), - Column: int(16), - }, - End: Location{ - Line: int(31), - Column: int(19), - }, - file: p1, - }, - context: p420, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(31), - Column: int(25), - }, - End: Location{ - Line: int(31), - Column: int(26), - }, - file: p1, - }, - context: p429, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(31), - Column: int(31), - }, - End: Location{ - Line: int(31), - Column: int(38), - }, - file: p1, - }, - context: p420, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isFunction", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p436, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p438, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p462, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p466, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p469, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p472, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p475, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p478, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p481, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p484, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p489, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p491, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(32), - Column: int(19), - }, - End: Location{ - Line: int(32), - Column: int(30), - }, - file: p1, - }, - context: p505, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(32), - Column: int(19), - }, - End: Location{ - Line: int(32), - Column: int(27), - }, - file: p1, - }, - context: p505, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(32), - Column: int(19), - }, - End: Location{ - Line: int(32), - Column: int(22), - }, - file: p1, - }, - context: p505, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(32), - Column: int(28), - }, - End: Location{ - Line: int(32), - Column: int(29), - }, - file: p1, - }, - context: p514, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(32), - Column: int(34), - }, - End: Location{ - Line: int(32), - Column: int(44), - }, - file: p1, - }, - context: p505, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p521, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p523, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p547, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p551, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p554, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p557, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p560, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p563, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p566, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p569, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p574, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p576, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(5), - }, - End: Location{ - Line: int(35), - Column: int(50), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(8), - }, - End: Location{ - Line: int(35), - Column: int(19), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(8), - }, - End: Location{ - Line: int(35), - Column: int(16), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(8), - }, - End: Location{ - Line: int(35), - Column: int(11), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(17), - }, - End: Location{ - Line: int(35), - Column: int(18), - }, - file: p1, - }, - context: p601, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(23), - }, - End: Location{ - Line: int(35), - Column: int(31), - }, - file: p1, - }, - context: p582, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(37), - }, - End: Location{ - Line: int(35), - Column: int(38), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(44), - }, - End: Location{ - Line: int(35), - Column: int(50), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "a", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(44), - }, - End: Location{ - Line: int(35), - Column: int(46), - }, - file: p1, - }, - context: p582, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(35), - Column: int(49), - }, - End: Location{ - Line: int(35), - Column: int(50), - }, - file: p1, - }, - context: p582, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "substr", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p615, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p617, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p641, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p645, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p648, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p651, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p654, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p657, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p660, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p663, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p668, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p670, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "from", - "len", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(5), - }, - End: Location{ - Line: int(47), - Column: int(66), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(8), - }, - End: Location{ - Line: int(38), - Column: int(21), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(8), - }, - End: Location{ - Line: int(38), - Column: int(16), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(8), - }, - End: Location{ - Line: int(38), - Column: int(11), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(17), - }, - End: Location{ - Line: int(38), - Column: int(20), - }, - file: p1, - }, - context: p697, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(38), - Column: int(25), - }, - End: Location{ - Line: int(38), - Column: int(33), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(7), - }, - End: Location{ - Line: int(39), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(13), - }, - End: Location{ - Line: int(39), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(13), - }, - End: Location{ - Line: int(39), - Column: int(62), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "substr first parameter should be a string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(65), - }, - End: Location{ - Line: int(39), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(65), - }, - End: Location{ - Line: int(39), - Column: int(73), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(65), - }, - End: Location{ - Line: int(39), - Column: int(68), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(39), - Column: int(74), - }, - End: Location{ - Line: int(39), - Column: int(77), - }, - file: p1, - }, - context: p714, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(10), - }, - End: Location{ - Line: int(47), - Column: int(66), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(13), - }, - End: Location{ - Line: int(40), - Column: int(27), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(13), - }, - End: Location{ - Line: int(40), - Column: int(21), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(13), - }, - End: Location{ - Line: int(40), - Column: int(16), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(22), - }, - End: Location{ - Line: int(40), - Column: int(26), - }, - file: p1, - }, - context: p737, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(40), - Column: int(31), - }, - End: Location{ - Line: int(40), - Column: int(39), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(7), - }, - End: Location{ - Line: int(41), - Column: int(80), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(13), - }, - End: Location{ - Line: int(41), - Column: int(80), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(13), - }, - End: Location{ - Line: int(41), - Column: int(63), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "substr second parameter should be a number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(66), - }, - End: Location{ - Line: int(41), - Column: int(80), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(66), - }, - End: Location{ - Line: int(41), - Column: int(74), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(66), - }, - End: Location{ - Line: int(41), - Column: int(69), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(41), - Column: int(75), - }, - End: Location{ - Line: int(41), - Column: int(79), - }, - file: p1, - }, - context: p754, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(10), - }, - End: Location{ - Line: int(47), - Column: int(66), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(13), - }, - End: Location{ - Line: int(42), - Column: int(26), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(13), - }, - End: Location{ - Line: int(42), - Column: int(21), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(13), - }, - End: Location{ - Line: int(42), - Column: int(16), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(22), - }, - End: Location{ - Line: int(42), - Column: int(25), - }, - file: p1, - }, - context: p777, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(42), - Column: int(30), - }, - End: Location{ - Line: int(42), - Column: int(38), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(7), - }, - End: Location{ - Line: int(43), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(13), - }, - End: Location{ - Line: int(43), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(13), - }, - End: Location{ - Line: int(43), - Column: int(62), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "substr third parameter should be a number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(65), - }, - End: Location{ - Line: int(43), - Column: int(78), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(65), - }, - End: Location{ - Line: int(43), - Column: int(73), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(65), - }, - End: Location{ - Line: int(43), - Column: int(68), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(43), - Column: int(74), - }, - End: Location{ - Line: int(43), - Column: int(77), - }, - file: p1, - }, - context: p794, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(44), - Column: int(10), - }, - End: Location{ - Line: int(47), - Column: int(66), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(44), - Column: int(13), - }, - End: Location{ - Line: int(44), - Column: int(20), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(44), - Column: int(13), - }, - End: Location{ - Line: int(44), - Column: int(16), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(44), - Column: int(19), - }, - End: Location{ - Line: int(44), - Column: int(20), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(45), - Column: int(7), - }, - End: Location{ - Line: int(45), - Column: int(77), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(45), - Column: int(13), - }, - End: Location{ - Line: int(45), - Column: int(77), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(45), - Column: int(13), - }, - End: Location{ - Line: int(45), - Column: int(71), - }, - file: p1, - }, - context: p676, - freeVariables: nil, - }, - Value: "substr third parameter should be greater than zero, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(45), - Column: int(74), - }, - End: Location{ - Line: int(45), - Column: int(77), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(7), - }, - End: Location{ - Line: int(47), - Column: int(66), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(7), - }, - End: Location{ - Line: int(47), - Column: int(15), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(7), - }, - End: Location{ - Line: int(47), - Column: int(10), - }, - file: p1, - }, - context: p676, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(16), - }, - End: Location{ - Line: int(47), - Column: int(18), - }, - file: p1, - }, - context: p819, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(20), - }, - End: Location{ - Line: int(47), - Column: int(65), - }, - file: p1, - }, - context: p819, - freeVariables: Identifiers{ - "from", - "len", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(20), - }, - End: Location{ - Line: int(47), - Column: int(33), - }, - file: p1, - }, - context: p819, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(20), - }, - End: Location{ - Line: int(47), - Column: int(23), - }, - file: p1, - }, - context: p819, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(34), - }, - End: Location{ - Line: int(47), - Column: int(37), - }, - file: p1, - }, - context: p829, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(39), - }, - End: Location{ - Line: int(47), - Column: int(64), - }, - file: p1, - }, - context: p829, - freeVariables: Identifiers{ - "from", - "str", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(51), - }, - End: Location{ - Line: int(47), - Column: int(64), - }, - file: p1, - }, - context: p835, - freeVariables: Identifiers{ - "from", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(51), - }, - End: Location{ - Line: int(47), - Column: int(54), - }, - file: p1, - }, - context: p835, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(55), - }, - End: Location{ - Line: int(47), - Column: int(63), - }, - file: p1, - }, - context: p835, - freeVariables: Identifiers{ - "from", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(55), - }, - End: Location{ - Line: int(47), - Column: int(56), - }, - file: p1, - }, - context: p835, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(47), - Column: int(59), - }, - End: Location{ - Line: int(47), - Column: int(63), - }, - file: p1, - }, - context: p835, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "startsWith", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p849, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p851, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p875, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p879, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p882, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p885, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p888, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p891, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p894, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p897, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p902, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p904, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(5), - }, - End: Location{ - Line: int(53), - Column: int(43), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(8), - }, - End: Location{ - Line: int(50), - Column: int(37), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(8), - }, - End: Location{ - Line: int(50), - Column: int(21), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(8), - }, - End: Location{ - Line: int(50), - Column: int(18), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(8), - }, - End: Location{ - Line: int(50), - Column: int(11), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(19), - }, - End: Location{ - Line: int(50), - Column: int(20), - }, - file: p1, - }, - context: p923, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(9), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(24), - }, - End: Location{ - Line: int(50), - Column: int(37), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(24), - }, - End: Location{ - Line: int(50), - Column: int(34), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(24), - }, - End: Location{ - Line: int(50), - Column: int(27), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(50), - Column: int(35), - }, - End: Location{ - Line: int(50), - Column: int(36), - }, - file: p1, - }, - context: p934, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(51), - Column: int(7), - }, - End: Location{ - Line: int(51), - Column: int(12), - }, - file: p1, - }, - context: p910, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(7), - }, - End: Location{ - Line: int(53), - Column: int(38), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(7), - }, - End: Location{ - Line: int(53), - Column: int(17), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(7), - }, - End: Location{ - Line: int(53), - Column: int(10), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "substr", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(18), - }, - End: Location{ - Line: int(53), - Column: int(19), - }, - file: p1, - }, - context: p954, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(21), - }, - End: Location{ - Line: int(53), - Column: int(22), - }, - file: p1, - }, - context: p954, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(24), - }, - End: Location{ - Line: int(53), - Column: int(37), - }, - file: p1, - }, - context: p954, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(24), - }, - End: Location{ - Line: int(53), - Column: int(34), - }, - file: p1, - }, - context: p954, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(24), - }, - End: Location{ - Line: int(53), - Column: int(27), - }, - file: p1, - }, - context: p954, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(35), - }, - End: Location{ - Line: int(53), - Column: int(36), - }, - file: p1, - }, - context: p966, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(53), - Column: int(42), - }, - End: Location{ - Line: int(53), - Column: int(43), - }, - file: p1, - }, - context: p910, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "endsWith", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p974, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p976, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p1000, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p1004, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p1007, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p1010, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p1013, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p1016, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p1019, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p1022, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p1027, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p1029, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(5), - }, - End: Location{ - Line: int(59), - Column: int(71), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(8), - }, - End: Location{ - Line: int(56), - Column: int(37), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(8), - }, - End: Location{ - Line: int(56), - Column: int(21), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(8), - }, - End: Location{ - Line: int(56), - Column: int(18), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(8), - }, - End: Location{ - Line: int(56), - Column: int(11), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(19), - }, - End: Location{ - Line: int(56), - Column: int(20), - }, - file: p1, - }, - context: p1048, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(9), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(24), - }, - End: Location{ - Line: int(56), - Column: int(37), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(24), - }, - End: Location{ - Line: int(56), - Column: int(34), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(24), - }, - End: Location{ - Line: int(56), - Column: int(27), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(56), - Column: int(35), - }, - End: Location{ - Line: int(56), - Column: int(36), - }, - file: p1, - }, - context: p1059, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(57), - Column: int(7), - }, - End: Location{ - Line: int(57), - Column: int(12), - }, - file: p1, - }, - context: p1035, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(7), - }, - End: Location{ - Line: int(59), - Column: int(66), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(7), - }, - End: Location{ - Line: int(59), - Column: int(17), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(7), - }, - End: Location{ - Line: int(59), - Column: int(10), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "substr", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(18), - }, - End: Location{ - Line: int(59), - Column: int(19), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(21), - }, - End: Location{ - Line: int(59), - Column: int(50), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(21), - }, - End: Location{ - Line: int(59), - Column: int(34), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(21), - }, - End: Location{ - Line: int(59), - Column: int(31), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(21), - }, - End: Location{ - Line: int(59), - Column: int(24), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(32), - }, - End: Location{ - Line: int(59), - Column: int(33), - }, - file: p1, - }, - context: p1092, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(37), - }, - End: Location{ - Line: int(59), - Column: int(50), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(37), - }, - End: Location{ - Line: int(59), - Column: int(47), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(37), - }, - End: Location{ - Line: int(59), - Column: int(40), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(48), - }, - End: Location{ - Line: int(59), - Column: int(49), - }, - file: p1, - }, - context: p1103, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(52), - }, - End: Location{ - Line: int(59), - Column: int(65), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(52), - }, - End: Location{ - Line: int(59), - Column: int(62), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(52), - }, - End: Location{ - Line: int(59), - Column: int(55), - }, - file: p1, - }, - context: p1079, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(63), - }, - End: Location{ - Line: int(59), - Column: int(64), - }, - file: p1, - }, - context: p1114, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(59), - Column: int(70), - }, - End: Location{ - Line: int(59), - Column: int(71), - }, - file: p1, - }, - context: p1035, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p1122, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p1124, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p1148, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p1152, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p1155, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p1158, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p1161, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p1164, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p1167, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p1170, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p1175, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p1177, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(5), - }, - End: Location{ - Line: int(62), - Column: int(55), - }, - file: p1, - }, - context: p1183, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(5), - }, - End: Location{ - Line: int(62), - Column: int(18), - }, - file: p1, - }, - context: p1183, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(5), - }, - End: Location{ - Line: int(62), - Column: int(8), - }, - file: p1, - }, - context: p1183, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(19), - }, - End: Location{ - Line: int(62), - Column: int(34), - }, - file: p1, - }, - context: p1192, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(19), - }, - End: Location{ - Line: int(62), - Column: int(29), - }, - file: p1, - }, - context: p1192, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(19), - }, - End: Location{ - Line: int(62), - Column: int(22), - }, - file: p1, - }, - context: p1192, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(30), - }, - End: Location{ - Line: int(62), - Column: int(33), - }, - file: p1, - }, - context: p1201, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(36), - }, - End: Location{ - Line: int(62), - Column: int(54), - }, - file: p1, - }, - context: p1192, - freeVariables: Identifiers{ - "str", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(48), - }, - End: Location{ - Line: int(62), - Column: int(54), - }, - file: p1, - }, - context: p1207, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(48), - }, - End: Location{ - Line: int(62), - Column: int(51), - }, - file: p1, - }, - context: p1207, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(62), - Column: int(52), - }, - End: Location{ - Line: int(62), - Column: int(53), - }, - file: p1, - }, - context: p1207, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "parseInt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p1217, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p1219, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p1243, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p1247, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p1250, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p1253, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p1256, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p1259, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p1262, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p1265, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p1270, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p1272, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(65), - Column: int(5), - }, - End: Location{ - Line: int(75), - Column: int(44), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "addDigit", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(65), - Column: int(11), - }, - End: Location{ - Line: int(69), - Column: int(31), - }, - file: p1, - }, - context: p1282, - freeVariables: nil, - }, - Parameters: Parameters{ - Required: Identifiers{ - "aggregate", - "digit", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(7), - }, - End: Location{ - Line: int(69), - Column: int(31), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "aggregate", - "digit", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(10), - }, - End: Location{ - Line: int(66), - Column: int(32), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(10), - }, - End: Location{ - Line: int(66), - Column: int(19), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(10), - }, - End: Location{ - Line: int(66), - Column: int(15), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Id: "digit", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(18), - }, - End: Location{ - Line: int(66), - Column: int(19), - }, - file: p1, - }, - context: p1285, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(23), - }, - End: Location{ - Line: int(66), - Column: int(32), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(23), - }, - End: Location{ - Line: int(66), - Column: int(28), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Id: "digit", - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(66), - Column: int(31), - }, - End: Location{ - Line: int(66), - Column: int(32), - }, - file: p1, - }, - context: p1285, - freeVariables: nil, - }, - Value: float64(9), - OriginalString: "9", - }, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(67), - Column: int(9), - }, - End: Location{ - Line: int(67), - Column: int(72), - }, - file: p1, - }, - context: p1285, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(67), - Column: int(16), - }, - End: Location{ - Line: int(67), - Column: int(71), - }, - file: p1, - }, - context: p1285, - freeVariables: nil, - }, - Value: "parseInt got string which does not match regex [0-9]+", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(69), - Column: int(9), - }, - End: Location{ - Line: int(69), - Column: int(31), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "aggregate", - "digit", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(69), - Column: int(9), - }, - End: Location{ - Line: int(69), - Column: int(23), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "aggregate", - }, - }, - Left: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(69), - Column: int(9), - }, - End: Location{ - Line: int(69), - Column: int(11), - }, - file: p1, - }, - context: p1285, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - Op: BinaryOp(0), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(69), - Column: int(14), - }, - End: Location{ - Line: int(69), - Column: int(23), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "aggregate", - }, - }, - Id: "aggregate", - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(69), - Column: int(26), - }, - End: Location{ - Line: int(69), - Column: int(31), - }, - file: p1, - }, - context: p1285, - freeVariables: Identifiers{ - "digit", - }, - }, - Id: "digit", - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(70), - Column: int(5), - }, - End: Location{ - Line: int(75), - Column: int(44), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "addDigit", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "toDigits", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(70), - Column: int(11), - }, - End: Location{ - Line: int(71), - Column: int(82), - }, - file: p1, - }, - context: p1314, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "char", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "char", - "std", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(8), - }, - End: Location{ - Line: int(71), - Column: int(48), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "char", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(8), - }, - End: Location{ - Line: int(71), - Column: int(27), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "char", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(8), - }, - End: Location{ - Line: int(71), - Column: int(21), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(8), - }, - End: Location{ - Line: int(71), - Column: int(11), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(22), - }, - End: Location{ - Line: int(71), - Column: int(26), - }, - file: p1, - }, - context: p1343, - freeVariables: Identifiers{ - "char", - }, - }, - Id: "char", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(30), - }, - End: Location{ - Line: int(71), - Column: int(48), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(30), - }, - End: Location{ - Line: int(71), - Column: int(43), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(30), - }, - End: Location{ - Line: int(71), - Column: int(33), - }, - file: p1, - }, - context: p1332, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(44), - }, - End: Location{ - Line: int(71), - Column: int(47), - }, - file: p1, - }, - context: p1354, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(61), - }, - End: Location{ - Line: int(71), - Column: int(81), - }, - file: p1, - }, - context: p1356, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(61), - }, - End: Location{ - Line: int(71), - Column: int(76), - }, - file: p1, - }, - context: p1356, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(61), - }, - End: Location{ - Line: int(71), - Column: int(64), - }, - file: p1, - }, - context: p1356, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(71), - Column: int(77), - }, - End: Location{ - Line: int(71), - Column: int(80), - }, - file: p1, - }, - context: p1365, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(72), - Column: int(5), - }, - End: Location{ - Line: int(75), - Column: int(44), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "addDigit", - "std", - "str", - "toDigits", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(72), - Column: int(8), - }, - End: Location{ - Line: int(72), - Column: int(14), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(72), - Column: int(8), - }, - End: Location{ - Line: int(72), - Column: int(11), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(72), - Column: int(12), - }, - End: Location{ - Line: int(72), - Column: int(13), - }, - file: p1, - }, - context: p1278, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(72), - Column: int(18), - }, - End: Location{ - Line: int(72), - Column: int(21), - }, - file: p1, - }, - context: p1278, - freeVariables: nil, - }, - Value: "-", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(7), - }, - End: Location{ - Line: int(73), - Column: int(49), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "addDigit", - "std", - "str", - "toDigits", - }, - }, - Op: UnaryOp(3), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(8), - }, - End: Location{ - Line: int(73), - Column: int(49), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "addDigit", - "std", - "str", - "toDigits", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(8), - }, - End: Location{ - Line: int(73), - Column: int(17), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(8), - }, - End: Location{ - Line: int(73), - Column: int(11), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(18), - }, - End: Location{ - Line: int(73), - Column: int(26), - }, - file: p1, - }, - context: p1394, - freeVariables: Identifiers{ - "addDigit", - }, - }, - Id: "addDigit", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(28), - }, - End: Location{ - Line: int(73), - Column: int(45), - }, - file: p1, - }, - context: p1394, - freeVariables: Identifiers{ - "std", - "str", - "toDigits", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(28), - }, - End: Location{ - Line: int(73), - Column: int(36), - }, - file: p1, - }, - context: p1394, - freeVariables: Identifiers{ - "toDigits", - }, - }, - Id: "toDigits", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(37), - }, - End: Location{ - Line: int(73), - Column: int(40), - }, - file: p1, - }, - context: p1410, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(41), - }, - End: Location{ - Line: int(73), - Column: int(42), - }, - file: p1, - }, - context: p1410, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(73), - Column: int(47), - }, - End: Location{ - Line: int(73), - Column: int(48), - }, - file: p1, - }, - context: p1394, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(7), - }, - End: Location{ - Line: int(75), - Column: int(44), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "addDigit", - "std", - "str", - "toDigits", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(7), - }, - End: Location{ - Line: int(75), - Column: int(16), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(7), - }, - End: Location{ - Line: int(75), - Column: int(10), - }, - file: p1, - }, - context: p1278, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(17), - }, - End: Location{ - Line: int(75), - Column: int(25), - }, - file: p1, - }, - context: p1425, - freeVariables: Identifiers{ - "addDigit", - }, - }, - Id: "addDigit", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(27), - }, - End: Location{ - Line: int(75), - Column: int(40), - }, - file: p1, - }, - context: p1425, - freeVariables: Identifiers{ - "str", - "toDigits", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(27), - }, - End: Location{ - Line: int(75), - Column: int(35), - }, - file: p1, - }, - context: p1425, - freeVariables: Identifiers{ - "toDigits", - }, - }, - Id: "toDigits", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(36), - }, - End: Location{ - Line: int(75), - Column: int(39), - }, - file: p1, - }, - context: p1433, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(75), - Column: int(42), - }, - End: Location{ - Line: int(75), - Column: int(43), - }, - file: p1, - }, - context: p1425, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "split", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p1440, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p1442, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p1466, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p1470, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p1473, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p1476, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p1479, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p1482, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p1485, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p1488, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p1493, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p1495, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "c", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(5), - }, - End: Location{ - Line: int(85), - Column: int(33), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(8), - }, - End: Location{ - Line: int(78), - Column: int(21), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(8), - }, - End: Location{ - Line: int(78), - Column: int(16), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(8), - }, - End: Location{ - Line: int(78), - Column: int(11), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(17), - }, - End: Location{ - Line: int(78), - Column: int(20), - }, - file: p1, - }, - context: p1522, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(78), - Column: int(25), - }, - End: Location{ - Line: int(78), - Column: int(33), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(7), - }, - End: Location{ - Line: int(79), - Column: int(81), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(13), - }, - End: Location{ - Line: int(79), - Column: int(81), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(13), - }, - End: Location{ - Line: int(79), - Column: int(65), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: "std.split first parameter should be a string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(68), - }, - End: Location{ - Line: int(79), - Column: int(81), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(68), - }, - End: Location{ - Line: int(79), - Column: int(76), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(68), - }, - End: Location{ - Line: int(79), - Column: int(71), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(79), - Column: int(77), - }, - End: Location{ - Line: int(79), - Column: int(80), - }, - file: p1, - }, - context: p1539, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(10), - }, - End: Location{ - Line: int(85), - Column: int(33), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(13), - }, - End: Location{ - Line: int(80), - Column: int(24), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(13), - }, - End: Location{ - Line: int(80), - Column: int(21), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(13), - }, - End: Location{ - Line: int(80), - Column: int(16), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(22), - }, - End: Location{ - Line: int(80), - Column: int(23), - }, - file: p1, - }, - context: p1562, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(80), - Column: int(28), - }, - End: Location{ - Line: int(80), - Column: int(36), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(7), - }, - End: Location{ - Line: int(81), - Column: int(80), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(13), - }, - End: Location{ - Line: int(81), - Column: int(80), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(13), - }, - End: Location{ - Line: int(81), - Column: int(66), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: "std.split second parameter should be a string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(69), - }, - End: Location{ - Line: int(81), - Column: int(80), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(69), - }, - End: Location{ - Line: int(81), - Column: int(77), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(69), - }, - End: Location{ - Line: int(81), - Column: int(72), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(81), - Column: int(78), - }, - End: Location{ - Line: int(81), - Column: int(79), - }, - file: p1, - }, - context: p1579, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(10), - }, - End: Location{ - Line: int(85), - Column: int(33), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(13), - }, - End: Location{ - Line: int(82), - Column: int(26), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(13), - }, - End: Location{ - Line: int(82), - Column: int(23), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(13), - }, - End: Location{ - Line: int(82), - Column: int(16), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(24), - }, - End: Location{ - Line: int(82), - Column: int(25), - }, - file: p1, - }, - context: p1602, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(82), - Column: int(30), - }, - End: Location{ - Line: int(82), - Column: int(31), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(7), - }, - End: Location{ - Line: int(83), - Column: int(84), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(13), - }, - End: Location{ - Line: int(83), - Column: int(84), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(13), - }, - End: Location{ - Line: int(83), - Column: int(68), - }, - file: p1, - }, - context: p1501, - freeVariables: nil, - }, - Value: "std.split second parameter should have length 1, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(71), - }, - End: Location{ - Line: int(83), - Column: int(84), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(71), - }, - End: Location{ - Line: int(83), - Column: int(81), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(71), - }, - End: Location{ - Line: int(83), - Column: int(74), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(83), - Column: int(82), - }, - End: Location{ - Line: int(83), - Column: int(83), - }, - file: p1, - }, - context: p1619, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(7), - }, - End: Location{ - Line: int(85), - Column: int(33), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "c", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(7), - }, - End: Location{ - Line: int(85), - Column: int(21), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(7), - }, - End: Location{ - Line: int(85), - Column: int(10), - }, - file: p1, - }, - context: p1501, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "splitLimit", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(22), - }, - End: Location{ - Line: int(85), - Column: int(25), - }, - file: p1, - }, - context: p1630, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(27), - }, - End: Location{ - Line: int(85), - Column: int(28), - }, - file: p1, - }, - context: p1630, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(30), - }, - End: Location{ - Line: int(85), - Column: int(32), - }, - file: p1, - }, - context: p1630, - freeVariables: nil, - }, - Op: UnaryOp(3), - Expr: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(85), - Column: int(31), - }, - End: Location{ - Line: int(85), - Column: int(32), - }, - file: p1, - }, - context: p1630, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "splitLimit", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p1640, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p1642, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p1666, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p1670, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p1673, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p1676, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p1679, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p1682, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p1685, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p1688, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p1693, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p1695, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "c", - "maxsplits", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(5), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "maxsplits", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(8), - }, - End: Location{ - Line: int(88), - Column: int(21), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(8), - }, - End: Location{ - Line: int(88), - Column: int(16), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(8), - }, - End: Location{ - Line: int(88), - Column: int(11), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(17), - }, - End: Location{ - Line: int(88), - Column: int(20), - }, - file: p1, - }, - context: p1722, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(88), - Column: int(25), - }, - End: Location{ - Line: int(88), - Column: int(33), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(7), - }, - End: Location{ - Line: int(89), - Column: int(86), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(13), - }, - End: Location{ - Line: int(89), - Column: int(86), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(13), - }, - End: Location{ - Line: int(89), - Column: int(70), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "std.splitLimit first parameter should be a string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(73), - }, - End: Location{ - Line: int(89), - Column: int(86), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(73), - }, - End: Location{ - Line: int(89), - Column: int(81), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(73), - }, - End: Location{ - Line: int(89), - Column: int(76), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(89), - Column: int(82), - }, - End: Location{ - Line: int(89), - Column: int(85), - }, - file: p1, - }, - context: p1739, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(10), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "maxsplits", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(13), - }, - End: Location{ - Line: int(90), - Column: int(24), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(13), - }, - End: Location{ - Line: int(90), - Column: int(21), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(13), - }, - End: Location{ - Line: int(90), - Column: int(16), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(22), - }, - End: Location{ - Line: int(90), - Column: int(23), - }, - file: p1, - }, - context: p1762, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(90), - Column: int(28), - }, - End: Location{ - Line: int(90), - Column: int(36), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(7), - }, - End: Location{ - Line: int(91), - Column: int(85), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(13), - }, - End: Location{ - Line: int(91), - Column: int(85), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(13), - }, - End: Location{ - Line: int(91), - Column: int(71), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "std.splitLimit second parameter should be a string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(74), - }, - End: Location{ - Line: int(91), - Column: int(85), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(74), - }, - End: Location{ - Line: int(91), - Column: int(82), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(74), - }, - End: Location{ - Line: int(91), - Column: int(77), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(91), - Column: int(83), - }, - End: Location{ - Line: int(91), - Column: int(84), - }, - file: p1, - }, - context: p1779, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(10), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "maxsplits", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(13), - }, - End: Location{ - Line: int(92), - Column: int(26), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(13), - }, - End: Location{ - Line: int(92), - Column: int(23), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(13), - }, - End: Location{ - Line: int(92), - Column: int(16), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(24), - }, - End: Location{ - Line: int(92), - Column: int(25), - }, - file: p1, - }, - context: p1802, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(92), - Column: int(30), - }, - End: Location{ - Line: int(92), - Column: int(31), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(7), - }, - End: Location{ - Line: int(93), - Column: int(89), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(13), - }, - End: Location{ - Line: int(93), - Column: int(89), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(13), - }, - End: Location{ - Line: int(93), - Column: int(73), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "std.splitLimit second parameter should have length 1, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(76), - }, - End: Location{ - Line: int(93), - Column: int(89), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(76), - }, - End: Location{ - Line: int(93), - Column: int(86), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(76), - }, - End: Location{ - Line: int(93), - Column: int(79), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(93), - Column: int(87), - }, - End: Location{ - Line: int(93), - Column: int(88), - }, - file: p1, - }, - context: p1819, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(10), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "maxsplits", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(13), - }, - End: Location{ - Line: int(94), - Column: int(32), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(13), - }, - End: Location{ - Line: int(94), - Column: int(21), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(13), - }, - End: Location{ - Line: int(94), - Column: int(16), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(22), - }, - End: Location{ - Line: int(94), - Column: int(31), - }, - file: p1, - }, - context: p1842, - freeVariables: Identifiers{ - "maxsplits", - }, - }, - Id: "maxsplits", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(94), - Column: int(36), - }, - End: Location{ - Line: int(94), - Column: int(44), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(7), - }, - End: Location{ - Line: int(95), - Column: int(92), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(13), - }, - End: Location{ - Line: int(95), - Column: int(92), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(13), - }, - End: Location{ - Line: int(95), - Column: int(70), - }, - file: p1, - }, - context: p1701, - freeVariables: nil, - }, - Value: "std.splitLimit third parameter should be a number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(73), - }, - End: Location{ - Line: int(95), - Column: int(92), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(73), - }, - End: Location{ - Line: int(95), - Column: int(81), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(73), - }, - End: Location{ - Line: int(95), - Column: int(76), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(95), - Column: int(82), - }, - End: Location{ - Line: int(95), - Column: int(91), - }, - file: p1, - }, - context: p1859, - freeVariables: Identifiers{ - "maxsplits", - }, - }, - Id: "maxsplits", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(97), - Column: int(7), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "c", - "maxsplits", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(97), - Column: int(13), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1865, - freeVariables: Identifiers{ - "aux", - "maxsplits", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "delim", - "i", - "arr", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(98), - Column: int(9), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "delim", - "i", - "maxsplits", - "std", - "str", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(98), - Column: int(19), - }, - End: Location{ - Line: int(98), - Column: int(25), - }, - file: p1, - }, - context: p1873, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(98), - Column: int(19), - }, - End: Location{ - Line: int(98), - Column: int(22), - }, - file: p1, - }, - context: p1873, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(98), - Column: int(23), - }, - End: Location{ - Line: int(98), - Column: int(24), - }, - file: p1, - }, - context: p1873, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(99), - Column: int(9), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "c", - "delim", - "i", - "maxsplits", - "std", - "str", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "i2", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(99), - Column: int(20), - }, - End: Location{ - Line: int(99), - Column: int(25), - }, - file: p1, - }, - context: p1883, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(99), - Column: int(20), - }, - End: Location{ - Line: int(99), - Column: int(21), - }, - file: p1, - }, - context: p1883, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(99), - Column: int(24), - }, - End: Location{ - Line: int(99), - Column: int(25), - }, - file: p1, - }, - context: p1883, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(9), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "c", - "delim", - "i", - "i2", - "maxsplits", - "std", - "str", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(12), - }, - End: Location{ - Line: int(100), - Column: int(32), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(12), - }, - End: Location{ - Line: int(100), - Column: int(13), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(17), - }, - End: Location{ - Line: int(100), - Column: int(32), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(17), - }, - End: Location{ - Line: int(100), - Column: int(27), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(17), - }, - End: Location{ - Line: int(100), - Column: int(20), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(100), - Column: int(28), - }, - End: Location{ - Line: int(100), - Column: int(31), - }, - file: p1, - }, - context: p1903, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(101), - Column: int(11), - }, - End: Location{ - Line: int(101), - Column: int(20), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(101), - Column: int(11), - }, - End: Location{ - Line: int(101), - Column: int(14), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(101), - Column: int(17), - }, - End: Location{ - Line: int(101), - Column: int(20), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "v", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(101), - Column: int(18), - }, - End: Location{ - Line: int(101), - Column: int(19), - }, - file: p1, - }, - context: p1913, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - TrailingComma: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(14), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "c", - "delim", - "i2", - "maxsplits", - "std", - "str", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(17), - }, - End: Location{ - Line: int(102), - Column: int(79), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "c", - "delim", - "maxsplits", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "delim", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(17), - }, - End: Location{ - Line: int(102), - Column: int(18), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(22), - }, - End: Location{ - Line: int(102), - Column: int(27), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "delim", - }, - }, - Id: "delim", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(17), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(32), - }, - End: Location{ - Line: int(102), - Column: int(78), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "maxsplits", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "maxsplits", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(32), - }, - End: Location{ - Line: int(102), - Column: int(41), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "maxsplits", - }, - }, - Id: "maxsplits", - }, - &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(45), - }, - End: Location{ - Line: int(102), - Column: int(47), - }, - file: p1, - }, - context: p1869, - freeVariables: nil, - }, - Op: UnaryOp(3), - Expr: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(46), - }, - End: Location{ - Line: int(102), - Column: int(47), - }, - file: p1, - }, - context: p1869, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(51), - }, - End: Location{ - Line: int(102), - Column: int(78), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "maxsplits", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(51), - }, - End: Location{ - Line: int(102), - Column: int(66), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(51), - }, - End: Location{ - Line: int(102), - Column: int(61), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(51), - }, - End: Location{ - Line: int(102), - Column: int(54), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(62), - }, - End: Location{ - Line: int(102), - Column: int(65), - }, - file: p1, - }, - context: p1956, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(9), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(102), - Column: int(69), - }, - End: Location{ - Line: int(102), - Column: int(78), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "maxsplits", - }, - }, - Id: "maxsplits", - }, - }, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(11), - }, - End: Location{ - Line: int(103), - Column: int(45), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "delim", - "i2", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(11), - }, - End: Location{ - Line: int(103), - Column: int(14), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(15), - }, - End: Location{ - Line: int(103), - Column: int(18), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(20), - }, - End: Location{ - Line: int(103), - Column: int(25), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "delim", - }, - }, - Id: "delim", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(27), - }, - End: Location{ - Line: int(103), - Column: int(29), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "i2", - }, - }, - Id: "i2", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(31), - }, - End: Location{ - Line: int(103), - Column: int(40), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "arr", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(31), - }, - End: Location{ - Line: int(103), - Column: int(34), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(37), - }, - End: Location{ - Line: int(103), - Column: int(40), - }, - file: p1, - }, - context: p1966, - freeVariables: Identifiers{ - "v", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(38), - }, - End: Location{ - Line: int(103), - Column: int(39), - }, - file: p1, - }, - context: p1980, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - TrailingComma: false, - }, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(103), - Column: int(42), - }, - End: Location{ - Line: int(103), - Column: int(44), - }, - file: p1, - }, - context: p1966, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(11), - }, - End: Location{ - Line: int(105), - Column: int(42), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "arr", - "aux", - "c", - "delim", - "i2", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(11), - }, - End: Location{ - Line: int(105), - Column: int(14), - }, - file: p1, - }, - context: p1869, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(15), - }, - End: Location{ - Line: int(105), - Column: int(18), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(20), - }, - End: Location{ - Line: int(105), - Column: int(25), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "delim", - }, - }, - Id: "delim", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(27), - }, - End: Location{ - Line: int(105), - Column: int(29), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "i2", - }, - }, - Id: "i2", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(31), - }, - End: Location{ - Line: int(105), - Column: int(34), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(36), - }, - End: Location{ - Line: int(105), - Column: int(41), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "c", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(36), - }, - End: Location{ - Line: int(105), - Column: int(37), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(105), - Column: int(40), - }, - End: Location{ - Line: int(105), - Column: int(41), - }, - file: p1, - }, - context: p1989, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(7), - }, - End: Location{ - Line: int(106), - Column: int(29), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "aux", - "c", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(7), - }, - End: Location{ - Line: int(106), - Column: int(10), - }, - file: p1, - }, - context: p1701, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(11), - }, - End: Location{ - Line: int(106), - Column: int(14), - }, - file: p1, - }, - context: p2009, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(16), - }, - End: Location{ - Line: int(106), - Column: int(17), - }, - file: p1, - }, - context: p2009, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(19), - }, - End: Location{ - Line: int(106), - Column: int(20), - }, - file: p1, - }, - context: p2009, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(22), - }, - End: Location{ - Line: int(106), - Column: int(24), - }, - file: p1, - }, - context: p2009, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(106), - Column: int(26), - }, - End: Location{ - Line: int(106), - Column: int(28), - }, - file: p1, - }, - context: p2009, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "strReplace", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p2020, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p2022, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p2046, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p2050, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p2053, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p2056, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p2059, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p2062, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p2065, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p2068, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p2073, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p2075, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "from", - "to", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(109), - Column: int(12), - }, - End: Location{ - Line: int(109), - Column: int(25), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(109), - Column: int(12), - }, - End: Location{ - Line: int(109), - Column: int(20), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(109), - Column: int(12), - }, - End: Location{ - Line: int(109), - Column: int(15), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(109), - Column: int(21), - }, - End: Location{ - Line: int(109), - Column: int(24), - }, - file: p1, - }, - context: p2100, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(109), - Column: int(29), - }, - End: Location{ - Line: int(109), - Column: int(37), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(110), - Column: int(12), - }, - End: Location{ - Line: int(110), - Column: int(26), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(110), - Column: int(12), - }, - End: Location{ - Line: int(110), - Column: int(20), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(110), - Column: int(12), - }, - End: Location{ - Line: int(110), - Column: int(15), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(110), - Column: int(21), - }, - End: Location{ - Line: int(110), - Column: int(25), - }, - file: p1, - }, - context: p2122, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(110), - Column: int(30), - }, - End: Location{ - Line: int(110), - Column: int(38), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "to", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(111), - Column: int(12), - }, - End: Location{ - Line: int(111), - Column: int(24), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - "to", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(111), - Column: int(12), - }, - End: Location{ - Line: int(111), - Column: int(20), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(111), - Column: int(12), - }, - End: Location{ - Line: int(111), - Column: int(15), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(111), - Column: int(21), - }, - End: Location{ - Line: int(111), - Column: int(23), - }, - file: p1, - }, - context: p2144, - freeVariables: Identifiers{ - "to", - }, - }, - Id: "to", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(111), - Column: int(28), - }, - End: Location{ - Line: int(111), - Column: int(36), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(112), - Column: int(12), - }, - End: Location{ - Line: int(112), - Column: int(16), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(112), - Column: int(20), - }, - End: Location{ - Line: int(112), - Column: int(22), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(115), - Column: int(5), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str_len", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(115), - Column: int(21), - }, - End: Location{ - Line: int(115), - Column: int(36), - }, - file: p1, - }, - context: p2166, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(115), - Column: int(21), - }, - End: Location{ - Line: int(115), - Column: int(31), - }, - file: p1, - }, - context: p2166, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(115), - Column: int(21), - }, - End: Location{ - Line: int(115), - Column: int(24), - }, - file: p1, - }, - context: p2166, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(115), - Column: int(32), - }, - End: Location{ - Line: int(115), - Column: int(35), - }, - file: p1, - }, - context: p2175, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(116), - Column: int(5), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "std", - "str", - "str_len", - "to", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "from_len", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(116), - Column: int(22), - }, - End: Location{ - Line: int(116), - Column: int(38), - }, - file: p1, - }, - context: p2181, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(116), - Column: int(22), - }, - End: Location{ - Line: int(116), - Column: int(32), - }, - file: p1, - }, - context: p2181, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(116), - Column: int(22), - }, - End: Location{ - Line: int(116), - Column: int(25), - }, - file: p1, - }, - context: p2181, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(116), - Column: int(33), - }, - End: Location{ - Line: int(116), - Column: int(37), - }, - file: p1, - }, - context: p2190, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(5), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "from_len", - "std", - "str", - "str_len", - "to", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "found_at", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(11), - }, - End: Location{ - Line: int(119), - Column: int(52), - }, - file: p1, - }, - context: p2196, - freeVariables: Identifiers{ - "from", - "from_len", - "std", - "str", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from", - "from_len", - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from_len", - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(25), - }, - End: Location{ - Line: int(119), - Column: int(28), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(29), - }, - End: Location{ - Line: int(119), - Column: int(30), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(31), - }, - End: Location{ - Line: int(119), - Column: int(43), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "from_len", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(31), - }, - End: Location{ - Line: int(119), - Column: int(32), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(35), - }, - End: Location{ - Line: int(119), - Column: int(43), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "from_len", - }, - }, - Id: "from_len", - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(119), - Column: int(48), - }, - End: Location{ - Line: int(119), - Column: int(52), - }, - file: p1, - }, - context: p2216, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(123), - Column: int(5), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "found_at", - "from", - "from_len", - "std", - "str", - "str_len", - "to", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "replace_after", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(123), - Column: int(11), - }, - End: Location{ - Line: int(130), - Column: int(56), - }, - file: p1, - }, - context: p2233, - freeVariables: Identifiers{ - "found_at", - "from", - "replace_after", - "std", - "str", - "str_len", - "to", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "start_index", - "curr_index", - "acc", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(124), - Column: int(7), - }, - End: Location{ - Line: int(130), - Column: int(56), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "found_at", - "from", - "replace_after", - "start_index", - "std", - "str", - "str_len", - "to", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(124), - Column: int(10), - }, - End: Location{ - Line: int(124), - Column: int(30), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "curr_index", - "str_len", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(124), - Column: int(10), - }, - End: Location{ - Line: int(124), - Column: int(20), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - Op: BinaryOp(7), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(124), - Column: int(23), - }, - End: Location{ - Line: int(124), - Column: int(30), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "str_len", - }, - }, - Id: "str_len", - }, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(125), - Column: int(9), - }, - End: Location{ - Line: int(125), - Column: int(42), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "start_index", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(125), - Column: int(9), - }, - End: Location{ - Line: int(125), - Column: int(12), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "curr_index", - "start_index", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(125), - Column: int(15), - }, - End: Location{ - Line: int(125), - Column: int(18), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(125), - Column: int(19), - }, - End: Location{ - Line: int(125), - Column: int(30), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "start_index", - }, - }, - Id: "start_index", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(125), - Column: int(31), - }, - End: Location{ - Line: int(125), - Column: int(41), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(126), - Column: int(12), - }, - End: Location{ - Line: int(130), - Column: int(56), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "found_at", - "from", - "replace_after", - "start_index", - "std", - "str", - "to", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(126), - Column: int(15), - }, - End: Location{ - Line: int(126), - Column: int(35), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "curr_index", - "found_at", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(126), - Column: int(15), - }, - End: Location{ - Line: int(126), - Column: int(23), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "found_at", - }, - }, - Id: "found_at", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(126), - Column: int(24), - }, - End: Location{ - Line: int(126), - Column: int(34), - }, - file: p1, - }, - context: p2272, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(9), - }, - End: Location{ - Line: int(128), - Column: int(84), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "from", - "replace_after", - "start_index", - "std", - "str", - "to", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "new_index", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(27), - }, - End: Location{ - Line: int(127), - Column: int(56), - }, - file: p1, - }, - context: p2278, - freeVariables: Identifiers{ - "curr_index", - "from", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(27), - }, - End: Location{ - Line: int(127), - Column: int(37), - }, - file: p1, - }, - context: p2278, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(40), - }, - End: Location{ - Line: int(127), - Column: int(56), - }, - file: p1, - }, - context: p2278, - freeVariables: Identifiers{ - "from", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(40), - }, - End: Location{ - Line: int(127), - Column: int(50), - }, - file: p1, - }, - context: p2278, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(40), - }, - End: Location{ - Line: int(127), - Column: int(43), - }, - file: p1, - }, - context: p2278, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(127), - Column: int(51), - }, - End: Location{ - Line: int(127), - Column: int(55), - }, - file: p1, - }, - context: p2291, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(9), - }, - End: Location{ - Line: int(128), - Column: int(84), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "new_index", - "replace_after", - "start_index", - "std", - "str", - "to", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(9), - }, - End: Location{ - Line: int(128), - Column: int(22), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "replace_after", - }, - }, - Id: "replace_after", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(23), - }, - End: Location{ - Line: int(128), - Column: int(32), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "new_index", - }, - }, - Id: "new_index", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(34), - }, - End: Location{ - Line: int(128), - Column: int(43), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "new_index", - }, - }, - Id: "new_index", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(45), - }, - End: Location{ - Line: int(128), - Column: int(83), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "acc", - "curr_index", - "start_index", - "std", - "str", - "to", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(45), - }, - End: Location{ - Line: int(128), - Column: int(78), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "acc", - "curr_index", - "start_index", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(45), - }, - End: Location{ - Line: int(128), - Column: int(48), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "curr_index", - "start_index", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(51), - }, - End: Location{ - Line: int(128), - Column: int(54), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(55), - }, - End: Location{ - Line: int(128), - Column: int(66), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "start_index", - }, - }, - Id: "start_index", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(67), - }, - End: Location{ - Line: int(128), - Column: int(77), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(128), - Column: int(81), - }, - End: Location{ - Line: int(128), - Column: int(83), - }, - file: p1, - }, - context: p2299, - freeVariables: Identifiers{ - "to", - }, - }, - Id: "to", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(9), - }, - End: Location{ - Line: int(130), - Column: int(56), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "acc", - "curr_index", - "replace_after", - "start_index", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(9), - }, - End: Location{ - Line: int(130), - Column: int(22), - }, - file: p1, - }, - context: p2237, - freeVariables: Identifiers{ - "replace_after", - }, - }, - Id: "replace_after", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(23), - }, - End: Location{ - Line: int(130), - Column: int(34), - }, - file: p1, - }, - context: p2332, - freeVariables: Identifiers{ - "start_index", - }, - }, - Id: "start_index", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(36), - }, - End: Location{ - Line: int(130), - Column: int(50), - }, - file: p1, - }, - context: p2332, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(36), - }, - End: Location{ - Line: int(130), - Column: int(46), - }, - file: p1, - }, - context: p2332, - freeVariables: Identifiers{ - "curr_index", - }, - }, - Id: "curr_index", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(49), - }, - End: Location{ - Line: int(130), - Column: int(50), - }, - file: p1, - }, - context: p2332, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(130), - Column: int(52), - }, - End: Location{ - Line: int(130), - Column: int(55), - }, - file: p1, - }, - context: p2332, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(134), - Column: int(5), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "from_len", - "replace_after", - "std", - "str", - "to", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "from_len", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(134), - Column: int(8), - }, - End: Location{ - Line: int(134), - Column: int(16), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from_len", - }, - }, - Id: "from_len", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(134), - Column: int(20), - }, - End: Location{ - Line: int(134), - Column: int(21), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(7), - }, - End: Location{ - Line: int(135), - Column: int(41), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "from", - "std", - "str", - "to", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(7), - }, - End: Location{ - Line: int(135), - Column: int(15), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(7), - }, - End: Location{ - Line: int(135), - Column: int(10), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(16), - }, - End: Location{ - Line: int(135), - Column: int(18), - }, - file: p1, - }, - context: p2363, - freeVariables: Identifiers{ - "to", - }, - }, - Id: "to", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(20), - }, - End: Location{ - Line: int(135), - Column: int(40), - }, - file: p1, - }, - context: p2363, - freeVariables: Identifiers{ - "from", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(20), - }, - End: Location{ - Line: int(135), - Column: int(29), - }, - file: p1, - }, - context: p2363, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(20), - }, - End: Location{ - Line: int(135), - Column: int(23), - }, - file: p1, - }, - context: p2363, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "split", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(30), - }, - End: Location{ - Line: int(135), - Column: int(33), - }, - file: p1, - }, - context: p2374, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(135), - Column: int(35), - }, - End: Location{ - Line: int(135), - Column: int(39), - }, - file: p1, - }, - context: p2374, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(137), - Column: int(7), - }, - End: Location{ - Line: int(137), - Column: int(30), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "replace_after", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(137), - Column: int(7), - }, - End: Location{ - Line: int(137), - Column: int(20), - }, - file: p1, - }, - context: p2091, - freeVariables: Identifiers{ - "replace_after", - }, - }, - Id: "replace_after", - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(137), - Column: int(21), - }, - End: Location{ - Line: int(137), - Column: int(22), - }, - file: p1, - }, - context: p2384, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(137), - Column: int(24), - }, - End: Location{ - Line: int(137), - Column: int(25), - }, - file: p1, - }, - context: p2384, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(137), - Column: int(27), - }, - End: Location{ - Line: int(137), - Column: int(29), - }, - file: p1, - }, - context: p2384, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(112), - Column: int(25), - }, - End: Location{ - Line: int(112), - Column: int(65), - }, - file: p1, - }, - context: p2091, - freeVariables: nil, - }, - Value: "'from' string must not be zero length.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "Assertion failed", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "Assertion failed", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "Assertion failed", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "asciiUpper", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p2399, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p2401, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p2425, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p2429, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p2432, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p2435, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p2438, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p2441, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p2444, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p2447, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p2452, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p2454, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(140), - Column: int(5), - }, - End: Location{ - Line: int(145), - Column: int(57), - }, - file: p1, - }, - context: p2460, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "cp", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(140), - Column: int(16), - }, - End: Location{ - Line: int(140), - Column: int(29), - }, - file: p1, - }, - context: p2464, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(140), - Column: int(16), - }, - End: Location{ - Line: int(140), - Column: int(19), - }, - file: p1, - }, - context: p2464, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(5), - }, - End: Location{ - Line: int(145), - Column: int(57), - }, - file: p1, - }, - context: p2460, - freeVariables: Identifiers{ - "cp", - "std", - "x", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "up_letter", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(11), - }, - End: Location{ - Line: int(144), - Column: int(8), - }, - file: p1, - }, - context: p2473, - freeVariables: Identifiers{ - "cp", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "c", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(26), - }, - End: Location{ - Line: int(144), - Column: int(8), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(29), - }, - End: Location{ - Line: int(141), - Column: int(55), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(29), - }, - End: Location{ - Line: int(141), - Column: int(40), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(29), - }, - End: Location{ - Line: int(141), - Column: int(34), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(29), - }, - End: Location{ - Line: int(141), - Column: int(31), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(32), - }, - End: Location{ - Line: int(141), - Column: int(33), - }, - file: p1, - }, - context: p2489, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(8), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(38), - }, - End: Location{ - Line: int(141), - Column: int(40), - }, - file: p1, - }, - context: p2477, - freeVariables: nil, - }, - Value: float64(97), - OriginalString: "97", - }, - }, - Op: BinaryOp(17), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(44), - }, - End: Location{ - Line: int(141), - Column: int(55), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(44), - }, - End: Location{ - Line: int(141), - Column: int(49), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(44), - }, - End: Location{ - Line: int(141), - Column: int(46), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(47), - }, - End: Location{ - Line: int(141), - Column: int(48), - }, - file: p1, - }, - context: p2500, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(141), - Column: int(52), - }, - End: Location{ - Line: int(141), - Column: int(55), - }, - file: p1, - }, - context: p2477, - freeVariables: nil, - }, - Value: float64(123), - OriginalString: "123", - }, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(7), - }, - End: Location{ - Line: int(142), - Column: int(27), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - "cp", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(7), - }, - End: Location{ - Line: int(142), - Column: int(15), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(7), - }, - End: Location{ - Line: int(142), - Column: int(10), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "char", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(16), - }, - End: Location{ - Line: int(142), - Column: int(26), - }, - file: p1, - }, - context: p2512, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(16), - }, - End: Location{ - Line: int(142), - Column: int(21), - }, - file: p1, - }, - context: p2512, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(16), - }, - End: Location{ - Line: int(142), - Column: int(18), - }, - file: p1, - }, - context: p2512, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(19), - }, - End: Location{ - Line: int(142), - Column: int(20), - }, - file: p1, - }, - context: p2520, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(142), - Column: int(24), - }, - End: Location{ - Line: int(142), - Column: int(26), - }, - file: p1, - }, - context: p2512, - freeVariables: nil, - }, - Value: float64(32), - OriginalString: "32", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(144), - Column: int(7), - }, - End: Location{ - Line: int(144), - Column: int(8), - }, - file: p1, - }, - context: p2477, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(5), - }, - End: Location{ - Line: int(145), - Column: int(57), - }, - file: p1, - }, - context: p2460, - freeVariables: Identifiers{ - "std", - "up_letter", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(5), - }, - End: Location{ - Line: int(145), - Column: int(13), - }, - file: p1, - }, - context: p2460, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(5), - }, - End: Location{ - Line: int(145), - Column: int(8), - }, - file: p1, - }, - context: p2460, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(14), - }, - End: Location{ - Line: int(145), - Column: int(16), - }, - file: p1, - }, - context: p2534, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(18), - }, - End: Location{ - Line: int(145), - Column: int(56), - }, - file: p1, - }, - context: p2534, - freeVariables: Identifiers{ - "std", - "up_letter", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(18), - }, - End: Location{ - Line: int(145), - Column: int(25), - }, - file: p1, - }, - context: p2534, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(18), - }, - End: Location{ - Line: int(145), - Column: int(21), - }, - file: p1, - }, - context: p2534, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(26), - }, - End: Location{ - Line: int(145), - Column: int(35), - }, - file: p1, - }, - context: p2544, - freeVariables: Identifiers{ - "up_letter", - }, - }, - Id: "up_letter", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(37), - }, - End: Location{ - Line: int(145), - Column: int(55), - }, - file: p1, - }, - context: p2544, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(37), - }, - End: Location{ - Line: int(145), - Column: int(52), - }, - file: p1, - }, - context: p2544, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(37), - }, - End: Location{ - Line: int(145), - Column: int(40), - }, - file: p1, - }, - context: p2544, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(145), - Column: int(53), - }, - End: Location{ - Line: int(145), - Column: int(54), - }, - file: p1, - }, - context: p2555, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "asciiLower", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p2561, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p2563, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p2587, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p2591, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p2594, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p2597, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p2600, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p2603, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p2606, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p2609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p2614, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p2616, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(148), - Column: int(5), - }, - End: Location{ - Line: int(153), - Column: int(59), - }, - file: p1, - }, - context: p2622, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "cp", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(148), - Column: int(16), - }, - End: Location{ - Line: int(148), - Column: int(29), - }, - file: p1, - }, - context: p2626, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(148), - Column: int(16), - }, - End: Location{ - Line: int(148), - Column: int(19), - }, - file: p1, - }, - context: p2626, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(5), - }, - End: Location{ - Line: int(153), - Column: int(59), - }, - file: p1, - }, - context: p2622, - freeVariables: Identifiers{ - "cp", - "std", - "x", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "down_letter", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(11), - }, - End: Location{ - Line: int(152), - Column: int(8), - }, - file: p1, - }, - context: p2635, - freeVariables: Identifiers{ - "cp", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "c", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(28), - }, - End: Location{ - Line: int(152), - Column: int(8), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(31), - }, - End: Location{ - Line: int(149), - Column: int(56), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(31), - }, - End: Location{ - Line: int(149), - Column: int(42), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(31), - }, - End: Location{ - Line: int(149), - Column: int(36), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(31), - }, - End: Location{ - Line: int(149), - Column: int(33), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(34), - }, - End: Location{ - Line: int(149), - Column: int(35), - }, - file: p1, - }, - context: p2651, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(8), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(40), - }, - End: Location{ - Line: int(149), - Column: int(42), - }, - file: p1, - }, - context: p2639, - freeVariables: nil, - }, - Value: float64(65), - OriginalString: "65", - }, - }, - Op: BinaryOp(17), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(46), - }, - End: Location{ - Line: int(149), - Column: int(56), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(46), - }, - End: Location{ - Line: int(149), - Column: int(51), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(46), - }, - End: Location{ - Line: int(149), - Column: int(48), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(49), - }, - End: Location{ - Line: int(149), - Column: int(50), - }, - file: p1, - }, - context: p2662, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(149), - Column: int(54), - }, - End: Location{ - Line: int(149), - Column: int(56), - }, - file: p1, - }, - context: p2639, - freeVariables: nil, - }, - Value: float64(91), - OriginalString: "91", - }, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(7), - }, - End: Location{ - Line: int(150), - Column: int(27), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - "cp", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(7), - }, - End: Location{ - Line: int(150), - Column: int(15), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(7), - }, - End: Location{ - Line: int(150), - Column: int(10), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "char", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(16), - }, - End: Location{ - Line: int(150), - Column: int(26), - }, - file: p1, - }, - context: p2674, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(16), - }, - End: Location{ - Line: int(150), - Column: int(21), - }, - file: p1, - }, - context: p2674, - freeVariables: Identifiers{ - "c", - "cp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(16), - }, - End: Location{ - Line: int(150), - Column: int(18), - }, - file: p1, - }, - context: p2674, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(19), - }, - End: Location{ - Line: int(150), - Column: int(20), - }, - file: p1, - }, - context: p2682, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(150), - Column: int(24), - }, - End: Location{ - Line: int(150), - Column: int(26), - }, - file: p1, - }, - context: p2674, - freeVariables: nil, - }, - Value: float64(32), - OriginalString: "32", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(152), - Column: int(7), - }, - End: Location{ - Line: int(152), - Column: int(8), - }, - file: p1, - }, - context: p2639, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(5), - }, - End: Location{ - Line: int(153), - Column: int(59), - }, - file: p1, - }, - context: p2622, - freeVariables: Identifiers{ - "down_letter", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(5), - }, - End: Location{ - Line: int(153), - Column: int(13), - }, - file: p1, - }, - context: p2622, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(5), - }, - End: Location{ - Line: int(153), - Column: int(8), - }, - file: p1, - }, - context: p2622, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(14), - }, - End: Location{ - Line: int(153), - Column: int(16), - }, - file: p1, - }, - context: p2696, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(18), - }, - End: Location{ - Line: int(153), - Column: int(58), - }, - file: p1, - }, - context: p2696, - freeVariables: Identifiers{ - "down_letter", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(18), - }, - End: Location{ - Line: int(153), - Column: int(25), - }, - file: p1, - }, - context: p2696, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(18), - }, - End: Location{ - Line: int(153), - Column: int(21), - }, - file: p1, - }, - context: p2696, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(26), - }, - End: Location{ - Line: int(153), - Column: int(37), - }, - file: p1, - }, - context: p2706, - freeVariables: Identifiers{ - "down_letter", - }, - }, - Id: "down_letter", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(39), - }, - End: Location{ - Line: int(153), - Column: int(57), - }, - file: p1, - }, - context: p2706, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(39), - }, - End: Location{ - Line: int(153), - Column: int(54), - }, - file: p1, - }, - context: p2706, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(39), - }, - End: Location{ - Line: int(153), - Column: int(42), - }, - file: p1, - }, - context: p2706, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(153), - Column: int(55), - }, - End: Location{ - Line: int(153), - Column: int(56), - }, - file: p1, - }, - context: p2717, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p2723, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p2725, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p2749, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p2753, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p2756, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p2759, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p2762, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p2765, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p2768, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p2771, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p2776, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p2778, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "from", - "to", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(5), - }, - End: Location{ - Line: int(157), - Column: int(55), - }, - file: p1, - }, - context: p2784, - freeVariables: Identifiers{ - "from", - "std", - "to", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(5), - }, - End: Location{ - Line: int(157), - Column: int(18), - }, - file: p1, - }, - context: p2784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(5), - }, - End: Location{ - Line: int(157), - Column: int(8), - }, - file: p1, - }, - context: p2784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(19), - }, - End: Location{ - Line: int(157), - Column: int(32), - }, - file: p1, - }, - context: p2793, - freeVariables: Identifiers{ - "from", - "to", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(19), - }, - End: Location{ - Line: int(157), - Column: int(28), - }, - file: p1, - }, - context: p2793, - freeVariables: Identifiers{ - "from", - "to", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(19), - }, - End: Location{ - Line: int(157), - Column: int(21), - }, - file: p1, - }, - context: p2793, - freeVariables: Identifiers{ - "to", - }, - }, - Id: "to", - }, - Op: BinaryOp(4), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(24), - }, - End: Location{ - Line: int(157), - Column: int(28), - }, - file: p1, - }, - context: p2793, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(31), - }, - End: Location{ - Line: int(157), - Column: int(32), - }, - file: p1, - }, - context: p2793, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(34), - }, - End: Location{ - Line: int(157), - Column: int(54), - }, - file: p1, - }, - context: p2793, - freeVariables: Identifiers{ - "from", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(46), - }, - End: Location{ - Line: int(157), - Column: int(54), - }, - file: p1, - }, - context: p2806, - freeVariables: Identifiers{ - "from", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(46), - }, - End: Location{ - Line: int(157), - Column: int(47), - }, - file: p1, - }, - context: p2806, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(157), - Column: int(50), - }, - End: Location{ - Line: int(157), - Column: int(54), - }, - file: p1, - }, - context: p2806, - freeVariables: Identifiers{ - "from", - }, - }, - Id: "from", - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p2816, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p2818, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p2842, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p2846, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p2849, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p2852, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p2855, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p2858, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p2861, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p2864, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p2869, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p2871, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "indexable", - "index", - "end", - "step", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(160), - Column: int(5), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "end", - "index", - "indexable", - "std", - "step", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "invar", - Body: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(162), - Column: int(7), - }, - End: Location{ - Line: int(175), - Column: int(8), - }, - file: p1, - }, - context: p2881, - freeVariables: Identifiers{ - "end", - "index", - "indexable", - "std", - "step", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "indexable", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(163), - Column: int(20), - }, - End: Location{ - Line: int(163), - Column: int(29), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "index", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(165), - Column: int(11), - }, - End: Location{ - Line: int(166), - Column: int(21), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "index", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "index", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(165), - Column: int(14), - }, - End: Location{ - Line: int(165), - Column: int(19), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "index", - }, - }, - Id: "index", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(165), - Column: int(23), - }, - End: Location{ - Line: int(165), - Column: int(27), - }, - file: p1, - }, - context: p2886, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(165), - Column: int(33), - }, - End: Location{ - Line: int(165), - Column: int(34), - }, - file: p1, - }, - context: p2886, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(166), - Column: int(16), - }, - End: Location{ - Line: int(166), - Column: int(21), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "index", - }, - }, - Id: "index", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "end", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(11), - }, - End: Location{ - Line: int(169), - Column: int(19), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "end", - "indexable", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "end", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(14), - }, - End: Location{ - Line: int(168), - Column: int(17), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "end", - }, - }, - Id: "end", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(21), - }, - End: Location{ - Line: int(168), - Column: int(25), - }, - file: p1, - }, - context: p2886, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(31), - }, - End: Location{ - Line: int(168), - Column: int(52), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(31), - }, - End: Location{ - Line: int(168), - Column: int(41), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(31), - }, - End: Location{ - Line: int(168), - Column: int(34), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(168), - Column: int(42), - }, - End: Location{ - Line: int(168), - Column: int(51), - }, - file: p1, - }, - context: p2928, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(169), - Column: int(16), - }, - End: Location{ - Line: int(169), - Column: int(19), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "end", - }, - }, - Id: "end", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "step", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(171), - Column: int(11), - }, - End: Location{ - Line: int(172), - Column: int(20), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - "step", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "step", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(171), - Column: int(14), - }, - End: Location{ - Line: int(171), - Column: int(18), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "step", - }, - }, - Id: "step", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(171), - Column: int(22), - }, - End: Location{ - Line: int(171), - Column: int(26), - }, - file: p1, - }, - context: p2886, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(171), - Column: int(32), - }, - End: Location{ - Line: int(171), - Column: int(33), - }, - file: p1, - }, - context: p2886, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(172), - Column: int(16), - }, - End: Location{ - Line: int(172), - Column: int(20), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "step", - }, - }, - Id: "step", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(173), - Column: int(17), - }, - End: Location{ - Line: int(173), - Column: int(38), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(173), - Column: int(17), - }, - End: Location{ - Line: int(173), - Column: int(27), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(173), - Column: int(17), - }, - End: Location{ - Line: int(173), - Column: int(20), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(173), - Column: int(28), - }, - End: Location{ - Line: int(173), - Column: int(37), - }, - file: p1, - }, - context: p2959, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(174), - Column: int(15), - }, - End: Location{ - Line: int(174), - Column: int(34), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(174), - Column: int(15), - }, - End: Location{ - Line: int(174), - Column: int(23), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(174), - Column: int(15), - }, - End: Location{ - Line: int(174), - Column: int(18), - }, - file: p1, - }, - context: p2886, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(174), - Column: int(24), - }, - End: Location{ - Line: int(174), - Column: int(33), - }, - file: p1, - }, - context: p2971, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - PlusSuper: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(5), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "invar", - "std", - "step", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(8), - }, - End: Location{ - Line: int(176), - Column: int(58), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(8), - }, - End: Location{ - Line: int(176), - Column: int(40), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(8), - }, - End: Location{ - Line: int(176), - Column: int(23), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(8), - }, - End: Location{ - Line: int(176), - Column: int(19), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(8), - }, - End: Location{ - Line: int(176), - Column: int(13), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "index", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(22), - }, - End: Location{ - Line: int(176), - Column: int(23), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(27), - }, - End: Location{ - Line: int(176), - Column: int(40), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(27), - }, - End: Location{ - Line: int(176), - Column: int(36), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(27), - }, - End: Location{ - Line: int(176), - Column: int(32), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "end", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(39), - }, - End: Location{ - Line: int(176), - Column: int(40), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(44), - }, - End: Location{ - Line: int(176), - Column: int(58), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(44), - }, - End: Location{ - Line: int(176), - Column: int(54), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(44), - }, - End: Location{ - Line: int(176), - Column: int(49), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "step", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(176), - Column: int(57), - }, - End: Location{ - Line: int(176), - Column: int(58), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(177), - Column: int(7), - }, - End: Location{ - Line: int(178), - Column: int(53), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(177), - Column: int(14), - }, - End: Location{ - Line: int(177), - Column: int(83), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: "got [%s:%s:%s] but negative index, end, and steps are not supported", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(16), - }, - End: Location{ - Line: int(178), - Column: int(52), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - }, - }, - Elements: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(17), - }, - End: Location{ - Line: int(178), - Column: int(28), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(17), - }, - End: Location{ - Line: int(178), - Column: int(22), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "index", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(30), - }, - End: Location{ - Line: int(178), - Column: int(39), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(30), - }, - End: Location{ - Line: int(178), - Column: int(35), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "end", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(41), - }, - End: Location{ - Line: int(178), - Column: int(51), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(178), - Column: int(41), - }, - End: Location{ - Line: int(178), - Column: int(46), - }, - file: p1, - }, - context: p3018, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "step", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(179), - Column: int(10), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "invar", - "std", - "step", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "step", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(179), - Column: int(13), - }, - End: Location{ - Line: int(179), - Column: int(17), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "step", - }, - }, - Id: "step", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(179), - Column: int(21), - }, - End: Location{ - Line: int(179), - Column: int(22), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(180), - Column: int(7), - }, - End: Location{ - Line: int(180), - Column: int(62), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - "step", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "step", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(180), - Column: int(14), - }, - End: Location{ - Line: int(180), - Column: int(54), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: "got %s but step must be greater than 0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(180), - Column: int(57), - }, - End: Location{ - Line: int(180), - Column: int(61), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "step", - }, - }, - Id: "step", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(10), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "invar", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(13), - }, - End: Location{ - Line: int(181), - Column: int(78), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Left: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(13), - }, - End: Location{ - Line: int(181), - Column: int(32), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(13), - }, - End: Location{ - Line: int(181), - Column: int(21), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(13), - }, - End: Location{ - Line: int(181), - Column: int(16), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(22), - }, - End: Location{ - Line: int(181), - Column: int(31), - }, - file: p1, - }, - context: p3082, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(36), - }, - End: Location{ - Line: int(181), - Column: int(44), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(17), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(48), - }, - End: Location{ - Line: int(181), - Column: int(67), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(48), - }, - End: Location{ - Line: int(181), - Column: int(56), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(48), - }, - End: Location{ - Line: int(181), - Column: int(51), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(57), - }, - End: Location{ - Line: int(181), - Column: int(66), - }, - file: p1, - }, - context: p3104, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(181), - Column: int(71), - }, - End: Location{ - Line: int(181), - Column: int(78), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(7), - }, - End: Location{ - Line: int(182), - Column: int(90), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(14), - }, - End: Location{ - Line: int(182), - Column: int(67), - }, - file: p1, - }, - context: p2877, - freeVariables: nil, - }, - Value: "std.slice accepts a string or an array, but got: %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(70), - }, - End: Location{ - Line: int(182), - Column: int(89), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "indexable", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(70), - }, - End: Location{ - Line: int(182), - Column: int(78), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(70), - }, - End: Location{ - Line: int(182), - Column: int(73), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(182), - Column: int(79), - }, - End: Location{ - Line: int(182), - Column: int(88), - }, - file: p1, - }, - context: p3127, - freeVariables: Identifiers{ - "indexable", - }, - }, - Id: "indexable", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(184), - Column: int(7), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "build", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(184), - Column: int(13), - }, - End: Location{ - Line: int(194), - Column: int(12), - }, - file: p1, - }, - context: p3133, - freeVariables: Identifiers{ - "build", - "invar", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "slice", - "cur", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(9), - }, - End: Location{ - Line: int(194), - Column: int(12), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "build", - "cur", - "invar", - "slice", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(12), - }, - End: Location{ - Line: int(185), - Column: int(51), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(12), - }, - End: Location{ - Line: int(185), - Column: int(28), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(12), - }, - End: Location{ - Line: int(185), - Column: int(15), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Op: BinaryOp(8), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(19), - }, - End: Location{ - Line: int(185), - Column: int(28), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(19), - }, - End: Location{ - Line: int(185), - Column: int(24), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "end", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(32), - }, - End: Location{ - Line: int(185), - Column: int(51), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(32), - }, - End: Location{ - Line: int(185), - Column: int(35), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Op: BinaryOp(8), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(39), - }, - End: Location{ - Line: int(185), - Column: int(51), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(185), - Column: int(39), - }, - End: Location{ - Line: int(185), - Column: int(44), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(186), - Column: int(11), - }, - End: Location{ - Line: int(186), - Column: int(16), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "slice", - }, - }, - Id: "slice", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(188), - Column: int(11), - }, - End: Location{ - Line: int(194), - Column: int(12), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "build", - "cur", - "invar", - "slice", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(188), - Column: int(11), - }, - End: Location{ - Line: int(188), - Column: int(16), - }, - file: p1, - }, - context: p3137, - freeVariables: Identifiers{ - "build", - }, - }, - Id: "build", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(189), - Column: int(13), - }, - End: Location{ - Line: int(192), - Column: int(45), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - "slice", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(189), - Column: int(16), - }, - End: Location{ - Line: int(189), - Column: int(26), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(189), - Column: int(16), - }, - End: Location{ - Line: int(189), - Column: int(21), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(189), - Column: int(30), - }, - End: Location{ - Line: int(189), - Column: int(38), - }, - file: p1, - }, - context: p3167, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(15), - }, - End: Location{ - Line: int(190), - Column: int(43), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - "slice", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(15), - }, - End: Location{ - Line: int(190), - Column: int(20), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "slice", - }, - }, - Id: "slice", - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(23), - }, - End: Location{ - Line: int(190), - Column: int(43), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(23), - }, - End: Location{ - Line: int(190), - Column: int(38), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(23), - }, - End: Location{ - Line: int(190), - Column: int(28), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "indexable", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(190), - Column: int(39), - }, - End: Location{ - Line: int(190), - Column: int(42), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Id: nil, - }, - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(15), - }, - End: Location{ - Line: int(192), - Column: int(45), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - "slice", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(15), - }, - End: Location{ - Line: int(192), - Column: int(20), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "slice", - }, - }, - Id: "slice", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(23), - }, - End: Location{ - Line: int(192), - Column: int(45), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Elements: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(24), - }, - End: Location{ - Line: int(192), - Column: int(44), - }, - file: p1, - }, - context: p3204, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(24), - }, - End: Location{ - Line: int(192), - Column: int(39), - }, - file: p1, - }, - context: p3204, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(24), - }, - End: Location{ - Line: int(192), - Column: int(29), - }, - file: p1, - }, - context: p3204, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "indexable", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(192), - Column: int(40), - }, - End: Location{ - Line: int(192), - Column: int(43), - }, - file: p1, - }, - context: p3204, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(193), - Column: int(13), - }, - End: Location{ - Line: int(193), - Column: int(29), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - "invar", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(193), - Column: int(13), - }, - End: Location{ - Line: int(193), - Column: int(16), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(193), - Column: int(19), - }, - End: Location{ - Line: int(193), - Column: int(29), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(193), - Column: int(19), - }, - End: Location{ - Line: int(193), - Column: int(24), - }, - file: p1, - }, - context: p3167, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "step", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(7), - }, - End: Location{ - Line: int(195), - Column: int(68), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "build", - "invar", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(7), - }, - End: Location{ - Line: int(195), - Column: int(12), - }, - file: p1, - }, - context: p2877, - freeVariables: Identifiers{ - "build", - }, - }, - Id: "build", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(13), - }, - End: Location{ - Line: int(195), - Column: int(54), - }, - file: p1, - }, - context: p3228, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "invar", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(16), - }, - End: Location{ - Line: int(195), - Column: int(26), - }, - file: p1, - }, - context: p3228, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(16), - }, - End: Location{ - Line: int(195), - Column: int(21), - }, - file: p1, - }, - context: p3228, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(30), - }, - End: Location{ - Line: int(195), - Column: int(38), - }, - file: p1, - }, - context: p3228, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(44), - }, - End: Location{ - Line: int(195), - Column: int(46), - }, - file: p1, - }, - context: p3228, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(52), - }, - End: Location{ - Line: int(195), - Column: int(54), - }, - file: p1, - }, - context: p3228, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(56), - }, - End: Location{ - Line: int(195), - Column: int(67), - }, - file: p1, - }, - context: p3228, - freeVariables: Identifiers{ - "invar", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(195), - Column: int(56), - }, - End: Location{ - Line: int(195), - Column: int(61), - }, - file: p1, - }, - context: p3228, - freeVariables: Identifiers{ - "invar", - }, - }, - Id: "invar", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "index", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "count", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p3255, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p3257, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p3281, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p3285, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p3288, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p3291, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p3294, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p3297, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p3300, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p3303, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p3308, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p3310, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(19), - }, - End: Location{ - Line: int(197), - Column: int(66), - }, - file: p1, - }, - context: p3316, - freeVariables: Identifiers{ - "arr", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(19), - }, - End: Location{ - Line: int(197), - Column: int(29), - }, - file: p1, - }, - context: p3316, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(19), - }, - End: Location{ - Line: int(197), - Column: int(22), - }, - file: p1, - }, - context: p3316, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(30), - }, - End: Location{ - Line: int(197), - Column: int(65), - }, - file: p1, - }, - context: p3325, - freeVariables: Identifiers{ - "arr", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(30), - }, - End: Location{ - Line: int(197), - Column: int(40), - }, - file: p1, - }, - context: p3325, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(30), - }, - End: Location{ - Line: int(197), - Column: int(33), - }, - file: p1, - }, - context: p3325, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "filter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(41), - }, - End: Location{ - Line: int(197), - Column: int(59), - }, - file: p1, - }, - context: p3334, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(53), - }, - End: Location{ - Line: int(197), - Column: int(54), - }, - file: p1, - }, - context: p3346, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(58), - }, - End: Location{ - Line: int(197), - Column: int(59), - }, - file: p1, - }, - context: p3346, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(197), - Column: int(61), - }, - End: Location{ - Line: int(197), - Column: int(64), - }, - file: p1, - }, - context: p3334, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p3356, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p3358, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p3382, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p3386, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p3389, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p3392, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p3395, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p3398, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p3401, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p3404, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p3409, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p3411, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(5), - }, - End: Location{ - Line: int(205), - Column: int(94), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(8), - }, - End: Location{ - Line: int(200), - Column: int(58), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(8), - }, - End: Location{ - Line: int(200), - Column: int(19), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(8), - }, - End: Location{ - Line: int(200), - Column: int(16), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(8), - }, - End: Location{ - Line: int(200), - Column: int(11), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(17), - }, - End: Location{ - Line: int(200), - Column: int(18), - }, - file: p1, - }, - context: p3438, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(23), - }, - End: Location{ - Line: int(200), - Column: int(31), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(17), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(35), - }, - End: Location{ - Line: int(200), - Column: int(46), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(35), - }, - End: Location{ - Line: int(200), - Column: int(43), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(35), - }, - End: Location{ - Line: int(200), - Column: int(38), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(44), - }, - End: Location{ - Line: int(200), - Column: int(45), - }, - file: p1, - }, - context: p3458, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(200), - Column: int(50), - }, - End: Location{ - Line: int(200), - Column: int(58), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(201), - Column: int(7), - }, - End: Location{ - Line: int(201), - Column: int(23), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(201), - Column: int(7), - }, - End: Location{ - Line: int(201), - Column: int(17), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(201), - Column: int(7), - }, - End: Location{ - Line: int(201), - Column: int(10), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "modulo", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(201), - Column: int(18), - }, - End: Location{ - Line: int(201), - Column: int(19), - }, - file: p1, - }, - context: p3470, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(201), - Column: int(21), - }, - End: Location{ - Line: int(201), - Column: int(22), - }, - file: p1, - }, - context: p3470, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(10), - }, - End: Location{ - Line: int(205), - Column: int(94), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(13), - }, - End: Location{ - Line: int(202), - Column: int(24), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(13), - }, - End: Location{ - Line: int(202), - Column: int(21), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(13), - }, - End: Location{ - Line: int(202), - Column: int(16), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(22), - }, - End: Location{ - Line: int(202), - Column: int(23), - }, - file: p1, - }, - context: p3493, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(202), - Column: int(28), - }, - End: Location{ - Line: int(202), - Column: int(36), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(203), - Column: int(7), - }, - End: Location{ - Line: int(203), - Column: int(23), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(203), - Column: int(7), - }, - End: Location{ - Line: int(203), - Column: int(17), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(203), - Column: int(7), - }, - End: Location{ - Line: int(203), - Column: int(10), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "format", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(203), - Column: int(18), - }, - End: Location{ - Line: int(203), - Column: int(19), - }, - file: p1, - }, - context: p3505, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(203), - Column: int(21), - }, - End: Location{ - Line: int(203), - Column: int(22), - }, - file: p1, - }, - context: p3505, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(7), - }, - End: Location{ - Line: int(205), - Column: int(94), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(13), - }, - End: Location{ - Line: int(205), - Column: int(94), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(13), - }, - End: Location{ - Line: int(205), - Column: int(88), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(13), - }, - End: Location{ - Line: int(205), - Column: int(74), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(13), - }, - End: Location{ - Line: int(205), - Column: int(64), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(13), - }, - End: Location{ - Line: int(205), - Column: int(50), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: "Operator % cannot be used on types ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(53), - }, - End: Location{ - Line: int(205), - Column: int(64), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(53), - }, - End: Location{ - Line: int(205), - Column: int(61), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(53), - }, - End: Location{ - Line: int(205), - Column: int(56), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(62), - }, - End: Location{ - Line: int(205), - Column: int(63), - }, - file: p1, - }, - context: p3529, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(67), - }, - End: Location{ - Line: int(205), - Column: int(74), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: " and ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(77), - }, - End: Location{ - Line: int(205), - Column: int(88), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(77), - }, - End: Location{ - Line: int(205), - Column: int(85), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(77), - }, - End: Location{ - Line: int(205), - Column: int(80), - }, - file: p1, - }, - context: p3417, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(86), - }, - End: Location{ - Line: int(205), - Column: int(87), - }, - file: p1, - }, - context: p3541, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(205), - Column: int(91), - }, - End: Location{ - Line: int(205), - Column: int(94), - }, - file: p1, - }, - context: p3417, - freeVariables: nil, - }, - Value: ".", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p3548, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p3550, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p3574, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p3578, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p3581, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p3584, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p3587, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p3590, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p3593, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p3596, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p3601, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p3603, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(5), - }, - End: Location{ - Line: int(213), - Column: int(63), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(8), - }, - End: Location{ - Line: int(208), - Column: int(22), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(8), - }, - End: Location{ - Line: int(208), - Column: int(16), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(8), - }, - End: Location{ - Line: int(208), - Column: int(11), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(17), - }, - End: Location{ - Line: int(208), - Column: int(21), - }, - file: p1, - }, - context: p3630, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(208), - Column: int(26), - }, - End: Location{ - Line: int(208), - Column: int(36), - }, - file: p1, - }, - context: p3609, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(7), - }, - End: Location{ - Line: int(209), - Column: int(76), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(14), - }, - End: Location{ - Line: int(209), - Column: int(75), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(14), - }, - End: Location{ - Line: int(209), - Column: int(58), - }, - file: p1, - }, - context: p3609, - freeVariables: nil, - }, - Value: "std.map first param must be function, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(61), - }, - End: Location{ - Line: int(209), - Column: int(75), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(61), - }, - End: Location{ - Line: int(209), - Column: int(69), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(61), - }, - End: Location{ - Line: int(209), - Column: int(64), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(209), - Column: int(70), - }, - End: Location{ - Line: int(209), - Column: int(74), - }, - file: p1, - }, - context: p3647, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(10), - }, - End: Location{ - Line: int(213), - Column: int(63), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(13), - }, - End: Location{ - Line: int(210), - Column: int(66), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(13), - }, - End: Location{ - Line: int(210), - Column: int(26), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(13), - }, - End: Location{ - Line: int(210), - Column: int(21), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(13), - }, - End: Location{ - Line: int(210), - Column: int(16), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(22), - }, - End: Location{ - Line: int(210), - Column: int(25), - }, - file: p1, - }, - context: p3672, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(30), - }, - End: Location{ - Line: int(210), - Column: int(37), - }, - file: p1, - }, - context: p3609, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(17), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(41), - }, - End: Location{ - Line: int(210), - Column: int(54), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(41), - }, - End: Location{ - Line: int(210), - Column: int(49), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(41), - }, - End: Location{ - Line: int(210), - Column: int(44), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(50), - }, - End: Location{ - Line: int(210), - Column: int(53), - }, - file: p1, - }, - context: p3694, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(210), - Column: int(58), - }, - End: Location{ - Line: int(210), - Column: int(66), - }, - file: p1, - }, - context: p3609, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(7), - }, - End: Location{ - Line: int(211), - Column: int(82), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(14), - }, - End: Location{ - Line: int(211), - Column: int(81), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(14), - }, - End: Location{ - Line: int(211), - Column: int(65), - }, - file: p1, - }, - context: p3609, - freeVariables: nil, - }, - Value: "std.map second param must be array / string, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(68), - }, - End: Location{ - Line: int(211), - Column: int(81), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(68), - }, - End: Location{ - Line: int(211), - Column: int(76), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(68), - }, - End: Location{ - Line: int(211), - Column: int(71), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(211), - Column: int(77), - }, - End: Location{ - Line: int(211), - Column: int(80), - }, - file: p1, - }, - context: p3711, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(7), - }, - End: Location{ - Line: int(213), - Column: int(63), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(7), - }, - End: Location{ - Line: int(213), - Column: int(20), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(7), - }, - End: Location{ - Line: int(213), - Column: int(10), - }, - file: p1, - }, - context: p3609, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(21), - }, - End: Location{ - Line: int(213), - Column: int(36), - }, - file: p1, - }, - context: p3722, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(21), - }, - End: Location{ - Line: int(213), - Column: int(31), - }, - file: p1, - }, - context: p3722, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(21), - }, - End: Location{ - Line: int(213), - Column: int(24), - }, - file: p1, - }, - context: p3722, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(32), - }, - End: Location{ - Line: int(213), - Column: int(35), - }, - file: p1, - }, - context: p3731, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(38), - }, - End: Location{ - Line: int(213), - Column: int(62), - }, - file: p1, - }, - context: p3722, - freeVariables: Identifiers{ - "arr", - "func", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(50), - }, - End: Location{ - Line: int(213), - Column: int(62), - }, - file: p1, - }, - context: p3737, - freeVariables: Identifiers{ - "arr", - "func", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(50), - }, - End: Location{ - Line: int(213), - Column: int(54), - }, - file: p1, - }, - context: p3737, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(55), - }, - End: Location{ - Line: int(213), - Column: int(61), - }, - file: p1, - }, - context: p3743, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(55), - }, - End: Location{ - Line: int(213), - Column: int(58), - }, - file: p1, - }, - context: p3743, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(213), - Column: int(59), - }, - End: Location{ - Line: int(213), - Column: int(60), - }, - file: p1, - }, - context: p3743, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mapWithIndex", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p3753, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p3755, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p3779, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p3783, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p3786, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p3789, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p3792, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p3795, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p3798, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p3801, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p3806, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p3808, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(5), - }, - End: Location{ - Line: int(221), - Column: int(66), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(8), - }, - End: Location{ - Line: int(216), - Column: int(22), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(8), - }, - End: Location{ - Line: int(216), - Column: int(16), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(8), - }, - End: Location{ - Line: int(216), - Column: int(11), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(17), - }, - End: Location{ - Line: int(216), - Column: int(21), - }, - file: p1, - }, - context: p3835, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(216), - Column: int(26), - }, - End: Location{ - Line: int(216), - Column: int(36), - }, - file: p1, - }, - context: p3814, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(7), - }, - End: Location{ - Line: int(217), - Column: int(85), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(14), - }, - End: Location{ - Line: int(217), - Column: int(84), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(14), - }, - End: Location{ - Line: int(217), - Column: int(67), - }, - file: p1, - }, - context: p3814, - freeVariables: nil, - }, - Value: "std.mapWithIndex first param must be function, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(70), - }, - End: Location{ - Line: int(217), - Column: int(84), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(70), - }, - End: Location{ - Line: int(217), - Column: int(78), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(70), - }, - End: Location{ - Line: int(217), - Column: int(73), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(217), - Column: int(79), - }, - End: Location{ - Line: int(217), - Column: int(83), - }, - file: p1, - }, - context: p3852, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(10), - }, - End: Location{ - Line: int(221), - Column: int(66), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(13), - }, - End: Location{ - Line: int(218), - Column: int(66), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(13), - }, - End: Location{ - Line: int(218), - Column: int(26), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(13), - }, - End: Location{ - Line: int(218), - Column: int(21), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(13), - }, - End: Location{ - Line: int(218), - Column: int(16), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(22), - }, - End: Location{ - Line: int(218), - Column: int(25), - }, - file: p1, - }, - context: p3877, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(30), - }, - End: Location{ - Line: int(218), - Column: int(37), - }, - file: p1, - }, - context: p3814, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(17), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(41), - }, - End: Location{ - Line: int(218), - Column: int(54), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(41), - }, - End: Location{ - Line: int(218), - Column: int(49), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(41), - }, - End: Location{ - Line: int(218), - Column: int(44), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(50), - }, - End: Location{ - Line: int(218), - Column: int(53), - }, - file: p1, - }, - context: p3899, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(218), - Column: int(58), - }, - End: Location{ - Line: int(218), - Column: int(66), - }, - file: p1, - }, - context: p3814, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(7), - }, - End: Location{ - Line: int(219), - Column: int(82), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(14), - }, - End: Location{ - Line: int(219), - Column: int(81), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(14), - }, - End: Location{ - Line: int(219), - Column: int(65), - }, - file: p1, - }, - context: p3814, - freeVariables: nil, - }, - Value: "std.mapWithIndex second param must be array, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(68), - }, - End: Location{ - Line: int(219), - Column: int(81), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(68), - }, - End: Location{ - Line: int(219), - Column: int(76), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(68), - }, - End: Location{ - Line: int(219), - Column: int(71), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(219), - Column: int(77), - }, - End: Location{ - Line: int(219), - Column: int(80), - }, - file: p1, - }, - context: p3916, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(7), - }, - End: Location{ - Line: int(221), - Column: int(66), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "arr", - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(7), - }, - End: Location{ - Line: int(221), - Column: int(20), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(7), - }, - End: Location{ - Line: int(221), - Column: int(10), - }, - file: p1, - }, - context: p3814, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(21), - }, - End: Location{ - Line: int(221), - Column: int(36), - }, - file: p1, - }, - context: p3927, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(21), - }, - End: Location{ - Line: int(221), - Column: int(31), - }, - file: p1, - }, - context: p3927, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(21), - }, - End: Location{ - Line: int(221), - Column: int(24), - }, - file: p1, - }, - context: p3927, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(32), - }, - End: Location{ - Line: int(221), - Column: int(35), - }, - file: p1, - }, - context: p3936, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(38), - }, - End: Location{ - Line: int(221), - Column: int(65), - }, - file: p1, - }, - context: p3927, - freeVariables: Identifiers{ - "arr", - "func", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(50), - }, - End: Location{ - Line: int(221), - Column: int(65), - }, - file: p1, - }, - context: p3942, - freeVariables: Identifiers{ - "arr", - "func", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(50), - }, - End: Location{ - Line: int(221), - Column: int(54), - }, - file: p1, - }, - context: p3942, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(55), - }, - End: Location{ - Line: int(221), - Column: int(56), - }, - file: p1, - }, - context: p3948, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(58), - }, - End: Location{ - Line: int(221), - Column: int(64), - }, - file: p1, - }, - context: p3948, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(58), - }, - End: Location{ - Line: int(221), - Column: int(61), - }, - file: p1, - }, - context: p3948, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(221), - Column: int(62), - }, - End: Location{ - Line: int(221), - Column: int(63), - }, - file: p1, - }, - context: p3948, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mapWithKey", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p3960, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p3962, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p3986, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p3990, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p3993, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p3996, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p3999, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p4002, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p4005, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p4008, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p4013, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p4015, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "obj", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(5), - }, - End: Location{ - Line: int(229), - Column: int(62), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "obj", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(8), - }, - End: Location{ - Line: int(224), - Column: int(22), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(8), - }, - End: Location{ - Line: int(224), - Column: int(16), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(8), - }, - End: Location{ - Line: int(224), - Column: int(11), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(17), - }, - End: Location{ - Line: int(224), - Column: int(21), - }, - file: p1, - }, - context: p4042, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(224), - Column: int(26), - }, - End: Location{ - Line: int(224), - Column: int(36), - }, - file: p1, - }, - context: p4021, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(7), - }, - End: Location{ - Line: int(225), - Column: int(83), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(14), - }, - End: Location{ - Line: int(225), - Column: int(82), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(14), - }, - End: Location{ - Line: int(225), - Column: int(65), - }, - file: p1, - }, - context: p4021, - freeVariables: nil, - }, - Value: "std.mapWithKey first param must be function, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(68), - }, - End: Location{ - Line: int(225), - Column: int(82), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(68), - }, - End: Location{ - Line: int(225), - Column: int(76), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(68), - }, - End: Location{ - Line: int(225), - Column: int(71), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(225), - Column: int(77), - }, - End: Location{ - Line: int(225), - Column: int(81), - }, - file: p1, - }, - context: p4059, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(10), - }, - End: Location{ - Line: int(229), - Column: int(62), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "obj", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(13), - }, - End: Location{ - Line: int(226), - Column: int(26), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(13), - }, - End: Location{ - Line: int(226), - Column: int(21), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(13), - }, - End: Location{ - Line: int(226), - Column: int(16), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(22), - }, - End: Location{ - Line: int(226), - Column: int(25), - }, - file: p1, - }, - context: p4082, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(226), - Column: int(30), - }, - End: Location{ - Line: int(226), - Column: int(38), - }, - file: p1, - }, - context: p4021, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(7), - }, - End: Location{ - Line: int(227), - Column: int(81), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(14), - }, - End: Location{ - Line: int(227), - Column: int(80), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(14), - }, - End: Location{ - Line: int(227), - Column: int(64), - }, - file: p1, - }, - context: p4021, - freeVariables: nil, - }, - Value: "std.mapWithKey second param must be object, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(67), - }, - End: Location{ - Line: int(227), - Column: int(80), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(67), - }, - End: Location{ - Line: int(227), - Column: int(75), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(67), - }, - End: Location{ - Line: int(227), - Column: int(70), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(227), - Column: int(76), - }, - End: Location{ - Line: int(227), - Column: int(79), - }, - file: p1, - }, - context: p4099, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "obj", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "func", - "k", - "obj", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(7), - }, - End: Location{ - Line: int(229), - Column: int(62), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "func", - "k", - "obj", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(10), - }, - End: Location{ - Line: int(229), - Column: int(11), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(14), - }, - End: Location{ - Line: int(229), - Column: int(29), - }, - file: p1, - }, - context: p4129, - freeVariables: Identifiers{ - "func", - "k", - "obj", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(14), - }, - End: Location{ - Line: int(229), - Column: int(18), - }, - file: p1, - }, - context: p4129, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(19), - }, - End: Location{ - Line: int(229), - Column: int(20), - }, - file: p1, - }, - context: p4135, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(22), - }, - End: Location{ - Line: int(229), - Column: int(28), - }, - file: p1, - }, - context: p4135, - freeVariables: Identifiers{ - "k", - "obj", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(22), - }, - End: Location{ - Line: int(229), - Column: int(25), - }, - file: p1, - }, - context: p4135, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(26), - }, - End: Location{ - Line: int(229), - Column: int(27), - }, - file: p1, - }, - context: p4135, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(39), - }, - End: Location{ - Line: int(229), - Column: int(60), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(39), - }, - End: Location{ - Line: int(229), - Column: int(55), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(39), - }, - End: Location{ - Line: int(229), - Column: int(42), - }, - file: p1, - }, - context: p4021, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(229), - Column: int(56), - }, - End: Location{ - Line: int(229), - Column: int(59), - }, - file: p1, - }, - context: p4152, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p4158, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p4160, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p4184, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p4188, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p4191, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p4194, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p4197, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p4200, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p4203, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p4206, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p4211, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p4213, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "sep", - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(232), - Column: int(5), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "sep", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(232), - Column: int(11), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4223, - freeVariables: Identifiers{ - "aux", - "sep", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - "i", - "first", - "running", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(7), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "first", - "i", - "running", - "sep", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(10), - }, - End: Location{ - Line: int(233), - Column: int(30), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(10), - }, - End: Location{ - Line: int(233), - Column: int(11), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(15), - }, - End: Location{ - Line: int(233), - Column: int(30), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(15), - }, - End: Location{ - Line: int(233), - Column: int(25), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(15), - }, - End: Location{ - Line: int(233), - Column: int(18), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(233), - Column: int(26), - }, - End: Location{ - Line: int(233), - Column: int(29), - }, - file: p1, - }, - context: p4242, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(234), - Column: int(9), - }, - End: Location{ - Line: int(234), - Column: int(16), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(235), - Column: int(12), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "first", - "i", - "running", - "sep", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(235), - Column: int(15), - }, - End: Location{ - Line: int(235), - Column: int(21), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(235), - Column: int(15), - }, - End: Location{ - Line: int(235), - Column: int(18), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(235), - Column: int(19), - }, - End: Location{ - Line: int(235), - Column: int(20), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(235), - Column: int(25), - }, - End: Location{ - Line: int(235), - Column: int(29), - }, - file: p1, - }, - context: p4227, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(9), - }, - End: Location{ - Line: int(236), - Column: int(40), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "first", - "i", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(9), - }, - End: Location{ - Line: int(236), - Column: int(12), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(13), - }, - End: Location{ - Line: int(236), - Column: int(16), - }, - file: p1, - }, - context: p4269, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(18), - }, - End: Location{ - Line: int(236), - Column: int(23), - }, - file: p1, - }, - context: p4269, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(18), - }, - End: Location{ - Line: int(236), - Column: int(19), - }, - file: p1, - }, - context: p4269, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(22), - }, - End: Location{ - Line: int(236), - Column: int(23), - }, - file: p1, - }, - context: p4269, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(25), - }, - End: Location{ - Line: int(236), - Column: int(30), - }, - file: p1, - }, - context: p4269, - freeVariables: Identifiers{ - "first", - }, - }, - Id: "first", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(236), - Column: int(32), - }, - End: Location{ - Line: int(236), - Column: int(39), - }, - file: p1, - }, - context: p4269, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(12), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "first", - "i", - "running", - "sep", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "i", - "sep", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "i", - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(15), - }, - End: Location{ - Line: int(237), - Column: int(31), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(15), - }, - End: Location{ - Line: int(237), - Column: int(23), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(15), - }, - End: Location{ - Line: int(237), - Column: int(18), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(24), - }, - End: Location{ - Line: int(237), - Column: int(30), - }, - file: p1, - }, - context: p4301, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(24), - }, - End: Location{ - Line: int(237), - Column: int(27), - }, - file: p1, - }, - context: p4301, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(28), - }, - End: Location{ - Line: int(237), - Column: int(29), - }, - file: p1, - }, - context: p4301, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(35), - }, - End: Location{ - Line: int(237), - Column: int(48), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(35), - }, - End: Location{ - Line: int(237), - Column: int(43), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(35), - }, - End: Location{ - Line: int(237), - Column: int(38), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(237), - Column: int(44), - }, - End: Location{ - Line: int(237), - Column: int(47), - }, - file: p1, - }, - context: p4316, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(9), - }, - End: Location{ - Line: int(238), - Column: int(87), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "i", - "sep", - "std", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "i", - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(15), - }, - End: Location{ - Line: int(238), - Column: int(48), - }, - file: p1, - }, - context: p4227, - freeVariables: nil, - }, - Value: "expected %s but arr[%d] was %s ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(51), - }, - End: Location{ - Line: int(238), - Column: int(87), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "i", - "sep", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(52), - }, - End: Location{ - Line: int(238), - Column: int(65), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(52), - }, - End: Location{ - Line: int(238), - Column: int(60), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(52), - }, - End: Location{ - Line: int(238), - Column: int(55), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(61), - }, - End: Location{ - Line: int(238), - Column: int(64), - }, - file: p1, - }, - context: p4342, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(67), - }, - End: Location{ - Line: int(238), - Column: int(68), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(70), - }, - End: Location{ - Line: int(238), - Column: int(86), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(70), - }, - End: Location{ - Line: int(238), - Column: int(78), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(70), - }, - End: Location{ - Line: int(238), - Column: int(73), - }, - file: p1, - }, - context: p4333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(79), - }, - End: Location{ - Line: int(238), - Column: int(85), - }, - file: p1, - }, - context: p4355, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(79), - }, - End: Location{ - Line: int(238), - Column: int(82), - }, - file: p1, - }, - context: p4355, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(238), - Column: int(83), - }, - End: Location{ - Line: int(238), - Column: int(84), - }, - file: p1, - }, - context: p4355, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(239), - Column: int(12), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "first", - "i", - "running", - "sep", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(239), - Column: int(15), - }, - End: Location{ - Line: int(239), - Column: int(20), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "first", - }, - }, - Id: "first", - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(9), - }, - End: Location{ - Line: int(240), - Column: int(49), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "i", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(9), - }, - End: Location{ - Line: int(240), - Column: int(12), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(13), - }, - End: Location{ - Line: int(240), - Column: int(16), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(18), - }, - End: Location{ - Line: int(240), - Column: int(23), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(18), - }, - End: Location{ - Line: int(240), - Column: int(19), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(22), - }, - End: Location{ - Line: int(240), - Column: int(23), - }, - file: p1, - }, - context: p4371, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(25), - }, - End: Location{ - Line: int(240), - Column: int(30), - }, - file: p1, - }, - context: p4371, - freeVariables: nil, - }, - Value: false, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(32), - }, - End: Location{ - Line: int(240), - Column: int(48), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "arr", - "i", - "running", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(32), - }, - End: Location{ - Line: int(240), - Column: int(39), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(42), - }, - End: Location{ - Line: int(240), - Column: int(48), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(42), - }, - End: Location{ - Line: int(240), - Column: int(45), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(240), - Column: int(46), - }, - End: Location{ - Line: int(240), - Column: int(47), - }, - file: p1, - }, - context: p4371, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(9), - }, - End: Location{ - Line: int(242), - Column: int(55), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "arr", - "aux", - "i", - "running", - "sep", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(9), - }, - End: Location{ - Line: int(242), - Column: int(12), - }, - file: p1, - }, - context: p4227, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(13), - }, - End: Location{ - Line: int(242), - Column: int(16), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(18), - }, - End: Location{ - Line: int(242), - Column: int(23), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(18), - }, - End: Location{ - Line: int(242), - Column: int(19), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(22), - }, - End: Location{ - Line: int(242), - Column: int(23), - }, - file: p1, - }, - context: p4395, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(25), - }, - End: Location{ - Line: int(242), - Column: int(30), - }, - file: p1, - }, - context: p4395, - freeVariables: nil, - }, - Value: false, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(32), - }, - End: Location{ - Line: int(242), - Column: int(54), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "arr", - "i", - "running", - "sep", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(32), - }, - End: Location{ - Line: int(242), - Column: int(45), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "running", - "sep", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(32), - }, - End: Location{ - Line: int(242), - Column: int(39), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(42), - }, - End: Location{ - Line: int(242), - Column: int(45), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(48), - }, - End: Location{ - Line: int(242), - Column: int(54), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(48), - }, - End: Location{ - Line: int(242), - Column: int(51), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(242), - Column: int(52), - }, - End: Location{ - Line: int(242), - Column: int(53), - }, - file: p1, - }, - context: p4395, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(5), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "aux", - "sep", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(8), - }, - End: Location{ - Line: int(243), - Column: int(21), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(8), - }, - End: Location{ - Line: int(243), - Column: int(16), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(8), - }, - End: Location{ - Line: int(243), - Column: int(11), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(17), - }, - End: Location{ - Line: int(243), - Column: int(20), - }, - file: p1, - }, - context: p4438, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(243), - Column: int(25), - }, - End: Location{ - Line: int(243), - Column: int(32), - }, - file: p1, - }, - context: p4219, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(7), - }, - End: Location{ - Line: int(244), - Column: int(74), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(13), - }, - End: Location{ - Line: int(244), - Column: int(74), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(13), - }, - End: Location{ - Line: int(244), - Column: int(58), - }, - file: p1, - }, - context: p4219, - freeVariables: nil, - }, - Value: "join second parameter should be array, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(61), - }, - End: Location{ - Line: int(244), - Column: int(74), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(61), - }, - End: Location{ - Line: int(244), - Column: int(69), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(61), - }, - End: Location{ - Line: int(244), - Column: int(64), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(244), - Column: int(70), - }, - End: Location{ - Line: int(244), - Column: int(73), - }, - file: p1, - }, - context: p4455, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(10), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "aux", - "sep", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(13), - }, - End: Location{ - Line: int(245), - Column: int(26), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(13), - }, - End: Location{ - Line: int(245), - Column: int(21), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(13), - }, - End: Location{ - Line: int(245), - Column: int(16), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(22), - }, - End: Location{ - Line: int(245), - Column: int(25), - }, - file: p1, - }, - context: p4476, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(245), - Column: int(30), - }, - End: Location{ - Line: int(245), - Column: int(38), - }, - file: p1, - }, - context: p4219, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(7), - }, - End: Location{ - Line: int(246), - Column: int(28), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "aux", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(7), - }, - End: Location{ - Line: int(246), - Column: int(10), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(11), - }, - End: Location{ - Line: int(246), - Column: int(14), - }, - file: p1, - }, - context: p4485, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(16), - }, - End: Location{ - Line: int(246), - Column: int(17), - }, - file: p1, - }, - context: p4485, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(19), - }, - End: Location{ - Line: int(246), - Column: int(23), - }, - file: p1, - }, - context: p4485, - freeVariables: nil, - }, - Value: true, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(246), - Column: int(25), - }, - End: Location{ - Line: int(246), - Column: int(27), - }, - file: p1, - }, - context: p4485, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(10), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "aux", - "sep", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(13), - }, - End: Location{ - Line: int(247), - Column: int(26), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(13), - }, - End: Location{ - Line: int(247), - Column: int(21), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(13), - }, - End: Location{ - Line: int(247), - Column: int(16), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(22), - }, - End: Location{ - Line: int(247), - Column: int(25), - }, - file: p1, - }, - context: p4509, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(247), - Column: int(30), - }, - End: Location{ - Line: int(247), - Column: int(37), - }, - file: p1, - }, - context: p4219, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(7), - }, - End: Location{ - Line: int(248), - Column: int(28), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "arr", - "aux", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(7), - }, - End: Location{ - Line: int(248), - Column: int(10), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(11), - }, - End: Location{ - Line: int(248), - Column: int(14), - }, - file: p1, - }, - context: p4518, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(16), - }, - End: Location{ - Line: int(248), - Column: int(17), - }, - file: p1, - }, - context: p4518, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(19), - }, - End: Location{ - Line: int(248), - Column: int(23), - }, - file: p1, - }, - context: p4518, - freeVariables: nil, - }, - Value: true, - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(248), - Column: int(25), - }, - End: Location{ - Line: int(248), - Column: int(27), - }, - file: p1, - }, - context: p4518, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(7), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(13), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(13), - }, - End: Location{ - Line: int(250), - Column: int(67), - }, - file: p1, - }, - context: p4219, - freeVariables: nil, - }, - Value: "join first parameter should be string or array, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(70), - }, - End: Location{ - Line: int(250), - Column: int(83), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "sep", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(70), - }, - End: Location{ - Line: int(250), - Column: int(78), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(70), - }, - End: Location{ - Line: int(250), - Column: int(73), - }, - file: p1, - }, - context: p4219, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(250), - Column: int(79), - }, - End: Location{ - Line: int(250), - Column: int(82), - }, - file: p1, - }, - context: p4537, - freeVariables: Identifiers{ - "sep", - }, - }, - Id: "sep", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "lines", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p4543, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p4545, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p4569, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p4573, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p4576, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p4579, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p4582, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p4585, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p4588, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p4591, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p4596, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p4598, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(5), - }, - End: Location{ - Line: int(253), - Column: int(31), - }, - file: p1, - }, - context: p4604, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(5), - }, - End: Location{ - Line: int(253), - Column: int(13), - }, - file: p1, - }, - context: p4604, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(5), - }, - End: Location{ - Line: int(253), - Column: int(8), - }, - file: p1, - }, - context: p4604, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(14), - }, - End: Location{ - Line: int(253), - Column: int(18), - }, - file: p1, - }, - context: p4613, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(20), - }, - End: Location{ - Line: int(253), - Column: int(30), - }, - file: p1, - }, - context: p4613, - freeVariables: Identifiers{ - "arr", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(20), - }, - End: Location{ - Line: int(253), - Column: int(23), - }, - file: p1, - }, - context: p4613, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(26), - }, - End: Location{ - Line: int(253), - Column: int(30), - }, - file: p1, - }, - context: p4613, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(253), - Column: int(27), - }, - End: Location{ - Line: int(253), - Column: int(29), - }, - file: p1, - }, - context: p4621, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "deepJoin", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p4626, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p4628, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p4652, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p4656, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p4659, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p4662, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p4665, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p4668, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p4671, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p4674, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p4679, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p4681, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(256), - Column: int(5), - }, - End: Location{ - Line: int(261), - Column: int(63), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(256), - Column: int(8), - }, - End: Location{ - Line: int(256), - Column: int(25), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(256), - Column: int(8), - }, - End: Location{ - Line: int(256), - Column: int(20), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(256), - Column: int(8), - }, - End: Location{ - Line: int(256), - Column: int(11), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(256), - Column: int(21), - }, - End: Location{ - Line: int(256), - Column: int(24), - }, - file: p1, - }, - context: p4698, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(257), - Column: int(7), - }, - End: Location{ - Line: int(257), - Column: int(10), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(258), - Column: int(10), - }, - End: Location{ - Line: int(261), - Column: int(63), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(258), - Column: int(13), - }, - End: Location{ - Line: int(258), - Column: int(29), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(258), - Column: int(13), - }, - End: Location{ - Line: int(258), - Column: int(24), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(258), - Column: int(13), - }, - End: Location{ - Line: int(258), - Column: int(16), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(258), - Column: int(25), - }, - End: Location{ - Line: int(258), - Column: int(28), - }, - file: p1, - }, - context: p4713, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(7), - }, - End: Location{ - Line: int(259), - Column: int(51), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(7), - }, - End: Location{ - Line: int(259), - Column: int(15), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(7), - }, - End: Location{ - Line: int(259), - Column: int(10), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(16), - }, - End: Location{ - Line: int(259), - Column: int(18), - }, - file: p1, - }, - context: p4724, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(21), - }, - End: Location{ - Line: int(259), - Column: int(36), - }, - file: p1, - }, - context: p4740, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(21), - }, - End: Location{ - Line: int(259), - Column: int(33), - }, - file: p1, - }, - context: p4740, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(21), - }, - End: Location{ - Line: int(259), - Column: int(24), - }, - file: p1, - }, - context: p4740, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "deepJoin", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(34), - }, - End: Location{ - Line: int(259), - Column: int(35), - }, - file: p1, - }, - context: p4749, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(259), - Column: int(46), - }, - End: Location{ - Line: int(259), - Column: int(49), - }, - file: p1, - }, - context: p4724, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(7), - }, - End: Location{ - Line: int(261), - Column: int(63), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(13), - }, - End: Location{ - Line: int(261), - Column: int(47), - }, - file: p1, - }, - context: p4687, - freeVariables: nil, - }, - Value: "Expected string or array, got %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(50), - }, - End: Location{ - Line: int(261), - Column: int(63), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(50), - }, - End: Location{ - Line: int(261), - Column: int(58), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(50), - }, - End: Location{ - Line: int(261), - Column: int(53), - }, - file: p1, - }, - context: p4687, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(261), - Column: int(59), - }, - End: Location{ - Line: int(261), - Column: int(62), - }, - file: p1, - }, - context: p4773, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "format", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p4779, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p4781, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p4805, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p4809, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p4812, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p4815, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p4818, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p4821, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p4824, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p4827, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p4832, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p4834, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "vals", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(270), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "try_parse_mapping_key", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(270), - Column: int(11), - }, - End: Location{ - Line: int(287), - Column: int(28), - }, - file: p1, - }, - context: p4844, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(7), - }, - End: Location{ - Line: int(287), - Column: int(28), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(10), - }, - End: Location{ - Line: int(271), - Column: int(30), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(10), - }, - End: Location{ - Line: int(271), - Column: int(11), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(15), - }, - End: Location{ - Line: int(271), - Column: int(30), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(15), - }, - End: Location{ - Line: int(271), - Column: int(25), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(15), - }, - End: Location{ - Line: int(271), - Column: int(18), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(271), - Column: int(26), - }, - End: Location{ - Line: int(271), - Column: int(29), - }, - file: p1, - }, - context: p4863, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(272), - Column: int(9), - }, - End: Location{ - Line: int(272), - Column: int(39), - }, - file: p1, - }, - context: p4848, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(272), - Column: int(15), - }, - End: Location{ - Line: int(272), - Column: int(39), - }, - file: p1, - }, - context: p4848, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(274), - Column: int(9), - }, - End: Location{ - Line: int(287), - Column: int(28), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(274), - Column: int(19), - }, - End: Location{ - Line: int(274), - Column: int(25), - }, - file: p1, - }, - context: p4871, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(274), - Column: int(19), - }, - End: Location{ - Line: int(274), - Column: int(22), - }, - file: p1, - }, - context: p4871, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(274), - Column: int(23), - }, - End: Location{ - Line: int(274), - Column: int(24), - }, - file: p1, - }, - context: p4871, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(275), - Column: int(9), - }, - End: Location{ - Line: int(287), - Column: int(28), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "c", - "i", - "std", - "str", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(275), - Column: int(12), - }, - End: Location{ - Line: int(275), - Column: int(13), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(275), - Column: int(17), - }, - End: Location{ - Line: int(275), - Column: int(20), - }, - file: p1, - }, - context: p4848, - freeVariables: nil, - }, - Value: "(", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(276), - Column: int(11), - }, - End: Location{ - Line: int(285), - Column: int(34), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "consume", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(276), - Column: int(17), - }, - End: Location{ - Line: int(284), - Column: int(35), - }, - file: p1, - }, - context: p4894, - freeVariables: Identifiers{ - "consume", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "j", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(13), - }, - End: Location{ - Line: int(284), - Column: int(35), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(16), - }, - End: Location{ - Line: int(277), - Column: int(36), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "j", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(16), - }, - End: Location{ - Line: int(277), - Column: int(17), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(21), - }, - End: Location{ - Line: int(277), - Column: int(36), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(21), - }, - End: Location{ - Line: int(277), - Column: int(31), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(21), - }, - End: Location{ - Line: int(277), - Column: int(24), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(277), - Column: int(32), - }, - End: Location{ - Line: int(277), - Column: int(35), - }, - file: p1, - }, - context: p4913, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(278), - Column: int(15), - }, - End: Location{ - Line: int(278), - Column: int(45), - }, - file: p1, - }, - context: p4898, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(278), - Column: int(21), - }, - End: Location{ - Line: int(278), - Column: int(45), - }, - file: p1, - }, - context: p4898, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(280), - Column: int(15), - }, - End: Location{ - Line: int(284), - Column: int(35), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(280), - Column: int(25), - }, - End: Location{ - Line: int(280), - Column: int(31), - }, - file: p1, - }, - context: p4921, - freeVariables: Identifiers{ - "j", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(280), - Column: int(25), - }, - End: Location{ - Line: int(280), - Column: int(28), - }, - file: p1, - }, - context: p4921, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(280), - Column: int(29), - }, - End: Location{ - Line: int(280), - Column: int(30), - }, - file: p1, - }, - context: p4921, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(281), - Column: int(15), - }, - End: Location{ - Line: int(284), - Column: int(35), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(281), - Column: int(18), - }, - End: Location{ - Line: int(281), - Column: int(19), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(281), - Column: int(23), - }, - End: Location{ - Line: int(281), - Column: int(26), - }, - file: p1, - }, - context: p4898, - freeVariables: nil, - }, - Value: ")", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(17), - }, - End: Location{ - Line: int(282), - Column: int(43), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(17), - }, - End: Location{ - Line: int(282), - Column: int(24), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(25), - }, - End: Location{ - Line: int(282), - Column: int(28), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(30), - }, - End: Location{ - Line: int(282), - Column: int(35), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(30), - }, - End: Location{ - Line: int(282), - Column: int(31), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(34), - }, - End: Location{ - Line: int(282), - Column: int(35), - }, - file: p1, - }, - context: p4948, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(37), - }, - End: Location{ - Line: int(282), - Column: int(42), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "c", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(37), - }, - End: Location{ - Line: int(282), - Column: int(38), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(282), - Column: int(41), - }, - End: Location{ - Line: int(282), - Column: int(42), - }, - file: p1, - }, - context: p4948, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(284), - Column: int(17), - }, - End: Location{ - Line: int(284), - Column: int(35), - }, - file: p1, - }, - context: p4898, - freeVariables: Identifiers{ - "j", - "v", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(284), - Column: int(22), - }, - End: Location{ - Line: int(284), - Column: int(27), - }, - file: p1, - }, - context: p4966, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(284), - Column: int(22), - }, - End: Location{ - Line: int(284), - Column: int(23), - }, - file: p1, - }, - context: p4966, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(284), - Column: int(26), - }, - End: Location{ - Line: int(284), - Column: int(27), - }, - file: p1, - }, - context: p4966, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(284), - Column: int(32), - }, - End: Location{ - Line: int(284), - Column: int(33), - }, - file: p1, - }, - context: p4966, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(11), - }, - End: Location{ - Line: int(285), - Column: int(34), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "consume", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(11), - }, - End: Location{ - Line: int(285), - Column: int(18), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(19), - }, - End: Location{ - Line: int(285), - Column: int(22), - }, - file: p1, - }, - context: p4980, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(24), - }, - End: Location{ - Line: int(285), - Column: int(29), - }, - file: p1, - }, - context: p4980, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(24), - }, - End: Location{ - Line: int(285), - Column: int(25), - }, - file: p1, - }, - context: p4980, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(28), - }, - End: Location{ - Line: int(285), - Column: int(29), - }, - file: p1, - }, - context: p4980, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(285), - Column: int(31), - }, - End: Location{ - Line: int(285), - Column: int(33), - }, - file: p1, - }, - context: p4980, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(287), - Column: int(11), - }, - End: Location{ - Line: int(287), - Column: int(28), - }, - file: p1, - }, - context: p4848, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(287), - Column: int(16), - }, - End: Location{ - Line: int(287), - Column: int(17), - }, - file: p1, - }, - context: p4993, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(287), - Column: int(22), - }, - End: Location{ - Line: int(287), - Column: int(26), - }, - file: p1, - }, - context: p4993, - freeVariables: nil, - }, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(289), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "try_parse_mapping_key", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "try_parse_cflags", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(289), - Column: int(11), - }, - End: Location{ - Line: int(307), - Column: int(91), - }, - file: p1, - }, - context: p5001, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(290), - Column: int(7), - }, - End: Location{ - Line: int(307), - Column: int(91), - }, - file: p1, - }, - context: p5005, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "consume", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(290), - Column: int(13), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5009, - freeVariables: Identifiers{ - "consume", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "j", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(9), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(12), - }, - End: Location{ - Line: int(291), - Column: int(32), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "j", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(12), - }, - End: Location{ - Line: int(291), - Column: int(13), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(17), - }, - End: Location{ - Line: int(291), - Column: int(32), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(17), - }, - End: Location{ - Line: int(291), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(17), - }, - End: Location{ - Line: int(291), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(291), - Column: int(28), - }, - End: Location{ - Line: int(291), - Column: int(31), - }, - file: p1, - }, - context: p5028, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(292), - Column: int(11), - }, - End: Location{ - Line: int(292), - Column: int(41), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(292), - Column: int(17), - }, - End: Location{ - Line: int(292), - Column: int(41), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(294), - Column: int(11), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(294), - Column: int(21), - }, - End: Location{ - Line: int(294), - Column: int(27), - }, - file: p1, - }, - context: p5036, - freeVariables: Identifiers{ - "j", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(294), - Column: int(21), - }, - End: Location{ - Line: int(294), - Column: int(24), - }, - file: p1, - }, - context: p5036, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(294), - Column: int(25), - }, - End: Location{ - Line: int(294), - Column: int(26), - }, - file: p1, - }, - context: p5036, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(295), - Column: int(11), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(295), - Column: int(14), - }, - End: Location{ - Line: int(295), - Column: int(15), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(295), - Column: int(19), - }, - End: Location{ - Line: int(295), - Column: int(22), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: "#", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(13), - }, - End: Location{ - Line: int(296), - Column: int(49), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(13), - }, - End: Location{ - Line: int(296), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(21), - }, - End: Location{ - Line: int(296), - Column: int(24), - }, - file: p1, - }, - context: p5061, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(26), - }, - End: Location{ - Line: int(296), - Column: int(31), - }, - file: p1, - }, - context: p5061, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(26), - }, - End: Location{ - Line: int(296), - Column: int(27), - }, - file: p1, - }, - context: p5061, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(30), - }, - End: Location{ - Line: int(296), - Column: int(31), - }, - file: p1, - }, - context: p5061, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(33), - }, - End: Location{ - Line: int(296), - Column: int(48), - }, - file: p1, - }, - context: p5061, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(33), - }, - End: Location{ - Line: int(296), - Column: int(34), - }, - file: p1, - }, - context: p5061, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(35), - }, - End: Location{ - Line: int(296), - Column: int(48), - }, - file: p1, - }, - context: p5061, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(296), - Column: int(42), - }, - End: Location{ - Line: int(296), - Column: int(46), - }, - file: p1, - }, - context: p5076, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(297), - Column: int(16), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(297), - Column: int(19), - }, - End: Location{ - Line: int(297), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(297), - Column: int(24), - }, - End: Location{ - Line: int(297), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(13), - }, - End: Location{ - Line: int(298), - Column: int(50), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(13), - }, - End: Location{ - Line: int(298), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(21), - }, - End: Location{ - Line: int(298), - Column: int(24), - }, - file: p1, - }, - context: p5096, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(26), - }, - End: Location{ - Line: int(298), - Column: int(31), - }, - file: p1, - }, - context: p5096, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(26), - }, - End: Location{ - Line: int(298), - Column: int(27), - }, - file: p1, - }, - context: p5096, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(30), - }, - End: Location{ - Line: int(298), - Column: int(31), - }, - file: p1, - }, - context: p5096, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(33), - }, - End: Location{ - Line: int(298), - Column: int(49), - }, - file: p1, - }, - context: p5096, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(33), - }, - End: Location{ - Line: int(298), - Column: int(34), - }, - file: p1, - }, - context: p5096, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(35), - }, - End: Location{ - Line: int(298), - Column: int(49), - }, - file: p1, - }, - context: p5096, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "zero", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(298), - Column: int(43), - }, - End: Location{ - Line: int(298), - Column: int(47), - }, - file: p1, - }, - context: p5111, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(299), - Column: int(16), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(299), - Column: int(19), - }, - End: Location{ - Line: int(299), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(299), - Column: int(24), - }, - End: Location{ - Line: int(299), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: "-", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(13), - }, - End: Location{ - Line: int(300), - Column: int(50), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(13), - }, - End: Location{ - Line: int(300), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(21), - }, - End: Location{ - Line: int(300), - Column: int(24), - }, - file: p1, - }, - context: p5131, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(26), - }, - End: Location{ - Line: int(300), - Column: int(31), - }, - file: p1, - }, - context: p5131, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(26), - }, - End: Location{ - Line: int(300), - Column: int(27), - }, - file: p1, - }, - context: p5131, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(30), - }, - End: Location{ - Line: int(300), - Column: int(31), - }, - file: p1, - }, - context: p5131, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(33), - }, - End: Location{ - Line: int(300), - Column: int(49), - }, - file: p1, - }, - context: p5131, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(33), - }, - End: Location{ - Line: int(300), - Column: int(34), - }, - file: p1, - }, - context: p5131, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(35), - }, - End: Location{ - Line: int(300), - Column: int(49), - }, - file: p1, - }, - context: p5131, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "left", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(300), - Column: int(43), - }, - End: Location{ - Line: int(300), - Column: int(47), - }, - file: p1, - }, - context: p5146, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(301), - Column: int(16), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(301), - Column: int(19), - }, - End: Location{ - Line: int(301), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(301), - Column: int(24), - }, - End: Location{ - Line: int(301), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(13), - }, - End: Location{ - Line: int(302), - Column: int(51), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(13), - }, - End: Location{ - Line: int(302), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(21), - }, - End: Location{ - Line: int(302), - Column: int(24), - }, - file: p1, - }, - context: p5166, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(26), - }, - End: Location{ - Line: int(302), - Column: int(31), - }, - file: p1, - }, - context: p5166, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(26), - }, - End: Location{ - Line: int(302), - Column: int(27), - }, - file: p1, - }, - context: p5166, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(30), - }, - End: Location{ - Line: int(302), - Column: int(31), - }, - file: p1, - }, - context: p5166, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(33), - }, - End: Location{ - Line: int(302), - Column: int(50), - }, - file: p1, - }, - context: p5166, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(33), - }, - End: Location{ - Line: int(302), - Column: int(34), - }, - file: p1, - }, - context: p5166, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(35), - }, - End: Location{ - Line: int(302), - Column: int(50), - }, - file: p1, - }, - context: p5166, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(302), - Column: int(44), - }, - End: Location{ - Line: int(302), - Column: int(48), - }, - file: p1, - }, - context: p5181, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(303), - Column: int(16), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(303), - Column: int(19), - }, - End: Location{ - Line: int(303), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(303), - Column: int(24), - }, - End: Location{ - Line: int(303), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: nil, - }, - Value: "+", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(13), - }, - End: Location{ - Line: int(304), - Column: int(50), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(13), - }, - End: Location{ - Line: int(304), - Column: int(20), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(21), - }, - End: Location{ - Line: int(304), - Column: int(24), - }, - file: p1, - }, - context: p5201, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(26), - }, - End: Location{ - Line: int(304), - Column: int(31), - }, - file: p1, - }, - context: p5201, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(26), - }, - End: Location{ - Line: int(304), - Column: int(27), - }, - file: p1, - }, - context: p5201, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(30), - }, - End: Location{ - Line: int(304), - Column: int(31), - }, - file: p1, - }, - context: p5201, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(33), - }, - End: Location{ - Line: int(304), - Column: int(49), - }, - file: p1, - }, - context: p5201, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(33), - }, - End: Location{ - Line: int(304), - Column: int(34), - }, - file: p1, - }, - context: p5201, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(35), - }, - End: Location{ - Line: int(304), - Column: int(49), - }, - file: p1, - }, - context: p5201, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(304), - Column: int(43), - }, - End: Location{ - Line: int(304), - Column: int(47), - }, - file: p1, - }, - context: p5216, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(306), - Column: int(13), - }, - End: Location{ - Line: int(306), - Column: int(27), - }, - file: p1, - }, - context: p5013, - freeVariables: Identifiers{ - "j", - "v", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(306), - Column: int(18), - }, - End: Location{ - Line: int(306), - Column: int(19), - }, - file: p1, - }, - context: p5222, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(306), - Column: int(24), - }, - End: Location{ - Line: int(306), - Column: int(25), - }, - file: p1, - }, - context: p5222, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(7), - }, - End: Location{ - Line: int(307), - Column: int(91), - }, - file: p1, - }, - context: p5005, - freeVariables: Identifiers{ - "consume", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(7), - }, - End: Location{ - Line: int(307), - Column: int(14), - }, - file: p1, - }, - context: p5005, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(15), - }, - End: Location{ - Line: int(307), - Column: int(18), - }, - file: p1, - }, - context: p5233, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(20), - }, - End: Location{ - Line: int(307), - Column: int(21), - }, - file: p1, - }, - context: p5233, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(23), - }, - End: Location{ - Line: int(307), - Column: int(90), - }, - file: p1, - }, - context: p5233, - freeVariables: nil, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(30), - }, - End: Location{ - Line: int(307), - Column: int(35), - }, - file: p1, - }, - context: p5241, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "zero", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(43), - }, - End: Location{ - Line: int(307), - Column: int(48), - }, - file: p1, - }, - context: p5241, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "left", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(56), - }, - End: Location{ - Line: int(307), - Column: int(61), - }, - file: p1, - }, - context: p5241, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(70), - }, - End: Location{ - Line: int(307), - Column: int(75), - }, - file: p1, - }, - context: p5241, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(307), - Column: int(83), - }, - End: Location{ - Line: int(307), - Column: int(88), - }, - file: p1, - }, - context: p5241, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(309), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "try_parse_cflags", - "try_parse_mapping_key", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "try_parse_field_width", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(309), - Column: int(11), - }, - End: Location{ - Line: int(340), - Column: int(27), - }, - file: p1, - }, - context: p5254, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(7), - }, - End: Location{ - Line: int(340), - Column: int(27), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(10), - }, - End: Location{ - Line: int(310), - Column: int(46), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(10), - }, - End: Location{ - Line: int(310), - Column: int(29), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(10), - }, - End: Location{ - Line: int(310), - Column: int(11), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(9), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(14), - }, - End: Location{ - Line: int(310), - Column: int(29), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(14), - }, - End: Location{ - Line: int(310), - Column: int(24), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(14), - }, - End: Location{ - Line: int(310), - Column: int(17), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(25), - }, - End: Location{ - Line: int(310), - Column: int(28), - }, - file: p1, - }, - context: p5275, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(17), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(33), - }, - End: Location{ - Line: int(310), - Column: int(39), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(33), - }, - End: Location{ - Line: int(310), - Column: int(36), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(37), - }, - End: Location{ - Line: int(310), - Column: int(38), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(310), - Column: int(43), - }, - End: Location{ - Line: int(310), - Column: int(46), - }, - file: p1, - }, - context: p5258, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(311), - Column: int(9), - }, - End: Location{ - Line: int(311), - Column: int(29), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(311), - Column: int(14), - }, - End: Location{ - Line: int(311), - Column: int(19), - }, - file: p1, - }, - context: p5297, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(311), - Column: int(14), - }, - End: Location{ - Line: int(311), - Column: int(15), - }, - file: p1, - }, - context: p5297, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(311), - Column: int(18), - }, - End: Location{ - Line: int(311), - Column: int(19), - }, - file: p1, - }, - context: p5297, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(311), - Column: int(24), - }, - End: Location{ - Line: int(311), - Column: int(27), - }, - file: p1, - }, - context: p5297, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(313), - Column: int(9), - }, - End: Location{ - Line: int(340), - Column: int(27), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "consume", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(313), - Column: int(15), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5308, - freeVariables: Identifiers{ - "consume", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "j", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(11), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(14), - }, - End: Location{ - Line: int(314), - Column: int(34), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "j", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(14), - }, - End: Location{ - Line: int(314), - Column: int(15), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(19), - }, - End: Location{ - Line: int(314), - Column: int(34), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(19), - }, - End: Location{ - Line: int(314), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(19), - }, - End: Location{ - Line: int(314), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(314), - Column: int(30), - }, - End: Location{ - Line: int(314), - Column: int(33), - }, - file: p1, - }, - context: p5327, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(315), - Column: int(13), - }, - End: Location{ - Line: int(315), - Column: int(43), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(315), - Column: int(19), - }, - End: Location{ - Line: int(315), - Column: int(43), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(317), - Column: int(13), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "std", - "str", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(317), - Column: int(23), - }, - End: Location{ - Line: int(317), - Column: int(29), - }, - file: p1, - }, - context: p5335, - freeVariables: Identifiers{ - "j", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(317), - Column: int(23), - }, - End: Location{ - Line: int(317), - Column: int(26), - }, - file: p1, - }, - context: p5335, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(317), - Column: int(27), - }, - End: Location{ - Line: int(317), - Column: int(28), - }, - file: p1, - }, - context: p5335, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(318), - Column: int(13), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(318), - Column: int(16), - }, - End: Location{ - Line: int(318), - Column: int(17), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(318), - Column: int(21), - }, - End: Location{ - Line: int(318), - Column: int(24), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(15), - }, - End: Location{ - Line: int(319), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(15), - }, - End: Location{ - Line: int(319), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(23), - }, - End: Location{ - Line: int(319), - Column: int(26), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(28), - }, - End: Location{ - Line: int(319), - Column: int(33), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(28), - }, - End: Location{ - Line: int(319), - Column: int(29), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(32), - }, - End: Location{ - Line: int(319), - Column: int(33), - }, - file: p1, - }, - context: p5360, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(35), - }, - End: Location{ - Line: int(319), - Column: int(45), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(35), - }, - End: Location{ - Line: int(319), - Column: int(41), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(35), - }, - End: Location{ - Line: int(319), - Column: int(36), - }, - file: p1, - }, - context: p5360, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(39), - }, - End: Location{ - Line: int(319), - Column: int(41), - }, - file: p1, - }, - context: p5360, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(319), - Column: int(44), - }, - End: Location{ - Line: int(319), - Column: int(45), - }, - file: p1, - }, - context: p5360, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(320), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(320), - Column: int(21), - }, - End: Location{ - Line: int(320), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(320), - Column: int(26), - }, - End: Location{ - Line: int(320), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "1", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(15), - }, - End: Location{ - Line: int(321), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(15), - }, - End: Location{ - Line: int(321), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(23), - }, - End: Location{ - Line: int(321), - Column: int(26), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(28), - }, - End: Location{ - Line: int(321), - Column: int(33), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(28), - }, - End: Location{ - Line: int(321), - Column: int(29), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(32), - }, - End: Location{ - Line: int(321), - Column: int(33), - }, - file: p1, - }, - context: p5394, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(35), - }, - End: Location{ - Line: int(321), - Column: int(45), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(35), - }, - End: Location{ - Line: int(321), - Column: int(41), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(35), - }, - End: Location{ - Line: int(321), - Column: int(36), - }, - file: p1, - }, - context: p5394, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(39), - }, - End: Location{ - Line: int(321), - Column: int(41), - }, - file: p1, - }, - context: p5394, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(321), - Column: int(44), - }, - End: Location{ - Line: int(321), - Column: int(45), - }, - file: p1, - }, - context: p5394, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(322), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(322), - Column: int(21), - }, - End: Location{ - Line: int(322), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(322), - Column: int(26), - }, - End: Location{ - Line: int(322), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "2", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(15), - }, - End: Location{ - Line: int(323), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(15), - }, - End: Location{ - Line: int(323), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(23), - }, - End: Location{ - Line: int(323), - Column: int(26), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(28), - }, - End: Location{ - Line: int(323), - Column: int(33), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(28), - }, - End: Location{ - Line: int(323), - Column: int(29), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(32), - }, - End: Location{ - Line: int(323), - Column: int(33), - }, - file: p1, - }, - context: p5428, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(35), - }, - End: Location{ - Line: int(323), - Column: int(45), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(35), - }, - End: Location{ - Line: int(323), - Column: int(41), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(35), - }, - End: Location{ - Line: int(323), - Column: int(36), - }, - file: p1, - }, - context: p5428, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(39), - }, - End: Location{ - Line: int(323), - Column: int(41), - }, - file: p1, - }, - context: p5428, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(323), - Column: int(44), - }, - End: Location{ - Line: int(323), - Column: int(45), - }, - file: p1, - }, - context: p5428, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(324), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(324), - Column: int(21), - }, - End: Location{ - Line: int(324), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(324), - Column: int(26), - }, - End: Location{ - Line: int(324), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "3", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(15), - }, - End: Location{ - Line: int(325), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(15), - }, - End: Location{ - Line: int(325), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(23), - }, - End: Location{ - Line: int(325), - Column: int(26), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(28), - }, - End: Location{ - Line: int(325), - Column: int(33), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(28), - }, - End: Location{ - Line: int(325), - Column: int(29), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(32), - }, - End: Location{ - Line: int(325), - Column: int(33), - }, - file: p1, - }, - context: p5462, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(35), - }, - End: Location{ - Line: int(325), - Column: int(45), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(35), - }, - End: Location{ - Line: int(325), - Column: int(41), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(35), - }, - End: Location{ - Line: int(325), - Column: int(36), - }, - file: p1, - }, - context: p5462, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(39), - }, - End: Location{ - Line: int(325), - Column: int(41), - }, - file: p1, - }, - context: p5462, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(325), - Column: int(44), - }, - End: Location{ - Line: int(325), - Column: int(45), - }, - file: p1, - }, - context: p5462, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(326), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(326), - Column: int(21), - }, - End: Location{ - Line: int(326), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(326), - Column: int(26), - }, - End: Location{ - Line: int(326), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "4", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(15), - }, - End: Location{ - Line: int(327), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(15), - }, - End: Location{ - Line: int(327), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(23), - }, - End: Location{ - Line: int(327), - Column: int(26), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(28), - }, - End: Location{ - Line: int(327), - Column: int(33), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(28), - }, - End: Location{ - Line: int(327), - Column: int(29), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(32), - }, - End: Location{ - Line: int(327), - Column: int(33), - }, - file: p1, - }, - context: p5496, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(35), - }, - End: Location{ - Line: int(327), - Column: int(45), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(35), - }, - End: Location{ - Line: int(327), - Column: int(41), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(35), - }, - End: Location{ - Line: int(327), - Column: int(36), - }, - file: p1, - }, - context: p5496, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(39), - }, - End: Location{ - Line: int(327), - Column: int(41), - }, - file: p1, - }, - context: p5496, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(327), - Column: int(44), - }, - End: Location{ - Line: int(327), - Column: int(45), - }, - file: p1, - }, - context: p5496, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(328), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(328), - Column: int(21), - }, - End: Location{ - Line: int(328), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(328), - Column: int(26), - }, - End: Location{ - Line: int(328), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "5", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(15), - }, - End: Location{ - Line: int(329), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(15), - }, - End: Location{ - Line: int(329), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(23), - }, - End: Location{ - Line: int(329), - Column: int(26), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(28), - }, - End: Location{ - Line: int(329), - Column: int(33), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(28), - }, - End: Location{ - Line: int(329), - Column: int(29), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(32), - }, - End: Location{ - Line: int(329), - Column: int(33), - }, - file: p1, - }, - context: p5530, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(35), - }, - End: Location{ - Line: int(329), - Column: int(45), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(35), - }, - End: Location{ - Line: int(329), - Column: int(41), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(35), - }, - End: Location{ - Line: int(329), - Column: int(36), - }, - file: p1, - }, - context: p5530, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(39), - }, - End: Location{ - Line: int(329), - Column: int(41), - }, - file: p1, - }, - context: p5530, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(329), - Column: int(44), - }, - End: Location{ - Line: int(329), - Column: int(45), - }, - file: p1, - }, - context: p5530, - freeVariables: nil, - }, - Value: float64(5), - OriginalString: "5", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(330), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(330), - Column: int(21), - }, - End: Location{ - Line: int(330), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(330), - Column: int(26), - }, - End: Location{ - Line: int(330), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "6", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(15), - }, - End: Location{ - Line: int(331), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(15), - }, - End: Location{ - Line: int(331), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(23), - }, - End: Location{ - Line: int(331), - Column: int(26), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(28), - }, - End: Location{ - Line: int(331), - Column: int(33), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(28), - }, - End: Location{ - Line: int(331), - Column: int(29), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(32), - }, - End: Location{ - Line: int(331), - Column: int(33), - }, - file: p1, - }, - context: p5564, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(35), - }, - End: Location{ - Line: int(331), - Column: int(45), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(35), - }, - End: Location{ - Line: int(331), - Column: int(41), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(35), - }, - End: Location{ - Line: int(331), - Column: int(36), - }, - file: p1, - }, - context: p5564, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(39), - }, - End: Location{ - Line: int(331), - Column: int(41), - }, - file: p1, - }, - context: p5564, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(331), - Column: int(44), - }, - End: Location{ - Line: int(331), - Column: int(45), - }, - file: p1, - }, - context: p5564, - freeVariables: nil, - }, - Value: float64(6), - OriginalString: "6", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(332), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(332), - Column: int(21), - }, - End: Location{ - Line: int(332), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(332), - Column: int(26), - }, - End: Location{ - Line: int(332), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "7", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(15), - }, - End: Location{ - Line: int(333), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(15), - }, - End: Location{ - Line: int(333), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(23), - }, - End: Location{ - Line: int(333), - Column: int(26), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(28), - }, - End: Location{ - Line: int(333), - Column: int(33), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(28), - }, - End: Location{ - Line: int(333), - Column: int(29), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(32), - }, - End: Location{ - Line: int(333), - Column: int(33), - }, - file: p1, - }, - context: p5598, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(35), - }, - End: Location{ - Line: int(333), - Column: int(45), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(35), - }, - End: Location{ - Line: int(333), - Column: int(41), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(35), - }, - End: Location{ - Line: int(333), - Column: int(36), - }, - file: p1, - }, - context: p5598, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(39), - }, - End: Location{ - Line: int(333), - Column: int(41), - }, - file: p1, - }, - context: p5598, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(333), - Column: int(44), - }, - End: Location{ - Line: int(333), - Column: int(45), - }, - file: p1, - }, - context: p5598, - freeVariables: nil, - }, - Value: float64(7), - OriginalString: "7", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(334), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(334), - Column: int(21), - }, - End: Location{ - Line: int(334), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(334), - Column: int(26), - }, - End: Location{ - Line: int(334), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "8", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(15), - }, - End: Location{ - Line: int(335), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(15), - }, - End: Location{ - Line: int(335), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(23), - }, - End: Location{ - Line: int(335), - Column: int(26), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(28), - }, - End: Location{ - Line: int(335), - Column: int(33), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(28), - }, - End: Location{ - Line: int(335), - Column: int(29), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(32), - }, - End: Location{ - Line: int(335), - Column: int(33), - }, - file: p1, - }, - context: p5632, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(35), - }, - End: Location{ - Line: int(335), - Column: int(45), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(35), - }, - End: Location{ - Line: int(335), - Column: int(41), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(35), - }, - End: Location{ - Line: int(335), - Column: int(36), - }, - file: p1, - }, - context: p5632, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(39), - }, - End: Location{ - Line: int(335), - Column: int(41), - }, - file: p1, - }, - context: p5632, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(335), - Column: int(44), - }, - End: Location{ - Line: int(335), - Column: int(45), - }, - file: p1, - }, - context: p5632, - freeVariables: nil, - }, - Value: float64(8), - OriginalString: "8", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(336), - Column: int(18), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - "consume", - "j", - "std", - "str", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(336), - Column: int(21), - }, - End: Location{ - Line: int(336), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(336), - Column: int(26), - }, - End: Location{ - Line: int(336), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: nil, - }, - Value: "9", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(15), - }, - End: Location{ - Line: int(337), - Column: int(46), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - "j", - "str", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(15), - }, - End: Location{ - Line: int(337), - Column: int(22), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(23), - }, - End: Location{ - Line: int(337), - Column: int(26), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(28), - }, - End: Location{ - Line: int(337), - Column: int(33), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(28), - }, - End: Location{ - Line: int(337), - Column: int(29), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(32), - }, - End: Location{ - Line: int(337), - Column: int(33), - }, - file: p1, - }, - context: p5666, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(35), - }, - End: Location{ - Line: int(337), - Column: int(45), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(35), - }, - End: Location{ - Line: int(337), - Column: int(41), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(35), - }, - End: Location{ - Line: int(337), - Column: int(36), - }, - file: p1, - }, - context: p5666, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(0), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(39), - }, - End: Location{ - Line: int(337), - Column: int(41), - }, - file: p1, - }, - context: p5666, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(337), - Column: int(44), - }, - End: Location{ - Line: int(337), - Column: int(45), - }, - file: p1, - }, - context: p5666, - freeVariables: nil, - }, - Value: float64(9), - OriginalString: "9", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(339), - Column: int(15), - }, - End: Location{ - Line: int(339), - Column: int(29), - }, - file: p1, - }, - context: p5312, - freeVariables: Identifiers{ - "j", - "v", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(339), - Column: int(20), - }, - End: Location{ - Line: int(339), - Column: int(21), - }, - file: p1, - }, - context: p5686, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(339), - Column: int(26), - }, - End: Location{ - Line: int(339), - Column: int(27), - }, - file: p1, - }, - context: p5686, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(340), - Column: int(9), - }, - End: Location{ - Line: int(340), - Column: int(27), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "consume", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(340), - Column: int(9), - }, - End: Location{ - Line: int(340), - Column: int(16), - }, - file: p1, - }, - context: p5258, - freeVariables: Identifiers{ - "consume", - }, - }, - Id: "consume", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(340), - Column: int(17), - }, - End: Location{ - Line: int(340), - Column: int(20), - }, - file: p1, - }, - context: p5697, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(340), - Column: int(22), - }, - End: Location{ - Line: int(340), - Column: int(23), - }, - file: p1, - }, - context: p5697, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(340), - Column: int(25), - }, - End: Location{ - Line: int(340), - Column: int(26), - }, - file: p1, - }, - context: p5697, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(342), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_mapping_key", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "try_parse_precision", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(342), - Column: int(11), - }, - End: Location{ - Line: int(350), - Column: int(28), - }, - file: p1, - }, - context: p5706, - freeVariables: Identifiers{ - "std", - "try_parse_field_width", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(7), - }, - End: Location{ - Line: int(350), - Column: int(28), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - "std", - "str", - "try_parse_field_width", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(10), - }, - End: Location{ - Line: int(343), - Column: int(30), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(10), - }, - End: Location{ - Line: int(343), - Column: int(11), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(15), - }, - End: Location{ - Line: int(343), - Column: int(30), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(15), - }, - End: Location{ - Line: int(343), - Column: int(25), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(15), - }, - End: Location{ - Line: int(343), - Column: int(18), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(343), - Column: int(26), - }, - End: Location{ - Line: int(343), - Column: int(29), - }, - file: p1, - }, - context: p5725, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(344), - Column: int(9), - }, - End: Location{ - Line: int(344), - Column: int(39), - }, - file: p1, - }, - context: p5710, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(344), - Column: int(15), - }, - End: Location{ - Line: int(344), - Column: int(39), - }, - file: p1, - }, - context: p5710, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(346), - Column: int(9), - }, - End: Location{ - Line: int(350), - Column: int(28), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - "std", - "str", - "try_parse_field_width", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(346), - Column: int(19), - }, - End: Location{ - Line: int(346), - Column: int(25), - }, - file: p1, - }, - context: p5733, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(346), - Column: int(19), - }, - End: Location{ - Line: int(346), - Column: int(22), - }, - file: p1, - }, - context: p5733, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(346), - Column: int(23), - }, - End: Location{ - Line: int(346), - Column: int(24), - }, - file: p1, - }, - context: p5733, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(347), - Column: int(9), - }, - End: Location{ - Line: int(350), - Column: int(28), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "c", - "i", - "std", - "str", - "try_parse_field_width", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(347), - Column: int(12), - }, - End: Location{ - Line: int(347), - Column: int(13), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(347), - Column: int(17), - }, - End: Location{ - Line: int(347), - Column: int(20), - }, - file: p1, - }, - context: p5710, - freeVariables: nil, - }, - Value: ".", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(11), - }, - End: Location{ - Line: int(348), - Column: int(44), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - "str", - "try_parse_field_width", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(11), - }, - End: Location{ - Line: int(348), - Column: int(32), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "try_parse_field_width", - }, - }, - Id: "try_parse_field_width", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(33), - }, - End: Location{ - Line: int(348), - Column: int(36), - }, - file: p1, - }, - context: p5758, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(38), - }, - End: Location{ - Line: int(348), - Column: int(43), - }, - file: p1, - }, - context: p5758, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(38), - }, - End: Location{ - Line: int(348), - Column: int(39), - }, - file: p1, - }, - context: p5758, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(348), - Column: int(42), - }, - End: Location{ - Line: int(348), - Column: int(43), - }, - file: p1, - }, - context: p5758, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(350), - Column: int(11), - }, - End: Location{ - Line: int(350), - Column: int(28), - }, - file: p1, - }, - context: p5710, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(350), - Column: int(16), - }, - End: Location{ - Line: int(350), - Column: int(17), - }, - file: p1, - }, - context: p5770, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(350), - Column: int(22), - }, - End: Location{ - Line: int(350), - Column: int(26), - }, - file: p1, - }, - context: p5770, - freeVariables: nil, - }, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(353), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_mapping_key", - "try_parse_precision", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "try_parse_length_modifier", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(353), - Column: int(11), - }, - End: Location{ - Line: int(361), - Column: int(12), - }, - file: p1, - }, - context: p5778, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(7), - }, - End: Location{ - Line: int(361), - Column: int(12), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(10), - }, - End: Location{ - Line: int(354), - Column: int(30), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(10), - }, - End: Location{ - Line: int(354), - Column: int(11), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(15), - }, - End: Location{ - Line: int(354), - Column: int(30), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(15), - }, - End: Location{ - Line: int(354), - Column: int(25), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(15), - }, - End: Location{ - Line: int(354), - Column: int(18), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(354), - Column: int(26), - }, - End: Location{ - Line: int(354), - Column: int(29), - }, - file: p1, - }, - context: p5797, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(355), - Column: int(9), - }, - End: Location{ - Line: int(355), - Column: int(39), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(355), - Column: int(15), - }, - End: Location{ - Line: int(355), - Column: int(39), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(357), - Column: int(9), - }, - End: Location{ - Line: int(361), - Column: int(12), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(357), - Column: int(19), - }, - End: Location{ - Line: int(357), - Column: int(25), - }, - file: p1, - }, - context: p5805, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(357), - Column: int(19), - }, - End: Location{ - Line: int(357), - Column: int(22), - }, - file: p1, - }, - context: p5805, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(357), - Column: int(23), - }, - End: Location{ - Line: int(357), - Column: int(24), - }, - file: p1, - }, - context: p5805, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(9), - }, - End: Location{ - Line: int(361), - Column: int(12), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(12), - }, - End: Location{ - Line: int(358), - Column: int(44), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(12), - }, - End: Location{ - Line: int(358), - Column: int(32), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(12), - }, - End: Location{ - Line: int(358), - Column: int(13), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(17), - }, - End: Location{ - Line: int(358), - Column: int(20), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Value: "h", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(18), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(24), - }, - End: Location{ - Line: int(358), - Column: int(25), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(29), - }, - End: Location{ - Line: int(358), - Column: int(32), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Value: "l", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(18), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(36), - }, - End: Location{ - Line: int(358), - Column: int(37), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(358), - Column: int(41), - }, - End: Location{ - Line: int(358), - Column: int(44), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Value: "L", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(359), - Column: int(11), - }, - End: Location{ - Line: int(359), - Column: int(16), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(359), - Column: int(11), - }, - End: Location{ - Line: int(359), - Column: int(12), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(359), - Column: int(15), - }, - End: Location{ - Line: int(359), - Column: int(16), - }, - file: p1, - }, - context: p5782, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(361), - Column: int(11), - }, - End: Location{ - Line: int(361), - Column: int(12), - }, - file: p1, - }, - context: p5782, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(363), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_mapping_key", - "try_parse_precision", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "parse_conv_type", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(363), - Column: int(11), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5861, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(7), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(10), - }, - End: Location{ - Line: int(364), - Column: int(30), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(10), - }, - End: Location{ - Line: int(364), - Column: int(11), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(15), - }, - End: Location{ - Line: int(364), - Column: int(30), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(15), - }, - End: Location{ - Line: int(364), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(15), - }, - End: Location{ - Line: int(364), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(364), - Column: int(26), - }, - End: Location{ - Line: int(364), - Column: int(29), - }, - file: p1, - }, - context: p5880, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(365), - Column: int(9), - }, - End: Location{ - Line: int(365), - Column: int(39), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(365), - Column: int(15), - }, - End: Location{ - Line: int(365), - Column: int(39), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(367), - Column: int(9), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(367), - Column: int(19), - }, - End: Location{ - Line: int(367), - Column: int(25), - }, - file: p1, - }, - context: p5888, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(367), - Column: int(19), - }, - End: Location{ - Line: int(367), - Column: int(22), - }, - file: p1, - }, - context: p5888, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(367), - Column: int(23), - }, - End: Location{ - Line: int(367), - Column: int(24), - }, - file: p1, - }, - context: p5888, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(9), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(12), - }, - End: Location{ - Line: int(368), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(12), - }, - End: Location{ - Line: int(368), - Column: int(32), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(12), - }, - End: Location{ - Line: int(368), - Column: int(13), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(17), - }, - End: Location{ - Line: int(368), - Column: int(20), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "d", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(18), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(24), - }, - End: Location{ - Line: int(368), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(29), - }, - End: Location{ - Line: int(368), - Column: int(32), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(18), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(36), - }, - End: Location{ - Line: int(368), - Column: int(37), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(368), - Column: int(41), - }, - End: Location{ - Line: int(368), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "u", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(11), - }, - End: Location{ - Line: int(369), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(16), - }, - End: Location{ - Line: int(369), - Column: int(21), - }, - file: p1, - }, - context: p5938, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(16), - }, - End: Location{ - Line: int(369), - Column: int(17), - }, - file: p1, - }, - context: p5938, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(20), - }, - End: Location{ - Line: int(369), - Column: int(21), - }, - file: p1, - }, - context: p5938, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(26), - }, - End: Location{ - Line: int(369), - Column: int(29), - }, - file: p1, - }, - context: p5938, - freeVariables: nil, - }, - Value: "d", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(369), - Column: int(37), - }, - End: Location{ - Line: int(369), - Column: int(42), - }, - file: p1, - }, - context: p5938, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(370), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(370), - Column: int(17), - }, - End: Location{ - Line: int(370), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(370), - Column: int(22), - }, - End: Location{ - Line: int(370), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "o", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(11), - }, - End: Location{ - Line: int(371), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(16), - }, - End: Location{ - Line: int(371), - Column: int(21), - }, - file: p1, - }, - context: p5965, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(16), - }, - End: Location{ - Line: int(371), - Column: int(17), - }, - file: p1, - }, - context: p5965, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(20), - }, - End: Location{ - Line: int(371), - Column: int(21), - }, - file: p1, - }, - context: p5965, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(26), - }, - End: Location{ - Line: int(371), - Column: int(29), - }, - file: p1, - }, - context: p5965, - freeVariables: nil, - }, - Value: "o", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(371), - Column: int(37), - }, - End: Location{ - Line: int(371), - Column: int(42), - }, - file: p1, - }, - context: p5965, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(372), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(372), - Column: int(17), - }, - End: Location{ - Line: int(372), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(372), - Column: int(22), - }, - End: Location{ - Line: int(372), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(11), - }, - End: Location{ - Line: int(373), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(16), - }, - End: Location{ - Line: int(373), - Column: int(21), - }, - file: p1, - }, - context: p5992, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(16), - }, - End: Location{ - Line: int(373), - Column: int(17), - }, - file: p1, - }, - context: p5992, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(20), - }, - End: Location{ - Line: int(373), - Column: int(21), - }, - file: p1, - }, - context: p5992, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(26), - }, - End: Location{ - Line: int(373), - Column: int(29), - }, - file: p1, - }, - context: p5992, - freeVariables: nil, - }, - Value: "x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(373), - Column: int(37), - }, - End: Location{ - Line: int(373), - Column: int(42), - }, - file: p1, - }, - context: p5992, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(374), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(374), - Column: int(17), - }, - End: Location{ - Line: int(374), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(374), - Column: int(22), - }, - End: Location{ - Line: int(374), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "X", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(11), - }, - End: Location{ - Line: int(375), - Column: int(43), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(16), - }, - End: Location{ - Line: int(375), - Column: int(21), - }, - file: p1, - }, - context: p6019, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(16), - }, - End: Location{ - Line: int(375), - Column: int(17), - }, - file: p1, - }, - context: p6019, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(20), - }, - End: Location{ - Line: int(375), - Column: int(21), - }, - file: p1, - }, - context: p6019, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(26), - }, - End: Location{ - Line: int(375), - Column: int(29), - }, - file: p1, - }, - context: p6019, - freeVariables: nil, - }, - Value: "x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(375), - Column: int(37), - }, - End: Location{ - Line: int(375), - Column: int(41), - }, - file: p1, - }, - context: p6019, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(376), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(376), - Column: int(17), - }, - End: Location{ - Line: int(376), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(376), - Column: int(22), - }, - End: Location{ - Line: int(376), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(11), - }, - End: Location{ - Line: int(377), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(16), - }, - End: Location{ - Line: int(377), - Column: int(21), - }, - file: p1, - }, - context: p6046, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(16), - }, - End: Location{ - Line: int(377), - Column: int(17), - }, - file: p1, - }, - context: p6046, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(20), - }, - End: Location{ - Line: int(377), - Column: int(21), - }, - file: p1, - }, - context: p6046, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(26), - }, - End: Location{ - Line: int(377), - Column: int(29), - }, - file: p1, - }, - context: p6046, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(377), - Column: int(37), - }, - End: Location{ - Line: int(377), - Column: int(42), - }, - file: p1, - }, - context: p6046, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(378), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(378), - Column: int(17), - }, - End: Location{ - Line: int(378), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(378), - Column: int(22), - }, - End: Location{ - Line: int(378), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "E", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(11), - }, - End: Location{ - Line: int(379), - Column: int(43), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(16), - }, - End: Location{ - Line: int(379), - Column: int(21), - }, - file: p1, - }, - context: p6073, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(16), - }, - End: Location{ - Line: int(379), - Column: int(17), - }, - file: p1, - }, - context: p6073, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(20), - }, - End: Location{ - Line: int(379), - Column: int(21), - }, - file: p1, - }, - context: p6073, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(26), - }, - End: Location{ - Line: int(379), - Column: int(29), - }, - file: p1, - }, - context: p6073, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(379), - Column: int(37), - }, - End: Location{ - Line: int(379), - Column: int(41), - }, - file: p1, - }, - context: p6073, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(380), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(380), - Column: int(17), - }, - End: Location{ - Line: int(380), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(380), - Column: int(22), - }, - End: Location{ - Line: int(380), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(11), - }, - End: Location{ - Line: int(381), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(16), - }, - End: Location{ - Line: int(381), - Column: int(21), - }, - file: p1, - }, - context: p6100, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(16), - }, - End: Location{ - Line: int(381), - Column: int(17), - }, - file: p1, - }, - context: p6100, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(20), - }, - End: Location{ - Line: int(381), - Column: int(21), - }, - file: p1, - }, - context: p6100, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(26), - }, - End: Location{ - Line: int(381), - Column: int(29), - }, - file: p1, - }, - context: p6100, - freeVariables: nil, - }, - Value: "f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(381), - Column: int(37), - }, - End: Location{ - Line: int(381), - Column: int(42), - }, - file: p1, - }, - context: p6100, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(382), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(382), - Column: int(17), - }, - End: Location{ - Line: int(382), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(382), - Column: int(22), - }, - End: Location{ - Line: int(382), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "F", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(11), - }, - End: Location{ - Line: int(383), - Column: int(43), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(16), - }, - End: Location{ - Line: int(383), - Column: int(21), - }, - file: p1, - }, - context: p6127, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(16), - }, - End: Location{ - Line: int(383), - Column: int(17), - }, - file: p1, - }, - context: p6127, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(20), - }, - End: Location{ - Line: int(383), - Column: int(21), - }, - file: p1, - }, - context: p6127, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(26), - }, - End: Location{ - Line: int(383), - Column: int(29), - }, - file: p1, - }, - context: p6127, - freeVariables: nil, - }, - Value: "f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(383), - Column: int(37), - }, - End: Location{ - Line: int(383), - Column: int(41), - }, - file: p1, - }, - context: p6127, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(384), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(384), - Column: int(17), - }, - End: Location{ - Line: int(384), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(384), - Column: int(22), - }, - End: Location{ - Line: int(384), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "g", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(11), - }, - End: Location{ - Line: int(385), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(16), - }, - End: Location{ - Line: int(385), - Column: int(21), - }, - file: p1, - }, - context: p6154, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(16), - }, - End: Location{ - Line: int(385), - Column: int(17), - }, - file: p1, - }, - context: p6154, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(20), - }, - End: Location{ - Line: int(385), - Column: int(21), - }, - file: p1, - }, - context: p6154, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(26), - }, - End: Location{ - Line: int(385), - Column: int(29), - }, - file: p1, - }, - context: p6154, - freeVariables: nil, - }, - Value: "g", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(385), - Column: int(37), - }, - End: Location{ - Line: int(385), - Column: int(42), - }, - file: p1, - }, - context: p6154, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(386), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(386), - Column: int(17), - }, - End: Location{ - Line: int(386), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(386), - Column: int(22), - }, - End: Location{ - Line: int(386), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "G", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(11), - }, - End: Location{ - Line: int(387), - Column: int(43), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(16), - }, - End: Location{ - Line: int(387), - Column: int(21), - }, - file: p1, - }, - context: p6181, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(16), - }, - End: Location{ - Line: int(387), - Column: int(17), - }, - file: p1, - }, - context: p6181, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(20), - }, - End: Location{ - Line: int(387), - Column: int(21), - }, - file: p1, - }, - context: p6181, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(26), - }, - End: Location{ - Line: int(387), - Column: int(29), - }, - file: p1, - }, - context: p6181, - freeVariables: nil, - }, - Value: "g", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(387), - Column: int(37), - }, - End: Location{ - Line: int(387), - Column: int(41), - }, - file: p1, - }, - context: p6181, - freeVariables: nil, - }, - Value: true, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(388), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(388), - Column: int(17), - }, - End: Location{ - Line: int(388), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(388), - Column: int(22), - }, - End: Location{ - Line: int(388), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "c", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(11), - }, - End: Location{ - Line: int(389), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(16), - }, - End: Location{ - Line: int(389), - Column: int(21), - }, - file: p1, - }, - context: p6208, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(16), - }, - End: Location{ - Line: int(389), - Column: int(17), - }, - file: p1, - }, - context: p6208, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(20), - }, - End: Location{ - Line: int(389), - Column: int(21), - }, - file: p1, - }, - context: p6208, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(26), - }, - End: Location{ - Line: int(389), - Column: int(29), - }, - file: p1, - }, - context: p6208, - freeVariables: nil, - }, - Value: "c", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(389), - Column: int(37), - }, - End: Location{ - Line: int(389), - Column: int(42), - }, - file: p1, - }, - context: p6208, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(390), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(390), - Column: int(17), - }, - End: Location{ - Line: int(390), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(390), - Column: int(22), - }, - End: Location{ - Line: int(390), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(11), - }, - End: Location{ - Line: int(391), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(16), - }, - End: Location{ - Line: int(391), - Column: int(21), - }, - file: p1, - }, - context: p6235, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(16), - }, - End: Location{ - Line: int(391), - Column: int(17), - }, - file: p1, - }, - context: p6235, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(20), - }, - End: Location{ - Line: int(391), - Column: int(21), - }, - file: p1, - }, - context: p6235, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(26), - }, - End: Location{ - Line: int(391), - Column: int(29), - }, - file: p1, - }, - context: p6235, - freeVariables: nil, - }, - Value: "s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(391), - Column: int(37), - }, - End: Location{ - Line: int(391), - Column: int(42), - }, - file: p1, - }, - context: p6235, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(392), - Column: int(14), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - "i", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(392), - Column: int(17), - }, - End: Location{ - Line: int(392), - Column: int(18), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(392), - Column: int(22), - }, - End: Location{ - Line: int(392), - Column: int(25), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(11), - }, - End: Location{ - Line: int(393), - Column: int(44), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(16), - }, - End: Location{ - Line: int(393), - Column: int(21), - }, - file: p1, - }, - context: p6262, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(16), - }, - End: Location{ - Line: int(393), - Column: int(17), - }, - file: p1, - }, - context: p6262, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(20), - }, - End: Location{ - Line: int(393), - Column: int(21), - }, - file: p1, - }, - context: p6262, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(26), - }, - End: Location{ - Line: int(393), - Column: int(29), - }, - file: p1, - }, - context: p6262, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(393), - Column: int(37), - }, - End: Location{ - Line: int(393), - Column: int(42), - }, - file: p1, - }, - context: p6262, - freeVariables: nil, - }, - Value: false, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(395), - Column: int(11), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(395), - Column: int(17), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(395), - Column: int(17), - }, - End: Location{ - Line: int(395), - Column: int(49), - }, - file: p1, - }, - context: p5865, - freeVariables: nil, - }, - Value: "Unrecognised conversion type: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(395), - Column: int(52), - }, - End: Location{ - Line: int(395), - Column: int(53), - }, - file: p1, - }, - context: p5865, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(399), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "parse_conv_type", - "std", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_mapping_key", - "try_parse_precision", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "parse_code", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(399), - Column: int(11), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6282, - freeVariables: Identifiers{ - "parse_conv_type", - "std", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_mapping_key", - "try_parse_precision", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(7), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "i", - "parse_conv_type", - "std", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_mapping_key", - "try_parse_precision", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(10), - }, - End: Location{ - Line: int(400), - Column: int(30), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(10), - }, - End: Location{ - Line: int(400), - Column: int(11), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(15), - }, - End: Location{ - Line: int(400), - Column: int(30), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(15), - }, - End: Location{ - Line: int(400), - Column: int(25), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(15), - }, - End: Location{ - Line: int(400), - Column: int(18), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(400), - Column: int(26), - }, - End: Location{ - Line: int(400), - Column: int(29), - }, - file: p1, - }, - context: p6301, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(401), - Column: int(9), - }, - End: Location{ - Line: int(401), - Column: int(39), - }, - file: p1, - }, - context: p6286, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(401), - Column: int(15), - }, - End: Location{ - Line: int(401), - Column: int(39), - }, - file: p1, - }, - context: p6286, - freeVariables: nil, - }, - Value: "Truncated format code.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(403), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "i", - "parse_conv_type", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_mapping_key", - "try_parse_precision", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "mkey", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(403), - Column: int(22), - }, - End: Location{ - Line: int(403), - Column: int(51), - }, - file: p1, - }, - context: p6309, - freeVariables: Identifiers{ - "i", - "str", - "try_parse_mapping_key", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(403), - Column: int(22), - }, - End: Location{ - Line: int(403), - Column: int(43), - }, - file: p1, - }, - context: p6309, - freeVariables: Identifiers{ - "try_parse_mapping_key", - }, - }, - Id: "try_parse_mapping_key", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(403), - Column: int(44), - }, - End: Location{ - Line: int(403), - Column: int(47), - }, - file: p1, - }, - context: p6315, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(403), - Column: int(49), - }, - End: Location{ - Line: int(403), - Column: int(50), - }, - file: p1, - }, - context: p6315, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "mkey", - "parse_conv_type", - "str", - "try_parse_cflags", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_precision", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "cflags", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(24), - }, - End: Location{ - Line: int(404), - Column: int(53), - }, - file: p1, - }, - context: p6323, - freeVariables: Identifiers{ - "mkey", - "str", - "try_parse_cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(24), - }, - End: Location{ - Line: int(404), - Column: int(40), - }, - file: p1, - }, - context: p6323, - freeVariables: Identifiers{ - "try_parse_cflags", - }, - }, - Id: "try_parse_cflags", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(41), - }, - End: Location{ - Line: int(404), - Column: int(44), - }, - file: p1, - }, - context: p6329, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(46), - }, - End: Location{ - Line: int(404), - Column: int(52), - }, - file: p1, - }, - context: p6329, - freeVariables: Identifiers{ - "mkey", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(404), - Column: int(46), - }, - End: Location{ - Line: int(404), - Column: int(50), - }, - file: p1, - }, - context: p6329, - freeVariables: Identifiers{ - "mkey", - }, - }, - Id: "mkey", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "cflags", - "mkey", - "parse_conv_type", - "str", - "try_parse_field_width", - "try_parse_length_modifier", - "try_parse_precision", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "fw", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(20), - }, - End: Location{ - Line: int(405), - Column: int(56), - }, - file: p1, - }, - context: p6340, - freeVariables: Identifiers{ - "cflags", - "str", - "try_parse_field_width", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(20), - }, - End: Location{ - Line: int(405), - Column: int(41), - }, - file: p1, - }, - context: p6340, - freeVariables: Identifiers{ - "try_parse_field_width", - }, - }, - Id: "try_parse_field_width", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(42), - }, - End: Location{ - Line: int(405), - Column: int(45), - }, - file: p1, - }, - context: p6346, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(47), - }, - End: Location{ - Line: int(405), - Column: int(55), - }, - file: p1, - }, - context: p6346, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(405), - Column: int(47), - }, - End: Location{ - Line: int(405), - Column: int(53), - }, - file: p1, - }, - context: p6346, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "cflags", - "fw", - "mkey", - "parse_conv_type", - "str", - "try_parse_length_modifier", - "try_parse_precision", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "prec", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(22), - }, - End: Location{ - Line: int(406), - Column: int(52), - }, - file: p1, - }, - context: p6357, - freeVariables: Identifiers{ - "fw", - "str", - "try_parse_precision", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(22), - }, - End: Location{ - Line: int(406), - Column: int(41), - }, - file: p1, - }, - context: p6357, - freeVariables: Identifiers{ - "try_parse_precision", - }, - }, - Id: "try_parse_precision", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(42), - }, - End: Location{ - Line: int(406), - Column: int(45), - }, - file: p1, - }, - context: p6363, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(47), - }, - End: Location{ - Line: int(406), - Column: int(51), - }, - file: p1, - }, - context: p6363, - freeVariables: Identifiers{ - "fw", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(406), - Column: int(47), - }, - End: Location{ - Line: int(406), - Column: int(49), - }, - file: p1, - }, - context: p6363, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "cflags", - "fw", - "mkey", - "parse_conv_type", - "prec", - "str", - "try_parse_length_modifier", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "len_mod", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(25), - }, - End: Location{ - Line: int(407), - Column: int(63), - }, - file: p1, - }, - context: p6374, - freeVariables: Identifiers{ - "prec", - "str", - "try_parse_length_modifier", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(25), - }, - End: Location{ - Line: int(407), - Column: int(50), - }, - file: p1, - }, - context: p6374, - freeVariables: Identifiers{ - "try_parse_length_modifier", - }, - }, - Id: "try_parse_length_modifier", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(51), - }, - End: Location{ - Line: int(407), - Column: int(54), - }, - file: p1, - }, - context: p6380, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(56), - }, - End: Location{ - Line: int(407), - Column: int(62), - }, - file: p1, - }, - context: p6380, - freeVariables: Identifiers{ - "prec", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(407), - Column: int(56), - }, - End: Location{ - Line: int(407), - Column: int(60), - }, - file: p1, - }, - context: p6380, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(408), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "cflags", - "fw", - "len_mod", - "mkey", - "parse_conv_type", - "prec", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "ctype", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(408), - Column: int(23), - }, - End: Location{ - Line: int(408), - Column: int(52), - }, - file: p1, - }, - context: p6391, - freeVariables: Identifiers{ - "len_mod", - "parse_conv_type", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(408), - Column: int(23), - }, - End: Location{ - Line: int(408), - Column: int(38), - }, - file: p1, - }, - context: p6391, - freeVariables: Identifiers{ - "parse_conv_type", - }, - }, - Id: "parse_conv_type", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(408), - Column: int(39), - }, - End: Location{ - Line: int(408), - Column: int(42), - }, - file: p1, - }, - context: p6397, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(408), - Column: int(44), - }, - End: Location{ - Line: int(408), - Column: int(51), - }, - file: p1, - }, - context: p6397, - freeVariables: Identifiers{ - "len_mod", - }, - }, - Id: "len_mod", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(409), - Column: int(9), - }, - End: Location{ - Line: int(419), - Column: int(10), - }, - file: p1, - }, - context: p6286, - freeVariables: Identifiers{ - "cflags", - "ctype", - "fw", - "mkey", - "prec", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(410), - Column: int(14), - }, - End: Location{ - Line: int(410), - Column: int(21), - }, - file: p1, - }, - context: p6406, - freeVariables: Identifiers{ - "ctype", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(410), - Column: int(14), - }, - End: Location{ - Line: int(410), - Column: int(19), - }, - file: p1, - }, - context: p6406, - freeVariables: Identifiers{ - "ctype", - }, - }, - Id: "ctype", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "code", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(411), - Column: int(17), - }, - End: Location{ - Line: int(418), - Column: int(12), - }, - file: p1, - }, - context: p6406, - freeVariables: Identifiers{ - "cflags", - "ctype", - "fw", - "mkey", - "prec", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mkey", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(412), - Column: int(19), - }, - End: Location{ - Line: int(412), - Column: int(25), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "mkey", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(412), - Column: int(19), - }, - End: Location{ - Line: int(412), - Column: int(23), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "mkey", - }, - }, - Id: "mkey", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "cflags", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(413), - Column: int(21), - }, - End: Location{ - Line: int(413), - Column: int(29), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(413), - Column: int(21), - }, - End: Location{ - Line: int(413), - Column: int(27), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(414), - Column: int(17), - }, - End: Location{ - Line: int(414), - Column: int(21), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "fw", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(414), - Column: int(17), - }, - End: Location{ - Line: int(414), - Column: int(19), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(415), - Column: int(19), - }, - End: Location{ - Line: int(415), - Column: int(25), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "prec", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(415), - Column: int(19), - }, - End: Location{ - Line: int(415), - Column: int(23), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(416), - Column: int(20), - }, - End: Location{ - Line: int(416), - Column: int(27), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "ctype", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(416), - Column: int(20), - }, - End: Location{ - Line: int(416), - Column: int(25), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "ctype", - }, - }, - Id: "ctype", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "v", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(417), - Column: int(19), - }, - End: Location{ - Line: int(417), - Column: int(29), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "ctype", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(417), - Column: int(19), - }, - End: Location{ - Line: int(417), - Column: int(24), - }, - file: p1, - }, - context: p6417, - freeVariables: Identifiers{ - "ctype", - }, - }, - Id: "ctype", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - }, - }, - PlusSuper: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(422), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "parse_code", - "std", - "str", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "parse_codes", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(422), - Column: int(11), - }, - End: Location{ - Line: int(431), - Column: int(48), - }, - file: p1, - }, - context: p6456, - freeVariables: Identifiers{ - "parse_code", - "parse_codes", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - "out", - "cur", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(7), - }, - End: Location{ - Line: int(431), - Column: int(48), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - "i", - "out", - "parse_code", - "parse_codes", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(10), - }, - End: Location{ - Line: int(423), - Column: int(30), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(10), - }, - End: Location{ - Line: int(423), - Column: int(11), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(15), - }, - End: Location{ - Line: int(423), - Column: int(30), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(15), - }, - End: Location{ - Line: int(423), - Column: int(25), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(15), - }, - End: Location{ - Line: int(423), - Column: int(18), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(423), - Column: int(26), - }, - End: Location{ - Line: int(423), - Column: int(29), - }, - file: p1, - }, - context: p6475, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(424), - Column: int(9), - }, - End: Location{ - Line: int(424), - Column: int(20), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - "out", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(424), - Column: int(9), - }, - End: Location{ - Line: int(424), - Column: int(12), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "out", - }, - }, - Id: "out", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(424), - Column: int(15), - }, - End: Location{ - Line: int(424), - Column: int(20), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(424), - Column: int(16), - }, - End: Location{ - Line: int(424), - Column: int(19), - }, - file: p1, - }, - context: p6485, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - }, - TrailingComma: false, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(426), - Column: int(9), - }, - End: Location{ - Line: int(431), - Column: int(48), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - "i", - "out", - "parse_code", - "parse_codes", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "c", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(426), - Column: int(19), - }, - End: Location{ - Line: int(426), - Column: int(25), - }, - file: p1, - }, - context: p6491, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(426), - Column: int(19), - }, - End: Location{ - Line: int(426), - Column: int(22), - }, - file: p1, - }, - context: p6491, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(426), - Column: int(23), - }, - End: Location{ - Line: int(426), - Column: int(24), - }, - file: p1, - }, - context: p6491, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(427), - Column: int(9), - }, - End: Location{ - Line: int(431), - Column: int(48), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "c", - "cur", - "i", - "out", - "parse_code", - "parse_codes", - "std", - "str", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(427), - Column: int(12), - }, - End: Location{ - Line: int(427), - Column: int(13), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(427), - Column: int(17), - }, - End: Location{ - Line: int(427), - Column: int(20), - }, - file: p1, - }, - context: p6460, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(11), - }, - End: Location{ - Line: int(429), - Column: int(57), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - "i", - "out", - "parse_code", - "parse_codes", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "r", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(21), - }, - End: Location{ - Line: int(428), - Column: int(43), - }, - file: p1, - }, - context: p6514, - freeVariables: Identifiers{ - "i", - "parse_code", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(21), - }, - End: Location{ - Line: int(428), - Column: int(31), - }, - file: p1, - }, - context: p6514, - freeVariables: Identifiers{ - "parse_code", - }, - }, - Id: "parse_code", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(32), - }, - End: Location{ - Line: int(428), - Column: int(35), - }, - file: p1, - }, - context: p6520, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(37), - }, - End: Location{ - Line: int(428), - Column: int(42), - }, - file: p1, - }, - context: p6520, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(37), - }, - End: Location{ - Line: int(428), - Column: int(38), - }, - file: p1, - }, - context: p6520, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(428), - Column: int(41), - }, - End: Location{ - Line: int(428), - Column: int(42), - }, - file: p1, - }, - context: p6520, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(11), - }, - End: Location{ - Line: int(429), - Column: int(57), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "cur", - "out", - "parse_codes", - "r", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(11), - }, - End: Location{ - Line: int(429), - Column: int(22), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "parse_codes", - }, - }, - Id: "parse_codes", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(23), - }, - End: Location{ - Line: int(429), - Column: int(26), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(28), - }, - End: Location{ - Line: int(429), - Column: int(31), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "r", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(28), - }, - End: Location{ - Line: int(429), - Column: int(29), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "i", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(33), - }, - End: Location{ - Line: int(429), - Column: int(52), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "cur", - "out", - "r", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(33), - }, - End: Location{ - Line: int(429), - Column: int(36), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "out", - }, - }, - Id: "out", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(39), - }, - End: Location{ - Line: int(429), - Column: int(52), - }, - file: p1, - }, - context: p6533, - freeVariables: Identifiers{ - "cur", - "r", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(40), - }, - End: Location{ - Line: int(429), - Column: int(43), - }, - file: p1, - }, - context: p6548, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(45), - }, - End: Location{ - Line: int(429), - Column: int(51), - }, - file: p1, - }, - context: p6548, - freeVariables: Identifiers{ - "r", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(45), - }, - End: Location{ - Line: int(429), - Column: int(46), - }, - file: p1, - }, - context: p6548, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "code", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(429), - Column: int(54), - }, - End: Location{ - Line: int(429), - Column: int(56), - }, - file: p1, - }, - context: p6533, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(11), - }, - End: Location{ - Line: int(431), - Column: int(48), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "c", - "cur", - "i", - "out", - "parse_codes", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(11), - }, - End: Location{ - Line: int(431), - Column: int(22), - }, - file: p1, - }, - context: p6460, - freeVariables: Identifiers{ - "parse_codes", - }, - }, - Id: "parse_codes", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(23), - }, - End: Location{ - Line: int(431), - Column: int(26), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(28), - }, - End: Location{ - Line: int(431), - Column: int(33), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(28), - }, - End: Location{ - Line: int(431), - Column: int(29), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(32), - }, - End: Location{ - Line: int(431), - Column: int(33), - }, - file: p1, - }, - context: p6562, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(35), - }, - End: Location{ - Line: int(431), - Column: int(38), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "out", - }, - }, - Id: "out", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(40), - }, - End: Location{ - Line: int(431), - Column: int(47), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "c", - "cur", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(40), - }, - End: Location{ - Line: int(431), - Column: int(43), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "cur", - }, - }, - Id: "cur", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(431), - Column: int(46), - }, - End: Location{ - Line: int(431), - Column: int(47), - }, - file: p1, - }, - context: p6562, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "parse_codes", - "std", - "str", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "codes", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(19), - }, - End: Location{ - Line: int(433), - Column: int(46), - }, - file: p1, - }, - context: p6581, - freeVariables: Identifiers{ - "parse_codes", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(19), - }, - End: Location{ - Line: int(433), - Column: int(30), - }, - file: p1, - }, - context: p6581, - freeVariables: Identifiers{ - "parse_codes", - }, - }, - Id: "parse_codes", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(31), - }, - End: Location{ - Line: int(433), - Column: int(34), - }, - file: p1, - }, - context: p6587, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(36), - }, - End: Location{ - Line: int(433), - Column: int(37), - }, - file: p1, - }, - context: p6587, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(39), - }, - End: Location{ - Line: int(433), - Column: int(41), - }, - file: p1, - }, - context: p6587, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(433), - Column: int(43), - }, - End: Location{ - Line: int(433), - Column: int(45), - }, - file: p1, - }, - context: p6587, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(441), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "padding", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(441), - Column: int(11), - }, - End: Location{ - Line: int(447), - Column: int(17), - }, - file: p1, - }, - context: p6596, - freeVariables: nil, - }, - Parameters: Parameters{ - Required: Identifiers{ - "w", - "s", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(442), - Column: int(7), - }, - End: Location{ - Line: int(447), - Column: int(17), - }, - file: p1, - }, - context: p6599, - freeVariables: Identifiers{ - "s", - "w", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(442), - Column: int(13), - }, - End: Location{ - Line: int(446), - Column: int(28), - }, - file: p1, - }, - context: p6603, - freeVariables: Identifiers{ - "aux", - "s", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "w", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(443), - Column: int(9), - }, - End: Location{ - Line: int(446), - Column: int(28), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "aux", - "s", - "v", - "w", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(443), - Column: int(12), - }, - End: Location{ - Line: int(443), - Column: int(18), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "w", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(443), - Column: int(12), - }, - End: Location{ - Line: int(443), - Column: int(13), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "w", - }, - }, - Id: "w", - }, - Op: BinaryOp(10), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(443), - Column: int(17), - }, - End: Location{ - Line: int(443), - Column: int(18), - }, - file: p1, - }, - context: p6607, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(444), - Column: int(11), - }, - End: Location{ - Line: int(444), - Column: int(12), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(11), - }, - End: Location{ - Line: int(446), - Column: int(28), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "aux", - "s", - "v", - "w", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(11), - }, - End: Location{ - Line: int(446), - Column: int(14), - }, - file: p1, - }, - context: p6607, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(15), - }, - End: Location{ - Line: int(446), - Column: int(20), - }, - file: p1, - }, - context: p6622, - freeVariables: Identifiers{ - "w", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(15), - }, - End: Location{ - Line: int(446), - Column: int(16), - }, - file: p1, - }, - context: p6622, - freeVariables: Identifiers{ - "w", - }, - }, - Id: "w", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(19), - }, - End: Location{ - Line: int(446), - Column: int(20), - }, - file: p1, - }, - context: p6622, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(22), - }, - End: Location{ - Line: int(446), - Column: int(27), - }, - file: p1, - }, - context: p6622, - freeVariables: Identifiers{ - "s", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(22), - }, - End: Location{ - Line: int(446), - Column: int(23), - }, - file: p1, - }, - context: p6622, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(446), - Column: int(26), - }, - End: Location{ - Line: int(446), - Column: int(27), - }, - file: p1, - }, - context: p6622, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(447), - Column: int(7), - }, - End: Location{ - Line: int(447), - Column: int(17), - }, - file: p1, - }, - context: p6599, - freeVariables: Identifiers{ - "aux", - "w", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(447), - Column: int(7), - }, - End: Location{ - Line: int(447), - Column: int(10), - }, - file: p1, - }, - context: p6599, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(447), - Column: int(11), - }, - End: Location{ - Line: int(447), - Column: int(12), - }, - file: p1, - }, - context: p6639, - freeVariables: Identifiers{ - "w", - }, - }, - Id: "w", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(447), - Column: int(14), - }, - End: Location{ - Line: int(447), - Column: int(16), - }, - file: p1, - }, - context: p6639, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(450), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "padding", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "pad_left", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(450), - Column: int(11), - }, - End: Location{ - Line: int(451), - Column: int(44), - }, - file: p1, - }, - context: p6646, - freeVariables: Identifiers{ - "padding", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "w", - "s", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(7), - }, - End: Location{ - Line: int(451), - Column: int(44), - }, - file: p1, - }, - context: p6650, - freeVariables: Identifiers{ - "padding", - "s", - "std", - "str", - "w", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(7), - }, - End: Location{ - Line: int(451), - Column: int(38), - }, - file: p1, - }, - context: p6650, - freeVariables: Identifiers{ - "padding", - "s", - "std", - "str", - "w", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(7), - }, - End: Location{ - Line: int(451), - Column: int(14), - }, - file: p1, - }, - context: p6650, - freeVariables: Identifiers{ - "padding", - }, - }, - Id: "padding", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(15), - }, - End: Location{ - Line: int(451), - Column: int(34), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "std", - "str", - "w", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(15), - }, - End: Location{ - Line: int(451), - Column: int(16), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "w", - }, - }, - Id: "w", - }, - Op: BinaryOp(4), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(19), - }, - End: Location{ - Line: int(451), - Column: int(34), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(19), - }, - End: Location{ - Line: int(451), - Column: int(29), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(19), - }, - End: Location{ - Line: int(451), - Column: int(22), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(30), - }, - End: Location{ - Line: int(451), - Column: int(33), - }, - file: p1, - }, - context: p6671, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(36), - }, - End: Location{ - Line: int(451), - Column: int(37), - }, - file: p1, - }, - context: p6658, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(451), - Column: int(41), - }, - End: Location{ - Line: int(451), - Column: int(44), - }, - file: p1, - }, - context: p6650, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(454), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "padding", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "pad_right", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(454), - Column: int(11), - }, - End: Location{ - Line: int(455), - Column: int(44), - }, - file: p1, - }, - context: p6681, - freeVariables: Identifiers{ - "padding", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "w", - "s", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(7), - }, - End: Location{ - Line: int(455), - Column: int(44), - }, - file: p1, - }, - context: p6685, - freeVariables: Identifiers{ - "padding", - "s", - "std", - "str", - "w", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(7), - }, - End: Location{ - Line: int(455), - Column: int(10), - }, - file: p1, - }, - context: p6685, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(13), - }, - End: Location{ - Line: int(455), - Column: int(44), - }, - file: p1, - }, - context: p6685, - freeVariables: Identifiers{ - "padding", - "s", - "std", - "str", - "w", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(13), - }, - End: Location{ - Line: int(455), - Column: int(20), - }, - file: p1, - }, - context: p6685, - freeVariables: Identifiers{ - "padding", - }, - }, - Id: "padding", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(21), - }, - End: Location{ - Line: int(455), - Column: int(40), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "std", - "str", - "w", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(21), - }, - End: Location{ - Line: int(455), - Column: int(22), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "w", - }, - }, - Id: "w", - }, - Op: BinaryOp(4), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(25), - }, - End: Location{ - Line: int(455), - Column: int(40), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(25), - }, - End: Location{ - Line: int(455), - Column: int(35), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(25), - }, - End: Location{ - Line: int(455), - Column: int(28), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(36), - }, - End: Location{ - Line: int(455), - Column: int(39), - }, - file: p1, - }, - context: p6708, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(455), - Column: int(42), - }, - End: Location{ - Line: int(455), - Column: int(43), - }, - file: p1, - }, - context: p6695, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(458), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "render_int", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(458), - Column: int(11), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6716, - freeVariables: Identifiers{ - "pad_left", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n__", - "min_chars", - "min_digits", - "blank", - "sign", - "radix", - "zero_prefix", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(459), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "min_chars", - "min_digits", - "n__", - "pad_left", - "radix", - "sign", - "std", - "zero_prefix", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n_", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(459), - Column: int(18), - }, - End: Location{ - Line: int(459), - Column: int(30), - }, - file: p1, - }, - context: p6724, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(459), - Column: int(18), - }, - End: Location{ - Line: int(459), - Column: int(25), - }, - file: p1, - }, - context: p6724, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(459), - Column: int(18), - }, - End: Location{ - Line: int(459), - Column: int(21), - }, - file: p1, - }, - context: p6724, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(459), - Column: int(26), - }, - End: Location{ - Line: int(459), - Column: int(29), - }, - file: p1, - }, - context: p6733, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(460), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "min_chars", - "min_digits", - "n_", - "n__", - "pad_left", - "radix", - "sign", - "std", - "zero_prefix", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(460), - Column: int(13), - }, - End: Location{ - Line: int(464), - Column: int(50), - }, - file: p1, - }, - context: p6739, - freeVariables: Identifiers{ - "aux", - "radix", - "std", - "zero_prefix", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(461), - Column: int(9), - }, - End: Location{ - Line: int(464), - Column: int(50), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "aux", - "n", - "radix", - "std", - "zero_prefix", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(461), - Column: int(12), - }, - End: Location{ - Line: int(461), - Column: int(13), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(461), - Column: int(17), - }, - End: Location{ - Line: int(461), - Column: int(18), - }, - file: p1, - }, - context: p6743, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(462), - Column: int(11), - }, - End: Location{ - Line: int(462), - Column: int(22), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "zero_prefix", - }, - }, - Id: "zero_prefix", - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(11), - }, - End: Location{ - Line: int(464), - Column: int(50), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "aux", - "n", - "radix", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(11), - }, - End: Location{ - Line: int(464), - Column: int(36), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "aux", - "n", - "radix", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(11), - }, - End: Location{ - Line: int(464), - Column: int(14), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(15), - }, - End: Location{ - Line: int(464), - Column: int(35), - }, - file: p1, - }, - context: p6766, - freeVariables: Identifiers{ - "n", - "radix", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(15), - }, - End: Location{ - Line: int(464), - Column: int(24), - }, - file: p1, - }, - context: p6766, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(15), - }, - End: Location{ - Line: int(464), - Column: int(18), - }, - file: p1, - }, - context: p6766, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(25), - }, - End: Location{ - Line: int(464), - Column: int(34), - }, - file: p1, - }, - context: p6775, - freeVariables: Identifiers{ - "n", - "radix", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(25), - }, - End: Location{ - Line: int(464), - Column: int(26), - }, - file: p1, - }, - context: p6775, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - Op: BinaryOp(1), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(29), - }, - End: Location{ - Line: int(464), - Column: int(34), - }, - file: p1, - }, - context: p6775, - freeVariables: Identifiers{ - "radix", - }, - }, - Id: "radix", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "radix", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(40), - }, - End: Location{ - Line: int(464), - Column: int(41), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(464), - Column: int(44), - }, - End: Location{ - Line: int(464), - Column: int(49), - }, - file: p1, - }, - context: p6743, - freeVariables: Identifiers{ - "radix", - }, - }, - Id: "radix", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "aux", - "blank", - "min_chars", - "min_digits", - "n_", - "n__", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "dec", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(19), - }, - End: Location{ - Line: int(465), - Column: int(73), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "aux", - "n_", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(22), - }, - End: Location{ - Line: int(465), - Column: int(35), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(22), - }, - End: Location{ - Line: int(465), - Column: int(31), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(22), - }, - End: Location{ - Line: int(465), - Column: int(25), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(32), - }, - End: Location{ - Line: int(465), - Column: int(34), - }, - file: p1, - }, - context: p6816, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(39), - }, - End: Location{ - Line: int(465), - Column: int(40), - }, - file: p1, - }, - context: p6797, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(46), - }, - End: Location{ - Line: int(465), - Column: int(49), - }, - file: p1, - }, - context: p6797, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(55), - }, - End: Location{ - Line: int(465), - Column: int(73), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "aux", - "n_", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(55), - }, - End: Location{ - Line: int(465), - Column: int(58), - }, - file: p1, - }, - context: p6797, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(59), - }, - End: Location{ - Line: int(465), - Column: int(72), - }, - file: p1, - }, - context: p6826, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(59), - }, - End: Location{ - Line: int(465), - Column: int(68), - }, - file: p1, - }, - context: p6826, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(59), - }, - End: Location{ - Line: int(465), - Column: int(62), - }, - file: p1, - }, - context: p6826, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(465), - Column: int(69), - }, - End: Location{ - Line: int(465), - Column: int(71), - }, - file: p1, - }, - context: p6835, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(466), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "dec", - "min_chars", - "min_digits", - "n__", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "neg", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(466), - Column: int(19), - }, - End: Location{ - Line: int(466), - Column: int(26), - }, - file: p1, - }, - context: p6841, - freeVariables: Identifiers{ - "n__", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(466), - Column: int(19), - }, - End: Location{ - Line: int(466), - Column: int(22), - }, - file: p1, - }, - context: p6841, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(466), - Column: int(25), - }, - End: Location{ - Line: int(466), - Column: int(26), - }, - file: p1, - }, - context: p6841, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "dec", - "min_chars", - "min_digits", - "neg", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(18), - }, - End: Location{ - Line: int(467), - Column: int(69), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "blank", - "min_chars", - "neg", - "sign", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(18), - }, - End: Location{ - Line: int(467), - Column: int(27), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "min_chars", - }, - }, - Id: "min_chars", - }, - Op: BinaryOp(4), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(31), - }, - End: Location{ - Line: int(467), - Column: int(68), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(34), - }, - End: Location{ - Line: int(467), - Column: int(54), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(34), - }, - End: Location{ - Line: int(467), - Column: int(46), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "blank", - "neg", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(34), - }, - End: Location{ - Line: int(467), - Column: int(37), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "neg", - }, - }, - Id: "neg", - }, - Op: BinaryOp(18), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(41), - }, - End: Location{ - Line: int(467), - Column: int(46), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - }, - Op: BinaryOp(18), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(50), - }, - End: Location{ - Line: int(467), - Column: int(54), - }, - file: p1, - }, - context: p6850, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(60), - }, - End: Location{ - Line: int(467), - Column: int(61), - }, - file: p1, - }, - context: p6850, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(467), - Column: int(67), - }, - End: Location{ - Line: int(467), - Column: int(68), - }, - file: p1, - }, - context: p6850, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "dec", - "min_digits", - "neg", - "pad_left", - "sign", - "std", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp2", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(19), - }, - End: Location{ - Line: int(468), - Column: int(42), - }, - file: p1, - }, - context: p6872, - freeVariables: Identifiers{ - "min_digits", - "std", - "zp", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(19), - }, - End: Location{ - Line: int(468), - Column: int(26), - }, - file: p1, - }, - context: p6872, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(19), - }, - End: Location{ - Line: int(468), - Column: int(22), - }, - file: p1, - }, - context: p6872, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "max", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(27), - }, - End: Location{ - Line: int(468), - Column: int(29), - }, - file: p1, - }, - context: p6881, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(468), - Column: int(31), - }, - End: Location{ - Line: int(468), - Column: int(41), - }, - file: p1, - }, - context: p6881, - freeVariables: Identifiers{ - "min_digits", - }, - }, - Id: "min_digits", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "dec", - "neg", - "pad_left", - "sign", - "zp2", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "dec2", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(20), - }, - End: Location{ - Line: int(469), - Column: int(43), - }, - file: p1, - }, - context: p6889, - freeVariables: Identifiers{ - "dec", - "pad_left", - "zp2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(20), - }, - End: Location{ - Line: int(469), - Column: int(28), - }, - file: p1, - }, - context: p6889, - freeVariables: Identifiers{ - "pad_left", - }, - }, - Id: "pad_left", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(29), - }, - End: Location{ - Line: int(469), - Column: int(32), - }, - file: p1, - }, - context: p6895, - freeVariables: Identifiers{ - "dec", - }, - }, - Id: "dec", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(34), - }, - End: Location{ - Line: int(469), - Column: int(37), - }, - file: p1, - }, - context: p6895, - freeVariables: Identifiers{ - "zp2", - }, - }, - Id: "zp2", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(469), - Column: int(39), - }, - End: Location{ - Line: int(469), - Column: int(42), - }, - file: p1, - }, - context: p6895, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(7), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "dec2", - "neg", - "sign", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(8), - }, - End: Location{ - Line: int(470), - Column: int(76), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(11), - }, - End: Location{ - Line: int(470), - Column: int(14), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "neg", - }, - }, - Id: "neg", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(20), - }, - End: Location{ - Line: int(470), - Column: int(23), - }, - file: p1, - }, - context: p6720, - freeVariables: nil, - }, - Value: "-", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(29), - }, - End: Location{ - Line: int(470), - Column: int(76), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - "sign", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(32), - }, - End: Location{ - Line: int(470), - Column: int(36), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(42), - }, - End: Location{ - Line: int(470), - Column: int(45), - }, - file: p1, - }, - context: p6720, - freeVariables: nil, - }, - Value: "+", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(51), - }, - End: Location{ - Line: int(470), - Column: int(76), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(54), - }, - End: Location{ - Line: int(470), - Column: int(59), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(65), - }, - End: Location{ - Line: int(470), - Column: int(68), - }, - file: p1, - }, - context: p6720, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(74), - }, - End: Location{ - Line: int(470), - Column: int(76), - }, - file: p1, - }, - context: p6720, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(470), - Column: int(80), - }, - End: Location{ - Line: int(470), - Column: int(84), - }, - file: p1, - }, - context: p6720, - freeVariables: Identifiers{ - "dec2", - }, - }, - Id: "dec2", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(473), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "render_int", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "render_hex", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(473), - Column: int(11), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6924, - freeVariables: Identifiers{ - "pad_left", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n__", - "min_chars", - "min_digits", - "blank", - "sign", - "add_zerox", - "capitals", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "min_chars", - "min_digits", - "n__", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "numerals", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(24), - }, - End: Location{ - Line: int(476), - Column: int(59), - }, - file: p1, - }, - context: p6932, - freeVariables: Identifiers{ - "capitals", - }, - }, - Left: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(24), - }, - End: Location{ - Line: int(474), - Column: int(54), - }, - file: p1, - }, - context: p6932, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(25), - }, - End: Location{ - Line: int(474), - Column: int(26), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(28), - }, - End: Location{ - Line: int(474), - Column: int(29), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(31), - }, - End: Location{ - Line: int(474), - Column: int(32), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(34), - }, - End: Location{ - Line: int(474), - Column: int(35), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(37), - }, - End: Location{ - Line: int(474), - Column: int(38), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(40), - }, - End: Location{ - Line: int(474), - Column: int(41), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(5), - OriginalString: "5", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(43), - }, - End: Location{ - Line: int(474), - Column: int(44), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(6), - OriginalString: "6", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(46), - }, - End: Location{ - Line: int(474), - Column: int(47), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(7), - OriginalString: "7", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(49), - }, - End: Location{ - Line: int(474), - Column: int(50), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(8), - OriginalString: "8", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(474), - Column: int(52), - }, - End: Location{ - Line: int(474), - Column: int(53), - }, - file: p1, - }, - context: p6937, - freeVariables: nil, - }, - Value: float64(9), - OriginalString: "9", - }, - }, - TrailingComma: false, - }, - Op: BinaryOp(3), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(26), - }, - End: Location{ - Line: int(476), - Column: int(59), - }, - file: p1, - }, - context: p6932, - freeVariables: Identifiers{ - "capitals", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(29), - }, - End: Location{ - Line: int(475), - Column: int(37), - }, - file: p1, - }, - context: p6932, - freeVariables: Identifiers{ - "capitals", - }, - }, - Id: "capitals", - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(43), - }, - End: Location{ - Line: int(475), - Column: int(73), - }, - file: p1, - }, - context: p6932, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(44), - }, - End: Location{ - Line: int(475), - Column: int(47), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "A", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(49), - }, - End: Location{ - Line: int(475), - Column: int(52), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "B", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(54), - }, - End: Location{ - Line: int(475), - Column: int(57), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "C", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(59), - }, - End: Location{ - Line: int(475), - Column: int(62), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "D", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(64), - }, - End: Location{ - Line: int(475), - Column: int(67), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "E", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(475), - Column: int(69), - }, - End: Location{ - Line: int(475), - Column: int(72), - }, - file: p1, - }, - context: p6954, - freeVariables: nil, - }, - Value: "F", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(29), - }, - End: Location{ - Line: int(476), - Column: int(59), - }, - file: p1, - }, - context: p6932, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(30), - }, - End: Location{ - Line: int(476), - Column: int(33), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "a", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(35), - }, - End: Location{ - Line: int(476), - Column: int(38), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "b", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(40), - }, - End: Location{ - Line: int(476), - Column: int(43), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "c", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(45), - }, - End: Location{ - Line: int(476), - Column: int(48), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "d", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(50), - }, - End: Location{ - Line: int(476), - Column: int(53), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(476), - Column: int(55), - }, - End: Location{ - Line: int(476), - Column: int(58), - }, - file: p1, - }, - context: p6963, - freeVariables: nil, - }, - Value: "f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(477), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "min_chars", - "min_digits", - "n__", - "numerals", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n_", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(477), - Column: int(18), - }, - End: Location{ - Line: int(477), - Column: int(30), - }, - file: p1, - }, - context: p6973, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(477), - Column: int(18), - }, - End: Location{ - Line: int(477), - Column: int(25), - }, - file: p1, - }, - context: p6973, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(477), - Column: int(18), - }, - End: Location{ - Line: int(477), - Column: int(21), - }, - file: p1, - }, - context: p6973, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(477), - Column: int(26), - }, - End: Location{ - Line: int(477), - Column: int(29), - }, - file: p1, - }, - context: p6982, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(478), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "min_chars", - "min_digits", - "n_", - "n__", - "numerals", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(478), - Column: int(13), - }, - End: Location{ - Line: int(482), - Column: int(52), - }, - file: p1, - }, - context: p6988, - freeVariables: Identifiers{ - "aux", - "numerals", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(479), - Column: int(9), - }, - End: Location{ - Line: int(482), - Column: int(52), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "aux", - "n", - "numerals", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(479), - Column: int(12), - }, - End: Location{ - Line: int(479), - Column: int(13), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(479), - Column: int(17), - }, - End: Location{ - Line: int(479), - Column: int(18), - }, - file: p1, - }, - context: p6992, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(480), - Column: int(11), - }, - End: Location{ - Line: int(480), - Column: int(13), - }, - file: p1, - }, - context: p6992, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(11), - }, - End: Location{ - Line: int(482), - Column: int(52), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "aux", - "n", - "numerals", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(11), - }, - End: Location{ - Line: int(482), - Column: int(33), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "aux", - "n", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(11), - }, - End: Location{ - Line: int(482), - Column: int(14), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(15), - }, - End: Location{ - Line: int(482), - Column: int(32), - }, - file: p1, - }, - context: p7014, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(15), - }, - End: Location{ - Line: int(482), - Column: int(24), - }, - file: p1, - }, - context: p7014, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(15), - }, - End: Location{ - Line: int(482), - Column: int(18), - }, - file: p1, - }, - context: p7014, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(25), - }, - End: Location{ - Line: int(482), - Column: int(31), - }, - file: p1, - }, - context: p7023, - freeVariables: Identifiers{ - "n", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(25), - }, - End: Location{ - Line: int(482), - Column: int(26), - }, - file: p1, - }, - context: p7023, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - Op: BinaryOp(1), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(29), - }, - End: Location{ - Line: int(482), - Column: int(31), - }, - file: p1, - }, - context: p7023, - freeVariables: nil, - }, - Value: float64(16), - OriginalString: "16", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(36), - }, - End: Location{ - Line: int(482), - Column: int(52), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "n", - "numerals", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(36), - }, - End: Location{ - Line: int(482), - Column: int(44), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "numerals", - }, - }, - Id: "numerals", - }, - Index: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(45), - }, - End: Location{ - Line: int(482), - Column: int(46), - }, - file: p1, - }, - context: p6992, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(482), - Column: int(49), - }, - End: Location{ - Line: int(482), - Column: int(51), - }, - file: p1, - }, - context: p6992, - freeVariables: nil, - }, - Value: float64(16), - OriginalString: "16", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Id: nil, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "aux", - "blank", - "capitals", - "min_chars", - "min_digits", - "n_", - "n__", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "hex", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(19), - }, - End: Location{ - Line: int(483), - Column: int(73), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "aux", - "n_", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(22), - }, - End: Location{ - Line: int(483), - Column: int(35), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(22), - }, - End: Location{ - Line: int(483), - Column: int(31), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(22), - }, - End: Location{ - Line: int(483), - Column: int(25), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(32), - }, - End: Location{ - Line: int(483), - Column: int(34), - }, - file: p1, - }, - context: p7066, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(39), - }, - End: Location{ - Line: int(483), - Column: int(40), - }, - file: p1, - }, - context: p7047, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(46), - }, - End: Location{ - Line: int(483), - Column: int(49), - }, - file: p1, - }, - context: p7047, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(55), - }, - End: Location{ - Line: int(483), - Column: int(73), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "aux", - "n_", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(55), - }, - End: Location{ - Line: int(483), - Column: int(58), - }, - file: p1, - }, - context: p7047, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(59), - }, - End: Location{ - Line: int(483), - Column: int(72), - }, - file: p1, - }, - context: p7076, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(59), - }, - End: Location{ - Line: int(483), - Column: int(68), - }, - file: p1, - }, - context: p7076, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(59), - }, - End: Location{ - Line: int(483), - Column: int(62), - }, - file: p1, - }, - context: p7076, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(483), - Column: int(69), - }, - End: Location{ - Line: int(483), - Column: int(71), - }, - file: p1, - }, - context: p7085, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(484), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "hex", - "min_chars", - "min_digits", - "n__", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "neg", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(484), - Column: int(19), - }, - End: Location{ - Line: int(484), - Column: int(26), - }, - file: p1, - }, - context: p7091, - freeVariables: Identifiers{ - "n__", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(484), - Column: int(19), - }, - End: Location{ - Line: int(484), - Column: int(22), - }, - file: p1, - }, - context: p7091, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(484), - Column: int(25), - }, - End: Location{ - Line: int(484), - Column: int(26), - }, - file: p1, - }, - context: p7091, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "hex", - "min_chars", - "min_digits", - "neg", - "pad_left", - "sign", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(18), - }, - End: Location{ - Line: int(486), - Column: int(48), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "min_chars", - "neg", - "sign", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(18), - }, - End: Location{ - Line: int(485), - Column: int(69), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "blank", - "min_chars", - "neg", - "sign", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(18), - }, - End: Location{ - Line: int(485), - Column: int(27), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "min_chars", - }, - }, - Id: "min_chars", - }, - Op: BinaryOp(4), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(31), - }, - End: Location{ - Line: int(485), - Column: int(68), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(34), - }, - End: Location{ - Line: int(485), - Column: int(54), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(34), - }, - End: Location{ - Line: int(485), - Column: int(46), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "blank", - "neg", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(34), - }, - End: Location{ - Line: int(485), - Column: int(37), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "neg", - }, - }, - Id: "neg", - }, - Op: BinaryOp(18), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(41), - }, - End: Location{ - Line: int(485), - Column: int(46), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - }, - Op: BinaryOp(18), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(50), - }, - End: Location{ - Line: int(485), - Column: int(54), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(60), - }, - End: Location{ - Line: int(485), - Column: int(61), - }, - file: p1, - }, - context: p7100, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(485), - Column: int(67), - }, - End: Location{ - Line: int(485), - Column: int(68), - }, - file: p1, - }, - context: p7100, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - Op: BinaryOp(4), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(486), - Column: int(21), - }, - End: Location{ - Line: int(486), - Column: int(47), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "add_zerox", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(486), - Column: int(24), - }, - End: Location{ - Line: int(486), - Column: int(33), - }, - file: p1, - }, - context: p7100, - freeVariables: Identifiers{ - "add_zerox", - }, - }, - Id: "add_zerox", - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(486), - Column: int(39), - }, - End: Location{ - Line: int(486), - Column: int(40), - }, - file: p1, - }, - context: p7100, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(486), - Column: int(46), - }, - End: Location{ - Line: int(486), - Column: int(47), - }, - file: p1, - }, - context: p7100, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "hex", - "min_digits", - "neg", - "pad_left", - "sign", - "std", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp2", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(19), - }, - End: Location{ - Line: int(487), - Column: int(42), - }, - file: p1, - }, - context: p7130, - freeVariables: Identifiers{ - "min_digits", - "std", - "zp", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(19), - }, - End: Location{ - Line: int(487), - Column: int(26), - }, - file: p1, - }, - context: p7130, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(19), - }, - End: Location{ - Line: int(487), - Column: int(22), - }, - file: p1, - }, - context: p7130, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "max", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(27), - }, - End: Location{ - Line: int(487), - Column: int(29), - }, - file: p1, - }, - context: p7139, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(487), - Column: int(31), - }, - End: Location{ - Line: int(487), - Column: int(41), - }, - file: p1, - }, - context: p7139, - freeVariables: Identifiers{ - "min_digits", - }, - }, - Id: "min_digits", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "add_zerox", - "blank", - "capitals", - "hex", - "neg", - "pad_left", - "sign", - "zp2", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "hex2", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(20), - }, - End: Location{ - Line: int(489), - Column: int(45), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "add_zerox", - "capitals", - "hex", - "pad_left", - "zp2", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(21), - }, - End: Location{ - Line: int(488), - Column: int(80), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "add_zerox", - "capitals", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(24), - }, - End: Location{ - Line: int(488), - Column: int(33), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "add_zerox", - }, - }, - Id: "add_zerox", - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(40), - }, - End: Location{ - Line: int(488), - Column: int(71), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "capitals", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(43), - }, - End: Location{ - Line: int(488), - Column: int(51), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "capitals", - }, - }, - Id: "capitals", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(57), - }, - End: Location{ - Line: int(488), - Column: int(61), - }, - file: p1, - }, - context: p7147, - freeVariables: nil, - }, - Value: "0X", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(67), - }, - End: Location{ - Line: int(488), - Column: int(71), - }, - file: p1, - }, - context: p7147, - freeVariables: nil, - }, - Value: "0x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(488), - Column: int(78), - }, - End: Location{ - Line: int(488), - Column: int(80), - }, - file: p1, - }, - context: p7147, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(489), - Column: int(22), - }, - End: Location{ - Line: int(489), - Column: int(45), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "hex", - "pad_left", - "zp2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(489), - Column: int(22), - }, - End: Location{ - Line: int(489), - Column: int(30), - }, - file: p1, - }, - context: p7147, - freeVariables: Identifiers{ - "pad_left", - }, - }, - Id: "pad_left", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(489), - Column: int(31), - }, - End: Location{ - Line: int(489), - Column: int(34), - }, - file: p1, - }, - context: p7166, - freeVariables: Identifiers{ - "hex", - }, - }, - Id: "hex", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(489), - Column: int(36), - }, - End: Location{ - Line: int(489), - Column: int(39), - }, - file: p1, - }, - context: p7166, - freeVariables: Identifiers{ - "zp2", - }, - }, - Id: "zp2", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(489), - Column: int(41), - }, - End: Location{ - Line: int(489), - Column: int(44), - }, - file: p1, - }, - context: p7166, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(7), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "blank", - "hex2", - "neg", - "sign", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(8), - }, - End: Location{ - Line: int(490), - Column: int(76), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "blank", - "neg", - "sign", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(11), - }, - End: Location{ - Line: int(490), - Column: int(14), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "neg", - }, - }, - Id: "neg", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(20), - }, - End: Location{ - Line: int(490), - Column: int(23), - }, - file: p1, - }, - context: p6928, - freeVariables: nil, - }, - Value: "-", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(29), - }, - End: Location{ - Line: int(490), - Column: int(76), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "blank", - "sign", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(32), - }, - End: Location{ - Line: int(490), - Column: int(36), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(42), - }, - End: Location{ - Line: int(490), - Column: int(45), - }, - file: p1, - }, - context: p6928, - freeVariables: nil, - }, - Value: "+", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(51), - }, - End: Location{ - Line: int(490), - Column: int(76), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "blank", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(54), - }, - End: Location{ - Line: int(490), - Column: int(59), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(65), - }, - End: Location{ - Line: int(490), - Column: int(68), - }, - file: p1, - }, - context: p6928, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(74), - }, - End: Location{ - Line: int(490), - Column: int(76), - }, - file: p1, - }, - context: p6928, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(490), - Column: int(80), - }, - End: Location{ - Line: int(490), - Column: int(84), - }, - file: p1, - }, - context: p6928, - freeVariables: Identifiers{ - "hex2", - }, - }, - Id: "hex2", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(492), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "render_hex", - "render_int", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "strip_trailing_zero", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(492), - Column: int(11), - }, - End: Location{ - Line: int(501), - Column: int(36), - }, - file: p1, - }, - context: p7195, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(493), - Column: int(7), - }, - End: Location{ - Line: int(501), - Column: int(36), - }, - file: p1, - }, - context: p7199, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(493), - Column: int(13), - }, - End: Location{ - Line: int(500), - Column: int(38), - }, - file: p1, - }, - context: p7203, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(494), - Column: int(9), - }, - End: Location{ - Line: int(500), - Column: int(38), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "aux", - "i", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(494), - Column: int(12), - }, - End: Location{ - Line: int(494), - Column: int(17), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(494), - Column: int(12), - }, - End: Location{ - Line: int(494), - Column: int(13), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(494), - Column: int(16), - }, - End: Location{ - Line: int(494), - Column: int(17), - }, - file: p1, - }, - context: p7207, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(495), - Column: int(11), - }, - End: Location{ - Line: int(495), - Column: int(13), - }, - file: p1, - }, - context: p7207, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(497), - Column: int(11), - }, - End: Location{ - Line: int(500), - Column: int(38), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "aux", - "i", - "std", - "str", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(497), - Column: int(14), - }, - End: Location{ - Line: int(497), - Column: int(20), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(497), - Column: int(14), - }, - End: Location{ - Line: int(497), - Column: int(17), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(497), - Column: int(18), - }, - End: Location{ - Line: int(497), - Column: int(19), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(497), - Column: int(24), - }, - End: Location{ - Line: int(497), - Column: int(27), - }, - file: p1, - }, - context: p7207, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(13), - }, - End: Location{ - Line: int(498), - Column: int(28), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "aux", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(13), - }, - End: Location{ - Line: int(498), - Column: int(16), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(17), - }, - End: Location{ - Line: int(498), - Column: int(20), - }, - file: p1, - }, - context: p7238, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(22), - }, - End: Location{ - Line: int(498), - Column: int(27), - }, - file: p1, - }, - context: p7238, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(22), - }, - End: Location{ - Line: int(498), - Column: int(23), - }, - file: p1, - }, - context: p7238, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(498), - Column: int(26), - }, - End: Location{ - Line: int(498), - Column: int(27), - }, - file: p1, - }, - context: p7238, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(13), - }, - End: Location{ - Line: int(500), - Column: int(38), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(13), - }, - End: Location{ - Line: int(500), - Column: int(23), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(13), - }, - End: Location{ - Line: int(500), - Column: int(16), - }, - file: p1, - }, - context: p7207, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "substr", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(24), - }, - End: Location{ - Line: int(500), - Column: int(27), - }, - file: p1, - }, - context: p7254, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(29), - }, - End: Location{ - Line: int(500), - Column: int(30), - }, - file: p1, - }, - context: p7254, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(32), - }, - End: Location{ - Line: int(500), - Column: int(37), - }, - file: p1, - }, - context: p7254, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(32), - }, - End: Location{ - Line: int(500), - Column: int(33), - }, - file: p1, - }, - context: p7254, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(500), - Column: int(36), - }, - End: Location{ - Line: int(500), - Column: int(37), - }, - file: p1, - }, - context: p7254, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(7), - }, - End: Location{ - Line: int(501), - Column: int(36), - }, - file: p1, - }, - context: p7199, - freeVariables: Identifiers{ - "aux", - "std", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(7), - }, - End: Location{ - Line: int(501), - Column: int(10), - }, - file: p1, - }, - context: p7199, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(11), - }, - End: Location{ - Line: int(501), - Column: int(14), - }, - file: p1, - }, - context: p7268, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(16), - }, - End: Location{ - Line: int(501), - Column: int(35), - }, - file: p1, - }, - context: p7268, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(16), - }, - End: Location{ - Line: int(501), - Column: int(31), - }, - file: p1, - }, - context: p7268, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(16), - }, - End: Location{ - Line: int(501), - Column: int(26), - }, - file: p1, - }, - context: p7268, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(16), - }, - End: Location{ - Line: int(501), - Column: int(19), - }, - file: p1, - }, - context: p7268, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(27), - }, - End: Location{ - Line: int(501), - Column: int(30), - }, - file: p1, - }, - context: p7281, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(501), - Column: int(34), - }, - End: Location{ - Line: int(501), - Column: int(35), - }, - file: p1, - }, - context: p7268, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(504), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "render_hex", - "render_int", - "std", - "strip_trailing_zero", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "render_float_dec", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(504), - Column: int(11), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7288, - freeVariables: Identifiers{ - "render_int", - "std", - "strip_trailing_zero", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n__", - "zero_pad", - "blank", - "sign", - "ensure_pt", - "trailing", - "prec", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(505), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "n__", - "prec", - "render_int", - "sign", - "std", - "strip_trailing_zero", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n_", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(505), - Column: int(18), - }, - End: Location{ - Line: int(505), - Column: int(30), - }, - file: p1, - }, - context: p7296, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(505), - Column: int(18), - }, - End: Location{ - Line: int(505), - Column: int(25), - }, - file: p1, - }, - context: p7296, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(505), - Column: int(18), - }, - End: Location{ - Line: int(505), - Column: int(21), - }, - file: p1, - }, - context: p7296, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(505), - Column: int(26), - }, - End: Location{ - Line: int(505), - Column: int(29), - }, - file: p1, - }, - context: p7305, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(506), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "n_", - "n__", - "prec", - "render_int", - "sign", - "std", - "strip_trailing_zero", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "whole", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(506), - Column: int(21), - }, - End: Location{ - Line: int(506), - Column: int(34), - }, - file: p1, - }, - context: p7311, - freeVariables: Identifiers{ - "n_", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(506), - Column: int(21), - }, - End: Location{ - Line: int(506), - Column: int(30), - }, - file: p1, - }, - context: p7311, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(506), - Column: int(21), - }, - End: Location{ - Line: int(506), - Column: int(24), - }, - file: p1, - }, - context: p7311, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(506), - Column: int(31), - }, - End: Location{ - Line: int(506), - Column: int(33), - }, - file: p1, - }, - context: p7320, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "n_", - "n__", - "prec", - "render_int", - "sign", - "std", - "strip_trailing_zero", - "trailing", - "whole", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "dot_size", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(24), - }, - End: Location{ - Line: int(507), - Column: int(64), - }, - file: p1, - }, - context: p7326, - freeVariables: Identifiers{ - "ensure_pt", - "prec", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(27), - }, - End: Location{ - Line: int(507), - Column: int(50), - }, - file: p1, - }, - context: p7326, - freeVariables: Identifiers{ - "ensure_pt", - "prec", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(27), - }, - End: Location{ - Line: int(507), - Column: int(31), - }, - file: p1, - }, - context: p7326, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(35), - }, - End: Location{ - Line: int(507), - Column: int(36), - }, - file: p1, - }, - context: p7326, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(17), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(40), - }, - End: Location{ - Line: int(507), - Column: int(50), - }, - file: p1, - }, - context: p7326, - freeVariables: Identifiers{ - "ensure_pt", - }, - }, - Op: UnaryOp(0), - Expr: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(41), - }, - End: Location{ - Line: int(507), - Column: int(50), - }, - file: p1, - }, - context: p7326, - freeVariables: Identifiers{ - "ensure_pt", - }, - }, - Id: "ensure_pt", - }, - }, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(56), - }, - End: Location{ - Line: int(507), - Column: int(57), - }, - file: p1, - }, - context: p7326, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(507), - Column: int(63), - }, - End: Location{ - Line: int(507), - Column: int(64), - }, - file: p1, - }, - context: p7326, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "blank", - "dot_size", - "ensure_pt", - "n_", - "n__", - "prec", - "render_int", - "sign", - "std", - "strip_trailing_zero", - "trailing", - "whole", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(18), - }, - End: Location{ - Line: int(508), - Column: int(44), - }, - file: p1, - }, - context: p7351, - freeVariables: Identifiers{ - "dot_size", - "prec", - "zero_pad", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(18), - }, - End: Location{ - Line: int(508), - Column: int(33), - }, - file: p1, - }, - context: p7351, - freeVariables: Identifiers{ - "prec", - "zero_pad", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(18), - }, - End: Location{ - Line: int(508), - Column: int(26), - }, - file: p1, - }, - context: p7351, - freeVariables: Identifiers{ - "zero_pad", - }, - }, - Id: "zero_pad", - }, - Op: BinaryOp(4), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(29), - }, - End: Location{ - Line: int(508), - Column: int(33), - }, - file: p1, - }, - context: p7351, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - }, - Op: BinaryOp(4), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(508), - Column: int(36), - }, - End: Location{ - Line: int(508), - Column: int(44), - }, - file: p1, - }, - context: p7351, - freeVariables: Identifiers{ - "dot_size", - }, - }, - Id: "dot_size", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "n_", - "n__", - "prec", - "render_int", - "sign", - "std", - "strip_trailing_zero", - "trailing", - "whole", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(19), - }, - End: Location{ - Line: int(509), - Column: int(80), - }, - file: p1, - }, - context: p7365, - freeVariables: Identifiers{ - "blank", - "n__", - "render_int", - "sign", - "std", - "whole", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(19), - }, - End: Location{ - Line: int(509), - Column: int(29), - }, - file: p1, - }, - context: p7365, - freeVariables: Identifiers{ - "render_int", - }, - }, - Id: "render_int", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(30), - }, - End: Location{ - Line: int(509), - Column: int(51), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "n__", - "std", - "whole", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(30), - }, - End: Location{ - Line: int(509), - Column: int(43), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(30), - }, - End: Location{ - Line: int(509), - Column: int(38), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(30), - }, - End: Location{ - Line: int(509), - Column: int(33), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(39), - }, - End: Location{ - Line: int(509), - Column: int(42), - }, - file: p1, - }, - context: p7382, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(0), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(46), - }, - End: Location{ - Line: int(509), - Column: int(51), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "whole", - }, - }, - Id: "whole", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(53), - }, - End: Location{ - Line: int(509), - Column: int(55), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(57), - }, - End: Location{ - Line: int(509), - Column: int(58), - }, - file: p1, - }, - context: p7371, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(60), - }, - End: Location{ - Line: int(509), - Column: int(65), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(67), - }, - End: Location{ - Line: int(509), - Column: int(71), - }, - file: p1, - }, - context: p7371, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(73), - }, - End: Location{ - Line: int(509), - Column: int(75), - }, - file: p1, - }, - context: p7371, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(509), - Column: int(77), - }, - End: Location{ - Line: int(509), - Column: int(79), - }, - file: p1, - }, - context: p7371, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(510), - Column: int(7), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "ensure_pt", - "n_", - "prec", - "render_int", - "std", - "str", - "strip_trailing_zero", - "trailing", - "whole", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(510), - Column: int(10), - }, - End: Location{ - Line: int(510), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(510), - Column: int(18), - }, - End: Location{ - Line: int(510), - Column: int(19), - }, - file: p1, - }, - context: p7292, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(9), - }, - End: Location{ - Line: int(511), - Column: int(44), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "ensure_pt", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(9), - }, - End: Location{ - Line: int(511), - Column: int(12), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Op: BinaryOp(3), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(15), - }, - End: Location{ - Line: int(511), - Column: int(44), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "ensure_pt", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(18), - }, - End: Location{ - Line: int(511), - Column: int(27), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "ensure_pt", - }, - }, - Id: "ensure_pt", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(33), - }, - End: Location{ - Line: int(511), - Column: int(36), - }, - file: p1, - }, - context: p7292, - freeVariables: nil, - }, - Value: ".", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(511), - Column: int(42), - }, - End: Location{ - Line: int(511), - Column: int(44), - }, - file: p1, - }, - context: p7292, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(9), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "n_", - "prec", - "render_int", - "std", - "str", - "strip_trailing_zero", - "trailing", - "whole", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "frac", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(22), - }, - End: Location{ - Line: int(513), - Column: int(71), - }, - file: p1, - }, - context: p7422, - freeVariables: Identifiers{ - "n_", - "prec", - "std", - "whole", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(22), - }, - End: Location{ - Line: int(513), - Column: int(31), - }, - file: p1, - }, - context: p7422, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(22), - }, - End: Location{ - Line: int(513), - Column: int(25), - }, - file: p1, - }, - context: p7422, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(32), - }, - End: Location{ - Line: int(513), - Column: int(70), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "n_", - "prec", - "std", - "whole", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(32), - }, - End: Location{ - Line: int(513), - Column: int(64), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "n_", - "prec", - "std", - "whole", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(33), - }, - End: Location{ - Line: int(513), - Column: int(43), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "n_", - "whole", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(33), - }, - End: Location{ - Line: int(513), - Column: int(35), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "n_", - }, - }, - Id: "n_", - }, - Op: BinaryOp(4), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(38), - }, - End: Location{ - Line: int(513), - Column: int(43), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "whole", - }, - }, - Id: "whole", - }, - }, - Op: BinaryOp(0), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(47), - }, - End: Location{ - Line: int(513), - Column: int(64), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "prec", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(47), - }, - End: Location{ - Line: int(513), - Column: int(54), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(47), - }, - End: Location{ - Line: int(513), - Column: int(50), - }, - file: p1, - }, - context: p7431, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "pow", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(55), - }, - End: Location{ - Line: int(513), - Column: int(57), - }, - file: p1, - }, - context: p7450, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(59), - }, - End: Location{ - Line: int(513), - Column: int(63), - }, - file: p1, - }, - context: p7450, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(513), - Column: int(67), - }, - End: Location{ - Line: int(513), - Column: int(70), - }, - file: p1, - }, - context: p7431, - freeVariables: nil, - }, - Value: float64(0.5), - OriginalString: "0.5", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(9), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac", - "prec", - "render_int", - "str", - "strip_trailing_zero", - "trailing", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(12), - }, - End: Location{ - Line: int(514), - Column: int(32), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac", - "trailing", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(12), - }, - End: Location{ - Line: int(514), - Column: int(20), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "trailing", - }, - }, - Id: "trailing", - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(24), - }, - End: Location{ - Line: int(514), - Column: int(32), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(24), - }, - End: Location{ - Line: int(514), - Column: int(28), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac", - }, - }, - Id: "frac", - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(514), - Column: int(31), - }, - End: Location{ - Line: int(514), - Column: int(32), - }, - file: p1, - }, - context: p7292, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(11), - }, - End: Location{ - Line: int(516), - Column: int(84), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac", - "prec", - "render_int", - "str", - "strip_trailing_zero", - "trailing", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "frac_str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(28), - }, - End: Location{ - Line: int(515), - Column: int(75), - }, - file: p1, - }, - context: p7469, - freeVariables: Identifiers{ - "frac", - "prec", - "render_int", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(28), - }, - End: Location{ - Line: int(515), - Column: int(38), - }, - file: p1, - }, - context: p7469, - freeVariables: Identifiers{ - "render_int", - }, - }, - Id: "render_int", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(39), - }, - End: Location{ - Line: int(515), - Column: int(43), - }, - file: p1, - }, - context: p7475, - freeVariables: Identifiers{ - "frac", - }, - }, - Id: "frac", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(45), - }, - End: Location{ - Line: int(515), - Column: int(49), - }, - file: p1, - }, - context: p7475, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(51), - }, - End: Location{ - Line: int(515), - Column: int(52), - }, - file: p1, - }, - context: p7475, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(54), - }, - End: Location{ - Line: int(515), - Column: int(59), - }, - file: p1, - }, - context: p7475, - freeVariables: nil, - }, - Value: false, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(61), - }, - End: Location{ - Line: int(515), - Column: int(66), - }, - file: p1, - }, - context: p7475, - freeVariables: nil, - }, - Value: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(68), - }, - End: Location{ - Line: int(515), - Column: int(70), - }, - file: p1, - }, - context: p7475, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(515), - Column: int(72), - }, - End: Location{ - Line: int(515), - Column: int(74), - }, - file: p1, - }, - context: p7475, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(11), - }, - End: Location{ - Line: int(516), - Column: int(84), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac_str", - "str", - "strip_trailing_zero", - "trailing", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(11), - }, - End: Location{ - Line: int(516), - Column: int(20), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(11), - }, - End: Location{ - Line: int(516), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(17), - }, - End: Location{ - Line: int(516), - Column: int(20), - }, - file: p1, - }, - context: p7292, - freeVariables: nil, - }, - Value: ".", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(23), - }, - End: Location{ - Line: int(516), - Column: int(84), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac_str", - "strip_trailing_zero", - "trailing", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(26), - }, - End: Location{ - Line: int(516), - Column: int(35), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "trailing", - }, - }, - Op: UnaryOp(0), - Expr: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(27), - }, - End: Location{ - Line: int(516), - Column: int(35), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "trailing", - }, - }, - Id: "trailing", - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(41), - }, - End: Location{ - Line: int(516), - Column: int(70), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac_str", - "strip_trailing_zero", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(41), - }, - End: Location{ - Line: int(516), - Column: int(60), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "strip_trailing_zero", - }, - }, - Id: "strip_trailing_zero", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(61), - }, - End: Location{ - Line: int(516), - Column: int(69), - }, - file: p1, - }, - context: p7503, - freeVariables: Identifiers{ - "frac_str", - }, - }, - Id: "frac_str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(516), - Column: int(76), - }, - End: Location{ - Line: int(516), - Column: int(84), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "frac_str", - }, - }, - Id: "frac_str", - }, - }, - }, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(518), - Column: int(11), - }, - End: Location{ - Line: int(518), - Column: int(14), - }, - file: p1, - }, - context: p7292, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(521), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "render_float_dec", - "render_hex", - "render_int", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "render_float_sci", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(521), - Column: int(11), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7513, - freeVariables: Identifiers{ - "render_float_dec", - "render_int", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n__", - "zero_pad", - "blank", - "sign", - "ensure_pt", - "trailing", - "caps", - "prec", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "caps", - "ensure_pt", - "n__", - "prec", - "render_float_dec", - "render_int", - "sign", - "std", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "exponent", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(24), - }, - End: Location{ - Line: int(522), - Column: int(70), - }, - file: p1, - }, - context: p7521, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(24), - }, - End: Location{ - Line: int(522), - Column: int(33), - }, - file: p1, - }, - context: p7521, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(24), - }, - End: Location{ - Line: int(522), - Column: int(27), - }, - file: p1, - }, - context: p7521, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(34), - }, - End: Location{ - Line: int(522), - Column: int(69), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(34), - }, - End: Location{ - Line: int(522), - Column: int(55), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(34), - }, - End: Location{ - Line: int(522), - Column: int(41), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(34), - }, - End: Location{ - Line: int(522), - Column: int(37), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "log", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(42), - }, - End: Location{ - Line: int(522), - Column: int(54), - }, - file: p1, - }, - context: p7541, - freeVariables: Identifiers{ - "n__", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(42), - }, - End: Location{ - Line: int(522), - Column: int(49), - }, - file: p1, - }, - context: p7541, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(42), - }, - End: Location{ - Line: int(522), - Column: int(45), - }, - file: p1, - }, - context: p7541, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(50), - }, - End: Location{ - Line: int(522), - Column: int(53), - }, - file: p1, - }, - context: p7550, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(1), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(58), - }, - End: Location{ - Line: int(522), - Column: int(69), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(58), - }, - End: Location{ - Line: int(522), - Column: int(65), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(58), - }, - End: Location{ - Line: int(522), - Column: int(61), - }, - file: p1, - }, - context: p7530, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "log", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(522), - Column: int(66), - }, - End: Location{ - Line: int(522), - Column: int(68), - }, - file: p1, - }, - context: p7561, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "caps", - "ensure_pt", - "exponent", - "n__", - "prec", - "render_float_dec", - "render_int", - "sign", - "std", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "suff", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(20), - }, - End: Location{ - Line: int(524), - Column: int(69), - }, - file: p1, - }, - context: p7566, - freeVariables: Identifiers{ - "caps", - "exponent", - "render_int", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(21), - }, - End: Location{ - Line: int(523), - Column: int(46), - }, - file: p1, - }, - context: p7566, - freeVariables: Identifiers{ - "caps", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(24), - }, - End: Location{ - Line: int(523), - Column: int(28), - }, - file: p1, - }, - context: p7566, - freeVariables: Identifiers{ - "caps", - }, - }, - Id: "caps", - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(34), - }, - End: Location{ - Line: int(523), - Column: int(37), - }, - file: p1, - }, - context: p7566, - freeVariables: nil, - }, - Value: "E", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(523), - Column: int(43), - }, - End: Location{ - Line: int(523), - Column: int(46), - }, - file: p1, - }, - context: p7566, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(22), - }, - End: Location{ - Line: int(524), - Column: int(69), - }, - file: p1, - }, - context: p7566, - freeVariables: Identifiers{ - "exponent", - "render_int", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(22), - }, - End: Location{ - Line: int(524), - Column: int(32), - }, - file: p1, - }, - context: p7566, - freeVariables: Identifiers{ - "render_int", - }, - }, - Id: "render_int", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(33), - }, - End: Location{ - Line: int(524), - Column: int(41), - }, - file: p1, - }, - context: p7580, - freeVariables: Identifiers{ - "exponent", - }, - }, - Id: "exponent", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(43), - }, - End: Location{ - Line: int(524), - Column: int(44), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(46), - }, - End: Location{ - Line: int(524), - Column: int(47), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(49), - }, - End: Location{ - Line: int(524), - Column: int(54), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: false, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(56), - }, - End: Location{ - Line: int(524), - Column: int(60), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: true, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(62), - }, - End: Location{ - Line: int(524), - Column: int(64), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(524), - Column: int(66), - }, - End: Location{ - Line: int(524), - Column: int(68), - }, - file: p1, - }, - context: p7580, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "exponent", - "n__", - "prec", - "render_float_dec", - "sign", - "std", - "suff", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "mantissa", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(24), - }, - End: Location{ - Line: int(525), - Column: int(51), - }, - file: p1, - }, - context: p7592, - freeVariables: Identifiers{ - "exponent", - "n__", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(24), - }, - End: Location{ - Line: int(525), - Column: int(27), - }, - file: p1, - }, - context: p7592, - freeVariables: Identifiers{ - "n__", - }, - }, - Id: "n__", - }, - Op: BinaryOp(1), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(30), - }, - End: Location{ - Line: int(525), - Column: int(51), - }, - file: p1, - }, - context: p7592, - freeVariables: Identifiers{ - "exponent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(30), - }, - End: Location{ - Line: int(525), - Column: int(37), - }, - file: p1, - }, - context: p7592, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(30), - }, - End: Location{ - Line: int(525), - Column: int(33), - }, - file: p1, - }, - context: p7592, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "pow", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(38), - }, - End: Location{ - Line: int(525), - Column: int(40), - }, - file: p1, - }, - context: p7605, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(525), - Column: int(42), - }, - End: Location{ - Line: int(525), - Column: int(50), - }, - file: p1, - }, - context: p7605, - freeVariables: Identifiers{ - "exponent", - }, - }, - Id: "exponent", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "mantissa", - "prec", - "render_float_dec", - "sign", - "std", - "suff", - "trailing", - "zero_pad", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp2", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(19), - }, - End: Location{ - Line: int(526), - Column: int(46), - }, - file: p1, - }, - context: p7612, - freeVariables: Identifiers{ - "std", - "suff", - "zero_pad", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(19), - }, - End: Location{ - Line: int(526), - Column: int(27), - }, - file: p1, - }, - context: p7612, - freeVariables: Identifiers{ - "zero_pad", - }, - }, - Id: "zero_pad", - }, - Op: BinaryOp(4), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(30), - }, - End: Location{ - Line: int(526), - Column: int(46), - }, - file: p1, - }, - context: p7612, - freeVariables: Identifiers{ - "std", - "suff", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(30), - }, - End: Location{ - Line: int(526), - Column: int(40), - }, - file: p1, - }, - context: p7612, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(30), - }, - End: Location{ - Line: int(526), - Column: int(33), - }, - file: p1, - }, - context: p7612, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(526), - Column: int(41), - }, - End: Location{ - Line: int(526), - Column: int(45), - }, - file: p1, - }, - context: p7625, - freeVariables: Identifiers{ - "suff", - }, - }, - Id: "suff", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "mantissa", - "prec", - "render_float_dec", - "sign", - "suff", - "trailing", - "zp2", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(78), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "blank", - "ensure_pt", - "mantissa", - "prec", - "render_float_dec", - "sign", - "trailing", - "zp2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(7), - }, - End: Location{ - Line: int(527), - Column: int(23), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "render_float_dec", - }, - }, - Id: "render_float_dec", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(24), - }, - End: Location{ - Line: int(527), - Column: int(32), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "mantissa", - }, - }, - Id: "mantissa", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(34), - }, - End: Location{ - Line: int(527), - Column: int(37), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "zp2", - }, - }, - Id: "zp2", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(39), - }, - End: Location{ - Line: int(527), - Column: int(44), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "blank", - }, - }, - Id: "blank", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(46), - }, - End: Location{ - Line: int(527), - Column: int(50), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "sign", - }, - }, - Id: "sign", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(52), - }, - End: Location{ - Line: int(527), - Column: int(61), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "ensure_pt", - }, - }, - Id: "ensure_pt", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(63), - }, - End: Location{ - Line: int(527), - Column: int(71), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "trailing", - }, - }, - Id: "trailing", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(73), - }, - End: Location{ - Line: int(527), - Column: int(77), - }, - file: p1, - }, - context: p7635, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(527), - Column: int(81), - }, - End: Location{ - Line: int(527), - Column: int(85), - }, - file: p1, - }, - context: p7517, - freeVariables: Identifiers{ - "suff", - }, - }, - Id: "suff", - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(530), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "pad_left", - "pad_right", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "format_code", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(530), - Column: int(11), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7655, - freeVariables: Identifiers{ - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "val", - "code", - "fw", - "prec_or_null", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(531), - Column: int(7), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - "fw", - "i", - "prec_or_null", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "cflags", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(531), - Column: int(22), - }, - End: Location{ - Line: int(531), - Column: int(33), - }, - file: p1, - }, - context: p7663, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(531), - Column: int(22), - }, - End: Location{ - Line: int(531), - Column: int(26), - }, - file: p1, - }, - context: p7663, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "cflags", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(7), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fw", - "i", - "prec_or_null", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "fpprec", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(22), - }, - End: Location{ - Line: int(532), - Column: int(70), - }, - file: p1, - }, - context: p7672, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(25), - }, - End: Location{ - Line: int(532), - Column: int(37), - }, - file: p1, - }, - context: p7672, - freeVariables: Identifiers{ - "prec_or_null", - }, - }, - Id: "prec_or_null", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(41), - }, - End: Location{ - Line: int(532), - Column: int(45), - }, - file: p1, - }, - context: p7672, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(51), - }, - End: Location{ - Line: int(532), - Column: int(63), - }, - file: p1, - }, - context: p7672, - freeVariables: Identifiers{ - "prec_or_null", - }, - }, - Id: "prec_or_null", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(532), - Column: int(69), - }, - End: Location{ - Line: int(532), - Column: int(70), - }, - file: p1, - }, - context: p7672, - freeVariables: nil, - }, - Value: float64(6), - OriginalString: "6", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(7), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "fw", - "i", - "prec_or_null", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "iprec", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(21), - }, - End: Location{ - Line: int(533), - Column: int(69), - }, - file: p1, - }, - context: p7694, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "prec_or_null", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(24), - }, - End: Location{ - Line: int(533), - Column: int(36), - }, - file: p1, - }, - context: p7694, - freeVariables: Identifiers{ - "prec_or_null", - }, - }, - Id: "prec_or_null", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(40), - }, - End: Location{ - Line: int(533), - Column: int(44), - }, - file: p1, - }, - context: p7694, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(50), - }, - End: Location{ - Line: int(533), - Column: int(62), - }, - file: p1, - }, - context: p7694, - freeVariables: Identifiers{ - "prec_or_null", - }, - }, - Id: "prec_or_null", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(533), - Column: int(68), - }, - End: Location{ - Line: int(533), - Column: int(69), - }, - file: p1, - }, - context: p7694, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(7), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "fw", - "i", - "iprec", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zp", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(18), - }, - End: Location{ - Line: int(534), - Column: int(63), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - "fw", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(21), - }, - End: Location{ - Line: int(534), - Column: int(48), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(21), - }, - End: Location{ - Line: int(534), - Column: int(32), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(21), - }, - End: Location{ - Line: int(534), - Column: int(27), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "zero", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(17), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(36), - }, - End: Location{ - Line: int(534), - Column: int(48), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Op: UnaryOp(0), - Expr: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(37), - }, - End: Location{ - Line: int(534), - Column: int(48), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(37), - }, - End: Location{ - Line: int(534), - Column: int(43), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "left", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(54), - }, - End: Location{ - Line: int(534), - Column: int(56), - }, - file: p1, - }, - context: p7716, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(534), - Column: int(62), - }, - End: Location{ - Line: int(534), - Column: int(63), - }, - file: p1, - }, - context: p7716, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(535), - Column: int(7), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "iprec", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(535), - Column: int(10), - }, - End: Location{ - Line: int(535), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(535), - Column: int(10), - }, - End: Location{ - Line: int(535), - Column: int(14), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(535), - Column: int(24), - }, - End: Location{ - Line: int(535), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(536), - Column: int(9), - }, - End: Location{ - Line: int(536), - Column: int(26), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(536), - Column: int(9), - }, - End: Location{ - Line: int(536), - Column: int(21), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(536), - Column: int(9), - }, - End: Location{ - Line: int(536), - Column: int(12), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(536), - Column: int(22), - }, - End: Location{ - Line: int(536), - Column: int(25), - }, - file: p1, - }, - context: p7760, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(537), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "iprec", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(537), - Column: int(15), - }, - End: Location{ - Line: int(537), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(537), - Column: int(15), - }, - End: Location{ - Line: int(537), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(537), - Column: int(29), - }, - End: Location{ - Line: int(537), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "d", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(9), - }, - End: Location{ - Line: int(542), - Column: int(72), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "i", - "iprec", - "render_int", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(12), - }, - End: Location{ - Line: int(538), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(12), - }, - End: Location{ - Line: int(538), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(12), - }, - End: Location{ - Line: int(538), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(21), - }, - End: Location{ - Line: int(538), - Column: int(24), - }, - file: p1, - }, - context: p7799, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(538), - Column: int(29), - }, - End: Location{ - Line: int(538), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(539), - Column: int(11), - }, - End: Location{ - Line: int(540), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(539), - Column: int(17), - }, - End: Location{ - Line: int(540), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(539), - Column: int(17), - }, - End: Location{ - Line: int(540), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(539), - Column: int(17), - }, - End: Location{ - Line: int(540), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(539), - Column: int(17), - }, - End: Location{ - Line: int(539), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(19), - }, - End: Location{ - Line: int(540), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(23), - }, - End: Location{ - Line: int(540), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(34), - }, - End: Location{ - Line: int(540), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(34), - }, - End: Location{ - Line: int(540), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(34), - }, - End: Location{ - Line: int(540), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(540), - Column: int(43), - }, - End: Location{ - Line: int(540), - Column: int(46), - }, - file: p1, - }, - context: p7823, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(11), - }, - End: Location{ - Line: int(542), - Column: int(72), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "iprec", - "render_int", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(11), - }, - End: Location{ - Line: int(542), - Column: int(21), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_int", - }, - }, - Id: "render_int", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(22), - }, - End: Location{ - Line: int(542), - Column: int(25), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(27), - }, - End: Location{ - Line: int(542), - Column: int(29), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(31), - }, - End: Location{ - Line: int(542), - Column: int(36), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "iprec", - }, - }, - Id: "iprec", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(38), - }, - End: Location{ - Line: int(542), - Column: int(50), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(38), - }, - End: Location{ - Line: int(542), - Column: int(44), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(52), - }, - End: Location{ - Line: int(542), - Column: int(63), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(52), - }, - End: Location{ - Line: int(542), - Column: int(58), - }, - file: p1, - }, - context: p7831, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(65), - }, - End: Location{ - Line: int(542), - Column: int(67), - }, - file: p1, - }, - context: p7831, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(542), - Column: int(69), - }, - End: Location{ - Line: int(542), - Column: int(71), - }, - file: p1, - }, - context: p7831, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(543), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "iprec", - "render_float_dec", - "render_float_sci", - "render_hex", - "render_int", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(543), - Column: int(15), - }, - End: Location{ - Line: int(543), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(543), - Column: int(15), - }, - End: Location{ - Line: int(543), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(543), - Column: int(29), - }, - End: Location{ - Line: int(543), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "o", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(9), - }, - End: Location{ - Line: int(549), - Column: int(80), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "i", - "iprec", - "render_int", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(12), - }, - End: Location{ - Line: int(544), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(12), - }, - End: Location{ - Line: int(544), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(12), - }, - End: Location{ - Line: int(544), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(21), - }, - End: Location{ - Line: int(544), - Column: int(24), - }, - file: p1, - }, - context: p7886, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(544), - Column: int(29), - }, - End: Location{ - Line: int(544), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(545), - Column: int(11), - }, - End: Location{ - Line: int(546), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(545), - Column: int(17), - }, - End: Location{ - Line: int(546), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(545), - Column: int(17), - }, - End: Location{ - Line: int(546), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(545), - Column: int(17), - }, - End: Location{ - Line: int(546), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(545), - Column: int(17), - }, - End: Location{ - Line: int(545), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(19), - }, - End: Location{ - Line: int(546), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(23), - }, - End: Location{ - Line: int(546), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(34), - }, - End: Location{ - Line: int(546), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(34), - }, - End: Location{ - Line: int(546), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(34), - }, - End: Location{ - Line: int(546), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(546), - Column: int(43), - }, - End: Location{ - Line: int(546), - Column: int(46), - }, - file: p1, - }, - context: p7910, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(11), - }, - End: Location{ - Line: int(549), - Column: int(80), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "iprec", - "render_int", - "val", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "zero_prefix", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(31), - }, - End: Location{ - Line: int(548), - Column: int(61), - }, - file: p1, - }, - context: p7916, - freeVariables: Identifiers{ - "cflags", - }, - }, - Cond: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(34), - }, - End: Location{ - Line: int(548), - Column: int(44), - }, - file: p1, - }, - context: p7916, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(34), - }, - End: Location{ - Line: int(548), - Column: int(40), - }, - file: p1, - }, - context: p7916, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(50), - }, - End: Location{ - Line: int(548), - Column: int(53), - }, - file: p1, - }, - context: p7916, - freeVariables: nil, - }, - Value: "0", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(548), - Column: int(59), - }, - End: Location{ - Line: int(548), - Column: int(61), - }, - file: p1, - }, - context: p7916, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(11), - }, - End: Location{ - Line: int(549), - Column: int(80), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "iprec", - "render_int", - "val", - "zero_prefix", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(11), - }, - End: Location{ - Line: int(549), - Column: int(21), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_int", - }, - }, - Id: "render_int", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(22), - }, - End: Location{ - Line: int(549), - Column: int(25), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(27), - }, - End: Location{ - Line: int(549), - Column: int(29), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(31), - }, - End: Location{ - Line: int(549), - Column: int(36), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "iprec", - }, - }, - Id: "iprec", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(38), - }, - End: Location{ - Line: int(549), - Column: int(50), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(38), - }, - End: Location{ - Line: int(549), - Column: int(44), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(52), - }, - End: Location{ - Line: int(549), - Column: int(63), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(52), - }, - End: Location{ - Line: int(549), - Column: int(58), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(65), - }, - End: Location{ - Line: int(549), - Column: int(66), - }, - file: p1, - }, - context: p7931, - freeVariables: nil, - }, - Value: float64(8), - OriginalString: "8", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(549), - Column: int(68), - }, - End: Location{ - Line: int(549), - Column: int(79), - }, - file: p1, - }, - context: p7931, - freeVariables: Identifiers{ - "zero_prefix", - }, - }, - Id: "zero_prefix", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(550), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "iprec", - "render_float_dec", - "render_float_sci", - "render_hex", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(550), - Column: int(15), - }, - End: Location{ - Line: int(550), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(550), - Column: int(15), - }, - End: Location{ - Line: int(550), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(550), - Column: int(29), - }, - End: Location{ - Line: int(550), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(9), - }, - End: Location{ - Line: int(561), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "i", - "iprec", - "render_hex", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(12), - }, - End: Location{ - Line: int(551), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(12), - }, - End: Location{ - Line: int(551), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(12), - }, - End: Location{ - Line: int(551), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(21), - }, - End: Location{ - Line: int(551), - Column: int(24), - }, - file: p1, - }, - context: p7987, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(551), - Column: int(29), - }, - End: Location{ - Line: int(551), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(552), - Column: int(11), - }, - End: Location{ - Line: int(553), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(552), - Column: int(17), - }, - End: Location{ - Line: int(553), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(552), - Column: int(17), - }, - End: Location{ - Line: int(553), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(552), - Column: int(17), - }, - End: Location{ - Line: int(553), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(552), - Column: int(17), - }, - End: Location{ - Line: int(552), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(19), - }, - End: Location{ - Line: int(553), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(23), - }, - End: Location{ - Line: int(553), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(34), - }, - End: Location{ - Line: int(553), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(34), - }, - End: Location{ - Line: int(553), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(34), - }, - End: Location{ - Line: int(553), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(553), - Column: int(43), - }, - End: Location{ - Line: int(553), - Column: int(46), - }, - file: p1, - }, - context: p8011, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(555), - Column: int(11), - }, - End: Location{ - Line: int(561), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "iprec", - "render_hex", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(555), - Column: int(11), - }, - End: Location{ - Line: int(555), - Column: int(21), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_hex", - }, - }, - Id: "render_hex", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(555), - Column: int(22), - }, - End: Location{ - Line: int(555), - Column: int(25), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(556), - Column: int(22), - }, - End: Location{ - Line: int(556), - Column: int(24), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(557), - Column: int(22), - }, - End: Location{ - Line: int(557), - Column: int(27), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "iprec", - }, - }, - Id: "iprec", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(558), - Column: int(22), - }, - End: Location{ - Line: int(558), - Column: int(34), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(558), - Column: int(22), - }, - End: Location{ - Line: int(558), - Column: int(28), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(559), - Column: int(22), - }, - End: Location{ - Line: int(559), - Column: int(33), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(559), - Column: int(22), - }, - End: Location{ - Line: int(559), - Column: int(28), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(560), - Column: int(22), - }, - End: Location{ - Line: int(560), - Column: int(32), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(560), - Column: int(22), - }, - End: Location{ - Line: int(560), - Column: int(28), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(561), - Column: int(22), - }, - End: Location{ - Line: int(561), - Column: int(31), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(561), - Column: int(22), - }, - End: Location{ - Line: int(561), - Column: int(26), - }, - file: p1, - }, - context: p8019, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(562), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(562), - Column: int(15), - }, - End: Location{ - Line: int(562), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(562), - Column: int(15), - }, - End: Location{ - Line: int(562), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(562), - Column: int(29), - }, - End: Location{ - Line: int(562), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(9), - }, - End: Location{ - Line: int(573), - Column: int(35), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "fpprec", - "i", - "render_float_dec", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(12), - }, - End: Location{ - Line: int(563), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(12), - }, - End: Location{ - Line: int(563), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(12), - }, - End: Location{ - Line: int(563), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(21), - }, - End: Location{ - Line: int(563), - Column: int(24), - }, - file: p1, - }, - context: p8082, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(563), - Column: int(29), - }, - End: Location{ - Line: int(563), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(564), - Column: int(11), - }, - End: Location{ - Line: int(565), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(564), - Column: int(17), - }, - End: Location{ - Line: int(565), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(564), - Column: int(17), - }, - End: Location{ - Line: int(565), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(564), - Column: int(17), - }, - End: Location{ - Line: int(565), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(564), - Column: int(17), - }, - End: Location{ - Line: int(564), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(19), - }, - End: Location{ - Line: int(565), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(23), - }, - End: Location{ - Line: int(565), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(34), - }, - End: Location{ - Line: int(565), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(34), - }, - End: Location{ - Line: int(565), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(34), - }, - End: Location{ - Line: int(565), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(565), - Column: int(43), - }, - End: Location{ - Line: int(565), - Column: int(46), - }, - file: p1, - }, - context: p8106, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(567), - Column: int(11), - }, - End: Location{ - Line: int(573), - Column: int(35), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "fpprec", - "render_float_dec", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(567), - Column: int(11), - }, - End: Location{ - Line: int(567), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_float_dec", - }, - }, - Id: "render_float_dec", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(567), - Column: int(28), - }, - End: Location{ - Line: int(567), - Column: int(31), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(568), - Column: int(28), - }, - End: Location{ - Line: int(568), - Column: int(30), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(569), - Column: int(28), - }, - End: Location{ - Line: int(569), - Column: int(40), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(569), - Column: int(28), - }, - End: Location{ - Line: int(569), - Column: int(34), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(570), - Column: int(28), - }, - End: Location{ - Line: int(570), - Column: int(39), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(570), - Column: int(28), - }, - End: Location{ - Line: int(570), - Column: int(34), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(571), - Column: int(28), - }, - End: Location{ - Line: int(571), - Column: int(38), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(571), - Column: int(28), - }, - End: Location{ - Line: int(571), - Column: int(34), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(572), - Column: int(28), - }, - End: Location{ - Line: int(572), - Column: int(32), - }, - file: p1, - }, - context: p8114, - freeVariables: nil, - }, - Value: true, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(573), - Column: int(28), - }, - End: Location{ - Line: int(573), - Column: int(34), - }, - file: p1, - }, - context: p8114, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Id: "fpprec", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(574), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(574), - Column: int(15), - }, - End: Location{ - Line: int(574), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(574), - Column: int(15), - }, - End: Location{ - Line: int(574), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(574), - Column: int(29), - }, - End: Location{ - Line: int(574), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "e", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(9), - }, - End: Location{ - Line: int(586), - Column: int(35), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(12), - }, - End: Location{ - Line: int(575), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(12), - }, - End: Location{ - Line: int(575), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(12), - }, - End: Location{ - Line: int(575), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(21), - }, - End: Location{ - Line: int(575), - Column: int(24), - }, - file: p1, - }, - context: p8173, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(575), - Column: int(29), - }, - End: Location{ - Line: int(575), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(576), - Column: int(11), - }, - End: Location{ - Line: int(577), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(576), - Column: int(17), - }, - End: Location{ - Line: int(577), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(576), - Column: int(17), - }, - End: Location{ - Line: int(577), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(576), - Column: int(17), - }, - End: Location{ - Line: int(577), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(576), - Column: int(17), - }, - End: Location{ - Line: int(576), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(19), - }, - End: Location{ - Line: int(577), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(23), - }, - End: Location{ - Line: int(577), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(34), - }, - End: Location{ - Line: int(577), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(34), - }, - End: Location{ - Line: int(577), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(34), - }, - End: Location{ - Line: int(577), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(577), - Column: int(43), - }, - End: Location{ - Line: int(577), - Column: int(46), - }, - file: p1, - }, - context: p8197, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(579), - Column: int(11), - }, - End: Location{ - Line: int(586), - Column: int(35), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "render_float_sci", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(579), - Column: int(11), - }, - End: Location{ - Line: int(579), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_float_sci", - }, - }, - Id: "render_float_sci", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(579), - Column: int(28), - }, - End: Location{ - Line: int(579), - Column: int(31), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(580), - Column: int(28), - }, - End: Location{ - Line: int(580), - Column: int(30), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(581), - Column: int(28), - }, - End: Location{ - Line: int(581), - Column: int(40), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(581), - Column: int(28), - }, - End: Location{ - Line: int(581), - Column: int(34), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(582), - Column: int(28), - }, - End: Location{ - Line: int(582), - Column: int(39), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(582), - Column: int(28), - }, - End: Location{ - Line: int(582), - Column: int(34), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(583), - Column: int(28), - }, - End: Location{ - Line: int(583), - Column: int(38), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(583), - Column: int(28), - }, - End: Location{ - Line: int(583), - Column: int(34), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(584), - Column: int(28), - }, - End: Location{ - Line: int(584), - Column: int(32), - }, - file: p1, - }, - context: p8205, - freeVariables: nil, - }, - Value: true, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(585), - Column: int(28), - }, - End: Location{ - Line: int(585), - Column: int(37), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(585), - Column: int(28), - }, - End: Location{ - Line: int(585), - Column: int(32), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(586), - Column: int(28), - }, - End: Location{ - Line: int(586), - Column: int(34), - }, - file: p1, - }, - context: p8205, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Id: "fpprec", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(587), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(587), - Column: int(15), - }, - End: Location{ - Line: int(587), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(587), - Column: int(15), - }, - End: Location{ - Line: int(587), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(587), - Column: int(29), - }, - End: Location{ - Line: int(587), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "g", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(9), - }, - End: Location{ - Line: int(610), - Column: int(56), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "i", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(12), - }, - End: Location{ - Line: int(588), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(12), - }, - End: Location{ - Line: int(588), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(12), - }, - End: Location{ - Line: int(588), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(21), - }, - End: Location{ - Line: int(588), - Column: int(24), - }, - file: p1, - }, - context: p8269, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(588), - Column: int(29), - }, - End: Location{ - Line: int(588), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(589), - Column: int(11), - }, - End: Location{ - Line: int(590), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(589), - Column: int(17), - }, - End: Location{ - Line: int(590), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - "std", - "val", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(589), - Column: int(17), - }, - End: Location{ - Line: int(590), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(589), - Column: int(17), - }, - End: Location{ - Line: int(590), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(589), - Column: int(17), - }, - End: Location{ - Line: int(589), - Column: int(45), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Format required number at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(19), - }, - End: Location{ - Line: int(590), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(23), - }, - End: Location{ - Line: int(590), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: ", got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(34), - }, - End: Location{ - Line: int(590), - Column: int(47), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(34), - }, - End: Location{ - Line: int(590), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(34), - }, - End: Location{ - Line: int(590), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(590), - Column: int(43), - }, - End: Location{ - Line: int(590), - Column: int(46), - }, - file: p1, - }, - context: p8293, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(11), - }, - End: Location{ - Line: int(610), - Column: int(56), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "exponent", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(28), - }, - End: Location{ - Line: int(592), - Column: int(74), - }, - file: p1, - }, - context: p8299, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(28), - }, - End: Location{ - Line: int(592), - Column: int(37), - }, - file: p1, - }, - context: p8299, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(28), - }, - End: Location{ - Line: int(592), - Column: int(31), - }, - file: p1, - }, - context: p8299, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "floor", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(38), - }, - End: Location{ - Line: int(592), - Column: int(73), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(38), - }, - End: Location{ - Line: int(592), - Column: int(59), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(38), - }, - End: Location{ - Line: int(592), - Column: int(45), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(38), - }, - End: Location{ - Line: int(592), - Column: int(41), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "log", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(46), - }, - End: Location{ - Line: int(592), - Column: int(58), - }, - file: p1, - }, - context: p8319, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(46), - }, - End: Location{ - Line: int(592), - Column: int(53), - }, - file: p1, - }, - context: p8319, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(46), - }, - End: Location{ - Line: int(592), - Column: int(49), - }, - file: p1, - }, - context: p8319, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(54), - }, - End: Location{ - Line: int(592), - Column: int(57), - }, - file: p1, - }, - context: p8328, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(1), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(62), - }, - End: Location{ - Line: int(592), - Column: int(73), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(62), - }, - End: Location{ - Line: int(592), - Column: int(69), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(62), - }, - End: Location{ - Line: int(592), - Column: int(65), - }, - file: p1, - }, - context: p8308, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "log", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(592), - Column: int(70), - }, - End: Location{ - Line: int(592), - Column: int(72), - }, - file: p1, - }, - context: p8339, - freeVariables: nil, - }, - Value: float64(10), - OriginalString: "10", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(11), - }, - End: Location{ - Line: int(610), - Column: int(56), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "exponent", - "fpprec", - "render_float_dec", - "render_float_sci", - "std", - "val", - "zp", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(14), - }, - End: Location{ - Line: int(593), - Column: int(49), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "exponent", - "fpprec", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(14), - }, - End: Location{ - Line: int(593), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "exponent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(14), - }, - End: Location{ - Line: int(593), - Column: int(22), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "exponent", - }, - }, - Id: "exponent", - }, - Op: BinaryOp(9), - Right: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(25), - }, - End: Location{ - Line: int(593), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Op: UnaryOp(3), - Expr: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(26), - }, - End: Location{ - Line: int(593), - Column: int(27), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(31), - }, - End: Location{ - Line: int(593), - Column: int(49), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "exponent", - "fpprec", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(31), - }, - End: Location{ - Line: int(593), - Column: int(39), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "exponent", - }, - }, - Id: "exponent", - }, - Op: BinaryOp(8), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(593), - Column: int(43), - }, - End: Location{ - Line: int(593), - Column: int(49), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Id: "fpprec", - }, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(594), - Column: int(13), - }, - End: Location{ - Line: int(601), - Column: int(41), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "code", - "fpprec", - "render_float_sci", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(594), - Column: int(13), - }, - End: Location{ - Line: int(594), - Column: int(29), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_float_sci", - }, - }, - Id: "render_float_sci", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(594), - Column: int(30), - }, - End: Location{ - Line: int(594), - Column: int(33), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(595), - Column: int(30), - }, - End: Location{ - Line: int(595), - Column: int(32), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(596), - Column: int(30), - }, - End: Location{ - Line: int(596), - Column: int(42), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(596), - Column: int(30), - }, - End: Location{ - Line: int(596), - Column: int(36), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(597), - Column: int(30), - }, - End: Location{ - Line: int(597), - Column: int(41), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(597), - Column: int(30), - }, - End: Location{ - Line: int(597), - Column: int(36), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(598), - Column: int(30), - }, - End: Location{ - Line: int(598), - Column: int(40), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(598), - Column: int(30), - }, - End: Location{ - Line: int(598), - Column: int(36), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(599), - Column: int(30), - }, - End: Location{ - Line: int(599), - Column: int(40), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(599), - Column: int(30), - }, - End: Location{ - Line: int(599), - Column: int(36), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(600), - Column: int(30), - }, - End: Location{ - Line: int(600), - Column: int(39), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(600), - Column: int(30), - }, - End: Location{ - Line: int(600), - Column: int(34), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "caps", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(601), - Column: int(30), - }, - End: Location{ - Line: int(601), - Column: int(40), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(601), - Column: int(30), - }, - End: Location{ - Line: int(601), - Column: int(36), - }, - file: p1, - }, - context: p8362, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Id: "fpprec", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(601), - Column: int(39), - }, - End: Location{ - Line: int(601), - Column: int(40), - }, - file: p1, - }, - context: p8362, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(13), - }, - End: Location{ - Line: int(610), - Column: int(56), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "exponent", - "fpprec", - "render_float_dec", - "std", - "val", - "zp", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "digits_before_pt", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(38), - }, - End: Location{ - Line: int(603), - Column: int(62), - }, - file: p1, - }, - context: p8400, - freeVariables: Identifiers{ - "exponent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(38), - }, - End: Location{ - Line: int(603), - Column: int(45), - }, - file: p1, - }, - context: p8400, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(38), - }, - End: Location{ - Line: int(603), - Column: int(41), - }, - file: p1, - }, - context: p8400, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "max", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(46), - }, - End: Location{ - Line: int(603), - Column: int(47), - }, - file: p1, - }, - context: p8409, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(49), - }, - End: Location{ - Line: int(603), - Column: int(61), - }, - file: p1, - }, - context: p8409, - freeVariables: Identifiers{ - "exponent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(49), - }, - End: Location{ - Line: int(603), - Column: int(57), - }, - file: p1, - }, - context: p8409, - freeVariables: Identifiers{ - "exponent", - }, - }, - Id: "exponent", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(603), - Column: int(60), - }, - End: Location{ - Line: int(603), - Column: int(61), - }, - file: p1, - }, - context: p8409, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(604), - Column: int(13), - }, - End: Location{ - Line: int(610), - Column: int(56), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "cflags", - "digits_before_pt", - "fpprec", - "render_float_dec", - "val", - "zp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(604), - Column: int(13), - }, - End: Location{ - Line: int(604), - Column: int(29), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "render_float_dec", - }, - }, - Id: "render_float_dec", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(604), - Column: int(30), - }, - End: Location{ - Line: int(604), - Column: int(33), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(605), - Column: int(30), - }, - End: Location{ - Line: int(605), - Column: int(32), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "zp", - }, - }, - Id: "zp", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(606), - Column: int(30), - }, - End: Location{ - Line: int(606), - Column: int(42), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(606), - Column: int(30), - }, - End: Location{ - Line: int(606), - Column: int(36), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "blank", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(607), - Column: int(30), - }, - End: Location{ - Line: int(607), - Column: int(41), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(607), - Column: int(30), - }, - End: Location{ - Line: int(607), - Column: int(36), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(608), - Column: int(30), - }, - End: Location{ - Line: int(608), - Column: int(40), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(608), - Column: int(30), - }, - End: Location{ - Line: int(608), - Column: int(36), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(609), - Column: int(30), - }, - End: Location{ - Line: int(609), - Column: int(40), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(609), - Column: int(30), - }, - End: Location{ - Line: int(609), - Column: int(36), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "cflags", - }, - }, - Id: "cflags", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "alt", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(610), - Column: int(30), - }, - End: Location{ - Line: int(610), - Column: int(55), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "digits_before_pt", - "fpprec", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(610), - Column: int(30), - }, - End: Location{ - Line: int(610), - Column: int(36), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "fpprec", - }, - }, - Id: "fpprec", - }, - Op: BinaryOp(4), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(610), - Column: int(39), - }, - End: Location{ - Line: int(610), - Column: int(55), - }, - file: p1, - }, - context: p8421, - freeVariables: Identifiers{ - "digits_before_pt", - }, - }, - Id: "digits_before_pt", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(611), - Column: int(12), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - "std", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(611), - Column: int(15), - }, - End: Location{ - Line: int(611), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(611), - Column: int(15), - }, - End: Location{ - Line: int(611), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(611), - Column: int(29), - }, - End: Location{ - Line: int(611), - Column: int(32), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "c", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(9), - }, - End: Location{ - Line: int(620), - Column: int(69), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(12), - }, - End: Location{ - Line: int(612), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(12), - }, - End: Location{ - Line: int(612), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(12), - }, - End: Location{ - Line: int(612), - Column: int(15), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(21), - }, - End: Location{ - Line: int(612), - Column: int(24), - }, - file: p1, - }, - context: p8486, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(612), - Column: int(29), - }, - End: Location{ - Line: int(612), - Column: int(37), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(613), - Column: int(11), - }, - End: Location{ - Line: int(613), - Column: int(24), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(613), - Column: int(11), - }, - End: Location{ - Line: int(613), - Column: int(19), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(613), - Column: int(11), - }, - End: Location{ - Line: int(613), - Column: int(14), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "char", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(613), - Column: int(20), - }, - End: Location{ - Line: int(613), - Column: int(23), - }, - file: p1, - }, - context: p8498, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(14), - }, - End: Location{ - Line: int(620), - Column: int(69), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(17), - }, - End: Location{ - Line: int(614), - Column: int(30), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(17), - }, - End: Location{ - Line: int(614), - Column: int(25), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(17), - }, - End: Location{ - Line: int(614), - Column: int(20), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(26), - }, - End: Location{ - Line: int(614), - Column: int(29), - }, - file: p1, - }, - context: p8519, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(614), - Column: int(34), - }, - End: Location{ - Line: int(614), - Column: int(42), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(11), - }, - End: Location{ - Line: int(618), - Column: int(71), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(14), - }, - End: Location{ - Line: int(615), - Column: int(29), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(14), - }, - End: Location{ - Line: int(615), - Column: int(24), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(14), - }, - End: Location{ - Line: int(615), - Column: int(17), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(25), - }, - End: Location{ - Line: int(615), - Column: int(28), - }, - file: p1, - }, - context: p8541, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(615), - Column: int(33), - }, - End: Location{ - Line: int(615), - Column: int(34), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(616), - Column: int(13), - }, - End: Location{ - Line: int(616), - Column: int(16), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(13), - }, - End: Location{ - Line: int(618), - Column: int(71), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(19), - }, - End: Location{ - Line: int(618), - Column: int(71), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(19), - }, - End: Location{ - Line: int(618), - Column: int(53), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "%c expected 1-sized string got: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(56), - }, - End: Location{ - Line: int(618), - Column: int(71), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(56), - }, - End: Location{ - Line: int(618), - Column: int(66), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(56), - }, - End: Location{ - Line: int(618), - Column: int(59), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(618), - Column: int(67), - }, - End: Location{ - Line: int(618), - Column: int(70), - }, - file: p1, - }, - context: p8560, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(11), - }, - End: Location{ - Line: int(620), - Column: int(69), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(17), - }, - End: Location{ - Line: int(620), - Column: int(69), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(17), - }, - End: Location{ - Line: int(620), - Column: int(53), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "%c expected number / string, got: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(56), - }, - End: Location{ - Line: int(620), - Column: int(69), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - "val", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(56), - }, - End: Location{ - Line: int(620), - Column: int(64), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(56), - }, - End: Location{ - Line: int(620), - Column: int(59), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(620), - Column: int(65), - }, - End: Location{ - Line: int(620), - Column: int(68), - }, - file: p1, - }, - context: p8576, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(622), - Column: int(9), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(622), - Column: int(15), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(622), - Column: int(15), - }, - End: Location{ - Line: int(622), - Column: int(31), - }, - file: p1, - }, - context: p7659, - freeVariables: nil, - }, - Value: "Unknown code: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(622), - Column: int(34), - }, - End: Location{ - Line: int(622), - Column: int(44), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(622), - Column: int(34), - }, - End: Location{ - Line: int(622), - Column: int(38), - }, - file: p1, - }, - context: p7659, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(625), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_code", - "pad_left", - "pad_right", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "format_codes_arr", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(625), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8592, - freeVariables: Identifiers{ - "format_code", - "format_codes_arr", - "pad_left", - "pad_right", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "codes", - "arr", - "i", - "j", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(7), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "codes", - "format_code", - "format_codes_arr", - "i", - "j", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(10), - }, - End: Location{ - Line: int(626), - Column: int(32), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "codes", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(10), - }, - End: Location{ - Line: int(626), - Column: int(11), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(15), - }, - End: Location{ - Line: int(626), - Column: int(32), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "codes", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(15), - }, - End: Location{ - Line: int(626), - Column: int(25), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(15), - }, - End: Location{ - Line: int(626), - Column: int(18), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(626), - Column: int(26), - }, - End: Location{ - Line: int(626), - Column: int(31), - }, - file: p1, - }, - context: p8611, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(9), - }, - End: Location{ - Line: int(630), - Column: int(12), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "j", - "std", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(12), - }, - End: Location{ - Line: int(627), - Column: int(31), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(12), - }, - End: Location{ - Line: int(627), - Column: int(13), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(9), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(16), - }, - End: Location{ - Line: int(627), - Column: int(31), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(16), - }, - End: Location{ - Line: int(627), - Column: int(26), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(16), - }, - End: Location{ - Line: int(627), - Column: int(19), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(627), - Column: int(27), - }, - End: Location{ - Line: int(627), - Column: int(30), - }, - file: p1, - }, - context: p8628, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(11), - }, - End: Location{ - Line: int(628), - Column: int(86), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(18), - }, - End: Location{ - Line: int(628), - Column: int(85), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(18), - }, - End: Location{ - Line: int(628), - Column: int(81), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(18), - }, - End: Location{ - Line: int(628), - Column: int(65), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(18), - }, - End: Location{ - Line: int(628), - Column: int(47), - }, - file: p1, - }, - context: p8596, - freeVariables: nil, - }, - Value: "Too many values to format: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(50), - }, - End: Location{ - Line: int(628), - Column: int(65), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(50), - }, - End: Location{ - Line: int(628), - Column: int(60), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(50), - }, - End: Location{ - Line: int(628), - Column: int(53), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(61), - }, - End: Location{ - Line: int(628), - Column: int(64), - }, - file: p1, - }, - context: p8648, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(68), - }, - End: Location{ - Line: int(628), - Column: int(81), - }, - file: p1, - }, - context: p8596, - freeVariables: nil, - }, - Value: ", expected ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(628), - Column: int(84), - }, - End: Location{ - Line: int(628), - Column: int(85), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - }, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(630), - Column: int(11), - }, - End: Location{ - Line: int(630), - Column: int(12), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(632), - Column: int(9), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "codes", - "format_code", - "format_codes_arr", - "i", - "j", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "code", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(632), - Column: int(22), - }, - End: Location{ - Line: int(632), - Column: int(30), - }, - file: p1, - }, - context: p8659, - freeVariables: Identifiers{ - "codes", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(632), - Column: int(22), - }, - End: Location{ - Line: int(632), - Column: int(27), - }, - file: p1, - }, - context: p8659, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(632), - Column: int(28), - }, - End: Location{ - Line: int(632), - Column: int(29), - }, - file: p1, - }, - context: p8659, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(9), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "j", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(12), - }, - End: Location{ - Line: int(633), - Column: int(26), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(12), - }, - End: Location{ - Line: int(633), - Column: int(20), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(12), - }, - End: Location{ - Line: int(633), - Column: int(15), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(21), - }, - End: Location{ - Line: int(633), - Column: int(25), - }, - file: p1, - }, - context: p8684, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(633), - Column: int(30), - }, - End: Location{ - Line: int(633), - Column: int(38), - }, - file: p1, - }, - context: p8596, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(11), - }, - End: Location{ - Line: int(634), - Column: int(59), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_codes_arr", - "i", - "j", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(11), - }, - End: Location{ - Line: int(634), - Column: int(27), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "format_codes_arr", - }, - }, - Id: "format_codes_arr", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(28), - }, - End: Location{ - Line: int(634), - Column: int(33), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(35), - }, - End: Location{ - Line: int(634), - Column: int(38), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(40), - }, - End: Location{ - Line: int(634), - Column: int(45), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(40), - }, - End: Location{ - Line: int(634), - Column: int(41), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(44), - }, - End: Location{ - Line: int(634), - Column: int(45), - }, - file: p1, - }, - context: p8693, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(47), - }, - End: Location{ - Line: int(634), - Column: int(48), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(50), - }, - End: Location{ - Line: int(634), - Column: int(58), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "code", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(50), - }, - End: Location{ - Line: int(634), - Column: int(51), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(634), - Column: int(54), - }, - End: Location{ - Line: int(634), - Column: int(58), - }, - file: p1, - }, - context: p8693, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "j", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "tmp", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(23), - }, - End: Location{ - Line: int(645), - Column: int(12), - }, - file: p1, - }, - context: p8714, - freeVariables: Identifiers{ - "arr", - "code", - "j", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(26), - }, - End: Location{ - Line: int(636), - Column: int(33), - }, - file: p1, - }, - context: p8714, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(26), - }, - End: Location{ - Line: int(636), - Column: int(30), - }, - file: p1, - }, - context: p8714, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(37), - }, - End: Location{ - Line: int(636), - Column: int(40), - }, - file: p1, - }, - context: p8714, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(636), - Column: int(46), - }, - End: Location{ - Line: int(642), - Column: int(12), - }, - file: p1, - }, - context: p8714, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(637), - Column: int(16), - }, - End: Location{ - Line: int(637), - Column: int(21), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(637), - Column: int(16), - }, - End: Location{ - Line: int(637), - Column: int(17), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(637), - Column: int(20), - }, - End: Location{ - Line: int(637), - Column: int(21), - }, - file: p1, - }, - context: p8735, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(17), - }, - End: Location{ - Line: int(641), - Column: int(21), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(20), - }, - End: Location{ - Line: int(638), - Column: int(40), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "j", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(20), - }, - End: Location{ - Line: int(638), - Column: int(21), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(25), - }, - End: Location{ - Line: int(638), - Column: int(40), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(25), - }, - End: Location{ - Line: int(638), - Column: int(35), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(25), - }, - End: Location{ - Line: int(638), - Column: int(28), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(638), - Column: int(36), - }, - End: Location{ - Line: int(638), - Column: int(39), - }, - file: p1, - }, - context: p8756, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(15), - }, - End: Location{ - Line: int(639), - Column: int(70), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(21), - }, - End: Location{ - Line: int(639), - Column: int(70), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(21), - }, - End: Location{ - Line: int(639), - Column: int(52), - }, - file: p1, - }, - context: p8735, - freeVariables: nil, - }, - Value: "Not enough values to format: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(55), - }, - End: Location{ - Line: int(639), - Column: int(70), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(55), - }, - End: Location{ - Line: int(639), - Column: int(65), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(55), - }, - End: Location{ - Line: int(639), - Column: int(58), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(639), - Column: int(66), - }, - End: Location{ - Line: int(639), - Column: int(69), - }, - file: p1, - }, - context: p8772, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(641), - Column: int(15), - }, - End: Location{ - Line: int(641), - Column: int(21), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(641), - Column: int(15), - }, - End: Location{ - Line: int(641), - Column: int(18), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(641), - Column: int(19), - }, - End: Location{ - Line: int(641), - Column: int(20), - }, - file: p1, - }, - context: p8735, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(642), - Column: int(18), - }, - End: Location{ - Line: int(645), - Column: int(12), - }, - file: p1, - }, - context: p8714, - freeVariables: Identifiers{ - "code", - "j", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(643), - Column: int(16), - }, - End: Location{ - Line: int(643), - Column: int(17), - }, - file: p1, - }, - context: p8785, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(644), - Column: int(17), - }, - End: Location{ - Line: int(644), - Column: int(24), - }, - file: p1, - }, - context: p8785, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(644), - Column: int(17), - }, - End: Location{ - Line: int(644), - Column: int(21), - }, - file: p1, - }, - context: p8785, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "pad_left", - "pad_right", - "std", - "tmp", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "tmp2", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(24), - }, - End: Location{ - Line: int(655), - Column: int(12), - }, - file: p1, - }, - context: p8797, - freeVariables: Identifiers{ - "arr", - "code", - "std", - "tmp", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(27), - }, - End: Location{ - Line: int(646), - Column: int(36), - }, - file: p1, - }, - context: p8797, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(27), - }, - End: Location{ - Line: int(646), - Column: int(31), - }, - file: p1, - }, - context: p8797, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(40), - }, - End: Location{ - Line: int(646), - Column: int(43), - }, - file: p1, - }, - context: p8797, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(646), - Column: int(49), - }, - End: Location{ - Line: int(652), - Column: int(12), - }, - file: p1, - }, - context: p8797, - freeVariables: Identifiers{ - "arr", - "std", - "tmp", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(647), - Column: int(16), - }, - End: Location{ - Line: int(647), - Column: int(25), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(647), - Column: int(16), - }, - End: Location{ - Line: int(647), - Column: int(21), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(647), - Column: int(16), - }, - End: Location{ - Line: int(647), - Column: int(19), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(647), - Column: int(24), - }, - End: Location{ - Line: int(647), - Column: int(25), - }, - file: p1, - }, - context: p8818, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(19), - }, - End: Location{ - Line: int(651), - Column: int(25), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - "tmp", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(22), - }, - End: Location{ - Line: int(648), - Column: int(46), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - "tmp", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(22), - }, - End: Location{ - Line: int(648), - Column: int(27), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(22), - }, - End: Location{ - Line: int(648), - Column: int(25), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(31), - }, - End: Location{ - Line: int(648), - Column: int(46), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(31), - }, - End: Location{ - Line: int(648), - Column: int(41), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(31), - }, - End: Location{ - Line: int(648), - Column: int(34), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(648), - Column: int(42), - }, - End: Location{ - Line: int(648), - Column: int(45), - }, - file: p1, - }, - context: p8845, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(15), - }, - End: Location{ - Line: int(649), - Column: int(70), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(21), - }, - End: Location{ - Line: int(649), - Column: int(70), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(21), - }, - End: Location{ - Line: int(649), - Column: int(52), - }, - file: p1, - }, - context: p8818, - freeVariables: nil, - }, - Value: "Not enough values to format: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(55), - }, - End: Location{ - Line: int(649), - Column: int(70), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(55), - }, - End: Location{ - Line: int(649), - Column: int(65), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(55), - }, - End: Location{ - Line: int(649), - Column: int(58), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(649), - Column: int(66), - }, - End: Location{ - Line: int(649), - Column: int(69), - }, - file: p1, - }, - context: p8861, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(651), - Column: int(15), - }, - End: Location{ - Line: int(651), - Column: int(25), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(651), - Column: int(15), - }, - End: Location{ - Line: int(651), - Column: int(18), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(651), - Column: int(19), - }, - End: Location{ - Line: int(651), - Column: int(24), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(651), - Column: int(19), - }, - End: Location{ - Line: int(651), - Column: int(22), - }, - file: p1, - }, - context: p8818, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Id: nil, - }, - }, - PlusSuper: false, - }, - }, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(652), - Column: int(18), - }, - End: Location{ - Line: int(655), - Column: int(12), - }, - file: p1, - }, - context: p8797, - freeVariables: Identifiers{ - "code", - "tmp", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(653), - Column: int(16), - }, - End: Location{ - Line: int(653), - Column: int(21), - }, - file: p1, - }, - context: p8877, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(653), - Column: int(16), - }, - End: Location{ - Line: int(653), - Column: int(19), - }, - file: p1, - }, - context: p8877, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(654), - Column: int(19), - }, - End: Location{ - Line: int(654), - Column: int(28), - }, - file: p1, - }, - context: p8877, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(654), - Column: int(19), - }, - End: Location{ - Line: int(654), - Column: int(23), - }, - file: p1, - }, - context: p8877, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - PlusSuper: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(656), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "pad_left", - "pad_right", - "std", - "tmp", - "tmp2", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "j2", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(656), - Column: int(22), - }, - End: Location{ - Line: int(656), - Column: int(28), - }, - file: p1, - }, - context: p8892, - freeVariables: Identifiers{ - "tmp2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(656), - Column: int(22), - }, - End: Location{ - Line: int(656), - Column: int(26), - }, - file: p1, - }, - context: p8892, - freeVariables: Identifiers{ - "tmp2", - }, - }, - Id: "tmp2", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "j", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(657), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "j2", - "pad_left", - "pad_right", - "std", - "tmp", - "tmp2", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "val", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(13), - }, - End: Location{ - Line: int(661), - Column: int(74), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "j2", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(16), - }, - End: Location{ - Line: int(658), - Column: int(36), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "j2", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(16), - }, - End: Location{ - Line: int(658), - Column: int(18), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "j2", - }, - }, - Id: "j2", - }, - Op: BinaryOp(9), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(21), - }, - End: Location{ - Line: int(658), - Column: int(36), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(21), - }, - End: Location{ - Line: int(658), - Column: int(31), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(21), - }, - End: Location{ - Line: int(658), - Column: int(24), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(658), - Column: int(32), - }, - End: Location{ - Line: int(658), - Column: int(35), - }, - file: p1, - }, - context: p8916, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(659), - Column: int(15), - }, - End: Location{ - Line: int(659), - Column: int(22), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "j2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(659), - Column: int(15), - }, - End: Location{ - Line: int(659), - Column: int(18), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(659), - Column: int(19), - }, - End: Location{ - Line: int(659), - Column: int(21), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "j2", - }, - }, - Id: "j2", - }, - Id: nil, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(15), - }, - End: Location{ - Line: int(661), - Column: int(74), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(21), - }, - End: Location{ - Line: int(661), - Column: int(74), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(21), - }, - End: Location{ - Line: int(661), - Column: int(56), - }, - file: p1, - }, - context: p8901, - freeVariables: nil, - }, - Value: "Not enough values to format, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(59), - }, - End: Location{ - Line: int(661), - Column: int(74), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(59), - }, - End: Location{ - Line: int(661), - Column: int(69), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(59), - }, - End: Location{ - Line: int(661), - Column: int(62), - }, - file: p1, - }, - context: p8901, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(661), - Column: int(70), - }, - End: Location{ - Line: int(661), - Column: int(73), - }, - file: p1, - }, - context: p8938, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(662), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_code", - "format_codes_arr", - "i", - "j2", - "pad_left", - "pad_right", - "std", - "tmp", - "tmp2", - "v", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "s", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(663), - Column: int(13), - }, - End: Location{ - Line: int(666), - Column: int(60), - }, - file: p1, - }, - context: p8944, - freeVariables: Identifiers{ - "code", - "format_code", - "j2", - "std", - "tmp", - "tmp2", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(663), - Column: int(16), - }, - End: Location{ - Line: int(663), - Column: int(26), - }, - file: p1, - }, - context: p8944, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(663), - Column: int(16), - }, - End: Location{ - Line: int(663), - Column: int(20), - }, - file: p1, - }, - context: p8944, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(663), - Column: int(30), - }, - End: Location{ - Line: int(663), - Column: int(33), - }, - file: p1, - }, - context: p8944, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(664), - Column: int(15), - }, - End: Location{ - Line: int(664), - Column: int(18), - }, - file: p1, - }, - context: p8944, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(15), - }, - End: Location{ - Line: int(666), - Column: int(60), - }, - file: p1, - }, - context: p8944, - freeVariables: Identifiers{ - "code", - "format_code", - "j2", - "tmp", - "tmp2", - "val", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(15), - }, - End: Location{ - Line: int(666), - Column: int(26), - }, - file: p1, - }, - context: p8944, - freeVariables: Identifiers{ - "format_code", - }, - }, - Id: "format_code", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(27), - }, - End: Location{ - Line: int(666), - Column: int(30), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(32), - }, - End: Location{ - Line: int(666), - Column: int(36), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(38), - }, - End: Location{ - Line: int(666), - Column: int(44), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(38), - }, - End: Location{ - Line: int(666), - Column: int(41), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(46), - }, - End: Location{ - Line: int(666), - Column: int(55), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "tmp2", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(46), - }, - End: Location{ - Line: int(666), - Column: int(50), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "tmp2", - }, - }, - Id: "tmp2", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(666), - Column: int(57), - }, - End: Location{ - Line: int(666), - Column: int(59), - }, - file: p1, - }, - context: p8967, - freeVariables: Identifiers{ - "j2", - }, - }, - Id: "j2", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(667), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_codes_arr", - "i", - "j2", - "pad_left", - "pad_right", - "s", - "std", - "tmp", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "s_padded", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(668), - Column: int(13), - }, - End: Location{ - Line: int(671), - Column: int(39), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "code", - "pad_left", - "pad_right", - "s", - "tmp", - }, - }, - Cond: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(668), - Column: int(16), - }, - End: Location{ - Line: int(668), - Column: int(32), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(668), - Column: int(16), - }, - End: Location{ - Line: int(668), - Column: int(27), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(668), - Column: int(16), - }, - End: Location{ - Line: int(668), - Column: int(20), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "cflags", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "left", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(15), - }, - End: Location{ - Line: int(669), - Column: int(40), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "pad_right", - "s", - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(15), - }, - End: Location{ - Line: int(669), - Column: int(24), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "pad_right", - }, - }, - Id: "pad_right", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(25), - }, - End: Location{ - Line: int(669), - Column: int(26), - }, - file: p1, - }, - context: p9003, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(28), - }, - End: Location{ - Line: int(669), - Column: int(34), - }, - file: p1, - }, - context: p9003, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(28), - }, - End: Location{ - Line: int(669), - Column: int(31), - }, - file: p1, - }, - context: p9003, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(669), - Column: int(36), - }, - End: Location{ - Line: int(669), - Column: int(39), - }, - file: p1, - }, - context: p9003, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(15), - }, - End: Location{ - Line: int(671), - Column: int(39), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "pad_left", - "s", - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(15), - }, - End: Location{ - Line: int(671), - Column: int(23), - }, - file: p1, - }, - context: p8987, - freeVariables: Identifiers{ - "pad_left", - }, - }, - Id: "pad_left", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(24), - }, - End: Location{ - Line: int(671), - Column: int(25), - }, - file: p1, - }, - context: p9017, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(27), - }, - End: Location{ - Line: int(671), - Column: int(33), - }, - file: p1, - }, - context: p9017, - freeVariables: Identifiers{ - "tmp", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(27), - }, - End: Location{ - Line: int(671), - Column: int(30), - }, - file: p1, - }, - context: p9017, - freeVariables: Identifiers{ - "tmp", - }, - }, - Id: "tmp", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(671), - Column: int(35), - }, - End: Location{ - Line: int(671), - Column: int(38), - }, - file: p1, - }, - context: p9017, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(672), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "code", - "codes", - "format_codes_arr", - "i", - "j2", - "s_padded", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "j3", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(673), - Column: int(13), - }, - End: Location{ - Line: int(676), - Column: int(21), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "code", - "j2", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(673), - Column: int(16), - }, - End: Location{ - Line: int(673), - Column: int(26), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(673), - Column: int(16), - }, - End: Location{ - Line: int(673), - Column: int(20), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(673), - Column: int(30), - }, - End: Location{ - Line: int(673), - Column: int(33), - }, - file: p1, - }, - context: p9029, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(674), - Column: int(15), - }, - End: Location{ - Line: int(674), - Column: int(17), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "j2", - }, - }, - Id: "j2", - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(676), - Column: int(15), - }, - End: Location{ - Line: int(676), - Column: int(21), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "j2", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(676), - Column: int(15), - }, - End: Location{ - Line: int(676), - Column: int(17), - }, - file: p1, - }, - context: p9029, - freeVariables: Identifiers{ - "j2", - }, - }, - Id: "j2", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(676), - Column: int(20), - }, - End: Location{ - Line: int(676), - Column: int(21), - }, - file: p1, - }, - context: p9029, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(64), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "arr", - "codes", - "format_codes_arr", - "i", - "j3", - "s_padded", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(11), - }, - End: Location{ - Line: int(677), - Column: int(27), - }, - file: p1, - }, - context: p8596, - freeVariables: Identifiers{ - "format_codes_arr", - }, - }, - Id: "format_codes_arr", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(28), - }, - End: Location{ - Line: int(677), - Column: int(33), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(35), - }, - End: Location{ - Line: int(677), - Column: int(38), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(40), - }, - End: Location{ - Line: int(677), - Column: int(45), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(40), - }, - End: Location{ - Line: int(677), - Column: int(41), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(44), - }, - End: Location{ - Line: int(677), - Column: int(45), - }, - file: p1, - }, - context: p9058, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(47), - }, - End: Location{ - Line: int(677), - Column: int(49), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "j3", - }, - }, - Id: "j3", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(51), - }, - End: Location{ - Line: int(677), - Column: int(63), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "s_padded", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(51), - }, - End: Location{ - Line: int(677), - Column: int(52), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(677), - Column: int(55), - }, - End: Location{ - Line: int(677), - Column: int(63), - }, - file: p1, - }, - context: p9058, - freeVariables: Identifiers{ - "s_padded", - }, - }, - Id: "s_padded", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(680), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_code", - "format_codes_arr", - "pad_left", - "pad_right", - "std", - "vals", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "format_codes_obj", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(680), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9079, - freeVariables: Identifiers{ - "format_code", - "format_codes_obj", - "pad_left", - "pad_right", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "codes", - "obj", - "i", - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(7), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "codes", - "format_code", - "format_codes_obj", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(10), - }, - End: Location{ - Line: int(681), - Column: int(32), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "codes", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(10), - }, - End: Location{ - Line: int(681), - Column: int(11), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(15), - }, - End: Location{ - Line: int(681), - Column: int(32), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "codes", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(15), - }, - End: Location{ - Line: int(681), - Column: int(25), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(15), - }, - End: Location{ - Line: int(681), - Column: int(18), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(681), - Column: int(26), - }, - End: Location{ - Line: int(681), - Column: int(31), - }, - file: p1, - }, - context: p9098, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(682), - Column: int(9), - }, - End: Location{ - Line: int(682), - Column: int(10), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(684), - Column: int(9), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "codes", - "format_code", - "format_codes_obj", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "code", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(684), - Column: int(22), - }, - End: Location{ - Line: int(684), - Column: int(30), - }, - file: p1, - }, - context: p9106, - freeVariables: Identifiers{ - "codes", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(684), - Column: int(22), - }, - End: Location{ - Line: int(684), - Column: int(27), - }, - file: p1, - }, - context: p9106, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(684), - Column: int(28), - }, - End: Location{ - Line: int(684), - Column: int(29), - }, - file: p1, - }, - context: p9106, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(9), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "format_code", - "format_codes_obj", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(12), - }, - End: Location{ - Line: int(685), - Column: int(26), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(12), - }, - End: Location{ - Line: int(685), - Column: int(20), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(12), - }, - End: Location{ - Line: int(685), - Column: int(15), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(21), - }, - End: Location{ - Line: int(685), - Column: int(25), - }, - file: p1, - }, - context: p9131, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(685), - Column: int(30), - }, - End: Location{ - Line: int(685), - Column: int(38), - }, - file: p1, - }, - context: p9083, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(11), - }, - End: Location{ - Line: int(686), - Column: int(56), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "format_codes_obj", - "i", - "obj", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(11), - }, - End: Location{ - Line: int(686), - Column: int(27), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "format_codes_obj", - }, - }, - Id: "format_codes_obj", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(28), - }, - End: Location{ - Line: int(686), - Column: int(33), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(35), - }, - End: Location{ - Line: int(686), - Column: int(38), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(40), - }, - End: Location{ - Line: int(686), - Column: int(45), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(40), - }, - End: Location{ - Line: int(686), - Column: int(41), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(44), - }, - End: Location{ - Line: int(686), - Column: int(45), - }, - file: p1, - }, - context: p9140, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(47), - }, - End: Location{ - Line: int(686), - Column: int(55), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "code", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(47), - }, - End: Location{ - Line: int(686), - Column: int(48), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(686), - Column: int(51), - }, - End: Location{ - Line: int(686), - Column: int(55), - }, - file: p1, - }, - context: p9140, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(688), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "format_code", - "format_codes_obj", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "f", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(689), - Column: int(13), - }, - End: Location{ - Line: int(692), - Column: int(24), - }, - file: p1, - }, - context: p9159, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(689), - Column: int(16), - }, - End: Location{ - Line: int(689), - Column: int(25), - }, - file: p1, - }, - context: p9159, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(689), - Column: int(16), - }, - End: Location{ - Line: int(689), - Column: int(20), - }, - file: p1, - }, - context: p9159, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mkey", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(689), - Column: int(29), - }, - End: Location{ - Line: int(689), - Column: int(33), - }, - file: p1, - }, - context: p9159, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(690), - Column: int(15), - }, - End: Location{ - Line: int(690), - Column: int(45), - }, - file: p1, - }, - context: p9159, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(690), - Column: int(21), - }, - End: Location{ - Line: int(690), - Column: int(45), - }, - file: p1, - }, - context: p9159, - freeVariables: nil, - }, - Value: "Mapping keys required.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(692), - Column: int(15), - }, - End: Location{ - Line: int(692), - Column: int(24), - }, - file: p1, - }, - context: p9159, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(692), - Column: int(15), - }, - End: Location{ - Line: int(692), - Column: int(19), - }, - file: p1, - }, - context: p9159, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mkey", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(693), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "f", - "format_code", - "format_codes_obj", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "fw", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(694), - Column: int(13), - }, - End: Location{ - Line: int(697), - Column: int(22), - }, - file: p1, - }, - context: p9186, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(694), - Column: int(16), - }, - End: Location{ - Line: int(694), - Column: int(23), - }, - file: p1, - }, - context: p9186, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(694), - Column: int(16), - }, - End: Location{ - Line: int(694), - Column: int(20), - }, - file: p1, - }, - context: p9186, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(694), - Column: int(27), - }, - End: Location{ - Line: int(694), - Column: int(30), - }, - file: p1, - }, - context: p9186, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(695), - Column: int(15), - }, - End: Location{ - Line: int(695), - Column: int(60), - }, - file: p1, - }, - context: p9186, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(695), - Column: int(21), - }, - End: Location{ - Line: int(695), - Column: int(60), - }, - file: p1, - }, - context: p9186, - freeVariables: nil, - }, - Value: "Cannot use * field width with object.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(697), - Column: int(15), - }, - End: Location{ - Line: int(697), - Column: int(22), - }, - file: p1, - }, - context: p9186, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(697), - Column: int(15), - }, - End: Location{ - Line: int(697), - Column: int(19), - }, - file: p1, - }, - context: p9186, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "fw", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(698), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "f", - "format_code", - "format_codes_obj", - "fw", - "i", - "obj", - "pad_left", - "pad_right", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "prec", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(699), - Column: int(13), - }, - End: Location{ - Line: int(702), - Column: int(24), - }, - file: p1, - }, - context: p9213, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(699), - Column: int(16), - }, - End: Location{ - Line: int(699), - Column: int(25), - }, - file: p1, - }, - context: p9213, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(699), - Column: int(16), - }, - End: Location{ - Line: int(699), - Column: int(20), - }, - file: p1, - }, - context: p9213, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(699), - Column: int(29), - }, - End: Location{ - Line: int(699), - Column: int(32), - }, - file: p1, - }, - context: p9213, - freeVariables: nil, - }, - Value: "*", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(700), - Column: int(15), - }, - End: Location{ - Line: int(700), - Column: int(58), - }, - file: p1, - }, - context: p9213, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(700), - Column: int(21), - }, - End: Location{ - Line: int(700), - Column: int(58), - }, - file: p1, - }, - context: p9213, - freeVariables: nil, - }, - Value: "Cannot use * precision with object.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(702), - Column: int(15), - }, - End: Location{ - Line: int(702), - Column: int(24), - }, - file: p1, - }, - context: p9213, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(702), - Column: int(15), - }, - End: Location{ - Line: int(702), - Column: int(19), - }, - file: p1, - }, - context: p9213, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prec", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(703), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "f", - "format_code", - "format_codes_obj", - "fw", - "i", - "obj", - "pad_left", - "pad_right", - "prec", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "val", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(13), - }, - End: Location{ - Line: int(707), - Column: int(42), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - "obj", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(16), - }, - End: Location{ - Line: int(704), - Column: int(40), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - "obj", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(16), - }, - End: Location{ - Line: int(704), - Column: int(32), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(16), - }, - End: Location{ - Line: int(704), - Column: int(19), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHasAll", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(33), - }, - End: Location{ - Line: int(704), - Column: int(36), - }, - file: p1, - }, - context: p9251, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(704), - Column: int(38), - }, - End: Location{ - Line: int(704), - Column: int(39), - }, - file: p1, - }, - context: p9251, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(705), - Column: int(15), - }, - End: Location{ - Line: int(705), - Column: int(21), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - "obj", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(705), - Column: int(15), - }, - End: Location{ - Line: int(705), - Column: int(18), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(705), - Column: int(19), - }, - End: Location{ - Line: int(705), - Column: int(20), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - Id: nil, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(707), - Column: int(15), - }, - End: Location{ - Line: int(707), - Column: int(42), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(707), - Column: int(21), - }, - End: Location{ - Line: int(707), - Column: int(42), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(707), - Column: int(21), - }, - End: Location{ - Line: int(707), - Column: int(38), - }, - file: p1, - }, - context: p9240, - freeVariables: nil, - }, - Value: "No such field: ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(707), - Column: int(41), - }, - End: Location{ - Line: int(707), - Column: int(42), - }, - file: p1, - }, - context: p9240, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(708), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "f", - "format_code", - "format_codes_obj", - "fw", - "i", - "obj", - "pad_left", - "pad_right", - "prec", - "std", - "v", - "val", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "s", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(709), - Column: int(13), - }, - End: Location{ - Line: int(712), - Column: int(50), - }, - file: p1, - }, - context: p9272, - freeVariables: Identifiers{ - "code", - "f", - "format_code", - "fw", - "prec", - "std", - "val", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "code", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(709), - Column: int(16), - }, - End: Location{ - Line: int(709), - Column: int(26), - }, - file: p1, - }, - context: p9272, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(709), - Column: int(16), - }, - End: Location{ - Line: int(709), - Column: int(20), - }, - file: p1, - }, - context: p9272, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "ctype", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(709), - Column: int(30), - }, - End: Location{ - Line: int(709), - Column: int(33), - }, - file: p1, - }, - context: p9272, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(710), - Column: int(15), - }, - End: Location{ - Line: int(710), - Column: int(18), - }, - file: p1, - }, - context: p9272, - freeVariables: nil, - }, - Value: "%", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(15), - }, - End: Location{ - Line: int(712), - Column: int(50), - }, - file: p1, - }, - context: p9272, - freeVariables: Identifiers{ - "code", - "f", - "format_code", - "fw", - "prec", - "val", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(15), - }, - End: Location{ - Line: int(712), - Column: int(26), - }, - file: p1, - }, - context: p9272, - freeVariables: Identifiers{ - "format_code", - }, - }, - Id: "format_code", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(27), - }, - End: Location{ - Line: int(712), - Column: int(30), - }, - file: p1, - }, - context: p9295, - freeVariables: Identifiers{ - "val", - }, - }, - Id: "val", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(32), - }, - End: Location{ - Line: int(712), - Column: int(36), - }, - file: p1, - }, - context: p9295, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(38), - }, - End: Location{ - Line: int(712), - Column: int(40), - }, - file: p1, - }, - context: p9295, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(42), - }, - End: Location{ - Line: int(712), - Column: int(46), - }, - file: p1, - }, - context: p9295, - freeVariables: Identifiers{ - "prec", - }, - }, - Id: "prec", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(712), - Column: int(48), - }, - End: Location{ - Line: int(712), - Column: int(49), - }, - file: p1, - }, - context: p9295, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(713), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "code", - "codes", - "format_codes_obj", - "fw", - "i", - "obj", - "pad_left", - "pad_right", - "s", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "s_padded", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(714), - Column: int(13), - }, - End: Location{ - Line: int(717), - Column: int(35), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "code", - "fw", - "pad_left", - "pad_right", - "s", - }, - }, - Cond: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(714), - Column: int(16), - }, - End: Location{ - Line: int(714), - Column: int(32), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(714), - Column: int(16), - }, - End: Location{ - Line: int(714), - Column: int(27), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "code", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(714), - Column: int(16), - }, - End: Location{ - Line: int(714), - Column: int(20), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "code", - }, - }, - Id: "code", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "cflags", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "left", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(715), - Column: int(15), - }, - End: Location{ - Line: int(715), - Column: int(36), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "fw", - "pad_right", - "s", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(715), - Column: int(15), - }, - End: Location{ - Line: int(715), - Column: int(24), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "pad_right", - }, - }, - Id: "pad_right", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(715), - Column: int(25), - }, - End: Location{ - Line: int(715), - Column: int(26), - }, - file: p1, - }, - context: p9325, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(715), - Column: int(28), - }, - End: Location{ - Line: int(715), - Column: int(30), - }, - file: p1, - }, - context: p9325, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(715), - Column: int(32), - }, - End: Location{ - Line: int(715), - Column: int(35), - }, - file: p1, - }, - context: p9325, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(717), - Column: int(15), - }, - End: Location{ - Line: int(717), - Column: int(35), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "fw", - "pad_left", - "s", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(717), - Column: int(15), - }, - End: Location{ - Line: int(717), - Column: int(23), - }, - file: p1, - }, - context: p9309, - freeVariables: Identifiers{ - "pad_left", - }, - }, - Id: "pad_left", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(717), - Column: int(24), - }, - End: Location{ - Line: int(717), - Column: int(25), - }, - file: p1, - }, - context: p9336, - freeVariables: Identifiers{ - "s", - }, - }, - Id: "s", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(717), - Column: int(27), - }, - End: Location{ - Line: int(717), - Column: int(29), - }, - file: p1, - }, - context: p9336, - freeVariables: Identifiers{ - "fw", - }, - }, - Id: "fw", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(717), - Column: int(31), - }, - End: Location{ - Line: int(717), - Column: int(34), - }, - file: p1, - }, - context: p9336, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(60), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "codes", - "format_codes_obj", - "i", - "obj", - "s_padded", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(11), - }, - End: Location{ - Line: int(718), - Column: int(27), - }, - file: p1, - }, - context: p9083, - freeVariables: Identifiers{ - "format_codes_obj", - }, - }, - Id: "format_codes_obj", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(28), - }, - End: Location{ - Line: int(718), - Column: int(33), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(35), - }, - End: Location{ - Line: int(718), - Column: int(38), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "obj", - }, - }, - Id: "obj", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(40), - }, - End: Location{ - Line: int(718), - Column: int(45), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(40), - }, - End: Location{ - Line: int(718), - Column: int(41), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(44), - }, - End: Location{ - Line: int(718), - Column: int(45), - }, - file: p1, - }, - context: p9347, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(47), - }, - End: Location{ - Line: int(718), - Column: int(59), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "s_padded", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(47), - }, - End: Location{ - Line: int(718), - Column: int(48), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(718), - Column: int(51), - }, - End: Location{ - Line: int(718), - Column: int(59), - }, - file: p1, - }, - context: p9347, - freeVariables: Identifiers{ - "s_padded", - }, - }, - Id: "s_padded", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(5), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_codes_arr", - "format_codes_obj", - "std", - "vals", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "vals", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(8), - }, - End: Location{ - Line: int(720), - Column: int(22), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "vals", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(8), - }, - End: Location{ - Line: int(720), - Column: int(16), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(8), - }, - End: Location{ - Line: int(720), - Column: int(11), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(17), - }, - End: Location{ - Line: int(720), - Column: int(21), - }, - file: p1, - }, - context: p9381, - freeVariables: Identifiers{ - "vals", - }, - }, - Id: "vals", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(720), - Column: int(26), - }, - End: Location{ - Line: int(720), - Column: int(33), - }, - file: p1, - }, - context: p4840, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(7), - }, - End: Location{ - Line: int(721), - Column: int(46), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_codes_arr", - "vals", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(7), - }, - End: Location{ - Line: int(721), - Column: int(23), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "format_codes_arr", - }, - }, - Id: "format_codes_arr", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(24), - }, - End: Location{ - Line: int(721), - Column: int(29), - }, - file: p1, - }, - context: p9390, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(31), - }, - End: Location{ - Line: int(721), - Column: int(35), - }, - file: p1, - }, - context: p9390, - freeVariables: Identifiers{ - "vals", - }, - }, - Id: "vals", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(37), - }, - End: Location{ - Line: int(721), - Column: int(38), - }, - file: p1, - }, - context: p9390, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(40), - }, - End: Location{ - Line: int(721), - Column: int(41), - }, - file: p1, - }, - context: p9390, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(721), - Column: int(43), - }, - End: Location{ - Line: int(721), - Column: int(45), - }, - file: p1, - }, - context: p9390, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(10), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_codes_arr", - "format_codes_obj", - "std", - "vals", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "vals", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(13), - }, - End: Location{ - Line: int(722), - Column: int(27), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - "vals", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(13), - }, - End: Location{ - Line: int(722), - Column: int(21), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(13), - }, - End: Location{ - Line: int(722), - Column: int(16), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(22), - }, - End: Location{ - Line: int(722), - Column: int(26), - }, - file: p1, - }, - context: p9416, - freeVariables: Identifiers{ - "vals", - }, - }, - Id: "vals", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(722), - Column: int(31), - }, - End: Location{ - Line: int(722), - Column: int(39), - }, - file: p1, - }, - context: p4840, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(7), - }, - End: Location{ - Line: int(723), - Column: int(43), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_codes_obj", - "vals", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(7), - }, - End: Location{ - Line: int(723), - Column: int(23), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "format_codes_obj", - }, - }, - Id: "format_codes_obj", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(24), - }, - End: Location{ - Line: int(723), - Column: int(29), - }, - file: p1, - }, - context: p9425, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(31), - }, - End: Location{ - Line: int(723), - Column: int(35), - }, - file: p1, - }, - context: p9425, - freeVariables: Identifiers{ - "vals", - }, - }, - Id: "vals", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(37), - }, - End: Location{ - Line: int(723), - Column: int(38), - }, - file: p1, - }, - context: p9425, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(723), - Column: int(40), - }, - End: Location{ - Line: int(723), - Column: int(42), - }, - file: p1, - }, - context: p9425, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(7), - }, - End: Location{ - Line: int(725), - Column: int(48), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "codes", - "format_codes_arr", - "vals", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(7), - }, - End: Location{ - Line: int(725), - Column: int(23), - }, - file: p1, - }, - context: p4840, - freeVariables: Identifiers{ - "format_codes_arr", - }, - }, - Id: "format_codes_arr", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(24), - }, - End: Location{ - Line: int(725), - Column: int(29), - }, - file: p1, - }, - context: p9437, - freeVariables: Identifiers{ - "codes", - }, - }, - Id: "codes", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(31), - }, - End: Location{ - Line: int(725), - Column: int(37), - }, - file: p1, - }, - context: p9437, - freeVariables: Identifiers{ - "vals", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(32), - }, - End: Location{ - Line: int(725), - Column: int(36), - }, - file: p1, - }, - context: p9443, - freeVariables: Identifiers{ - "vals", - }, - }, - Id: "vals", - }, - }, - TrailingComma: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(39), - }, - End: Location{ - Line: int(725), - Column: int(40), - }, - file: p1, - }, - context: p9437, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(42), - }, - End: Location{ - Line: int(725), - Column: int(43), - }, - file: p1, - }, - context: p9437, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(725), - Column: int(45), - }, - End: Location{ - Line: int(725), - Column: int(47), - }, - file: p1, - }, - context: p9437, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldr", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p9452, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p9454, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p9478, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p9482, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p9485, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p9488, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p9491, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p9494, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p9497, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p9500, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p9505, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p9507, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - "init", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(728), - Column: int(5), - }, - End: Location{ - Line: int(733), - Column: int(46), - }, - file: p1, - }, - context: p9513, - freeVariables: Identifiers{ - "arr", - "func", - "init", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(728), - Column: int(11), - }, - End: Location{ - Line: int(732), - Column: int(57), - }, - file: p1, - }, - context: p9517, - freeVariables: Identifiers{ - "aux", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - "running", - "idx", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(729), - Column: int(7), - }, - End: Location{ - Line: int(732), - Column: int(57), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "idx", - "running", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(729), - Column: int(10), - }, - End: Location{ - Line: int(729), - Column: int(17), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "idx", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(729), - Column: int(10), - }, - End: Location{ - Line: int(729), - Column: int(13), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(729), - Column: int(16), - }, - End: Location{ - Line: int(729), - Column: int(17), - }, - file: p1, - }, - context: p9521, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(730), - Column: int(9), - }, - End: Location{ - Line: int(730), - Column: int(16), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(9), - }, - End: Location{ - Line: int(732), - Column: int(57), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "idx", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(9), - }, - End: Location{ - Line: int(732), - Column: int(12), - }, - file: p1, - }, - context: p9521, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(13), - }, - End: Location{ - Line: int(732), - Column: int(17), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(19), - }, - End: Location{ - Line: int(732), - Column: int(22), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(24), - }, - End: Location{ - Line: int(732), - Column: int(47), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "arr", - "func", - "idx", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(24), - }, - End: Location{ - Line: int(732), - Column: int(28), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(29), - }, - End: Location{ - Line: int(732), - Column: int(37), - }, - file: p1, - }, - context: p9546, - freeVariables: Identifiers{ - "arr", - "idx", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(29), - }, - End: Location{ - Line: int(732), - Column: int(32), - }, - file: p1, - }, - context: p9546, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(33), - }, - End: Location{ - Line: int(732), - Column: int(36), - }, - file: p1, - }, - context: p9546, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Id: nil, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(39), - }, - End: Location{ - Line: int(732), - Column: int(46), - }, - file: p1, - }, - context: p9546, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(49), - }, - End: Location{ - Line: int(732), - Column: int(56), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "idx", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(49), - }, - End: Location{ - Line: int(732), - Column: int(52), - }, - file: p1, - }, - context: p9536, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(732), - Column: int(55), - }, - End: Location{ - Line: int(732), - Column: int(56), - }, - file: p1, - }, - context: p9536, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(5), - }, - End: Location{ - Line: int(733), - Column: int(46), - }, - file: p1, - }, - context: p9513, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "init", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(5), - }, - End: Location{ - Line: int(733), - Column: int(8), - }, - file: p1, - }, - context: p9513, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(9), - }, - End: Location{ - Line: int(733), - Column: int(13), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(15), - }, - End: Location{ - Line: int(733), - Column: int(18), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(20), - }, - End: Location{ - Line: int(733), - Column: int(24), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "init", - }, - }, - Id: "init", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(26), - }, - End: Location{ - Line: int(733), - Column: int(45), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(26), - }, - End: Location{ - Line: int(733), - Column: int(41), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(26), - }, - End: Location{ - Line: int(733), - Column: int(36), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(26), - }, - End: Location{ - Line: int(733), - Column: int(29), - }, - file: p1, - }, - context: p9565, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(37), - }, - End: Location{ - Line: int(733), - Column: int(40), - }, - file: p1, - }, - context: p9582, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(733), - Column: int(44), - }, - End: Location{ - Line: int(733), - Column: int(45), - }, - file: p1, - }, - context: p9565, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p9589, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p9591, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p9615, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p9619, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p9622, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p9625, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p9628, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p9631, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p9634, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p9637, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p9642, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p9644, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - "init", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(736), - Column: int(5), - }, - End: Location{ - Line: int(741), - Column: int(28), - }, - file: p1, - }, - context: p9650, - freeVariables: Identifiers{ - "arr", - "func", - "init", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(736), - Column: int(11), - }, - End: Location{ - Line: int(740), - Column: int(57), - }, - file: p1, - }, - context: p9654, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "func", - "arr", - "running", - "idx", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(7), - }, - End: Location{ - Line: int(740), - Column: int(57), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "idx", - "running", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(10), - }, - End: Location{ - Line: int(737), - Column: int(32), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "arr", - "idx", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(10), - }, - End: Location{ - Line: int(737), - Column: int(13), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(17), - }, - End: Location{ - Line: int(737), - Column: int(32), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(17), - }, - End: Location{ - Line: int(737), - Column: int(27), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(17), - }, - End: Location{ - Line: int(737), - Column: int(20), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(737), - Column: int(28), - }, - End: Location{ - Line: int(737), - Column: int(31), - }, - file: p1, - }, - context: p9673, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(738), - Column: int(9), - }, - End: Location{ - Line: int(738), - Column: int(16), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(9), - }, - End: Location{ - Line: int(740), - Column: int(57), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "idx", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(9), - }, - End: Location{ - Line: int(740), - Column: int(12), - }, - file: p1, - }, - context: p9658, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(13), - }, - End: Location{ - Line: int(740), - Column: int(17), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(19), - }, - End: Location{ - Line: int(740), - Column: int(22), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(24), - }, - End: Location{ - Line: int(740), - Column: int(47), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "arr", - "func", - "idx", - "running", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(24), - }, - End: Location{ - Line: int(740), - Column: int(28), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(29), - }, - End: Location{ - Line: int(740), - Column: int(36), - }, - file: p1, - }, - context: p9693, - freeVariables: Identifiers{ - "running", - }, - }, - Id: "running", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(38), - }, - End: Location{ - Line: int(740), - Column: int(46), - }, - file: p1, - }, - context: p9693, - freeVariables: Identifiers{ - "arr", - "idx", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(38), - }, - End: Location{ - Line: int(740), - Column: int(41), - }, - file: p1, - }, - context: p9693, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(42), - }, - End: Location{ - Line: int(740), - Column: int(45), - }, - file: p1, - }, - context: p9693, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(49), - }, - End: Location{ - Line: int(740), - Column: int(56), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "idx", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(49), - }, - End: Location{ - Line: int(740), - Column: int(52), - }, - file: p1, - }, - context: p9683, - freeVariables: Identifiers{ - "idx", - }, - }, - Id: "idx", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(740), - Column: int(55), - }, - End: Location{ - Line: int(740), - Column: int(56), - }, - file: p1, - }, - context: p9683, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(5), - }, - End: Location{ - Line: int(741), - Column: int(28), - }, - file: p1, - }, - context: p9650, - freeVariables: Identifiers{ - "arr", - "aux", - "func", - "init", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(5), - }, - End: Location{ - Line: int(741), - Column: int(8), - }, - file: p1, - }, - context: p9650, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(9), - }, - End: Location{ - Line: int(741), - Column: int(13), - }, - file: p1, - }, - context: p9712, - freeVariables: Identifiers{ - "func", - }, - }, - Id: "func", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(15), - }, - End: Location{ - Line: int(741), - Column: int(18), - }, - file: p1, - }, - context: p9712, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(20), - }, - End: Location{ - Line: int(741), - Column: int(24), - }, - file: p1, - }, - context: p9712, - freeVariables: Identifiers{ - "init", - }, - }, - Id: "init", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(741), - Column: int(26), - }, - End: Location{ - Line: int(741), - Column: int(27), - }, - file: p1, - }, - context: p9712, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "filterMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p9723, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p9725, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p9749, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p9753, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p9756, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p9759, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p9762, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p9765, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p9768, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p9771, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p9776, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p9778, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "filter_func", - "map_func", - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(5), - }, - End: Location{ - Line: int(752), - Column: int(54), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "filter_func", - "map_func", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(8), - }, - End: Location{ - Line: int(745), - Column: int(29), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(8), - }, - End: Location{ - Line: int(745), - Column: int(16), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(8), - }, - End: Location{ - Line: int(745), - Column: int(11), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(17), - }, - End: Location{ - Line: int(745), - Column: int(28), - }, - file: p1, - }, - context: p9805, - freeVariables: Identifiers{ - "filter_func", - }, - }, - Id: "filter_func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(745), - Column: int(33), - }, - End: Location{ - Line: int(745), - Column: int(43), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(7), - }, - End: Location{ - Line: int(746), - Column: int(89), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(14), - }, - End: Location{ - Line: int(746), - Column: int(88), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(14), - }, - End: Location{ - Line: int(746), - Column: int(64), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "std.filterMap first param must be function, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(67), - }, - End: Location{ - Line: int(746), - Column: int(88), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "filter_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(67), - }, - End: Location{ - Line: int(746), - Column: int(75), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(67), - }, - End: Location{ - Line: int(746), - Column: int(70), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(746), - Column: int(76), - }, - End: Location{ - Line: int(746), - Column: int(87), - }, - file: p1, - }, - context: p9822, - freeVariables: Identifiers{ - "filter_func", - }, - }, - Id: "filter_func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(10), - }, - End: Location{ - Line: int(752), - Column: int(54), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "filter_func", - "map_func", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(13), - }, - End: Location{ - Line: int(747), - Column: int(31), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(13), - }, - End: Location{ - Line: int(747), - Column: int(21), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(13), - }, - End: Location{ - Line: int(747), - Column: int(16), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(22), - }, - End: Location{ - Line: int(747), - Column: int(30), - }, - file: p1, - }, - context: p9845, - freeVariables: Identifiers{ - "map_func", - }, - }, - Id: "map_func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(747), - Column: int(35), - }, - End: Location{ - Line: int(747), - Column: int(45), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(7), - }, - End: Location{ - Line: int(748), - Column: int(87), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(14), - }, - End: Location{ - Line: int(748), - Column: int(86), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(14), - }, - End: Location{ - Line: int(748), - Column: int(65), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "std.filterMap second param must be function, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(68), - }, - End: Location{ - Line: int(748), - Column: int(86), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "map_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(68), - }, - End: Location{ - Line: int(748), - Column: int(76), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(68), - }, - End: Location{ - Line: int(748), - Column: int(71), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(748), - Column: int(77), - }, - End: Location{ - Line: int(748), - Column: int(85), - }, - file: p1, - }, - context: p9862, - freeVariables: Identifiers{ - "map_func", - }, - }, - Id: "map_func", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(10), - }, - End: Location{ - Line: int(752), - Column: int(54), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "filter_func", - "map_func", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(13), - }, - End: Location{ - Line: int(749), - Column: int(26), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(13), - }, - End: Location{ - Line: int(749), - Column: int(21), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(13), - }, - End: Location{ - Line: int(749), - Column: int(16), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(22), - }, - End: Location{ - Line: int(749), - Column: int(25), - }, - file: p1, - }, - context: p9885, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(749), - Column: int(30), - }, - End: Location{ - Line: int(749), - Column: int(37), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(7), - }, - End: Location{ - Line: int(750), - Column: int(78), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(14), - }, - End: Location{ - Line: int(750), - Column: int(77), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(14), - }, - End: Location{ - Line: int(750), - Column: int(61), - }, - file: p1, - }, - context: p9784, - freeVariables: nil, - }, - Value: "std.filterMap third param must be array, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(64), - }, - End: Location{ - Line: int(750), - Column: int(77), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(64), - }, - End: Location{ - Line: int(750), - Column: int(72), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(64), - }, - End: Location{ - Line: int(750), - Column: int(67), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(750), - Column: int(73), - }, - End: Location{ - Line: int(750), - Column: int(76), - }, - file: p1, - }, - context: p9902, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(7), - }, - End: Location{ - Line: int(752), - Column: int(54), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "arr", - "filter_func", - "map_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(7), - }, - End: Location{ - Line: int(752), - Column: int(14), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(7), - }, - End: Location{ - Line: int(752), - Column: int(10), - }, - file: p1, - }, - context: p9784, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(15), - }, - End: Location{ - Line: int(752), - Column: int(23), - }, - file: p1, - }, - context: p9913, - freeVariables: Identifiers{ - "map_func", - }, - }, - Id: "map_func", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(25), - }, - End: Location{ - Line: int(752), - Column: int(53), - }, - file: p1, - }, - context: p9913, - freeVariables: Identifiers{ - "arr", - "filter_func", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(25), - }, - End: Location{ - Line: int(752), - Column: int(35), - }, - file: p1, - }, - context: p9913, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(25), - }, - End: Location{ - Line: int(752), - Column: int(28), - }, - file: p1, - }, - context: p9913, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "filter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(36), - }, - End: Location{ - Line: int(752), - Column: int(47), - }, - file: p1, - }, - context: p9924, - freeVariables: Identifiers{ - "filter_func", - }, - }, - Id: "filter_func", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(752), - Column: int(49), - }, - End: Location{ - Line: int(752), - Column: int(52), - }, - file: p1, - }, - context: p9924, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "assertEqual", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p9932, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p9934, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p9958, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p9962, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p9965, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p9968, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p9971, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p9974, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p9977, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p9980, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p9985, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p9987, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(755), - Column: int(5), - }, - End: Location{ - Line: int(758), - Column: int(50), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(755), - Column: int(8), - }, - End: Location{ - Line: int(755), - Column: int(9), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(755), - Column: int(13), - }, - End: Location{ - Line: int(755), - Column: int(14), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(756), - Column: int(7), - }, - End: Location{ - Line: int(756), - Column: int(11), - }, - file: p1, - }, - context: p9993, - freeVariables: nil, - }, - Value: true, - }, - BranchFalse: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(7), - }, - End: Location{ - Line: int(758), - Column: int(50), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(13), - }, - End: Location{ - Line: int(758), - Column: int(50), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(13), - }, - End: Location{ - Line: int(758), - Column: int(46), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(13), - }, - End: Location{ - Line: int(758), - Column: int(37), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(13), - }, - End: Location{ - Line: int(758), - Column: int(33), - }, - file: p1, - }, - context: p9993, - freeVariables: nil, - }, - Value: "Assertion failed. ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(36), - }, - End: Location{ - Line: int(758), - Column: int(37), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(40), - }, - End: Location{ - Line: int(758), - Column: int(46), - }, - file: p1, - }, - context: p9993, - freeVariables: nil, - }, - Value: " != ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(758), - Column: int(49), - }, - End: Location{ - Line: int(758), - Column: int(50), - }, - file: p1, - }, - context: p9993, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "abs", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10026, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10028, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10052, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10056, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10059, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10062, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10065, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10068, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10071, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10074, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10079, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10081, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(5), - }, - End: Location{ - Line: int(764), - Column: int(30), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(8), - }, - End: Location{ - Line: int(761), - Column: int(19), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(8), - }, - End: Location{ - Line: int(761), - Column: int(16), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(8), - }, - End: Location{ - Line: int(761), - Column: int(11), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(17), - }, - End: Location{ - Line: int(761), - Column: int(18), - }, - file: p1, - }, - context: p10108, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(761), - Column: int(23), - }, - End: Location{ - Line: int(761), - Column: int(31), - }, - file: p1, - }, - context: p10087, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(7), - }, - End: Location{ - Line: int(762), - Column: int(58), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(13), - }, - End: Location{ - Line: int(762), - Column: int(58), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(13), - }, - End: Location{ - Line: int(762), - Column: int(44), - }, - file: p1, - }, - context: p10087, - freeVariables: nil, - }, - Value: "std.abs expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(47), - }, - End: Location{ - Line: int(762), - Column: int(58), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(47), - }, - End: Location{ - Line: int(762), - Column: int(55), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(47), - }, - End: Location{ - Line: int(762), - Column: int(50), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(762), - Column: int(56), - }, - End: Location{ - Line: int(762), - Column: int(57), - }, - file: p1, - }, - context: p10125, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(7), - }, - End: Location{ - Line: int(764), - Column: int(30), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(10), - }, - End: Location{ - Line: int(764), - Column: int(15), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(10), - }, - End: Location{ - Line: int(764), - Column: int(11), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(14), - }, - End: Location{ - Line: int(764), - Column: int(15), - }, - file: p1, - }, - context: p10087, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(21), - }, - End: Location{ - Line: int(764), - Column: int(22), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - BranchFalse: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(28), - }, - End: Location{ - Line: int(764), - Column: int(30), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Op: UnaryOp(3), - Expr: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(764), - Column: int(29), - }, - End: Location{ - Line: int(764), - Column: int(30), - }, - file: p1, - }, - context: p10087, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sign", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10144, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10146, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10170, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10174, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10177, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10180, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10183, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10186, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10189, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10192, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10197, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10199, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "n", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(5), - }, - End: Location{ - Line: int(774), - Column: int(13), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(8), - }, - End: Location{ - Line: int(767), - Column: int(19), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(8), - }, - End: Location{ - Line: int(767), - Column: int(16), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(8), - }, - End: Location{ - Line: int(767), - Column: int(11), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(17), - }, - End: Location{ - Line: int(767), - Column: int(18), - }, - file: p1, - }, - context: p10226, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(767), - Column: int(23), - }, - End: Location{ - Line: int(767), - Column: int(31), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(7), - }, - End: Location{ - Line: int(768), - Column: int(59), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(13), - }, - End: Location{ - Line: int(768), - Column: int(59), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(13), - }, - End: Location{ - Line: int(768), - Column: int(45), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: "std.sign expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(48), - }, - End: Location{ - Line: int(768), - Column: int(59), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(48), - }, - End: Location{ - Line: int(768), - Column: int(56), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(48), - }, - End: Location{ - Line: int(768), - Column: int(51), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(768), - Column: int(57), - }, - End: Location{ - Line: int(768), - Column: int(58), - }, - file: p1, - }, - context: p10243, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(770), - Column: int(7), - }, - End: Location{ - Line: int(774), - Column: int(13), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(770), - Column: int(10), - }, - End: Location{ - Line: int(770), - Column: int(15), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(770), - Column: int(10), - }, - End: Location{ - Line: int(770), - Column: int(11), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(770), - Column: int(14), - }, - End: Location{ - Line: int(770), - Column: int(15), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(771), - Column: int(9), - }, - End: Location{ - Line: int(771), - Column: int(10), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(772), - Column: int(12), - }, - End: Location{ - Line: int(774), - Column: int(13), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(772), - Column: int(15), - }, - End: Location{ - Line: int(772), - Column: int(20), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(772), - Column: int(15), - }, - End: Location{ - Line: int(772), - Column: int(16), - }, - file: p1, - }, - context: p10205, - freeVariables: Identifiers{ - "n", - }, - }, - Id: "n", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(772), - Column: int(19), - }, - End: Location{ - Line: int(772), - Column: int(20), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchTrue: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(773), - Column: int(9), - }, - End: Location{ - Line: int(773), - Column: int(11), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Op: UnaryOp(3), - Expr: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(773), - Column: int(10), - }, - End: Location{ - Line: int(773), - Column: int(11), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - BranchFalse: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(774), - Column: int(12), - }, - End: Location{ - Line: int(774), - Column: int(13), - }, - file: p1, - }, - context: p10205, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "max", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10267, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10269, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10293, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10297, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10300, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10303, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10306, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10309, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10312, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10315, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10320, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10322, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(5), - }, - End: Location{ - Line: int(782), - Column: int(29), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(8), - }, - End: Location{ - Line: int(777), - Column: int(19), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(8), - }, - End: Location{ - Line: int(777), - Column: int(16), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(8), - }, - End: Location{ - Line: int(777), - Column: int(11), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(17), - }, - End: Location{ - Line: int(777), - Column: int(18), - }, - file: p1, - }, - context: p10349, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(777), - Column: int(23), - }, - End: Location{ - Line: int(777), - Column: int(31), - }, - file: p1, - }, - context: p10328, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(7), - }, - End: Location{ - Line: int(778), - Column: int(70), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(13), - }, - End: Location{ - Line: int(778), - Column: int(70), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(13), - }, - End: Location{ - Line: int(778), - Column: int(56), - }, - file: p1, - }, - context: p10328, - freeVariables: nil, - }, - Value: "std.max first param expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(59), - }, - End: Location{ - Line: int(778), - Column: int(70), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(59), - }, - End: Location{ - Line: int(778), - Column: int(67), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(59), - }, - End: Location{ - Line: int(778), - Column: int(62), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(778), - Column: int(68), - }, - End: Location{ - Line: int(778), - Column: int(69), - }, - file: p1, - }, - context: p10366, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(10), - }, - End: Location{ - Line: int(782), - Column: int(29), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(13), - }, - End: Location{ - Line: int(779), - Column: int(24), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(13), - }, - End: Location{ - Line: int(779), - Column: int(21), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(13), - }, - End: Location{ - Line: int(779), - Column: int(16), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(22), - }, - End: Location{ - Line: int(779), - Column: int(23), - }, - file: p1, - }, - context: p10389, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(779), - Column: int(28), - }, - End: Location{ - Line: int(779), - Column: int(36), - }, - file: p1, - }, - context: p10328, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(7), - }, - End: Location{ - Line: int(780), - Column: int(71), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(13), - }, - End: Location{ - Line: int(780), - Column: int(71), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(13), - }, - End: Location{ - Line: int(780), - Column: int(57), - }, - file: p1, - }, - context: p10328, - freeVariables: nil, - }, - Value: "std.max second param expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(60), - }, - End: Location{ - Line: int(780), - Column: int(71), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(60), - }, - End: Location{ - Line: int(780), - Column: int(68), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(60), - }, - End: Location{ - Line: int(780), - Column: int(63), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(780), - Column: int(69), - }, - End: Location{ - Line: int(780), - Column: int(70), - }, - file: p1, - }, - context: p10406, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(7), - }, - End: Location{ - Line: int(782), - Column: int(29), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(10), - }, - End: Location{ - Line: int(782), - Column: int(15), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(10), - }, - End: Location{ - Line: int(782), - Column: int(11), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(7), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(14), - }, - End: Location{ - Line: int(782), - Column: int(15), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(21), - }, - End: Location{ - Line: int(782), - Column: int(22), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(782), - Column: int(28), - }, - End: Location{ - Line: int(782), - Column: int(29), - }, - file: p1, - }, - context: p10328, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "min", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10424, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10426, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10450, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10454, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10457, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10460, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10463, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10466, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10469, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10472, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10477, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10479, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(5), - }, - End: Location{ - Line: int(790), - Column: int(29), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(8), - }, - End: Location{ - Line: int(785), - Column: int(19), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(8), - }, - End: Location{ - Line: int(785), - Column: int(16), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(8), - }, - End: Location{ - Line: int(785), - Column: int(11), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(17), - }, - End: Location{ - Line: int(785), - Column: int(18), - }, - file: p1, - }, - context: p10506, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(785), - Column: int(23), - }, - End: Location{ - Line: int(785), - Column: int(31), - }, - file: p1, - }, - context: p10485, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(7), - }, - End: Location{ - Line: int(786), - Column: int(70), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(13), - }, - End: Location{ - Line: int(786), - Column: int(70), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(13), - }, - End: Location{ - Line: int(786), - Column: int(56), - }, - file: p1, - }, - context: p10485, - freeVariables: nil, - }, - Value: "std.max first param expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(59), - }, - End: Location{ - Line: int(786), - Column: int(70), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(59), - }, - End: Location{ - Line: int(786), - Column: int(67), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(59), - }, - End: Location{ - Line: int(786), - Column: int(62), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(786), - Column: int(68), - }, - End: Location{ - Line: int(786), - Column: int(69), - }, - file: p1, - }, - context: p10523, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(10), - }, - End: Location{ - Line: int(790), - Column: int(29), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(13), - }, - End: Location{ - Line: int(787), - Column: int(24), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(13), - }, - End: Location{ - Line: int(787), - Column: int(21), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(13), - }, - End: Location{ - Line: int(787), - Column: int(16), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(22), - }, - End: Location{ - Line: int(787), - Column: int(23), - }, - file: p1, - }, - context: p10546, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(787), - Column: int(28), - }, - End: Location{ - Line: int(787), - Column: int(36), - }, - file: p1, - }, - context: p10485, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(7), - }, - End: Location{ - Line: int(788), - Column: int(71), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(13), - }, - End: Location{ - Line: int(788), - Column: int(71), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(13), - }, - End: Location{ - Line: int(788), - Column: int(57), - }, - file: p1, - }, - context: p10485, - freeVariables: nil, - }, - Value: "std.max second param expected number, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(60), - }, - End: Location{ - Line: int(788), - Column: int(71), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(60), - }, - End: Location{ - Line: int(788), - Column: int(68), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(60), - }, - End: Location{ - Line: int(788), - Column: int(63), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(788), - Column: int(69), - }, - End: Location{ - Line: int(788), - Column: int(70), - }, - file: p1, - }, - context: p10563, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(7), - }, - End: Location{ - Line: int(790), - Column: int(29), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(10), - }, - End: Location{ - Line: int(790), - Column: int(15), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(10), - }, - End: Location{ - Line: int(790), - Column: int(11), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(9), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(14), - }, - End: Location{ - Line: int(790), - Column: int(15), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(21), - }, - End: Location{ - Line: int(790), - Column: int(22), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(790), - Column: int(28), - }, - End: Location{ - Line: int(790), - Column: int(29), - }, - file: p1, - }, - context: p10485, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flattenArrays", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10581, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10583, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10607, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10611, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10614, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10617, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10620, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10623, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10626, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10629, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10634, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10636, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arrs", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(5), - }, - End: Location{ - Line: int(793), - Column: int(46), - }, - file: p1, - }, - context: p10642, - freeVariables: Identifiers{ - "arrs", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(5), - }, - End: Location{ - Line: int(793), - Column: int(14), - }, - file: p1, - }, - context: p10642, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(5), - }, - End: Location{ - Line: int(793), - Column: int(8), - }, - file: p1, - }, - context: p10642, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(15), - }, - End: Location{ - Line: int(793), - Column: int(35), - }, - file: p1, - }, - context: p10651, - freeVariables: nil, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(30), - }, - End: Location{ - Line: int(793), - Column: int(35), - }, - file: p1, - }, - context: p10654, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(30), - }, - End: Location{ - Line: int(793), - Column: int(31), - }, - file: p1, - }, - context: p10654, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(34), - }, - End: Location{ - Line: int(793), - Column: int(35), - }, - file: p1, - }, - context: p10654, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(37), - }, - End: Location{ - Line: int(793), - Column: int(41), - }, - file: p1, - }, - context: p10651, - freeVariables: Identifiers{ - "arrs", - }, - }, - Id: "arrs", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(793), - Column: int(43), - }, - End: Location{ - Line: int(793), - Column: int(45), - }, - file: p1, - }, - context: p10651, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestIni", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p10667, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p10669, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p10693, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p10697, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p10700, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p10703, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p10706, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p10709, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p10712, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p10715, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p10720, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p10722, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ini", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(796), - Column: int(5), - }, - End: Location{ - Line: int(813), - Column: int(71), - }, - file: p1, - }, - context: p10728, - freeVariables: Identifiers{ - "ini", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "body_lines", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(796), - Column: int(11), - }, - End: Location{ - Line: int(805), - Column: int(9), - }, - file: p1, - }, - context: p10732, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "body", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(797), - Column: int(7), - }, - End: Location{ - Line: int(805), - Column: int(9), - }, - file: p1, - }, - context: p10736, - freeVariables: Identifiers{ - "body", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(797), - Column: int(7), - }, - End: Location{ - Line: int(797), - Column: int(15), - }, - file: p1, - }, - context: p10736, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(797), - Column: int(7), - }, - End: Location{ - Line: int(797), - Column: int(10), - }, - file: p1, - }, - context: p10736, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(797), - Column: int(16), - }, - End: Location{ - Line: int(797), - Column: int(18), - }, - file: p1, - }, - context: p10745, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "body", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "body", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "body", - "k", - "std", - }, - }, - Elements: Nodes{ - &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(798), - Column: int(9), - }, - End: Location{ - Line: int(802), - Column: int(45), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "body", - "k", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "value_or_values", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(798), - Column: int(33), - }, - End: Location{ - Line: int(798), - Column: int(40), - }, - file: p1, - }, - context: p10765, - freeVariables: Identifiers{ - "body", - "k", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(798), - Column: int(33), - }, - End: Location{ - Line: int(798), - Column: int(37), - }, - file: p1, - }, - context: p10765, - freeVariables: Identifiers{ - "body", - }, - }, - Id: "body", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(798), - Column: int(38), - }, - End: Location{ - Line: int(798), - Column: int(39), - }, - file: p1, - }, - context: p10765, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(9), - }, - End: Location{ - Line: int(802), - Column: int(45), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "k", - "std", - "value_or_values", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "value_or_values", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(12), - }, - End: Location{ - Line: int(799), - Column: int(37), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "std", - "value_or_values", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(12), - }, - End: Location{ - Line: int(799), - Column: int(20), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(12), - }, - End: Location{ - Line: int(799), - Column: int(15), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(21), - }, - End: Location{ - Line: int(799), - Column: int(36), - }, - file: p1, - }, - context: p10790, - freeVariables: Identifiers{ - "value_or_values", - }, - }, - Id: "value_or_values", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(799), - Column: int(41), - }, - End: Location{ - Line: int(799), - Column: int(48), - }, - file: p1, - }, - context: p10761, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "std", - "value_or_values", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "std", - "value", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(800), - Column: int(12), - }, - End: Location{ - Line: int(800), - Column: int(21), - }, - file: p1, - }, - context: p10816, - freeVariables: nil, - }, - Value: "%s = %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(800), - Column: int(24), - }, - End: Location{ - Line: int(800), - Column: int(34), - }, - file: p1, - }, - context: p10816, - freeVariables: Identifiers{ - "k", - "value", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(800), - Column: int(25), - }, - End: Location{ - Line: int(800), - Column: int(26), - }, - file: p1, - }, - context: p10821, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(800), - Column: int(28), - }, - End: Location{ - Line: int(800), - Column: int(33), - }, - file: p1, - }, - context: p10821, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(800), - Column: int(48), - }, - End: Location{ - Line: int(800), - Column: int(63), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "value_or_values", - }, - }, - Id: "value_or_values", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(802), - Column: int(11), - }, - End: Location{ - Line: int(802), - Column: int(45), - }, - file: p1, - }, - context: p10761, - freeVariables: Identifiers{ - "k", - "std", - "value_or_values", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "std", - "value_or_values", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(802), - Column: int(12), - }, - End: Location{ - Line: int(802), - Column: int(21), - }, - file: p1, - }, - context: p10839, - freeVariables: nil, - }, - Value: "%s = %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(802), - Column: int(24), - }, - End: Location{ - Line: int(802), - Column: int(44), - }, - file: p1, - }, - context: p10839, - freeVariables: Identifiers{ - "k", - "value_or_values", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(802), - Column: int(25), - }, - End: Location{ - Line: int(802), - Column: int(26), - }, - file: p1, - }, - context: p10844, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(802), - Column: int(28), - }, - End: Location{ - Line: int(802), - Column: int(43), - }, - file: p1, - }, - context: p10844, - freeVariables: Identifiers{ - "value_or_values", - }, - }, - Id: "value_or_values", - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(804), - Column: int(18), - }, - End: Location{ - Line: int(804), - Column: int(40), - }, - file: p1, - }, - context: p10745, - freeVariables: Identifiers{ - "body", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(804), - Column: int(18), - }, - End: Location{ - Line: int(804), - Column: int(34), - }, - file: p1, - }, - context: p10745, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(804), - Column: int(18), - }, - End: Location{ - Line: int(804), - Column: int(21), - }, - file: p1, - }, - context: p10745, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(804), - Column: int(35), - }, - End: Location{ - Line: int(804), - Column: int(39), - }, - file: p1, - }, - context: p10857, - freeVariables: Identifiers{ - "body", - }, - }, - Id: "body", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(5), - }, - End: Location{ - Line: int(813), - Column: int(71), - }, - file: p1, - }, - context: p10728, - freeVariables: Identifiers{ - "body_lines", - "ini", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "section_lines", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(11), - }, - End: Location{ - Line: int(807), - Column: int(79), - }, - file: p1, - }, - context: p10863, - freeVariables: Identifiers{ - "body_lines", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "sname", - "sbody", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(41), - }, - End: Location{ - Line: int(807), - Column: int(79), - }, - file: p1, - }, - context: p10867, - freeVariables: Identifiers{ - "body_lines", - "sbody", - "sname", - "std", - }, - }, - Left: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(41), - }, - End: Location{ - Line: int(807), - Column: int(59), - }, - file: p1, - }, - context: p10867, - freeVariables: Identifiers{ - "sname", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "sname", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(42), - }, - End: Location{ - Line: int(807), - Column: int(48), - }, - file: p1, - }, - context: p10881, - freeVariables: nil, - }, - Value: "[%s]", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(51), - }, - End: Location{ - Line: int(807), - Column: int(58), - }, - file: p1, - }, - context: p10881, - freeVariables: Identifiers{ - "sname", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(52), - }, - End: Location{ - Line: int(807), - Column: int(57), - }, - file: p1, - }, - context: p10886, - freeVariables: Identifiers{ - "sname", - }, - }, - Id: "sname", - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(62), - }, - End: Location{ - Line: int(807), - Column: int(79), - }, - file: p1, - }, - context: p10867, - freeVariables: Identifiers{ - "body_lines", - "sbody", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(62), - }, - End: Location{ - Line: int(807), - Column: int(72), - }, - file: p1, - }, - context: p10867, - freeVariables: Identifiers{ - "body_lines", - }, - }, - Id: "body_lines", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(807), - Column: int(73), - }, - End: Location{ - Line: int(807), - Column: int(78), - }, - file: p1, - }, - context: p10894, - freeVariables: Identifiers{ - "sbody", - }, - }, - Id: "sbody", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "main_body", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(23), - }, - End: Location{ - Line: int(808), - Column: int(86), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "body_lines", - "ini", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(26), - }, - End: Location{ - Line: int(808), - Column: int(52), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "ini", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(26), - }, - End: Location{ - Line: int(808), - Column: int(39), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(26), - }, - End: Location{ - Line: int(808), - Column: int(29), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHas", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(40), - }, - End: Location{ - Line: int(808), - Column: int(43), - }, - file: p1, - }, - context: p10908, - freeVariables: Identifiers{ - "ini", - }, - }, - Id: "ini", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(45), - }, - End: Location{ - Line: int(808), - Column: int(51), - }, - file: p1, - }, - context: p10908, - freeVariables: nil, - }, - Value: "main", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(58), - }, - End: Location{ - Line: int(808), - Column: int(78), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "body_lines", - "ini", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(58), - }, - End: Location{ - Line: int(808), - Column: int(68), - }, - file: p1, - }, - context: p10897, - freeVariables: Identifiers{ - "body_lines", - }, - }, - Id: "body_lines", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(69), - }, - End: Location{ - Line: int(808), - Column: int(77), - }, - file: p1, - }, - context: p10917, - freeVariables: Identifiers{ - "ini", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(69), - }, - End: Location{ - Line: int(808), - Column: int(72), - }, - file: p1, - }, - context: p10917, - freeVariables: Identifiers{ - "ini", - }, - }, - Id: "ini", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "main", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(808), - Column: int(84), - }, - End: Location{ - Line: int(808), - Column: int(86), - }, - file: p1, - }, - context: p10897, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "all_sections", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ini", - "section_lines", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ini", - "section_lines", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ini", - "k", - "section_lines", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(7), - }, - End: Location{ - Line: int(810), - Column: int(40), - }, - file: p1, - }, - context: p10938, - freeVariables: Identifiers{ - "ini", - "k", - "section_lines", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(7), - }, - End: Location{ - Line: int(810), - Column: int(20), - }, - file: p1, - }, - context: p10938, - freeVariables: Identifiers{ - "section_lines", - }, - }, - Id: "section_lines", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(21), - }, - End: Location{ - Line: int(810), - Column: int(22), - }, - file: p1, - }, - context: p10944, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(24), - }, - End: Location{ - Line: int(810), - Column: int(39), - }, - file: p1, - }, - context: p10944, - freeVariables: Identifiers{ - "ini", - "k", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(24), - }, - End: Location{ - Line: int(810), - Column: int(36), - }, - file: p1, - }, - context: p10944, - freeVariables: Identifiers{ - "ini", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(24), - }, - End: Location{ - Line: int(810), - Column: int(27), - }, - file: p1, - }, - context: p10944, - freeVariables: Identifiers{ - "ini", - }, - }, - Id: "ini", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sections", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(810), - Column: int(37), - }, - End: Location{ - Line: int(810), - Column: int(38), - }, - file: p1, - }, - context: p10944, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(811), - Column: int(16), - }, - End: Location{ - Line: int(811), - Column: int(46), - }, - file: p1, - }, - context: p10956, - freeVariables: Identifiers{ - "ini", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(811), - Column: int(16), - }, - End: Location{ - Line: int(811), - Column: int(32), - }, - file: p1, - }, - context: p10956, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(811), - Column: int(16), - }, - End: Location{ - Line: int(811), - Column: int(19), - }, - file: p1, - }, - context: p10956, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(811), - Column: int(33), - }, - End: Location{ - Line: int(811), - Column: int(45), - }, - file: p1, - }, - context: p10965, - freeVariables: Identifiers{ - "ini", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(811), - Column: int(33), - }, - End: Location{ - Line: int(811), - Column: int(36), - }, - file: p1, - }, - context: p10965, - freeVariables: Identifiers{ - "ini", - }, - }, - Id: "ini", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sections", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(5), - }, - End: Location{ - Line: int(813), - Column: int(71), - }, - file: p1, - }, - context: p10728, - freeVariables: Identifiers{ - "all_sections", - "main_body", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(5), - }, - End: Location{ - Line: int(813), - Column: int(13), - }, - file: p1, - }, - context: p10728, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(5), - }, - End: Location{ - Line: int(813), - Column: int(8), - }, - file: p1, - }, - context: p10728, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(14), - }, - End: Location{ - Line: int(813), - Column: int(18), - }, - file: p1, - }, - context: p10979, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(20), - }, - End: Location{ - Line: int(813), - Column: int(70), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "all_sections", - "main_body", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(20), - }, - End: Location{ - Line: int(813), - Column: int(63), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "all_sections", - "main_body", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(20), - }, - End: Location{ - Line: int(813), - Column: int(29), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "main_body", - }, - }, - Id: "main_body", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(32), - }, - End: Location{ - Line: int(813), - Column: int(63), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "all_sections", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(32), - }, - End: Location{ - Line: int(813), - Column: int(49), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(32), - }, - End: Location{ - Line: int(813), - Column: int(35), - }, - file: p1, - }, - context: p10979, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flattenArrays", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(50), - }, - End: Location{ - Line: int(813), - Column: int(62), - }, - file: p1, - }, - context: p10995, - freeVariables: Identifiers{ - "all_sections", - }, - }, - Id: "all_sections", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(66), - }, - End: Location{ - Line: int(813), - Column: int(70), - }, - file: p1, - }, - context: p10979, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(813), - Column: int(67), - }, - End: Location{ - Line: int(813), - Column: int(69), - }, - file: p1, - }, - context: p11000, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11005, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11007, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11031, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11035, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11038, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11041, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11044, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11047, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11050, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11053, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11058, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11060, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str_", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(816), - Column: int(5), - }, - End: Location{ - Line: int(838), - Column: int(70), - }, - file: p1, - }, - context: p11066, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(816), - Column: int(17), - }, - End: Location{ - Line: int(816), - Column: int(35), - }, - file: p1, - }, - context: p11070, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(816), - Column: int(17), - }, - End: Location{ - Line: int(816), - Column: int(29), - }, - file: p1, - }, - context: p11070, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(816), - Column: int(17), - }, - End: Location{ - Line: int(816), - Column: int(20), - }, - file: p1, - }, - context: p11070, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(816), - Column: int(30), - }, - End: Location{ - Line: int(816), - Column: int(34), - }, - file: p1, - }, - context: p11079, - freeVariables: Identifiers{ - "str_", - }, - }, - Id: "str_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(817), - Column: int(5), - }, - End: Location{ - Line: int(838), - Column: int(70), - }, - file: p1, - }, - context: p11066, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "trans", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(817), - Column: int(11), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11085, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(818), - Column: int(7), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(818), - Column: int(10), - }, - End: Location{ - Line: int(818), - Column: int(12), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(818), - Column: int(16), - }, - End: Location{ - Line: int(818), - Column: int(19), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(819), - Column: int(9), - }, - End: Location{ - Line: int(819), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(820), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(820), - Column: int(15), - }, - End: Location{ - Line: int(820), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(820), - Column: int(21), - }, - End: Location{ - Line: int(820), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(821), - Column: int(9), - }, - End: Location{ - Line: int(821), - Column: int(15), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\\\", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(822), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(822), - Column: int(15), - }, - End: Location{ - Line: int(822), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(822), - Column: int(21), - }, - End: Location{ - Line: int(822), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\b", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(823), - Column: int(9), - }, - End: Location{ - Line: int(823), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\b", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(824), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(824), - Column: int(15), - }, - End: Location{ - Line: int(824), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(824), - Column: int(21), - }, - End: Location{ - Line: int(824), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(825), - Column: int(9), - }, - End: Location{ - Line: int(825), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\f", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(826), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(826), - Column: int(15), - }, - End: Location{ - Line: int(826), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(826), - Column: int(21), - }, - End: Location{ - Line: int(826), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(827), - Column: int(9), - }, - End: Location{ - Line: int(827), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(828), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(828), - Column: int(15), - }, - End: Location{ - Line: int(828), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(828), - Column: int(21), - }, - End: Location{ - Line: int(828), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\r", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(829), - Column: int(9), - }, - End: Location{ - Line: int(829), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\r", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(830), - Column: int(12), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(830), - Column: int(15), - }, - End: Location{ - Line: int(830), - Column: int(17), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(830), - Column: int(21), - }, - End: Location{ - Line: int(830), - Column: int(25), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\t", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(831), - Column: int(9), - }, - End: Location{ - Line: int(831), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\t", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(833), - Column: int(9), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "cp", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(833), - Column: int(20), - }, - End: Location{ - Line: int(833), - Column: int(37), - }, - file: p1, - }, - context: p11191, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(833), - Column: int(20), - }, - End: Location{ - Line: int(833), - Column: int(33), - }, - file: p1, - }, - context: p11191, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(833), - Column: int(20), - }, - End: Location{ - Line: int(833), - Column: int(23), - }, - file: p1, - }, - context: p11191, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(833), - Column: int(34), - }, - End: Location{ - Line: int(833), - Column: int(36), - }, - file: p1, - }, - context: p11200, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(9), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - "cp", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(12), - }, - End: Location{ - Line: int(834), - Column: int(47), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(12), - }, - End: Location{ - Line: int(834), - Column: int(19), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(12), - }, - End: Location{ - Line: int(834), - Column: int(14), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(17), - }, - End: Location{ - Line: int(834), - Column: int(19), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: float64(32), - OriginalString: "32", - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(24), - }, - End: Location{ - Line: int(834), - Column: int(46), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(24), - }, - End: Location{ - Line: int(834), - Column: int(33), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(24), - }, - End: Location{ - Line: int(834), - Column: int(26), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Op: BinaryOp(8), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(30), - }, - End: Location{ - Line: int(834), - Column: int(33), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: float64(126), - OriginalString: "126", - }, - }, - Op: BinaryOp(17), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(37), - }, - End: Location{ - Line: int(834), - Column: int(46), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(37), - }, - End: Location{ - Line: int(834), - Column: int(39), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - Op: BinaryOp(10), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(834), - Column: int(43), - }, - End: Location{ - Line: int(834), - Column: int(46), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: float64(159), - OriginalString: "159", - }, - }, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "cp", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(835), - Column: int(11), - }, - End: Location{ - Line: int(835), - Column: int(20), - }, - file: p1, - }, - context: p11089, - freeVariables: nil, - }, - Value: "\\u%04x", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(835), - Column: int(23), - }, - End: Location{ - Line: int(835), - Column: int(27), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "cp", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(835), - Column: int(24), - }, - End: Location{ - Line: int(835), - Column: int(26), - }, - file: p1, - }, - context: p11236, - freeVariables: Identifiers{ - "cp", - }, - }, - Id: "cp", - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(837), - Column: int(11), - }, - End: Location{ - Line: int(837), - Column: int(13), - }, - file: p1, - }, - context: p11089, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(5), - }, - End: Location{ - Line: int(838), - Column: int(11), - }, - file: p1, - }, - context: p11066, - freeVariables: nil, - }, - Value: "\"%s\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(14), - }, - End: Location{ - Line: int(838), - Column: int(70), - }, - file: p1, - }, - context: p11066, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(14), - }, - End: Location{ - Line: int(838), - Column: int(22), - }, - file: p1, - }, - context: p11066, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(14), - }, - End: Location{ - Line: int(838), - Column: int(17), - }, - file: p1, - }, - context: p11066, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(23), - }, - End: Location{ - Line: int(838), - Column: int(25), - }, - file: p1, - }, - context: p11258, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "trans", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "trans", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(28), - }, - End: Location{ - Line: int(838), - Column: int(37), - }, - file: p1, - }, - context: p11274, - freeVariables: Identifiers{ - "ch", - "trans", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(28), - }, - End: Location{ - Line: int(838), - Column: int(33), - }, - file: p1, - }, - context: p11274, - freeVariables: Identifiers{ - "trans", - }, - }, - Id: "trans", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(34), - }, - End: Location{ - Line: int(838), - Column: int(36), - }, - file: p1, - }, - context: p11280, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(48), - }, - End: Location{ - Line: int(838), - Column: int(68), - }, - file: p1, - }, - context: p11258, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(48), - }, - End: Location{ - Line: int(838), - Column: int(63), - }, - file: p1, - }, - context: p11258, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(48), - }, - End: Location{ - Line: int(838), - Column: int(51), - }, - file: p1, - }, - context: p11258, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(838), - Column: int(64), - }, - End: Location{ - Line: int(838), - Column: int(67), - }, - file: p1, - }, - context: p11291, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11297, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11299, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11323, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11327, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11330, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11333, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11336, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11339, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11342, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11345, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11350, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11352, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(841), - Column: int(5), - }, - End: Location{ - Line: int(841), - Column: int(30), - }, - file: p1, - }, - context: p11358, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(841), - Column: int(5), - }, - End: Location{ - Line: int(841), - Column: int(25), - }, - file: p1, - }, - context: p11358, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(841), - Column: int(5), - }, - End: Location{ - Line: int(841), - Column: int(8), - }, - file: p1, - }, - context: p11358, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(841), - Column: int(26), - }, - End: Location{ - Line: int(841), - Column: int(29), - }, - file: p1, - }, - context: p11367, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringBash", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11373, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11375, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11399, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11403, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11406, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11409, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11412, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11415, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11418, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11421, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11426, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11428, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str_", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(844), - Column: int(5), - }, - End: Location{ - Line: int(850), - Column: int(70), - }, - file: p1, - }, - context: p11434, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(844), - Column: int(17), - }, - End: Location{ - Line: int(844), - Column: int(35), - }, - file: p1, - }, - context: p11438, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(844), - Column: int(17), - }, - End: Location{ - Line: int(844), - Column: int(29), - }, - file: p1, - }, - context: p11438, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(844), - Column: int(17), - }, - End: Location{ - Line: int(844), - Column: int(20), - }, - file: p1, - }, - context: p11438, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(844), - Column: int(30), - }, - End: Location{ - Line: int(844), - Column: int(34), - }, - file: p1, - }, - context: p11447, - freeVariables: Identifiers{ - "str_", - }, - }, - Id: "str_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(845), - Column: int(5), - }, - End: Location{ - Line: int(850), - Column: int(70), - }, - file: p1, - }, - context: p11434, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "trans", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(845), - Column: int(11), - }, - End: Location{ - Line: int(849), - Column: int(11), - }, - file: p1, - }, - context: p11453, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(846), - Column: int(7), - }, - End: Location{ - Line: int(849), - Column: int(11), - }, - file: p1, - }, - context: p11457, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(846), - Column: int(10), - }, - End: Location{ - Line: int(846), - Column: int(12), - }, - file: p1, - }, - context: p11457, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(846), - Column: int(16), - }, - End: Location{ - Line: int(846), - Column: int(19), - }, - file: p1, - }, - context: p11457, - freeVariables: nil, - }, - Value: "'", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(847), - Column: int(9), - }, - End: Location{ - Line: int(847), - Column: int(18), - }, - file: p1, - }, - context: p11457, - freeVariables: nil, - }, - Value: "'\"'\"'", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(849), - Column: int(9), - }, - End: Location{ - Line: int(849), - Column: int(11), - }, - file: p1, - }, - context: p11457, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(5), - }, - End: Location{ - Line: int(850), - Column: int(11), - }, - file: p1, - }, - context: p11434, - freeVariables: nil, - }, - Value: "'%s'", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(14), - }, - End: Location{ - Line: int(850), - Column: int(70), - }, - file: p1, - }, - context: p11434, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(14), - }, - End: Location{ - Line: int(850), - Column: int(22), - }, - file: p1, - }, - context: p11434, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(14), - }, - End: Location{ - Line: int(850), - Column: int(17), - }, - file: p1, - }, - context: p11434, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(23), - }, - End: Location{ - Line: int(850), - Column: int(25), - }, - file: p1, - }, - context: p11491, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "trans", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "trans", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(28), - }, - End: Location{ - Line: int(850), - Column: int(37), - }, - file: p1, - }, - context: p11507, - freeVariables: Identifiers{ - "ch", - "trans", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(28), - }, - End: Location{ - Line: int(850), - Column: int(33), - }, - file: p1, - }, - context: p11507, - freeVariables: Identifiers{ - "trans", - }, - }, - Id: "trans", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(34), - }, - End: Location{ - Line: int(850), - Column: int(36), - }, - file: p1, - }, - context: p11513, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(48), - }, - End: Location{ - Line: int(850), - Column: int(68), - }, - file: p1, - }, - context: p11491, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(48), - }, - End: Location{ - Line: int(850), - Column: int(63), - }, - file: p1, - }, - context: p11491, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(48), - }, - End: Location{ - Line: int(850), - Column: int(51), - }, - file: p1, - }, - context: p11491, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(850), - Column: int(64), - }, - End: Location{ - Line: int(850), - Column: int(67), - }, - file: p1, - }, - context: p11524, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringDollars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11530, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11532, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11556, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11560, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11563, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11566, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11569, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11572, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11575, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11578, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11583, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11585, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str_", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(853), - Column: int(5), - }, - End: Location{ - Line: int(859), - Column: int(69), - }, - file: p1, - }, - context: p11591, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(853), - Column: int(17), - }, - End: Location{ - Line: int(853), - Column: int(35), - }, - file: p1, - }, - context: p11595, - freeVariables: Identifiers{ - "std", - "str_", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(853), - Column: int(17), - }, - End: Location{ - Line: int(853), - Column: int(29), - }, - file: p1, - }, - context: p11595, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(853), - Column: int(17), - }, - End: Location{ - Line: int(853), - Column: int(20), - }, - file: p1, - }, - context: p11595, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(853), - Column: int(30), - }, - End: Location{ - Line: int(853), - Column: int(34), - }, - file: p1, - }, - context: p11604, - freeVariables: Identifiers{ - "str_", - }, - }, - Id: "str_", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(854), - Column: int(5), - }, - End: Location{ - Line: int(859), - Column: int(69), - }, - file: p1, - }, - context: p11591, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "trans", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(854), - Column: int(11), - }, - End: Location{ - Line: int(858), - Column: int(11), - }, - file: p1, - }, - context: p11610, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "ch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(855), - Column: int(7), - }, - End: Location{ - Line: int(858), - Column: int(11), - }, - file: p1, - }, - context: p11614, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "ch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(855), - Column: int(10), - }, - End: Location{ - Line: int(855), - Column: int(12), - }, - file: p1, - }, - context: p11614, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(855), - Column: int(16), - }, - End: Location{ - Line: int(855), - Column: int(19), - }, - file: p1, - }, - context: p11614, - freeVariables: nil, - }, - Value: "$", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(856), - Column: int(9), - }, - End: Location{ - Line: int(856), - Column: int(13), - }, - file: p1, - }, - context: p11614, - freeVariables: nil, - }, - Value: "$$", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(858), - Column: int(9), - }, - End: Location{ - Line: int(858), - Column: int(11), - }, - file: p1, - }, - context: p11614, - freeVariables: Identifiers{ - "ch", - }, - }, - Id: "ch", - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(5), - }, - End: Location{ - Line: int(859), - Column: int(69), - }, - file: p1, - }, - context: p11591, - freeVariables: Identifiers{ - "std", - "str", - "trans", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(5), - }, - End: Location{ - Line: int(859), - Column: int(14), - }, - file: p1, - }, - context: p11591, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(5), - }, - End: Location{ - Line: int(859), - Column: int(8), - }, - file: p1, - }, - context: p11591, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(15), - }, - End: Location{ - Line: int(859), - Column: int(42), - }, - file: p1, - }, - context: p11639, - freeVariables: Identifiers{ - "trans", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(30), - }, - End: Location{ - Line: int(859), - Column: int(42), - }, - file: p1, - }, - context: p11643, - freeVariables: Identifiers{ - "a", - "b", - "trans", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(30), - }, - End: Location{ - Line: int(859), - Column: int(31), - }, - file: p1, - }, - context: p11643, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(34), - }, - End: Location{ - Line: int(859), - Column: int(42), - }, - file: p1, - }, - context: p11643, - freeVariables: Identifiers{ - "b", - "trans", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(34), - }, - End: Location{ - Line: int(859), - Column: int(39), - }, - file: p1, - }, - context: p11643, - freeVariables: Identifiers{ - "trans", - }, - }, - Id: "trans", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(40), - }, - End: Location{ - Line: int(859), - Column: int(41), - }, - file: p1, - }, - context: p11653, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(44), - }, - End: Location{ - Line: int(859), - Column: int(64), - }, - file: p1, - }, - context: p11639, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(44), - }, - End: Location{ - Line: int(859), - Column: int(59), - }, - file: p1, - }, - context: p11639, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(44), - }, - End: Location{ - Line: int(859), - Column: int(47), - }, - file: p1, - }, - context: p11639, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "stringChars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(60), - }, - End: Location{ - Line: int(859), - Column: int(63), - }, - file: p1, - }, - context: p11664, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(859), - Column: int(66), - }, - End: Location{ - Line: int(859), - Column: int(68), - }, - file: p1, - }, - context: p11639, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11671, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11673, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11697, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11701, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11704, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11707, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11710, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11713, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11716, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11719, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11724, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11726, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(861), - Column: int(25), - }, - End: Location{ - Line: int(861), - Column: int(58), - }, - file: p1, - }, - context: p11732, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(861), - Column: int(25), - }, - End: Location{ - Line: int(861), - Column: int(43), - }, - file: p1, - }, - context: p11732, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(861), - Column: int(25), - }, - End: Location{ - Line: int(861), - Column: int(28), - }, - file: p1, - }, - context: p11732, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestJsonEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(861), - Column: int(44), - }, - End: Location{ - Line: int(861), - Column: int(49), - }, - file: p1, - }, - context: p11741, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(861), - Column: int(51), - }, - End: Location{ - Line: int(861), - Column: int(57), - }, - file: p1, - }, - context: p11741, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestJsonEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p11748, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p11750, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p11774, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p11778, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p11781, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p11784, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p11787, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p11790, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p11793, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p11796, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p11801, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p11803, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - "indent", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(864), - Column: int(5), - }, - End: Location{ - Line: int(898), - Column: int(23), - }, - file: p1, - }, - context: p11809, - freeVariables: Identifiers{ - "indent", - "std", - "value", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(864), - Column: int(11), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11813, - freeVariables: Identifiers{ - "aux", - "indent", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - "path", - "cindent", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(865), - Column: int(7), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(865), - Column: int(10), - }, - End: Location{ - Line: int(865), - Column: int(11), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(865), - Column: int(15), - }, - End: Location{ - Line: int(865), - Column: int(19), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(866), - Column: int(9), - }, - End: Location{ - Line: int(866), - Column: int(15), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "true", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(867), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(867), - Column: int(15), - }, - End: Location{ - Line: int(867), - Column: int(16), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(867), - Column: int(20), - }, - End: Location{ - Line: int(867), - Column: int(25), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(868), - Column: int(9), - }, - End: Location{ - Line: int(868), - Column: int(16), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "false", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(869), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(869), - Column: int(15), - }, - End: Location{ - Line: int(869), - Column: int(16), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(869), - Column: int(20), - }, - End: Location{ - Line: int(869), - Column: int(24), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(870), - Column: int(9), - }, - End: Location{ - Line: int(870), - Column: int(15), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "null", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(15), - }, - End: Location{ - Line: int(871), - Column: int(26), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(15), - }, - End: Location{ - Line: int(871), - Column: int(23), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(15), - }, - End: Location{ - Line: int(871), - Column: int(18), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(24), - }, - End: Location{ - Line: int(871), - Column: int(25), - }, - file: p1, - }, - context: p11878, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(871), - Column: int(30), - }, - End: Location{ - Line: int(871), - Column: int(38), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(872), - Column: int(9), - }, - End: Location{ - Line: int(872), - Column: int(15), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(872), - Column: int(9), - }, - End: Location{ - Line: int(872), - Column: int(11), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(872), - Column: int(14), - }, - End: Location{ - Line: int(872), - Column: int(15), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(15), - }, - End: Location{ - Line: int(873), - Column: int(26), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(15), - }, - End: Location{ - Line: int(873), - Column: int(23), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(15), - }, - End: Location{ - Line: int(873), - Column: int(18), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(24), - }, - End: Location{ - Line: int(873), - Column: int(25), - }, - file: p1, - }, - context: p11905, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(873), - Column: int(30), - }, - End: Location{ - Line: int(873), - Column: int(38), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(874), - Column: int(9), - }, - End: Location{ - Line: int(874), - Column: int(32), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(874), - Column: int(9), - }, - End: Location{ - Line: int(874), - Column: int(29), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(874), - Column: int(9), - }, - End: Location{ - Line: int(874), - Column: int(12), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(874), - Column: int(30), - }, - End: Location{ - Line: int(874), - Column: int(31), - }, - file: p1, - }, - context: p11917, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(15), - }, - End: Location{ - Line: int(875), - Column: int(26), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(15), - }, - End: Location{ - Line: int(875), - Column: int(23), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(15), - }, - End: Location{ - Line: int(875), - Column: int(18), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(24), - }, - End: Location{ - Line: int(875), - Column: int(25), - }, - file: p1, - }, - context: p11938, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(875), - Column: int(30), - }, - End: Location{ - Line: int(875), - Column: int(40), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(876), - Column: int(9), - }, - End: Location{ - Line: int(876), - Column: int(54), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "path", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(876), - Column: int(15), - }, - End: Location{ - Line: int(876), - Column: int(54), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "path", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(876), - Column: int(15), - }, - End: Location{ - Line: int(876), - Column: int(47), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "Tried to manifest function at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(876), - Column: int(50), - }, - End: Location{ - Line: int(876), - Column: int(54), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(15), - }, - End: Location{ - Line: int(877), - Column: int(26), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(15), - }, - End: Location{ - Line: int(877), - Column: int(23), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(15), - }, - End: Location{ - Line: int(877), - Column: int(18), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(24), - }, - End: Location{ - Line: int(877), - Column: int(25), - }, - file: p1, - }, - context: p11967, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(877), - Column: int(30), - }, - End: Location{ - Line: int(877), - Column: int(37), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "range", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(23), - }, - End: Location{ - Line: int(878), - Column: int(54), - }, - file: p1, - }, - context: p11974, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(23), - }, - End: Location{ - Line: int(878), - Column: int(32), - }, - file: p1, - }, - context: p11974, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(23), - }, - End: Location{ - Line: int(878), - Column: int(26), - }, - file: p1, - }, - context: p11974, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(33), - }, - End: Location{ - Line: int(878), - Column: int(34), - }, - file: p1, - }, - context: p11983, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(36), - }, - End: Location{ - Line: int(878), - Column: int(53), - }, - file: p1, - }, - context: p11983, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(36), - }, - End: Location{ - Line: int(878), - Column: int(49), - }, - file: p1, - }, - context: p11983, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(36), - }, - End: Location{ - Line: int(878), - Column: int(46), - }, - file: p1, - }, - context: p11983, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(36), - }, - End: Location{ - Line: int(878), - Column: int(39), - }, - file: p1, - }, - context: p11983, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(47), - }, - End: Location{ - Line: int(878), - Column: int(48), - }, - file: p1, - }, - context: p11995, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(878), - Column: int(52), - }, - End: Location{ - Line: int(878), - Column: int(53), - }, - file: p1, - }, - context: p11983, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(879), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "range", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "new_indent", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(879), - Column: int(28), - }, - End: Location{ - Line: int(879), - Column: int(44), - }, - file: p1, - }, - context: p12002, - freeVariables: Identifiers{ - "cindent", - "indent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(879), - Column: int(28), - }, - End: Location{ - Line: int(879), - Column: int(35), - }, - file: p1, - }, - context: p12002, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(879), - Column: int(38), - }, - End: Location{ - Line: int(879), - Column: int(44), - }, - file: p1, - }, - context: p12002, - freeVariables: Identifiers{ - "indent", - }, - }, - Id: "indent", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(880), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "new_indent", - "path", - "range", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "lines", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(880), - Column: int(23), - }, - End: Location{ - Line: int(886), - Column: int(47), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "aux", - "cindent", - "new_indent", - "path", - "range", - "std", - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(880), - Column: int(23), - }, - End: Location{ - Line: int(885), - Column: int(36), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "range", - "std", - "v", - }, - }, - Left: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(880), - Column: int(23), - }, - End: Location{ - Line: int(880), - Column: int(30), - }, - file: p1, - }, - context: p12012, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(880), - Column: int(24), - }, - End: Location{ - Line: int(880), - Column: int(29), - }, - file: p1, - }, - context: p12019, - freeVariables: nil, - }, - Value: "[\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(881), - Column: int(25), - }, - End: Location{ - Line: int(885), - Column: int(36), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "range", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(881), - Column: int(25), - }, - End: Location{ - Line: int(881), - Column: int(33), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(881), - Column: int(25), - }, - End: Location{ - Line: int(881), - Column: int(28), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(881), - Column: int(34), - }, - End: Location{ - Line: int(881), - Column: int(41), - }, - file: p1, - }, - context: p12029, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(881), - Column: int(35), - }, - End: Location{ - Line: int(881), - Column: int(40), - }, - file: p1, - }, - context: p12032, - freeVariables: nil, - }, - Value: ",\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "range", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "v", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "i", - "new_indent", - "path", - "v", - }, - }, - Elements: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(36), - }, - End: Location{ - Line: int(883), - Column: int(84), - }, - file: p1, - }, - context: p12048, - freeVariables: Identifiers{ - "aux", - "i", - "new_indent", - "path", - "v", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(37), - }, - End: Location{ - Line: int(883), - Column: int(83), - }, - file: p1, - }, - context: p12052, - freeVariables: Identifiers{ - "aux", - "i", - "new_indent", - "path", - "v", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(37), - }, - End: Location{ - Line: int(883), - Column: int(47), - }, - file: p1, - }, - context: p12052, - freeVariables: Identifiers{ - "new_indent", - }, - }, - Id: "new_indent", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(50), - }, - End: Location{ - Line: int(883), - Column: int(83), - }, - file: p1, - }, - context: p12052, - freeVariables: Identifiers{ - "aux", - "i", - "new_indent", - "path", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(50), - }, - End: Location{ - Line: int(883), - Column: int(53), - }, - file: p1, - }, - context: p12052, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(54), - }, - End: Location{ - Line: int(883), - Column: int(58), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "i", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(54), - }, - End: Location{ - Line: int(883), - Column: int(55), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(56), - }, - End: Location{ - Line: int(883), - Column: int(57), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(60), - }, - End: Location{ - Line: int(883), - Column: int(70), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "i", - "path", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(60), - }, - End: Location{ - Line: int(883), - Column: int(64), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(67), - }, - End: Location{ - Line: int(883), - Column: int(70), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "i", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(68), - }, - End: Location{ - Line: int(883), - Column: int(69), - }, - file: p1, - }, - context: p12076, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(883), - Column: int(72), - }, - End: Location{ - Line: int(883), - Column: int(82), - }, - file: p1, - }, - context: p12062, - freeVariables: Identifiers{ - "new_indent", - }, - }, - Id: "new_indent", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - TrailingComma: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(884), - Column: int(45), - }, - End: Location{ - Line: int(884), - Column: int(50), - }, - file: p1, - }, - context: p12029, - freeVariables: Identifiers{ - "range", - }, - }, - Id: "range", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(25), - }, - End: Location{ - Line: int(886), - Column: int(47), - }, - file: p1, - }, - context: p12012, - freeVariables: Identifiers{ - "cindent", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(26), - }, - End: Location{ - Line: int(886), - Column: int(46), - }, - file: p1, - }, - context: p12086, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(26), - }, - End: Location{ - Line: int(886), - Column: int(40), - }, - file: p1, - }, - context: p12086, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(26), - }, - End: Location{ - Line: int(886), - Column: int(30), - }, - file: p1, - }, - context: p12086, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(33), - }, - End: Location{ - Line: int(886), - Column: int(40), - }, - file: p1, - }, - context: p12086, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(886), - Column: int(43), - }, - End: Location{ - Line: int(886), - Column: int(46), - }, - file: p1, - }, - context: p12086, - freeVariables: nil, - }, - Value: "]", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - TrailingComma: false, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(887), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "lines", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(887), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(17), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(887), - Column: int(9), - }, - End: Location{ - Line: int(887), - Column: int(12), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(887), - Column: int(18), - }, - End: Location{ - Line: int(887), - Column: int(20), - }, - file: p1, - }, - context: p12103, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(887), - Column: int(22), - }, - End: Location{ - Line: int(887), - Column: int(27), - }, - file: p1, - }, - context: p12103, - freeVariables: Identifiers{ - "lines", - }, - }, - Id: "lines", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(12), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(15), - }, - End: Location{ - Line: int(888), - Column: int(26), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(15), - }, - End: Location{ - Line: int(888), - Column: int(23), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(15), - }, - End: Location{ - Line: int(888), - Column: int(18), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(24), - }, - End: Location{ - Line: int(888), - Column: int(25), - }, - file: p1, - }, - context: p12125, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(888), - Column: int(30), - }, - End: Location{ - Line: int(888), - Column: int(38), - }, - file: p1, - }, - context: p11817, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(889), - Column: int(9), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "lines", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(889), - Column: int(23), - }, - End: Location{ - Line: int(896), - Column: int(47), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(889), - Column: int(23), - }, - End: Location{ - Line: int(895), - Column: int(36), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Left: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(889), - Column: int(23), - }, - End: Location{ - Line: int(889), - Column: int(30), - }, - file: p1, - }, - context: p12132, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(889), - Column: int(24), - }, - End: Location{ - Line: int(889), - Column: int(29), - }, - file: p1, - }, - context: p12139, - freeVariables: nil, - }, - Value: "{\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(890), - Column: int(25), - }, - End: Location{ - Line: int(895), - Column: int(36), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(890), - Column: int(25), - }, - End: Location{ - Line: int(890), - Column: int(33), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(890), - Column: int(25), - }, - End: Location{ - Line: int(890), - Column: int(28), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(890), - Column: int(34), - }, - End: Location{ - Line: int(890), - Column: int(41), - }, - file: p1, - }, - context: p12149, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(890), - Column: int(35), - }, - End: Location{ - Line: int(890), - Column: int(40), - }, - file: p1, - }, - context: p12152, - freeVariables: nil, - }, - Value: ",\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "path", - "std", - "v", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "k", - "path", - "std", - "v", - }, - }, - Elements: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(36), - }, - End: Location{ - Line: int(893), - Column: int(79), - }, - file: p1, - }, - context: p12168, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "k", - "path", - "std", - "v", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(37), - }, - End: Location{ - Line: int(893), - Column: int(78), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "k", - "path", - "std", - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(37), - }, - End: Location{ - Line: int(892), - Column: int(86), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "cindent", - "indent", - "k", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(37), - }, - End: Location{ - Line: int(892), - Column: int(79), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "cindent", - "indent", - "k", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(37), - }, - End: Location{ - Line: int(892), - Column: int(53), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "cindent", - "indent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(37), - }, - End: Location{ - Line: int(892), - Column: int(44), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(47), - }, - End: Location{ - Line: int(892), - Column: int(53), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "indent", - }, - }, - Id: "indent", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(56), - }, - End: Location{ - Line: int(892), - Column: int(79), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(56), - }, - End: Location{ - Line: int(892), - Column: int(76), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(56), - }, - End: Location{ - Line: int(892), - Column: int(59), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(77), - }, - End: Location{ - Line: int(892), - Column: int(78), - }, - file: p1, - }, - context: p12193, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(892), - Column: int(82), - }, - End: Location{ - Line: int(892), - Column: int(86), - }, - file: p1, - }, - context: p12172, - freeVariables: nil, - }, - Value: ": ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(39), - }, - End: Location{ - Line: int(893), - Column: int(78), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "aux", - "cindent", - "indent", - "k", - "path", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(39), - }, - End: Location{ - Line: int(893), - Column: int(42), - }, - file: p1, - }, - context: p12172, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(43), - }, - End: Location{ - Line: int(893), - Column: int(47), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "k", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(43), - }, - End: Location{ - Line: int(893), - Column: int(44), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(45), - }, - End: Location{ - Line: int(893), - Column: int(46), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(49), - }, - End: Location{ - Line: int(893), - Column: int(59), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "k", - "path", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(49), - }, - End: Location{ - Line: int(893), - Column: int(53), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(56), - }, - End: Location{ - Line: int(893), - Column: int(59), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "k", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(57), - }, - End: Location{ - Line: int(893), - Column: int(58), - }, - file: p1, - }, - context: p12216, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - TrailingComma: false, - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(61), - }, - End: Location{ - Line: int(893), - Column: int(77), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "cindent", - "indent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(61), - }, - End: Location{ - Line: int(893), - Column: int(68), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(893), - Column: int(71), - }, - End: Location{ - Line: int(893), - Column: int(77), - }, - file: p1, - }, - context: p12202, - freeVariables: Identifiers{ - "indent", - }, - }, - Id: "indent", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - TrailingComma: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(894), - Column: int(45), - }, - End: Location{ - Line: int(894), - Column: int(64), - }, - file: p1, - }, - context: p12149, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(894), - Column: int(45), - }, - End: Location{ - Line: int(894), - Column: int(61), - }, - file: p1, - }, - context: p12149, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(894), - Column: int(45), - }, - End: Location{ - Line: int(894), - Column: int(48), - }, - file: p1, - }, - context: p12149, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(894), - Column: int(62), - }, - End: Location{ - Line: int(894), - Column: int(63), - }, - file: p1, - }, - context: p12233, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(25), - }, - End: Location{ - Line: int(896), - Column: int(47), - }, - file: p1, - }, - context: p12132, - freeVariables: Identifiers{ - "cindent", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(26), - }, - End: Location{ - Line: int(896), - Column: int(46), - }, - file: p1, - }, - context: p12239, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(26), - }, - End: Location{ - Line: int(896), - Column: int(40), - }, - file: p1, - }, - context: p12239, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(26), - }, - End: Location{ - Line: int(896), - Column: int(30), - }, - file: p1, - }, - context: p12239, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(33), - }, - End: Location{ - Line: int(896), - Column: int(40), - }, - file: p1, - }, - context: p12239, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(896), - Column: int(43), - }, - End: Location{ - Line: int(896), - Column: int(46), - }, - file: p1, - }, - context: p12239, - freeVariables: nil, - }, - Value: "}", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - TrailingComma: false, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(897), - Column: int(9), - }, - End: Location{ - Line: int(897), - Column: int(28), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "lines", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(897), - Column: int(9), - }, - End: Location{ - Line: int(897), - Column: int(17), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(897), - Column: int(9), - }, - End: Location{ - Line: int(897), - Column: int(12), - }, - file: p1, - }, - context: p11817, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(897), - Column: int(18), - }, - End: Location{ - Line: int(897), - Column: int(20), - }, - file: p1, - }, - context: p12256, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(897), - Column: int(22), - }, - End: Location{ - Line: int(897), - Column: int(27), - }, - file: p1, - }, - context: p12256, - freeVariables: Identifiers{ - "lines", - }, - }, - Id: "lines", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(898), - Column: int(5), - }, - End: Location{ - Line: int(898), - Column: int(23), - }, - file: p1, - }, - context: p11809, - freeVariables: Identifiers{ - "aux", - "value", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(898), - Column: int(5), - }, - End: Location{ - Line: int(898), - Column: int(8), - }, - file: p1, - }, - context: p11809, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(898), - Column: int(9), - }, - End: Location{ - Line: int(898), - Column: int(14), - }, - file: p1, - }, - context: p12266, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(898), - Column: int(16), - }, - End: Location{ - Line: int(898), - Column: int(18), - }, - file: p1, - }, - context: p12266, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(898), - Column: int(20), - }, - End: Location{ - Line: int(898), - Column: int(22), - }, - file: p1, - }, - context: p12266, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestYamlDoc", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p12274, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p12276, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p12300, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p12304, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p12307, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p12310, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p12313, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p12316, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p12319, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p12322, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p12327, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p12329, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(901), - Column: int(5), - }, - End: Location{ - Line: int(940), - Column: int(30), - }, - file: p1, - }, - context: p12335, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(901), - Column: int(11), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12339, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - "in_object", - "path", - "cindent", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(902), - Column: int(7), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(902), - Column: int(10), - }, - End: Location{ - Line: int(902), - Column: int(11), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(902), - Column: int(15), - }, - End: Location{ - Line: int(902), - Column: int(19), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(903), - Column: int(9), - }, - End: Location{ - Line: int(903), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "true", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(904), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(904), - Column: int(15), - }, - End: Location{ - Line: int(904), - Column: int(16), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(904), - Column: int(20), - }, - End: Location{ - Line: int(904), - Column: int(25), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(905), - Column: int(9), - }, - End: Location{ - Line: int(905), - Column: int(16), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "false", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(906), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(906), - Column: int(15), - }, - End: Location{ - Line: int(906), - Column: int(16), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(906), - Column: int(20), - }, - End: Location{ - Line: int(906), - Column: int(24), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(907), - Column: int(9), - }, - End: Location{ - Line: int(907), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "null", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(15), - }, - End: Location{ - Line: int(908), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(15), - }, - End: Location{ - Line: int(908), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(15), - }, - End: Location{ - Line: int(908), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(24), - }, - End: Location{ - Line: int(908), - Column: int(25), - }, - file: p1, - }, - context: p12404, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(908), - Column: int(30), - }, - End: Location{ - Line: int(908), - Column: int(38), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(909), - Column: int(9), - }, - End: Location{ - Line: int(909), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(909), - Column: int(9), - }, - End: Location{ - Line: int(909), - Column: int(11), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(909), - Column: int(14), - }, - End: Location{ - Line: int(909), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(15), - }, - End: Location{ - Line: int(910), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(15), - }, - End: Location{ - Line: int(910), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(15), - }, - End: Location{ - Line: int(910), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(24), - }, - End: Location{ - Line: int(910), - Column: int(25), - }, - file: p1, - }, - context: p12431, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(910), - Column: int(30), - }, - End: Location{ - Line: int(910), - Column: int(38), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(911), - Column: int(9), - }, - End: Location{ - Line: int(918), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "len", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(911), - Column: int(21), - }, - End: Location{ - Line: int(911), - Column: int(34), - }, - file: p1, - }, - context: p12438, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(911), - Column: int(21), - }, - End: Location{ - Line: int(911), - Column: int(31), - }, - file: p1, - }, - context: p12438, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(911), - Column: int(21), - }, - End: Location{ - Line: int(911), - Column: int(24), - }, - file: p1, - }, - context: p12438, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(911), - Column: int(32), - }, - End: Location{ - Line: int(911), - Column: int(33), - }, - file: p1, - }, - context: p12447, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(912), - Column: int(9), - }, - End: Location{ - Line: int(918), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "len", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "len", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(912), - Column: int(12), - }, - End: Location{ - Line: int(912), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(912), - Column: int(19), - }, - End: Location{ - Line: int(912), - Column: int(20), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(913), - Column: int(11), - }, - End: Location{ - Line: int(913), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "\"\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(14), - }, - End: Location{ - Line: int(918), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "len", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "len", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(17), - }, - End: Location{ - Line: int(914), - Column: int(27), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "len", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(17), - }, - End: Location{ - Line: int(914), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(19), - }, - End: Location{ - Line: int(914), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "len", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(19), - }, - End: Location{ - Line: int(914), - Column: int(22), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "len", - }, - }, - Id: "len", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(25), - }, - End: Location{ - Line: int(914), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(914), - Column: int(31), - }, - End: Location{ - Line: int(914), - Column: int(35), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(11), - }, - End: Location{ - Line: int(916), - Column: int(75), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "split", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(25), - }, - End: Location{ - Line: int(915), - Column: int(43), - }, - file: p1, - }, - context: p12487, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(25), - }, - End: Location{ - Line: int(915), - Column: int(34), - }, - file: p1, - }, - context: p12487, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(25), - }, - End: Location{ - Line: int(915), - Column: int(28), - }, - file: p1, - }, - context: p12487, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "split", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(35), - }, - End: Location{ - Line: int(915), - Column: int(36), - }, - file: p1, - }, - context: p12496, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(915), - Column: int(38), - }, - End: Location{ - Line: int(915), - Column: int(42), - }, - file: p1, - }, - context: p12496, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(11), - }, - End: Location{ - Line: int(916), - Column: int(75), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "split", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(11), - }, - End: Location{ - Line: int(916), - Column: int(19), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(11), - }, - End: Location{ - Line: int(916), - Column: int(14), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(20), - }, - End: Location{ - Line: int(916), - Column: int(34), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(20), - }, - End: Location{ - Line: int(916), - Column: int(24), - }, - file: p1, - }, - context: p12508, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(27), - }, - End: Location{ - Line: int(916), - Column: int(34), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(36), - }, - End: Location{ - Line: int(916), - Column: int(74), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "split", - "std", - }, - }, - Left: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(36), - }, - End: Location{ - Line: int(916), - Column: int(41), - }, - file: p1, - }, - context: p12508, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(37), - }, - End: Location{ - Line: int(916), - Column: int(40), - }, - file: p1, - }, - context: p12518, - freeVariables: nil, - }, - Value: "|", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "split", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(44), - }, - End: Location{ - Line: int(916), - Column: int(49), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "split", - }, - }, - Id: "split", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(50), - }, - End: Location{ - Line: int(916), - Column: int(51), - }, - file: p1, - }, - context: p12508, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(52), - }, - End: Location{ - Line: int(916), - Column: int(73), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "split", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(52), - }, - End: Location{ - Line: int(916), - Column: int(69), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "split", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(52), - }, - End: Location{ - Line: int(916), - Column: int(62), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(52), - }, - End: Location{ - Line: int(916), - Column: int(55), - }, - file: p1, - }, - context: p12508, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(63), - }, - End: Location{ - Line: int(916), - Column: int(68), - }, - file: p1, - }, - context: p12541, - freeVariables: Identifiers{ - "split", - }, - }, - Id: "split", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(916), - Column: int(72), - }, - End: Location{ - Line: int(916), - Column: int(73), - }, - file: p1, - }, - context: p12508, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(918), - Column: int(11), - }, - End: Location{ - Line: int(918), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(918), - Column: int(11), - }, - End: Location{ - Line: int(918), - Column: int(31), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(918), - Column: int(11), - }, - End: Location{ - Line: int(918), - Column: int(14), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(918), - Column: int(32), - }, - End: Location{ - Line: int(918), - Column: int(33), - }, - file: p1, - }, - context: p12554, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(15), - }, - End: Location{ - Line: int(919), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(15), - }, - End: Location{ - Line: int(919), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(15), - }, - End: Location{ - Line: int(919), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(24), - }, - End: Location{ - Line: int(919), - Column: int(25), - }, - file: p1, - }, - context: p12575, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(919), - Column: int(30), - }, - End: Location{ - Line: int(919), - Column: int(40), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(920), - Column: int(9), - }, - End: Location{ - Line: int(920), - Column: int(54), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "path", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(920), - Column: int(15), - }, - End: Location{ - Line: int(920), - Column: int(54), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "path", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(920), - Column: int(15), - }, - End: Location{ - Line: int(920), - Column: int(47), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "Tried to manifest function at ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(920), - Column: int(50), - }, - End: Location{ - Line: int(920), - Column: int(54), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(15), - }, - End: Location{ - Line: int(921), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(15), - }, - End: Location{ - Line: int(921), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(15), - }, - End: Location{ - Line: int(921), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(24), - }, - End: Location{ - Line: int(921), - Column: int(25), - }, - file: p1, - }, - context: p12604, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(921), - Column: int(30), - }, - End: Location{ - Line: int(921), - Column: int(37), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(9), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(12), - }, - End: Location{ - Line: int(922), - Column: int(25), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(12), - }, - End: Location{ - Line: int(922), - Column: int(22), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(12), - }, - End: Location{ - Line: int(922), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(23), - }, - End: Location{ - Line: int(922), - Column: int(24), - }, - file: p1, - }, - context: p12626, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(922), - Column: int(29), - }, - End: Location{ - Line: int(922), - Column: int(30), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(923), - Column: int(11), - }, - End: Location{ - Line: int(923), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "[]", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(11), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "range", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(25), - }, - End: Location{ - Line: int(925), - Column: int(56), - }, - file: p1, - }, - context: p12634, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(25), - }, - End: Location{ - Line: int(925), - Column: int(34), - }, - file: p1, - }, - context: p12634, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(25), - }, - End: Location{ - Line: int(925), - Column: int(28), - }, - file: p1, - }, - context: p12634, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(35), - }, - End: Location{ - Line: int(925), - Column: int(36), - }, - file: p1, - }, - context: p12643, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(38), - }, - End: Location{ - Line: int(925), - Column: int(55), - }, - file: p1, - }, - context: p12643, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(38), - }, - End: Location{ - Line: int(925), - Column: int(51), - }, - file: p1, - }, - context: p12643, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(38), - }, - End: Location{ - Line: int(925), - Column: int(48), - }, - file: p1, - }, - context: p12643, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(38), - }, - End: Location{ - Line: int(925), - Column: int(41), - }, - file: p1, - }, - context: p12643, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(49), - }, - End: Location{ - Line: int(925), - Column: int(50), - }, - file: p1, - }, - context: p12655, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(925), - Column: int(54), - }, - End: Location{ - Line: int(925), - Column: int(55), - }, - file: p1, - }, - context: p12643, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(11), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "range", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "actual_indent", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(33), - }, - End: Location{ - Line: int(926), - Column: int(75), - }, - file: p1, - }, - context: p12662, - freeVariables: Identifiers{ - "cindent", - "in_object", - "std", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(36), - }, - End: Location{ - Line: int(926), - Column: int(45), - }, - file: p1, - }, - context: p12662, - freeVariables: Identifiers{ - "in_object", - }, - }, - Id: "in_object", - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "cindent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(51), - }, - End: Location{ - Line: int(926), - Column: int(58), - }, - file: p1, - }, - context: p12662, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(59), - }, - End: Location{ - Line: int(926), - Column: int(60), - }, - file: p1, - }, - context: p12662, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(926), - Column: int(68), - }, - End: Location{ - Line: int(926), - Column: int(75), - }, - file: p1, - }, - context: p12662, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(11), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - "aux", - "cindent", - "in_object", - "path", - "range", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "parts", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "path", - "range", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "path", - "v", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "cindent", - "i", - "path", - "v", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(26), - }, - End: Location{ - Line: int(927), - Column: int(63), - }, - file: p1, - }, - context: p12699, - freeVariables: Identifiers{ - "aux", - "cindent", - "i", - "path", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(26), - }, - End: Location{ - Line: int(927), - Column: int(29), - }, - file: p1, - }, - context: p12699, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(30), - }, - End: Location{ - Line: int(927), - Column: int(34), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "i", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(30), - }, - End: Location{ - Line: int(927), - Column: int(31), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(32), - }, - End: Location{ - Line: int(927), - Column: int(33), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(36), - }, - End: Location{ - Line: int(927), - Column: int(41), - }, - file: p1, - }, - context: p12705, - freeVariables: nil, - }, - Value: false, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(43), - }, - End: Location{ - Line: int(927), - Column: int(53), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "i", - "path", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(43), - }, - End: Location{ - Line: int(927), - Column: int(47), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(50), - }, - End: Location{ - Line: int(927), - Column: int(53), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "i", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(51), - }, - End: Location{ - Line: int(927), - Column: int(52), - }, - file: p1, - }, - context: p12720, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(55), - }, - End: Location{ - Line: int(927), - Column: int(62), - }, - file: p1, - }, - context: p12705, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(927), - Column: int(73), - }, - End: Location{ - Line: int(927), - Column: int(78), - }, - file: p1, - }, - context: p12725, - freeVariables: Identifiers{ - "range", - }, - }, - Id: "range", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(11), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - "in_object", - "parts", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(11), - }, - End: Location{ - Line: int(929), - Column: int(17), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - "in_object", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(12), - }, - End: Location{ - Line: int(928), - Column: int(58), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - "in_object", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(15), - }, - End: Location{ - Line: int(928), - Column: int(24), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "in_object", - }, - }, - Id: "in_object", - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(30), - }, - End: Location{ - Line: int(928), - Column: int(50), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(30), - }, - End: Location{ - Line: int(928), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(37), - }, - End: Location{ - Line: int(928), - Column: int(50), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - }, - }, - Id: "actual_indent", - }, - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(928), - Column: int(56), - }, - End: Location{ - Line: int(928), - Column: int(58), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(13), - }, - End: Location{ - Line: int(929), - Column: int(17), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "- ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(20), - }, - End: Location{ - Line: int(929), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "actual_indent", - "parts", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(20), - }, - End: Location{ - Line: int(929), - Column: int(28), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(20), - }, - End: Location{ - Line: int(929), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(29), - }, - End: Location{ - Line: int(929), - Column: int(56), - }, - file: p1, - }, - context: p12751, - freeVariables: Identifiers{ - "actual_indent", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(29), - }, - End: Location{ - Line: int(929), - Column: int(49), - }, - file: p1, - }, - context: p12751, - freeVariables: Identifiers{ - "actual_indent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(29), - }, - End: Location{ - Line: int(929), - Column: int(33), - }, - file: p1, - }, - context: p12751, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(36), - }, - End: Location{ - Line: int(929), - Column: int(49), - }, - file: p1, - }, - context: p12751, - freeVariables: Identifiers{ - "actual_indent", - }, - }, - Id: "actual_indent", - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(52), - }, - End: Location{ - Line: int(929), - Column: int(56), - }, - file: p1, - }, - context: p12751, - freeVariables: nil, - }, - Value: "- ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(929), - Column: int(58), - }, - End: Location{ - Line: int(929), - Column: int(63), - }, - file: p1, - }, - context: p12751, - freeVariables: Identifiers{ - "parts", - }, - }, - Id: "parts", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(15), - }, - End: Location{ - Line: int(930), - Column: int(26), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(15), - }, - End: Location{ - Line: int(930), - Column: int(23), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(15), - }, - End: Location{ - Line: int(930), - Column: int(18), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(24), - }, - End: Location{ - Line: int(930), - Column: int(25), - }, - file: p1, - }, - context: p12780, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(930), - Column: int(30), - }, - End: Location{ - Line: int(930), - Column: int(38), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(9), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(12), - }, - End: Location{ - Line: int(931), - Column: int(25), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(12), - }, - End: Location{ - Line: int(931), - Column: int(22), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(12), - }, - End: Location{ - Line: int(931), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(23), - }, - End: Location{ - Line: int(931), - Column: int(24), - }, - file: p1, - }, - context: p12802, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(931), - Column: int(29), - }, - End: Location{ - Line: int(931), - Column: int(30), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(932), - Column: int(11), - }, - End: Location{ - Line: int(932), - Column: int(15), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "{}", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(934), - Column: int(11), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "path", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "new_indent", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(934), - Column: int(30), - }, - End: Location{ - Line: int(934), - Column: int(44), - }, - file: p1, - }, - context: p12810, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(934), - Column: int(30), - }, - End: Location{ - Line: int(934), - Column: int(37), - }, - file: p1, - }, - context: p12810, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(934), - Column: int(40), - }, - End: Location{ - Line: int(934), - Column: int(44), - }, - file: p1, - }, - context: p12810, - freeVariables: nil, - }, - Value: " ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(935), - Column: int(11), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "aux", - "cindent", - "in_object", - "new_indent", - "path", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "lines", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "new_indent", - "path", - "std", - "v", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "k", - "new_indent", - "path", - "std", - "v", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(13), - }, - End: Location{ - Line: int(936), - Column: int(85), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "aux", - "k", - "new_indent", - "path", - "std", - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(13), - }, - End: Location{ - Line: int(936), - Column: int(43), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "k", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(13), - }, - End: Location{ - Line: int(936), - Column: int(36), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(13), - }, - End: Location{ - Line: int(936), - Column: int(33), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(13), - }, - End: Location{ - Line: int(936), - Column: int(16), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringJson", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(34), - }, - End: Location{ - Line: int(936), - Column: int(35), - }, - file: p1, - }, - context: p12846, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(39), - }, - End: Location{ - Line: int(936), - Column: int(43), - }, - file: p1, - }, - context: p12833, - freeVariables: nil, - }, - Value: ": ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(46), - }, - End: Location{ - Line: int(936), - Column: int(85), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "aux", - "k", - "new_indent", - "path", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(46), - }, - End: Location{ - Line: int(936), - Column: int(49), - }, - file: p1, - }, - context: p12833, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(50), - }, - End: Location{ - Line: int(936), - Column: int(54), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "k", - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(50), - }, - End: Location{ - Line: int(936), - Column: int(51), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(52), - }, - End: Location{ - Line: int(936), - Column: int(53), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(56), - }, - End: Location{ - Line: int(936), - Column: int(60), - }, - file: p1, - }, - context: p12855, - freeVariables: nil, - }, - Value: true, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(62), - }, - End: Location{ - Line: int(936), - Column: int(72), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "k", - "path", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(62), - }, - End: Location{ - Line: int(936), - Column: int(66), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "path", - }, - }, - Id: "path", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(69), - }, - End: Location{ - Line: int(936), - Column: int(72), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "k", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(70), - }, - End: Location{ - Line: int(936), - Column: int(71), - }, - file: p1, - }, - context: p12870, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(936), - Column: int(74), - }, - End: Location{ - Line: int(936), - Column: int(84), - }, - file: p1, - }, - context: p12855, - freeVariables: Identifiers{ - "new_indent", - }, - }, - Id: "new_indent", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(937), - Column: int(22), - }, - End: Location{ - Line: int(937), - Column: int(41), - }, - file: p1, - }, - context: p12875, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(937), - Column: int(22), - }, - End: Location{ - Line: int(937), - Column: int(38), - }, - file: p1, - }, - context: p12875, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(937), - Column: int(22), - }, - End: Location{ - Line: int(937), - Column: int(25), - }, - file: p1, - }, - context: p12875, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(937), - Column: int(39), - }, - End: Location{ - Line: int(937), - Column: int(40), - }, - file: p1, - }, - context: p12884, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(11), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "in_object", - "lines", - "std", - }, - }, - Left: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(12), - }, - End: Location{ - Line: int(939), - Column: int(52), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "in_object", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(15), - }, - End: Location{ - Line: int(939), - Column: int(24), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "in_object", - }, - }, - Id: "in_object", - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(30), - }, - End: Location{ - Line: int(939), - Column: int(44), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(30), - }, - End: Location{ - Line: int(939), - Column: int(34), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(37), - }, - End: Location{ - Line: int(939), - Column: int(44), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - BranchFalse: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(50), - }, - End: Location{ - Line: int(939), - Column: int(52), - }, - file: p1, - }, - context: p12343, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(56), - }, - End: Location{ - Line: int(939), - Column: int(87), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "cindent", - "lines", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(56), - }, - End: Location{ - Line: int(939), - Column: int(64), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(56), - }, - End: Location{ - Line: int(939), - Column: int(59), - }, - file: p1, - }, - context: p12343, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(65), - }, - End: Location{ - Line: int(939), - Column: int(79), - }, - file: p1, - }, - context: p12907, - freeVariables: Identifiers{ - "cindent", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(65), - }, - End: Location{ - Line: int(939), - Column: int(69), - }, - file: p1, - }, - context: p12907, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(72), - }, - End: Location{ - Line: int(939), - Column: int(79), - }, - file: p1, - }, - context: p12907, - freeVariables: Identifiers{ - "cindent", - }, - }, - Id: "cindent", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(939), - Column: int(81), - }, - End: Location{ - Line: int(939), - Column: int(86), - }, - file: p1, - }, - context: p12907, - freeVariables: Identifiers{ - "lines", - }, - }, - Id: "lines", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - BranchFalse: &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(5), - }, - End: Location{ - Line: int(940), - Column: int(30), - }, - file: p1, - }, - context: p12335, - freeVariables: Identifiers{ - "aux", - "value", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(5), - }, - End: Location{ - Line: int(940), - Column: int(8), - }, - file: p1, - }, - context: p12335, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(9), - }, - End: Location{ - Line: int(940), - Column: int(14), - }, - file: p1, - }, - context: p12921, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(16), - }, - End: Location{ - Line: int(940), - Column: int(21), - }, - file: p1, - }, - context: p12921, - freeVariables: nil, - }, - Value: false, - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(23), - }, - End: Location{ - Line: int(940), - Column: int(25), - }, - file: p1, - }, - context: p12921, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(940), - Column: int(27), - }, - End: Location{ - Line: int(940), - Column: int(29), - }, - file: p1, - }, - context: p12921, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestYamlStream", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p12930, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p12932, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p12956, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p12960, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p12963, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p12966, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p12969, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p12972, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p12975, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p12978, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p12983, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p12985, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(5), - }, - End: Location{ - Line: int(946), - Column: int(89), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(8), - }, - End: Location{ - Line: int(943), - Column: int(23), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(8), - }, - End: Location{ - Line: int(943), - Column: int(16), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(8), - }, - End: Location{ - Line: int(943), - Column: int(11), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(17), - }, - End: Location{ - Line: int(943), - Column: int(22), - }, - file: p1, - }, - context: p13012, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(943), - Column: int(27), - }, - End: Location{ - Line: int(943), - Column: int(34), - }, - file: p1, - }, - context: p12991, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(7), - }, - End: Location{ - Line: int(944), - Column: int(75), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Expr: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(13), - }, - End: Location{ - Line: int(944), - Column: int(75), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(13), - }, - End: Location{ - Line: int(944), - Column: int(57), - }, - file: p1, - }, - context: p12991, - freeVariables: nil, - }, - Value: "manifestYamlStream only takes arrays, got ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(60), - }, - End: Location{ - Line: int(944), - Column: int(75), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(60), - }, - End: Location{ - Line: int(944), - Column: int(68), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(60), - }, - End: Location{ - Line: int(944), - Column: int(63), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(944), - Column: int(69), - }, - End: Location{ - Line: int(944), - Column: int(74), - }, - file: p1, - }, - context: p13029, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(7), - }, - End: Location{ - Line: int(946), - Column: int(89), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(7), - }, - End: Location{ - Line: int(946), - Column: int(77), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Left: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(7), - }, - End: Location{ - Line: int(946), - Column: int(14), - }, - file: p1, - }, - context: p12991, - freeVariables: nil, - }, - Value: "---\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(17), - }, - End: Location{ - Line: int(946), - Column: int(77), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(17), - }, - End: Location{ - Line: int(946), - Column: int(25), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(17), - }, - End: Location{ - Line: int(946), - Column: int(20), - }, - file: p1, - }, - context: p12991, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(26), - }, - End: Location{ - Line: int(946), - Column: int(35), - }, - file: p1, - }, - context: p13045, - freeVariables: nil, - }, - Value: "\n---\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "e", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "e", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(38), - }, - End: Location{ - Line: int(946), - Column: int(60), - }, - file: p1, - }, - context: p13061, - freeVariables: Identifiers{ - "e", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(38), - }, - End: Location{ - Line: int(946), - Column: int(57), - }, - file: p1, - }, - context: p13061, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(38), - }, - End: Location{ - Line: int(946), - Column: int(41), - }, - file: p1, - }, - context: p13061, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestYamlDoc", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(58), - }, - End: Location{ - Line: int(946), - Column: int(59), - }, - file: p1, - }, - context: p13070, - freeVariables: Identifiers{ - "e", - }, - }, - Id: "e", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(70), - }, - End: Location{ - Line: int(946), - Column: int(75), - }, - file: p1, - }, - context: p13045, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(946), - Column: int(80), - }, - End: Location{ - Line: int(946), - Column: int(89), - }, - file: p1, - }, - context: p12991, - freeVariables: nil, - }, - Value: "\n...\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p13079, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p13081, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p13105, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p13109, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p13112, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p13115, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p13118, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p13121, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p13124, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p13127, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p13132, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p13134, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(5), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(8), - }, - End: Location{ - Line: int(950), - Column: int(19), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(8), - }, - End: Location{ - Line: int(950), - Column: int(16), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(8), - }, - End: Location{ - Line: int(950), - Column: int(11), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(17), - }, - End: Location{ - Line: int(950), - Column: int(18), - }, - file: p1, - }, - context: p13159, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(950), - Column: int(23), - }, - End: Location{ - Line: int(950), - Column: int(31), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(951), - Column: int(7), - }, - End: Location{ - Line: int(955), - Column: int(40), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "fields", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "o", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(9), - }, - End: Location{ - Line: int(952), - Column: int(17), - }, - file: p1, - }, - context: p13188, - freeVariables: nil, - }, - Value: "%s: %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(20), - }, - End: Location{ - Line: int(952), - Column: int(73), - }, - file: p1, - }, - context: p13188, - freeVariables: Identifiers{ - "k", - "o", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(21), - }, - End: Location{ - Line: int(952), - Column: int(46), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(21), - }, - End: Location{ - Line: int(952), - Column: int(43), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(21), - }, - End: Location{ - Line: int(952), - Column: int(24), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(44), - }, - End: Location{ - Line: int(952), - Column: int(45), - }, - file: p1, - }, - context: p13202, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(48), - }, - End: Location{ - Line: int(952), - Column: int(72), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "k", - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(48), - }, - End: Location{ - Line: int(952), - Column: int(66), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(48), - }, - End: Location{ - Line: int(952), - Column: int(51), - }, - file: p1, - }, - context: p13193, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(67), - }, - End: Location{ - Line: int(952), - Column: int(71), - }, - file: p1, - }, - context: p13213, - freeVariables: Identifiers{ - "k", - "o", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(67), - }, - End: Location{ - Line: int(952), - Column: int(68), - }, - file: p1, - }, - context: p13213, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(952), - Column: int(69), - }, - End: Location{ - Line: int(952), - Column: int(70), - }, - file: p1, - }, - context: p13213, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(953), - Column: int(18), - }, - End: Location{ - Line: int(953), - Column: int(37), - }, - file: p1, - }, - context: p13220, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(953), - Column: int(18), - }, - End: Location{ - Line: int(953), - Column: int(34), - }, - file: p1, - }, - context: p13220, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(953), - Column: int(18), - }, - End: Location{ - Line: int(953), - Column: int(21), - }, - file: p1, - }, - context: p13220, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(953), - Column: int(35), - }, - End: Location{ - Line: int(953), - Column: int(36), - }, - file: p1, - }, - context: p13229, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "fields", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(7), - }, - End: Location{ - Line: int(955), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "{%s}", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(16), - }, - End: Location{ - Line: int(955), - Column: int(40), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "fields", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(17), - }, - End: Location{ - Line: int(955), - Column: int(39), - }, - file: p1, - }, - context: p13244, - freeVariables: Identifiers{ - "fields", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(17), - }, - End: Location{ - Line: int(955), - Column: int(25), - }, - file: p1, - }, - context: p13244, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(17), - }, - End: Location{ - Line: int(955), - Column: int(20), - }, - file: p1, - }, - context: p13244, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(26), - }, - End: Location{ - Line: int(955), - Column: int(30), - }, - file: p1, - }, - context: p13253, - freeVariables: nil, - }, - Value: ", ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(955), - Column: int(32), - }, - End: Location{ - Line: int(955), - Column: int(38), - }, - file: p1, - }, - context: p13253, - freeVariables: Identifiers{ - "fields", - }, - }, - Id: "fields", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(13), - }, - End: Location{ - Line: int(956), - Column: int(24), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(13), - }, - End: Location{ - Line: int(956), - Column: int(21), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(13), - }, - End: Location{ - Line: int(956), - Column: int(16), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(22), - }, - End: Location{ - Line: int(956), - Column: int(23), - }, - file: p1, - }, - context: p13275, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(956), - Column: int(28), - }, - End: Location{ - Line: int(956), - Column: int(35), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(7), - }, - End: Location{ - Line: int(957), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "[%s]", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(16), - }, - End: Location{ - Line: int(957), - Column: int(70), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(17), - }, - End: Location{ - Line: int(957), - Column: int(69), - }, - file: p1, - }, - context: p13291, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(17), - }, - End: Location{ - Line: int(957), - Column: int(25), - }, - file: p1, - }, - context: p13291, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(17), - }, - End: Location{ - Line: int(957), - Column: int(20), - }, - file: p1, - }, - context: p13291, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(26), - }, - End: Location{ - Line: int(957), - Column: int(30), - }, - file: p1, - }, - context: p13300, - freeVariables: nil, - }, - Value: ", ", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o2", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o2", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(33), - }, - End: Location{ - Line: int(957), - Column: int(55), - }, - file: p1, - }, - context: p13316, - freeVariables: Identifiers{ - "o2", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(33), - }, - End: Location{ - Line: int(957), - Column: int(51), - }, - file: p1, - }, - context: p13316, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(33), - }, - End: Location{ - Line: int(957), - Column: int(36), - }, - file: p1, - }, - context: p13316, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(52), - }, - End: Location{ - Line: int(957), - Column: int(54), - }, - file: p1, - }, - context: p13325, - freeVariables: Identifiers{ - "o2", - }, - }, - Id: "o2", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(957), - Column: int(66), - }, - End: Location{ - Line: int(957), - Column: int(67), - }, - file: p1, - }, - context: p13300, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(13), - }, - End: Location{ - Line: int(958), - Column: int(24), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(13), - }, - End: Location{ - Line: int(958), - Column: int(21), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(13), - }, - End: Location{ - Line: int(958), - Column: int(16), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(22), - }, - End: Location{ - Line: int(958), - Column: int(23), - }, - file: p1, - }, - context: p13348, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(958), - Column: int(28), - }, - End: Location{ - Line: int(958), - Column: int(36), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(7), - }, - End: Location{ - Line: int(959), - Column: int(11), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "%s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(14), - }, - End: Location{ - Line: int(959), - Column: int(41), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(15), - }, - End: Location{ - Line: int(959), - Column: int(40), - }, - file: p1, - }, - context: p13364, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(15), - }, - End: Location{ - Line: int(959), - Column: int(37), - }, - file: p1, - }, - context: p13364, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(15), - }, - End: Location{ - Line: int(959), - Column: int(18), - }, - file: p1, - }, - context: p13364, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "escapeStringPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(959), - Column: int(38), - }, - End: Location{ - Line: int(959), - Column: int(39), - }, - file: p1, - }, - context: p13373, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(13), - }, - End: Location{ - Line: int(960), - Column: int(24), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(13), - }, - End: Location{ - Line: int(960), - Column: int(21), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(13), - }, - End: Location{ - Line: int(960), - Column: int(16), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(22), - }, - End: Location{ - Line: int(960), - Column: int(23), - }, - file: p1, - }, - context: p13394, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(960), - Column: int(28), - }, - End: Location{ - Line: int(960), - Column: int(38), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(961), - Column: int(7), - }, - End: Location{ - Line: int(961), - Column: int(39), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(961), - Column: int(13), - }, - End: Location{ - Line: int(961), - Column: int(39), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "cannot manifest function", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(13), - }, - End: Location{ - Line: int(962), - Column: int(24), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(13), - }, - End: Location{ - Line: int(962), - Column: int(21), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(13), - }, - End: Location{ - Line: int(962), - Column: int(16), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(22), - }, - End: Location{ - Line: int(962), - Column: int(23), - }, - file: p1, - }, - context: p13418, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(962), - Column: int(28), - }, - End: Location{ - Line: int(962), - Column: int(36), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "number", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(963), - Column: int(7), - }, - End: Location{ - Line: int(963), - Column: int(22), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(963), - Column: int(7), - }, - End: Location{ - Line: int(963), - Column: int(19), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(963), - Column: int(7), - }, - End: Location{ - Line: int(963), - Column: int(10), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "toString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(963), - Column: int(20), - }, - End: Location{ - Line: int(963), - Column: int(21), - }, - file: p1, - }, - context: p13430, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(964), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(964), - Column: int(13), - }, - End: Location{ - Line: int(964), - Column: int(14), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(964), - Column: int(18), - }, - End: Location{ - Line: int(964), - Column: int(22), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(965), - Column: int(7), - }, - End: Location{ - Line: int(965), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "True", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(966), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(966), - Column: int(13), - }, - End: Location{ - Line: int(966), - Column: int(14), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(966), - Column: int(18), - }, - End: Location{ - Line: int(966), - Column: int(23), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(967), - Column: int(7), - }, - End: Location{ - Line: int(967), - Column: int(14), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "False", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(968), - Column: int(10), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(968), - Column: int(13), - }, - End: Location{ - Line: int(968), - Column: int(14), - }, - file: p1, - }, - context: p13140, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(968), - Column: int(18), - }, - End: Location{ - Line: int(968), - Column: int(22), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(969), - Column: int(7), - }, - End: Location{ - Line: int(969), - Column: int(13), - }, - file: p1, - }, - context: p13140, - freeVariables: nil, - }, - Value: "None", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - BranchFalse: &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestPythonVars", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p13479, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p13481, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p13505, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p13509, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p13512, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p13515, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p13518, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p13521, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p13524, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p13527, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p13532, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p13534, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "conf", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(5), - }, - End: Location{ - Line: int(973), - Column: int(32), - }, - file: p1, - }, - context: p13540, - freeVariables: Identifiers{ - "conf", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "vars", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "conf", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "conf", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "conf", - "k", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "conf", - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(19), - }, - End: Location{ - Line: int(972), - Column: int(28), - }, - file: p1, - }, - context: p13566, - freeVariables: nil, - }, - Value: "%s = %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(31), - }, - End: Location{ - Line: int(972), - Column: int(63), - }, - file: p1, - }, - context: p13566, - freeVariables: Identifiers{ - "conf", - "k", - "std", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(32), - }, - End: Location{ - Line: int(972), - Column: int(33), - }, - file: p1, - }, - context: p13571, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(35), - }, - End: Location{ - Line: int(972), - Column: int(62), - }, - file: p1, - }, - context: p13571, - freeVariables: Identifiers{ - "conf", - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(35), - }, - End: Location{ - Line: int(972), - Column: int(53), - }, - file: p1, - }, - context: p13571, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(35), - }, - End: Location{ - Line: int(972), - Column: int(38), - }, - file: p1, - }, - context: p13571, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestPython", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(54), - }, - End: Location{ - Line: int(972), - Column: int(61), - }, - file: p1, - }, - context: p13582, - freeVariables: Identifiers{ - "conf", - "k", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(54), - }, - End: Location{ - Line: int(972), - Column: int(58), - }, - file: p1, - }, - context: p13582, - freeVariables: Identifiers{ - "conf", - }, - }, - Id: "conf", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(59), - }, - End: Location{ - Line: int(972), - Column: int(60), - }, - file: p1, - }, - context: p13582, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(73), - }, - End: Location{ - Line: int(972), - Column: int(95), - }, - file: p1, - }, - context: p13589, - freeVariables: Identifiers{ - "conf", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(73), - }, - End: Location{ - Line: int(972), - Column: int(89), - }, - file: p1, - }, - context: p13589, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(73), - }, - End: Location{ - Line: int(972), - Column: int(76), - }, - file: p1, - }, - context: p13589, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(972), - Column: int(90), - }, - End: Location{ - Line: int(972), - Column: int(94), - }, - file: p1, - }, - context: p13598, - freeVariables: Identifiers{ - "conf", - }, - }, - Id: "conf", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(5), - }, - End: Location{ - Line: int(973), - Column: int(32), - }, - file: p1, - }, - context: p13540, - freeVariables: Identifiers{ - "std", - "vars", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(5), - }, - End: Location{ - Line: int(973), - Column: int(13), - }, - file: p1, - }, - context: p13540, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(5), - }, - End: Location{ - Line: int(973), - Column: int(8), - }, - file: p1, - }, - context: p13540, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(14), - }, - End: Location{ - Line: int(973), - Column: int(18), - }, - file: p1, - }, - context: p13609, - freeVariables: nil, - }, - Value: "\n", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(20), - }, - End: Location{ - Line: int(973), - Column: int(31), - }, - file: p1, - }, - context: p13609, - freeVariables: Identifiers{ - "vars", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(20), - }, - End: Location{ - Line: int(973), - Column: int(24), - }, - file: p1, - }, - context: p13609, - freeVariables: Identifiers{ - "vars", - }, - }, - Id: "vars", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(27), - }, - End: Location{ - Line: int(973), - Column: int(31), - }, - file: p1, - }, - context: p13609, - freeVariables: nil, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(973), - Column: int(28), - }, - End: Location{ - Line: int(973), - Column: int(30), - }, - file: p1, - }, - context: p13617, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "manifestXmlJsonml", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p13622, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p13624, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p13648, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p13652, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p13655, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p13658, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p13661, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p13664, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p13667, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p13670, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p13675, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p13677, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "value", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(5), - }, - End: Location{ - Line: int(991), - Column: int(17), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(8), - }, - End: Location{ - Line: int(976), - Column: int(27), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(9), - }, - End: Location{ - Line: int(976), - Column: int(27), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(9), - }, - End: Location{ - Line: int(976), - Column: int(20), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(9), - }, - End: Location{ - Line: int(976), - Column: int(12), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(976), - Column: int(21), - }, - End: Location{ - Line: int(976), - Column: int(26), - }, - file: p1, - }, - context: p13696, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(7), - }, - End: Location{ - Line: int(977), - Column: int(75), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(13), - }, - End: Location{ - Line: int(977), - Column: int(57), - }, - file: p1, - }, - context: p13683, - freeVariables: nil, - }, - Value: "Expected a JSONML value (an array), got %s", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(60), - }, - End: Location{ - Line: int(977), - Column: int(75), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(60), - }, - End: Location{ - Line: int(977), - Column: int(68), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(60), - }, - End: Location{ - Line: int(977), - Column: int(63), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(977), - Column: int(69), - }, - End: Location{ - Line: int(977), - Column: int(74), - }, - file: p1, - }, - context: p13718, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(979), - Column: int(7), - }, - End: Location{ - Line: int(991), - Column: int(17), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "std", - "value", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(979), - Column: int(13), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13724, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "v", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(980), - Column: int(9), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "aux", - "std", - "v", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(980), - Column: int(12), - }, - End: Location{ - Line: int(980), - Column: int(27), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(980), - Column: int(12), - }, - End: Location{ - Line: int(980), - Column: int(24), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(980), - Column: int(12), - }, - End: Location{ - Line: int(980), - Column: int(15), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "isString", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(980), - Column: int(25), - }, - End: Location{ - Line: int(980), - Column: int(26), - }, - file: p1, - }, - context: p13739, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(981), - Column: int(11), - }, - End: Location{ - Line: int(981), - Column: int(12), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(983), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "aux", - "std", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "tag", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(983), - Column: int(23), - }, - End: Location{ - Line: int(983), - Column: int(27), - }, - file: p1, - }, - context: p13747, - freeVariables: Identifiers{ - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(983), - Column: int(23), - }, - End: Location{ - Line: int(983), - Column: int(24), - }, - file: p1, - }, - context: p13747, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(983), - Column: int(25), - }, - End: Location{ - Line: int(983), - Column: int(26), - }, - file: p1, - }, - context: p13747, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "aux", - "std", - "tag", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "has_attrs", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(29), - }, - End: Location{ - Line: int(984), - Column: int(76), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(29), - }, - End: Location{ - Line: int(984), - Column: int(46), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(29), - }, - End: Location{ - Line: int(984), - Column: int(42), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(29), - }, - End: Location{ - Line: int(984), - Column: int(39), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(29), - }, - End: Location{ - Line: int(984), - Column: int(32), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(40), - }, - End: Location{ - Line: int(984), - Column: int(41), - }, - file: p1, - }, - context: p13769, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(45), - }, - End: Location{ - Line: int(984), - Column: int(46), - }, - file: p1, - }, - context: p13756, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Op: BinaryOp(17), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(50), - }, - End: Location{ - Line: int(984), - Column: int(64), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(50), - }, - End: Location{ - Line: int(984), - Column: int(58), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(50), - }, - End: Location{ - Line: int(984), - Column: int(53), - }, - file: p1, - }, - context: p13756, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(59), - }, - End: Location{ - Line: int(984), - Column: int(63), - }, - file: p1, - }, - context: p13789, - freeVariables: Identifiers{ - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(59), - }, - End: Location{ - Line: int(984), - Column: int(60), - }, - file: p1, - }, - context: p13789, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(61), - }, - End: Location{ - Line: int(984), - Column: int(62), - }, - file: p1, - }, - context: p13789, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(984), - Column: int(68), - }, - End: Location{ - Line: int(984), - Column: int(76), - }, - file: p1, - }, - context: p13756, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "aux", - "has_attrs", - "std", - "tag", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "attrs", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(25), - }, - End: Location{ - Line: int(985), - Column: int(55), - }, - file: p1, - }, - context: p13799, - freeVariables: Identifiers{ - "has_attrs", - "v", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(28), - }, - End: Location{ - Line: int(985), - Column: int(37), - }, - file: p1, - }, - context: p13799, - freeVariables: Identifiers{ - "has_attrs", - }, - }, - Id: "has_attrs", - }, - BranchTrue: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(43), - }, - End: Location{ - Line: int(985), - Column: int(47), - }, - file: p1, - }, - context: p13799, - freeVariables: Identifiers{ - "v", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(43), - }, - End: Location{ - Line: int(985), - Column: int(44), - }, - file: p1, - }, - context: p13799, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - Index: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(45), - }, - End: Location{ - Line: int(985), - Column: int(46), - }, - file: p1, - }, - context: p13799, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - Id: nil, - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(985), - Column: int(53), - }, - End: Location{ - Line: int(985), - Column: int(55), - }, - file: p1, - }, - context: p13799, - freeVariables: nil, - }, - Asserts: nil, - Fields: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "attrs", - "aux", - "has_attrs", - "std", - "tag", - "v", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "children", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(28), - }, - End: Location{ - Line: int(986), - Column: int(62), - }, - file: p1, - }, - context: p13813, - freeVariables: Identifiers{ - "has_attrs", - "std", - "v", - }, - }, - Cond: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(31), - }, - End: Location{ - Line: int(986), - Column: int(40), - }, - file: p1, - }, - context: p13813, - freeVariables: Identifiers{ - "has_attrs", - }, - }, - Id: "has_attrs", - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(46), - }, - End: Location{ - Line: int(986), - Column: int(47), - }, - file: p1, - }, - context: p13813, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(48), - }, - End: Location{ - Line: int(986), - Column: int(49), - }, - file: p1, - }, - context: p13813, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "v", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "slice", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(57), - }, - End: Location{ - Line: int(986), - Column: int(58), - }, - file: p1, - }, - context: p13813, - freeVariables: Identifiers{ - "v", - }, - }, - Id: "v", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(986), - Column: int(59), - }, - End: Location{ - Line: int(986), - Column: int(60), - }, - file: p1, - }, - context: p13813, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(987), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "attrs", - "aux", - "children", - "std", - "tag", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "attrs_str", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(13), - }, - End: Location{ - Line: int(988), - Column: int(88), - }, - file: p1, - }, - context: p13847, - freeVariables: Identifiers{ - "attrs", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(13), - }, - End: Location{ - Line: int(988), - Column: int(21), - }, - file: p1, - }, - context: p13847, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(13), - }, - End: Location{ - Line: int(988), - Column: int(16), - }, - file: p1, - }, - context: p13847, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(22), - }, - End: Location{ - Line: int(988), - Column: int(24), - }, - file: p1, - }, - context: p13856, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "attrs", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "attrs", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "attrs", - "k", - "std", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "attrs", - "k", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(27), - }, - End: Location{ - Line: int(988), - Column: int(37), - }, - file: p1, - }, - context: p13880, - freeVariables: nil, - }, - Value: " %s=\"%s\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(40), - }, - End: Location{ - Line: int(988), - Column: int(53), - }, - file: p1, - }, - context: p13880, - freeVariables: Identifiers{ - "attrs", - "k", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(41), - }, - End: Location{ - Line: int(988), - Column: int(42), - }, - file: p1, - }, - context: p13885, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(44), - }, - End: Location{ - Line: int(988), - Column: int(52), - }, - file: p1, - }, - context: p13885, - freeVariables: Identifiers{ - "attrs", - "k", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(44), - }, - End: Location{ - Line: int(988), - Column: int(49), - }, - file: p1, - }, - context: p13885, - freeVariables: Identifiers{ - "attrs", - }, - }, - Id: "attrs", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(50), - }, - End: Location{ - Line: int(988), - Column: int(51), - }, - file: p1, - }, - context: p13885, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(63), - }, - End: Location{ - Line: int(988), - Column: int(86), - }, - file: p1, - }, - context: p13856, - freeVariables: Identifiers{ - "attrs", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(63), - }, - End: Location{ - Line: int(988), - Column: int(79), - }, - file: p1, - }, - context: p13856, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(63), - }, - End: Location{ - Line: int(988), - Column: int(66), - }, - file: p1, - }, - context: p13856, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(988), - Column: int(80), - }, - End: Location{ - Line: int(988), - Column: int(85), - }, - file: p1, - }, - context: p13902, - freeVariables: Identifiers{ - "attrs", - }, - }, - Id: "attrs", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(95), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "attrs_str", - "aux", - "children", - "std", - "tag", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(23), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(11), - }, - End: Location{ - Line: int(989), - Column: int(14), - }, - file: p1, - }, - context: p13728, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "deepJoin", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(24), - }, - End: Location{ - Line: int(989), - Column: int(94), - }, - file: p1, - }, - context: p13913, - freeVariables: Identifiers{ - "attrs_str", - "aux", - "children", - "std", - "tag", - }, - }, - Elements: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(25), - }, - End: Location{ - Line: int(989), - Column: int(28), - }, - file: p1, - }, - context: p13917, - freeVariables: nil, - }, - Value: "<", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(30), - }, - End: Location{ - Line: int(989), - Column: int(33), - }, - file: p1, - }, - context: p13917, - freeVariables: Identifiers{ - "tag", - }, - }, - Id: "tag", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(35), - }, - End: Location{ - Line: int(989), - Column: int(44), - }, - file: p1, - }, - context: p13917, - freeVariables: Identifiers{ - "attrs_str", - }, - }, - Id: "attrs_str", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(46), - }, - End: Location{ - Line: int(989), - Column: int(49), - }, - file: p1, - }, - context: p13917, - freeVariables: nil, - }, - Value: ">", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "children", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "aux", - "x", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(52), - }, - End: Location{ - Line: int(989), - Column: int(58), - }, - file: p1, - }, - context: p13938, - freeVariables: Identifiers{ - "aux", - "x", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(52), - }, - End: Location{ - Line: int(989), - Column: int(55), - }, - file: p1, - }, - context: p13938, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(56), - }, - End: Location{ - Line: int(989), - Column: int(57), - }, - file: p1, - }, - context: p13944, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(68), - }, - End: Location{ - Line: int(989), - Column: int(76), - }, - file: p1, - }, - context: p13917, - freeVariables: Identifiers{ - "children", - }, - }, - Id: "children", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(79), - }, - End: Location{ - Line: int(989), - Column: int(83), - }, - file: p1, - }, - context: p13917, - freeVariables: nil, - }, - Value: "", - Begin: Location{ - Line: int(989), - Column: int(85), - }, - End: Location{ - Line: int(989), - Column: int(88), - }, - file: p1, - }, - context: p13917, - freeVariables: Identifiers{ - "tag", - }, - }, - Id: "tag", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(989), - Column: int(90), - }, - End: Location{ - Line: int(989), - Column: int(93), - }, - file: p1, - }, - context: p13917, - freeVariables: nil, - }, - Value: ">", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(991), - Column: int(7), - }, - End: Location{ - Line: int(991), - Column: int(17), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "aux", - "value", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(991), - Column: int(7), - }, - End: Location{ - Line: int(991), - Column: int(10), - }, - file: p1, - }, - context: p13683, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(991), - Column: int(11), - }, - End: Location{ - Line: int(991), - Column: int(16), - }, - file: p1, - }, - context: p13958, - freeVariables: Identifiers{ - "value", - }, - }, - Id: "value", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "base64", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p13964, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p13966, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p13990, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p13994, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p13997, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p14000, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p14003, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p14006, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p14009, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p14012, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p14017, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p14019, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "input", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(997), - Column: int(5), - }, - End: Location{ - Line: int(1040), - Column: int(24), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "base64_table", - "input", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "bytes", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(7), - }, - End: Location{ - Line: int(1001), - Column: int(14), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "input", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "input", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(10), - }, - End: Location{ - Line: int(998), - Column: int(25), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "input", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(10), - }, - End: Location{ - Line: int(998), - Column: int(18), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(10), - }, - End: Location{ - Line: int(998), - Column: int(13), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(19), - }, - End: Location{ - Line: int(998), - Column: int(24), - }, - file: p1, - }, - context: p14048, - freeVariables: Identifiers{ - "input", - }, - }, - Id: "input", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(998), - Column: int(29), - }, - End: Location{ - Line: int(998), - Column: int(37), - }, - file: p1, - }, - context: p14029, - freeVariables: nil, - }, - Value: "string", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(9), - }, - End: Location{ - Line: int(999), - Column: int(53), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "input", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(9), - }, - End: Location{ - Line: int(999), - Column: int(16), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(9), - }, - End: Location{ - Line: int(999), - Column: int(12), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(17), - }, - End: Location{ - Line: int(999), - Column: int(45), - }, - file: p1, - }, - context: p14060, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "c", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(29), - }, - End: Location{ - Line: int(999), - Column: int(45), - }, - file: p1, - }, - context: p14064, - freeVariables: Identifiers{ - "c", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(29), - }, - End: Location{ - Line: int(999), - Column: int(42), - }, - file: p1, - }, - context: p14064, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(29), - }, - End: Location{ - Line: int(999), - Column: int(32), - }, - file: p1, - }, - context: p14064, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "codepoint", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(43), - }, - End: Location{ - Line: int(999), - Column: int(44), - }, - file: p1, - }, - context: p14073, - freeVariables: Identifiers{ - "c", - }, - }, - Id: "c", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(999), - Column: int(47), - }, - End: Location{ - Line: int(999), - Column: int(52), - }, - file: p1, - }, - context: p14060, - freeVariables: Identifiers{ - "input", - }, - }, - Id: "input", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1001), - Column: int(9), - }, - End: Location{ - Line: int(1001), - Column: int(14), - }, - file: p1, - }, - context: p14029, - freeVariables: Identifiers{ - "input", - }, - }, - Id: "input", - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1003), - Column: int(5), - }, - End: Location{ - Line: int(1040), - Column: int(24), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "base64_table", - "bytes", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1003), - Column: int(11), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14083, - freeVariables: Identifiers{ - "aux", - "base64_table", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - "i", - "r", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(7), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(10), - }, - End: Location{ - Line: int(1004), - Column: int(30), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(10), - }, - End: Location{ - Line: int(1004), - Column: int(11), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(15), - }, - End: Location{ - Line: int(1004), - Column: int(30), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(15), - }, - End: Location{ - Line: int(1004), - Column: int(25), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(15), - }, - End: Location{ - Line: int(1004), - Column: int(18), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1004), - Column: int(26), - }, - End: Location{ - Line: int(1004), - Column: int(29), - }, - file: p1, - }, - context: p14102, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1005), - Column: int(9), - }, - End: Location{ - Line: int(1005), - Column: int(10), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(12), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(15), - }, - End: Location{ - Line: int(1006), - Column: int(39), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(15), - }, - End: Location{ - Line: int(1006), - Column: int(20), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(15), - }, - End: Location{ - Line: int(1006), - Column: int(16), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(19), - }, - End: Location{ - Line: int(1006), - Column: int(20), - }, - file: p1, - }, - context: p14087, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(24), - }, - End: Location{ - Line: int(1006), - Column: int(39), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(24), - }, - End: Location{ - Line: int(1006), - Column: int(34), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(24), - }, - End: Location{ - Line: int(1006), - Column: int(27), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1006), - Column: int(35), - }, - End: Location{ - Line: int(1006), - Column: int(38), - }, - file: p1, - }, - context: p14124, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1007), - Column: int(9), - }, - End: Location{ - Line: int(1013), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(11), - }, - End: Location{ - Line: int(1012), - Column: int(15), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(11), - }, - End: Location{ - Line: int(1011), - Column: int(42), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(11), - }, - End: Location{ - Line: int(1009), - Column: int(44), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(11), - }, - End: Location{ - Line: int(1009), - Column: int(23), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(24), - }, - End: Location{ - Line: int(1009), - Column: int(43), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(25), - }, - End: Location{ - Line: int(1009), - Column: int(37), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(25), - }, - End: Location{ - Line: int(1009), - Column: int(31), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(25), - }, - End: Location{ - Line: int(1009), - Column: int(28), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(29), - }, - End: Location{ - Line: int(1009), - Column: int(30), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(34), - }, - End: Location{ - Line: int(1009), - Column: int(37), - }, - file: p1, - }, - context: p14130, - freeVariables: nil, - }, - Value: float64(252), - OriginalString: "252", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1009), - Column: int(42), - }, - End: Location{ - Line: int(1009), - Column: int(43), - }, - file: p1, - }, - context: p14130, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(11), - }, - End: Location{ - Line: int(1011), - Column: int(42), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(11), - }, - End: Location{ - Line: int(1011), - Column: int(23), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(24), - }, - End: Location{ - Line: int(1011), - Column: int(41), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(25), - }, - End: Location{ - Line: int(1011), - Column: int(35), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(25), - }, - End: Location{ - Line: int(1011), - Column: int(31), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(25), - }, - End: Location{ - Line: int(1011), - Column: int(28), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(29), - }, - End: Location{ - Line: int(1011), - Column: int(30), - }, - file: p1, - }, - context: p14130, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(34), - }, - End: Location{ - Line: int(1011), - Column: int(35), - }, - file: p1, - }, - context: p14130, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1011), - Column: int(40), - }, - End: Location{ - Line: int(1011), - Column: int(41), - }, - file: p1, - }, - context: p14130, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - Id: nil, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1012), - Column: int(11), - }, - End: Location{ - Line: int(1012), - Column: int(15), - }, - file: p1, - }, - context: p14130, - freeVariables: nil, - }, - Value: "==", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(9), - }, - End: Location{ - Line: int(1013), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "i", - "r", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(9), - }, - End: Location{ - Line: int(1013), - Column: int(12), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(13), - }, - End: Location{ - Line: int(1013), - Column: int(16), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(18), - }, - End: Location{ - Line: int(1013), - Column: int(23), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(18), - }, - End: Location{ - Line: int(1013), - Column: int(19), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(22), - }, - End: Location{ - Line: int(1013), - Column: int(23), - }, - file: p1, - }, - context: p14173, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(25), - }, - End: Location{ - Line: int(1013), - Column: int(32), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "r", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(25), - }, - End: Location{ - Line: int(1013), - Column: int(26), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1013), - Column: int(29), - }, - End: Location{ - Line: int(1013), - Column: int(32), - }, - file: p1, - }, - context: p14173, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(12), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(15), - }, - End: Location{ - Line: int(1014), - Column: int(39), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "i", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(15), - }, - End: Location{ - Line: int(1014), - Column: int(20), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(15), - }, - End: Location{ - Line: int(1014), - Column: int(16), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(19), - }, - End: Location{ - Line: int(1014), - Column: int(20), - }, - file: p1, - }, - context: p14087, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(24), - }, - End: Location{ - Line: int(1014), - Column: int(39), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(24), - }, - End: Location{ - Line: int(1014), - Column: int(34), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(24), - }, - End: Location{ - Line: int(1014), - Column: int(27), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1014), - Column: int(35), - }, - End: Location{ - Line: int(1014), - Column: int(38), - }, - file: p1, - }, - context: p14204, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1015), - Column: int(9), - }, - End: Location{ - Line: int(1023), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(11), - }, - End: Location{ - Line: int(1022), - Column: int(14), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(11), - }, - End: Location{ - Line: int(1021), - Column: int(47), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(11), - }, - End: Location{ - Line: int(1019), - Column: int(68), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(11), - }, - End: Location{ - Line: int(1017), - Column: int(44), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(11), - }, - End: Location{ - Line: int(1017), - Column: int(23), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(24), - }, - End: Location{ - Line: int(1017), - Column: int(43), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(25), - }, - End: Location{ - Line: int(1017), - Column: int(37), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(25), - }, - End: Location{ - Line: int(1017), - Column: int(31), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(25), - }, - End: Location{ - Line: int(1017), - Column: int(28), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(29), - }, - End: Location{ - Line: int(1017), - Column: int(30), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(34), - }, - End: Location{ - Line: int(1017), - Column: int(37), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(252), - OriginalString: "252", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1017), - Column: int(42), - }, - End: Location{ - Line: int(1017), - Column: int(43), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(11), - }, - End: Location{ - Line: int(1019), - Column: int(68), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(11), - }, - End: Location{ - Line: int(1019), - Column: int(23), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(24), - }, - End: Location{ - Line: int(1019), - Column: int(67), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(24), - }, - End: Location{ - Line: int(1019), - Column: int(41), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(25), - }, - End: Location{ - Line: int(1019), - Column: int(35), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(25), - }, - End: Location{ - Line: int(1019), - Column: int(31), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(25), - }, - End: Location{ - Line: int(1019), - Column: int(28), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(29), - }, - End: Location{ - Line: int(1019), - Column: int(30), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(34), - }, - End: Location{ - Line: int(1019), - Column: int(35), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(40), - }, - End: Location{ - Line: int(1019), - Column: int(41), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - Op: BinaryOp(16), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(44), - }, - End: Location{ - Line: int(1019), - Column: int(67), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(45), - }, - End: Location{ - Line: int(1019), - Column: int(61), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(45), - }, - End: Location{ - Line: int(1019), - Column: int(55), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(45), - }, - End: Location{ - Line: int(1019), - Column: int(48), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(49), - }, - End: Location{ - Line: int(1019), - Column: int(54), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(49), - }, - End: Location{ - Line: int(1019), - Column: int(50), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(53), - }, - End: Location{ - Line: int(1019), - Column: int(54), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(58), - }, - End: Location{ - Line: int(1019), - Column: int(61), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(240), - OriginalString: "240", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1019), - Column: int(66), - }, - End: Location{ - Line: int(1019), - Column: int(67), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - }, - Id: nil, - }, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(11), - }, - End: Location{ - Line: int(1021), - Column: int(47), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(11), - }, - End: Location{ - Line: int(1021), - Column: int(23), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(24), - }, - End: Location{ - Line: int(1021), - Column: int(46), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(25), - }, - End: Location{ - Line: int(1021), - Column: int(40), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(25), - }, - End: Location{ - Line: int(1021), - Column: int(35), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(25), - }, - End: Location{ - Line: int(1021), - Column: int(28), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(29), - }, - End: Location{ - Line: int(1021), - Column: int(34), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(29), - }, - End: Location{ - Line: int(1021), - Column: int(30), - }, - file: p1, - }, - context: p14210, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(33), - }, - End: Location{ - Line: int(1021), - Column: int(34), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(38), - }, - End: Location{ - Line: int(1021), - Column: int(40), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(15), - OriginalString: "15", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1021), - Column: int(45), - }, - End: Location{ - Line: int(1021), - Column: int(46), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - }, - Op: BinaryOp(3), - Right: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1022), - Column: int(11), - }, - End: Location{ - Line: int(1022), - Column: int(14), - }, - file: p1, - }, - context: p14210, - freeVariables: nil, - }, - Value: "=", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(9), - }, - End: Location{ - Line: int(1023), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "i", - "r", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(9), - }, - End: Location{ - Line: int(1023), - Column: int(12), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(13), - }, - End: Location{ - Line: int(1023), - Column: int(16), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(18), - }, - End: Location{ - Line: int(1023), - Column: int(23), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(18), - }, - End: Location{ - Line: int(1023), - Column: int(19), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(22), - }, - End: Location{ - Line: int(1023), - Column: int(23), - }, - file: p1, - }, - context: p14291, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(25), - }, - End: Location{ - Line: int(1023), - Column: int(32), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "r", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(25), - }, - End: Location{ - Line: int(1023), - Column: int(26), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1023), - Column: int(29), - }, - End: Location{ - Line: int(1023), - Column: int(32), - }, - file: p1, - }, - context: p14291, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1025), - Column: int(9), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "base64_table", - "i", - "r", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "str", - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(11), - }, - End: Location{ - Line: int(1033), - Column: int(42), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(11), - }, - End: Location{ - Line: int(1031), - Column: int(73), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(11), - }, - End: Location{ - Line: int(1029), - Column: int(68), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(11), - }, - End: Location{ - Line: int(1027), - Column: int(44), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(11), - }, - End: Location{ - Line: int(1027), - Column: int(23), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(24), - }, - End: Location{ - Line: int(1027), - Column: int(43), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(25), - }, - End: Location{ - Line: int(1027), - Column: int(37), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(25), - }, - End: Location{ - Line: int(1027), - Column: int(31), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(25), - }, - End: Location{ - Line: int(1027), - Column: int(28), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(29), - }, - End: Location{ - Line: int(1027), - Column: int(30), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(34), - }, - End: Location{ - Line: int(1027), - Column: int(37), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(252), - OriginalString: "252", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1027), - Column: int(42), - }, - End: Location{ - Line: int(1027), - Column: int(43), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(11), - }, - End: Location{ - Line: int(1029), - Column: int(68), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(11), - }, - End: Location{ - Line: int(1029), - Column: int(23), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(24), - }, - End: Location{ - Line: int(1029), - Column: int(67), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(24), - }, - End: Location{ - Line: int(1029), - Column: int(41), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(25), - }, - End: Location{ - Line: int(1029), - Column: int(35), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(25), - }, - End: Location{ - Line: int(1029), - Column: int(31), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(25), - }, - End: Location{ - Line: int(1029), - Column: int(28), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(29), - }, - End: Location{ - Line: int(1029), - Column: int(30), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(34), - }, - End: Location{ - Line: int(1029), - Column: int(35), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(40), - }, - End: Location{ - Line: int(1029), - Column: int(41), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - Op: BinaryOp(16), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(44), - }, - End: Location{ - Line: int(1029), - Column: int(67), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(45), - }, - End: Location{ - Line: int(1029), - Column: int(61), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(45), - }, - End: Location{ - Line: int(1029), - Column: int(55), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(45), - }, - End: Location{ - Line: int(1029), - Column: int(48), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(49), - }, - End: Location{ - Line: int(1029), - Column: int(54), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(49), - }, - End: Location{ - Line: int(1029), - Column: int(50), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(53), - }, - End: Location{ - Line: int(1029), - Column: int(54), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(58), - }, - End: Location{ - Line: int(1029), - Column: int(61), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(240), - OriginalString: "240", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1029), - Column: int(66), - }, - End: Location{ - Line: int(1029), - Column: int(67), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - }, - Id: nil, - }, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(11), - }, - End: Location{ - Line: int(1031), - Column: int(73), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(11), - }, - End: Location{ - Line: int(1031), - Column: int(23), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(24), - }, - End: Location{ - Line: int(1031), - Column: int(72), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(24), - }, - End: Location{ - Line: int(1031), - Column: int(46), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(25), - }, - End: Location{ - Line: int(1031), - Column: int(40), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(25), - }, - End: Location{ - Line: int(1031), - Column: int(35), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(25), - }, - End: Location{ - Line: int(1031), - Column: int(28), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(29), - }, - End: Location{ - Line: int(1031), - Column: int(34), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(29), - }, - End: Location{ - Line: int(1031), - Column: int(30), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(33), - }, - End: Location{ - Line: int(1031), - Column: int(34), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(38), - }, - End: Location{ - Line: int(1031), - Column: int(40), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(15), - OriginalString: "15", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(45), - }, - End: Location{ - Line: int(1031), - Column: int(46), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Op: BinaryOp(16), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(49), - }, - End: Location{ - Line: int(1031), - Column: int(72), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(50), - }, - End: Location{ - Line: int(1031), - Column: int(66), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(50), - }, - End: Location{ - Line: int(1031), - Column: int(60), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(50), - }, - End: Location{ - Line: int(1031), - Column: int(53), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(54), - }, - End: Location{ - Line: int(1031), - Column: int(59), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(54), - }, - End: Location{ - Line: int(1031), - Column: int(55), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(58), - }, - End: Location{ - Line: int(1031), - Column: int(59), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(63), - }, - End: Location{ - Line: int(1031), - Column: int(66), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(192), - OriginalString: "192", - }, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1031), - Column: int(71), - }, - End: Location{ - Line: int(1031), - Column: int(72), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(6), - OriginalString: "6", - }, - }, - }, - Id: nil, - }, - }, - Op: BinaryOp(3), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(11), - }, - End: Location{ - Line: int(1033), - Column: int(42), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(11), - }, - End: Location{ - Line: int(1033), - Column: int(23), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(25), - }, - End: Location{ - Line: int(1033), - Column: int(40), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(25), - }, - End: Location{ - Line: int(1033), - Column: int(35), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(25), - }, - End: Location{ - Line: int(1033), - Column: int(28), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(29), - }, - End: Location{ - Line: int(1033), - Column: int(34), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(29), - }, - End: Location{ - Line: int(1033), - Column: int(30), - }, - file: p1, - }, - context: p14308, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(33), - }, - End: Location{ - Line: int(1033), - Column: int(34), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1033), - Column: int(38), - }, - End: Location{ - Line: int(1033), - Column: int(40), - }, - file: p1, - }, - context: p14308, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Id: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(9), - }, - End: Location{ - Line: int(1034), - Column: int(33), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "arr", - "aux", - "i", - "r", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(9), - }, - End: Location{ - Line: int(1034), - Column: int(12), - }, - file: p1, - }, - context: p14087, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(13), - }, - End: Location{ - Line: int(1034), - Column: int(16), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(18), - }, - End: Location{ - Line: int(1034), - Column: int(23), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(18), - }, - End: Location{ - Line: int(1034), - Column: int(19), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(22), - }, - End: Location{ - Line: int(1034), - Column: int(23), - }, - file: p1, - }, - context: p14421, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(25), - }, - End: Location{ - Line: int(1034), - Column: int(32), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "r", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(25), - }, - End: Location{ - Line: int(1034), - Column: int(26), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1034), - Column: int(29), - }, - End: Location{ - Line: int(1034), - Column: int(32), - }, - file: p1, - }, - context: p14421, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(5), - }, - End: Location{ - Line: int(1040), - Column: int(24), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "aux", - "bytes", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "sanity", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(20), - }, - End: Location{ - Line: int(1036), - Column: int(73), - }, - file: p1, - }, - context: p14438, - freeVariables: Identifiers{ - "bytes", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(20), - }, - End: Location{ - Line: int(1036), - Column: int(29), - }, - file: p1, - }, - context: p14438, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(20), - }, - End: Location{ - Line: int(1036), - Column: int(23), - }, - file: p1, - }, - context: p14438, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(30), - }, - End: Location{ - Line: int(1036), - Column: int(59), - }, - file: p1, - }, - context: p14447, - freeVariables: nil, - }, - Parameters: Parameters{ - Required: Identifiers{ - "r", - "a", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(45), - }, - End: Location{ - Line: int(1036), - Column: int(59), - }, - file: p1, - }, - context: p14450, - freeVariables: Identifiers{ - "a", - "r", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(45), - }, - End: Location{ - Line: int(1036), - Column: int(46), - }, - file: p1, - }, - context: p14450, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Op: BinaryOp(17), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(51), - }, - End: Location{ - Line: int(1036), - Column: int(58), - }, - file: p1, - }, - context: p14450, - freeVariables: Identifiers{ - "a", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(51), - }, - End: Location{ - Line: int(1036), - Column: int(52), - }, - file: p1, - }, - context: p14450, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(9), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(55), - }, - End: Location{ - Line: int(1036), - Column: int(58), - }, - file: p1, - }, - context: p14450, - freeVariables: nil, - }, - Value: float64(256), - OriginalString: "256", - }, - }, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(61), - }, - End: Location{ - Line: int(1036), - Column: int(66), - }, - file: p1, - }, - context: p14447, - freeVariables: Identifiers{ - "bytes", - }, - }, - Id: "bytes", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1036), - Column: int(68), - }, - End: Location{ - Line: int(1036), - Column: int(72), - }, - file: p1, - }, - context: p14447, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1037), - Column: int(5), - }, - End: Location{ - Line: int(1040), - Column: int(24), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "aux", - "bytes", - "sanity", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1037), - Column: int(8), - }, - End: Location{ - Line: int(1037), - Column: int(15), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "sanity", - }, - }, - Op: UnaryOp(0), - Expr: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1037), - Column: int(9), - }, - End: Location{ - Line: int(1037), - Column: int(15), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "sanity", - }, - }, - Id: "sanity", - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1038), - Column: int(7), - }, - End: Location{ - Line: int(1038), - Column: int(71), - }, - file: p1, - }, - context: p14025, - freeVariables: nil, - }, - Expr: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1038), - Column: int(13), - }, - End: Location{ - Line: int(1038), - Column: int(71), - }, - file: p1, - }, - context: p14025, - freeVariables: nil, - }, - Value: "Can only base64 encode strings / arrays of single bytes.", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1040), - Column: int(7), - }, - End: Location{ - Line: int(1040), - Column: int(24), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "aux", - "bytes", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1040), - Column: int(7), - }, - End: Location{ - Line: int(1040), - Column: int(10), - }, - file: p1, - }, - context: p14025, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1040), - Column: int(11), - }, - End: Location{ - Line: int(1040), - Column: int(16), - }, - file: p1, - }, - context: p14476, - freeVariables: Identifiers{ - "bytes", - }, - }, - Id: "bytes", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1040), - Column: int(18), - }, - End: Location{ - Line: int(1040), - Column: int(19), - }, - file: p1, - }, - context: p14476, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1040), - Column: int(21), - }, - End: Location{ - Line: int(1040), - Column: int(23), - }, - file: p1, - }, - context: p14476, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "base64DecodeBytes", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p14484, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p14486, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p14510, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p14514, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p14517, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p14520, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p14523, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p14526, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p14529, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p14532, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p14537, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p14539, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "base64_inv", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(5), - }, - End: Location{ - Line: int(1062), - Column: int(22), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "base64_inv", - "std", - "str", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(8), - }, - End: Location{ - Line: int(1044), - Column: int(23), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(8), - }, - End: Location{ - Line: int(1044), - Column: int(18), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(8), - }, - End: Location{ - Line: int(1044), - Column: int(11), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(19), - }, - End: Location{ - Line: int(1044), - Column: int(22), - }, - file: p1, - }, - context: p14574, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(26), - }, - End: Location{ - Line: int(1044), - Column: int(27), - }, - file: p1, - }, - context: p14545, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1044), - Column: int(31), - }, - End: Location{ - Line: int(1044), - Column: int(32), - }, - file: p1, - }, - context: p14545, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Error{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1045), - Column: int(7), - }, - End: Location{ - Line: int(1045), - Column: int(53), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mod", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1045), - Column: int(13), - }, - End: Location{ - Line: int(1045), - Column: int(47), - }, - file: p1, - }, - context: p14545, - freeVariables: nil, - }, - Value: "Not a base64 encoded string \"%s\"", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1045), - Column: int(50), - }, - End: Location{ - Line: int(1045), - Column: int(53), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1047), - Column: int(7), - }, - End: Location{ - Line: int(1062), - Column: int(22), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "base64_inv", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1047), - Column: int(13), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14595, - freeVariables: Identifiers{ - "aux", - "base64_inv", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - "i", - "r", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(9), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - "base64_inv", - "i", - "r", - "std", - "str", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(12), - }, - End: Location{ - Line: int(1048), - Column: int(32), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(12), - }, - End: Location{ - Line: int(1048), - Column: int(13), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(17), - }, - End: Location{ - Line: int(1048), - Column: int(32), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(17), - }, - End: Location{ - Line: int(1048), - Column: int(27), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(17), - }, - End: Location{ - Line: int(1048), - Column: int(20), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1048), - Column: int(28), - }, - End: Location{ - Line: int(1048), - Column: int(31), - }, - file: p1, - }, - context: p14614, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1049), - Column: int(11), - }, - End: Location{ - Line: int(1049), - Column: int(12), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(11), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - "base64_inv", - "i", - "r", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n1", - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(22), - }, - End: Location{ - Line: int(1052), - Column: int(79), - }, - file: p1, - }, - context: p14622, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(23), - }, - End: Location{ - Line: int(1052), - Column: int(78), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(23), - }, - End: Location{ - Line: int(1052), - Column: int(46), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(23), - }, - End: Location{ - Line: int(1052), - Column: int(41), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(23), - }, - End: Location{ - Line: int(1052), - Column: int(33), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(34), - }, - End: Location{ - Line: int(1052), - Column: int(40), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(34), - }, - End: Location{ - Line: int(1052), - Column: int(37), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(38), - }, - End: Location{ - Line: int(1052), - Column: int(39), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Id: nil, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(45), - }, - End: Location{ - Line: int(1052), - Column: int(46), - }, - file: p1, - }, - context: p14626, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Op: BinaryOp(16), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(50), - }, - End: Location{ - Line: int(1052), - Column: int(77), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(50), - }, - End: Location{ - Line: int(1052), - Column: int(72), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(50), - }, - End: Location{ - Line: int(1052), - Column: int(60), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(61), - }, - End: Location{ - Line: int(1052), - Column: int(71), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(61), - }, - End: Location{ - Line: int(1052), - Column: int(64), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(65), - }, - End: Location{ - Line: int(1052), - Column: int(70), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(65), - }, - End: Location{ - Line: int(1052), - Column: int(66), - }, - file: p1, - }, - context: p14626, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(69), - }, - End: Location{ - Line: int(1052), - Column: int(70), - }, - file: p1, - }, - context: p14626, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Id: nil, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1052), - Column: int(76), - }, - End: Location{ - Line: int(1052), - Column: int(77), - }, - file: p1, - }, - context: p14626, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - }, - }, - TrailingComma: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1054), - Column: int(11), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - "base64_inv", - "i", - "n1", - "r", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n2", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(13), - }, - End: Location{ - Line: int(1056), - Column: int(86), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "base64_inv", - "i", - "std", - "str", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(16), - }, - End: Location{ - Line: int(1055), - Column: int(26), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(16), - }, - End: Location{ - Line: int(1055), - Column: int(19), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(20), - }, - End: Location{ - Line: int(1055), - Column: int(25), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(20), - }, - End: Location{ - Line: int(1055), - Column: int(21), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(24), - }, - End: Location{ - Line: int(1055), - Column: int(25), - }, - file: p1, - }, - context: p14661, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(30), - }, - End: Location{ - Line: int(1055), - Column: int(33), - }, - file: p1, - }, - context: p14661, - freeVariables: nil, - }, - Value: "=", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1055), - Column: int(39), - }, - End: Location{ - Line: int(1055), - Column: int(41), - }, - file: p1, - }, - context: p14661, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(18), - }, - End: Location{ - Line: int(1056), - Column: int(86), - }, - file: p1, - }, - context: p14661, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(19), - }, - End: Location{ - Line: int(1056), - Column: int(85), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(19), - }, - End: Location{ - Line: int(1056), - Column: int(53), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(20), - }, - End: Location{ - Line: int(1056), - Column: int(47), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(20), - }, - End: Location{ - Line: int(1056), - Column: int(42), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(20), - }, - End: Location{ - Line: int(1056), - Column: int(30), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(31), - }, - End: Location{ - Line: int(1056), - Column: int(41), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(31), - }, - End: Location{ - Line: int(1056), - Column: int(34), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(35), - }, - End: Location{ - Line: int(1056), - Column: int(40), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(35), - }, - End: Location{ - Line: int(1056), - Column: int(36), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(39), - }, - End: Location{ - Line: int(1056), - Column: int(40), - }, - file: p1, - }, - context: p14686, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(45), - }, - End: Location{ - Line: int(1056), - Column: int(47), - }, - file: p1, - }, - context: p14686, - freeVariables: nil, - }, - Value: float64(15), - OriginalString: "15", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(52), - }, - End: Location{ - Line: int(1056), - Column: int(53), - }, - file: p1, - }, - context: p14686, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - Op: BinaryOp(16), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(57), - }, - End: Location{ - Line: int(1056), - Column: int(84), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(57), - }, - End: Location{ - Line: int(1056), - Column: int(79), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(57), - }, - End: Location{ - Line: int(1056), - Column: int(67), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(68), - }, - End: Location{ - Line: int(1056), - Column: int(78), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(68), - }, - End: Location{ - Line: int(1056), - Column: int(71), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(72), - }, - End: Location{ - Line: int(1056), - Column: int(77), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(72), - }, - End: Location{ - Line: int(1056), - Column: int(73), - }, - file: p1, - }, - context: p14686, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(76), - }, - End: Location{ - Line: int(1056), - Column: int(77), - }, - file: p1, - }, - context: p14686, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Id: nil, - }, - Op: BinaryOp(6), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1056), - Column: int(83), - }, - End: Location{ - Line: int(1056), - Column: int(84), - }, - file: p1, - }, - context: p14686, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - }, - }, - TrailingComma: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1058), - Column: int(11), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - "base64_inv", - "i", - "n1", - "n2", - "r", - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "n3", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(13), - }, - End: Location{ - Line: int(1060), - Column: int(78), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "base64_inv", - "i", - "std", - "str", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "i", - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(16), - }, - End: Location{ - Line: int(1059), - Column: int(26), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(16), - }, - End: Location{ - Line: int(1059), - Column: int(19), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(20), - }, - End: Location{ - Line: int(1059), - Column: int(25), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(20), - }, - End: Location{ - Line: int(1059), - Column: int(21), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(24), - }, - End: Location{ - Line: int(1059), - Column: int(25), - }, - file: p1, - }, - context: p14727, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Id: nil, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(30), - }, - End: Location{ - Line: int(1059), - Column: int(33), - }, - file: p1, - }, - context: p14727, - freeVariables: nil, - }, - Value: "=", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1059), - Column: int(39), - }, - End: Location{ - Line: int(1059), - Column: int(41), - }, - file: p1, - }, - context: p14727, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(18), - }, - End: Location{ - Line: int(1060), - Column: int(78), - }, - file: p1, - }, - context: p14727, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Elements: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(19), - }, - End: Location{ - Line: int(1060), - Column: int(77), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(19), - }, - End: Location{ - Line: int(1060), - Column: int(52), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(20), - }, - End: Location{ - Line: int(1060), - Column: int(46), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(20), - }, - End: Location{ - Line: int(1060), - Column: int(42), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(20), - }, - End: Location{ - Line: int(1060), - Column: int(30), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(31), - }, - End: Location{ - Line: int(1060), - Column: int(41), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(31), - }, - End: Location{ - Line: int(1060), - Column: int(34), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(35), - }, - End: Location{ - Line: int(1060), - Column: int(40), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(35), - }, - End: Location{ - Line: int(1060), - Column: int(36), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(39), - }, - End: Location{ - Line: int(1060), - Column: int(40), - }, - file: p1, - }, - context: p14752, - freeVariables: nil, - }, - Value: float64(2), - OriginalString: "2", - }, - }, - Id: nil, - }, - Id: nil, - }, - Op: BinaryOp(14), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(45), - }, - End: Location{ - Line: int(1060), - Column: int(46), - }, - file: p1, - }, - context: p14752, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Op: BinaryOp(5), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(51), - }, - End: Location{ - Line: int(1060), - Column: int(52), - }, - file: p1, - }, - context: p14752, - freeVariables: nil, - }, - Value: float64(6), - OriginalString: "6", - }, - }, - Op: BinaryOp(16), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(55), - }, - End: Location{ - Line: int(1060), - Column: int(77), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(55), - }, - End: Location{ - Line: int(1060), - Column: int(65), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "base64_inv", - }, - }, - Id: "base64_inv", - }, - Index: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(66), - }, - End: Location{ - Line: int(1060), - Column: int(76), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(66), - }, - End: Location{ - Line: int(1060), - Column: int(69), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(70), - }, - End: Location{ - Line: int(1060), - Column: int(75), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(70), - }, - End: Location{ - Line: int(1060), - Column: int(71), - }, - file: p1, - }, - context: p14752, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1060), - Column: int(74), - }, - End: Location{ - Line: int(1060), - Column: int(75), - }, - file: p1, - }, - context: p14752, - freeVariables: nil, - }, - Value: float64(3), - OriginalString: "3", - }, - }, - Id: nil, - }, - Id: nil, - }, - }, - }, - TrailingComma: false, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(11), - }, - End: Location{ - Line: int(1061), - Column: int(44), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - "i", - "n1", - "n2", - "n3", - "r", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(11), - }, - End: Location{ - Line: int(1061), - Column: int(14), - }, - file: p1, - }, - context: p14599, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(15), - }, - End: Location{ - Line: int(1061), - Column: int(18), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(20), - }, - End: Location{ - Line: int(1061), - Column: int(25), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(20), - }, - End: Location{ - Line: int(1061), - Column: int(21), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(24), - }, - End: Location{ - Line: int(1061), - Column: int(25), - }, - file: p1, - }, - context: p14792, - freeVariables: nil, - }, - Value: float64(4), - OriginalString: "4", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(27), - }, - End: Location{ - Line: int(1061), - Column: int(43), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n1", - "n2", - "n3", - "r", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(27), - }, - End: Location{ - Line: int(1061), - Column: int(38), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n1", - "n2", - "r", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(27), - }, - End: Location{ - Line: int(1061), - Column: int(33), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n1", - "r", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(27), - }, - End: Location{ - Line: int(1061), - Column: int(28), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(31), - }, - End: Location{ - Line: int(1061), - Column: int(33), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n1", - }, - }, - Id: "n1", - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(36), - }, - End: Location{ - Line: int(1061), - Column: int(38), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n2", - }, - }, - Id: "n2", - }, - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1061), - Column: int(41), - }, - End: Location{ - Line: int(1061), - Column: int(43), - }, - file: p1, - }, - context: p14792, - freeVariables: Identifiers{ - "n3", - }, - }, - Id: "n3", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1062), - Column: int(7), - }, - End: Location{ - Line: int(1062), - Column: int(22), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "aux", - "str", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1062), - Column: int(7), - }, - End: Location{ - Line: int(1062), - Column: int(10), - }, - file: p1, - }, - context: p14545, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1062), - Column: int(11), - }, - End: Location{ - Line: int(1062), - Column: int(14), - }, - file: p1, - }, - context: p14819, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1062), - Column: int(16), - }, - End: Location{ - Line: int(1062), - Column: int(17), - }, - file: p1, - }, - context: p14819, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1062), - Column: int(19), - }, - End: Location{ - Line: int(1062), - Column: int(21), - }, - file: p1, - }, - context: p14819, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "base64Decode", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p14827, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p14829, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p14853, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p14857, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p14860, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p14863, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p14866, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p14869, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p14872, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p14875, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p14880, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p14882, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "str", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1065), - Column: int(5), - }, - End: Location{ - Line: int(1066), - Column: int(58), - }, - file: p1, - }, - context: p14888, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "bytes", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1065), - Column: int(19), - }, - End: Location{ - Line: int(1065), - Column: int(45), - }, - file: p1, - }, - context: p14892, - freeVariables: Identifiers{ - "std", - "str", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1065), - Column: int(19), - }, - End: Location{ - Line: int(1065), - Column: int(40), - }, - file: p1, - }, - context: p14892, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1065), - Column: int(19), - }, - End: Location{ - Line: int(1065), - Column: int(22), - }, - file: p1, - }, - context: p14892, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "base64DecodeBytes", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1065), - Column: int(41), - }, - End: Location{ - Line: int(1065), - Column: int(44), - }, - file: p1, - }, - context: p14901, - freeVariables: Identifiers{ - "str", - }, - }, - Id: "str", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(5), - }, - End: Location{ - Line: int(1066), - Column: int(58), - }, - file: p1, - }, - context: p14888, - freeVariables: Identifiers{ - "bytes", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(5), - }, - End: Location{ - Line: int(1066), - Column: int(13), - }, - file: p1, - }, - context: p14888, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(5), - }, - End: Location{ - Line: int(1066), - Column: int(8), - }, - file: p1, - }, - context: p14888, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(14), - }, - End: Location{ - Line: int(1066), - Column: int(16), - }, - file: p1, - }, - context: p14912, - freeVariables: nil, - }, - Value: "", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(18), - }, - End: Location{ - Line: int(1066), - Column: int(57), - }, - file: p1, - }, - context: p14912, - freeVariables: Identifiers{ - "bytes", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(18), - }, - End: Location{ - Line: int(1066), - Column: int(25), - }, - file: p1, - }, - context: p14912, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(18), - }, - End: Location{ - Line: int(1066), - Column: int(21), - }, - file: p1, - }, - context: p14912, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "map", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(26), - }, - End: Location{ - Line: int(1066), - Column: int(49), - }, - file: p1, - }, - context: p14922, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(38), - }, - End: Location{ - Line: int(1066), - Column: int(49), - }, - file: p1, - }, - context: p14926, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(38), - }, - End: Location{ - Line: int(1066), - Column: int(46), - }, - file: p1, - }, - context: p14926, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(38), - }, - End: Location{ - Line: int(1066), - Column: int(41), - }, - file: p1, - }, - context: p14926, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "char", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(47), - }, - End: Location{ - Line: int(1066), - Column: int(48), - }, - file: p1, - }, - context: p14935, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1066), - Column: int(51), - }, - End: Location{ - Line: int(1066), - Column: int(56), - }, - file: p1, - }, - context: p14922, - freeVariables: Identifiers{ - "bytes", - }, - }, - Id: "bytes", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sort", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p14943, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p14945, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p14969, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p14973, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p14976, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p14979, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p14982, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p14985, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p14988, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p14991, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p14996, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p14998, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1070), - Column: int(5), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "l", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1070), - Column: int(15), - }, - End: Location{ - Line: int(1070), - Column: int(30), - }, - file: p1, - }, - context: p15008, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1070), - Column: int(15), - }, - End: Location{ - Line: int(1070), - Column: int(25), - }, - file: p1, - }, - context: p15008, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1070), - Column: int(15), - }, - End: Location{ - Line: int(1070), - Column: int(18), - }, - file: p1, - }, - context: p15008, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1070), - Column: int(26), - }, - End: Location{ - Line: int(1070), - Column: int(29), - }, - file: p1, - }, - context: p15017, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(5), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "arr", - "l", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(8), - }, - End: Location{ - Line: int(1071), - Column: int(23), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(8), - }, - End: Location{ - Line: int(1071), - Column: int(18), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(8), - }, - End: Location{ - Line: int(1071), - Column: int(11), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(19), - }, - End: Location{ - Line: int(1071), - Column: int(22), - }, - file: p1, - }, - context: p15038, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1071), - Column: int(27), - }, - End: Location{ - Line: int(1071), - Column: int(28), - }, - file: p1, - }, - context: p15004, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1072), - Column: int(7), - }, - End: Location{ - Line: int(1072), - Column: int(9), - }, - file: p1, - }, - context: p15004, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1074), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "arr", - "l", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "pivot", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1074), - Column: int(21), - }, - End: Location{ - Line: int(1074), - Column: int(27), - }, - file: p1, - }, - context: p15046, - freeVariables: Identifiers{ - "arr", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1074), - Column: int(21), - }, - End: Location{ - Line: int(1074), - Column: int(24), - }, - file: p1, - }, - context: p15046, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1074), - Column: int(25), - }, - End: Location{ - Line: int(1074), - Column: int(26), - }, - file: p1, - }, - context: p15046, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "arr", - "l", - "pivot", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "rest", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(20), - }, - End: Location{ - Line: int(1075), - Column: int(64), - }, - file: p1, - }, - context: p15055, - freeVariables: Identifiers{ - "arr", - "l", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(20), - }, - End: Location{ - Line: int(1075), - Column: int(33), - }, - file: p1, - }, - context: p15055, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(20), - }, - End: Location{ - Line: int(1075), - Column: int(23), - }, - file: p1, - }, - context: p15055, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(34), - }, - End: Location{ - Line: int(1075), - Column: int(39), - }, - file: p1, - }, - context: p15064, - freeVariables: Identifiers{ - "l", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(34), - }, - End: Location{ - Line: int(1075), - Column: int(35), - }, - file: p1, - }, - context: p15064, - freeVariables: Identifiers{ - "l", - }, - }, - Id: "l", - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(38), - }, - End: Location{ - Line: int(1075), - Column: int(39), - }, - file: p1, - }, - context: p15064, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(41), - }, - End: Location{ - Line: int(1075), - Column: int(63), - }, - file: p1, - }, - context: p15064, - freeVariables: Identifiers{ - "arr", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(53), - }, - End: Location{ - Line: int(1075), - Column: int(63), - }, - file: p1, - }, - context: p15073, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(53), - }, - End: Location{ - Line: int(1075), - Column: int(56), - }, - file: p1, - }, - context: p15073, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(57), - }, - End: Location{ - Line: int(1075), - Column: int(62), - }, - file: p1, - }, - context: p15073, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(57), - }, - End: Location{ - Line: int(1075), - Column: int(58), - }, - file: p1, - }, - context: p15073, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1075), - Column: int(61), - }, - End: Location{ - Line: int(1075), - Column: int(62), - }, - file: p1, - }, - context: p15073, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "pivot", - "rest", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "left", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(20), - }, - End: Location{ - Line: int(1076), - Column: int(60), - }, - file: p1, - }, - context: p15086, - freeVariables: Identifiers{ - "pivot", - "rest", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(20), - }, - End: Location{ - Line: int(1076), - Column: int(30), - }, - file: p1, - }, - context: p15086, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(20), - }, - End: Location{ - Line: int(1076), - Column: int(23), - }, - file: p1, - }, - context: p15086, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "filter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(31), - }, - End: Location{ - Line: int(1076), - Column: int(53), - }, - file: p1, - }, - context: p15095, - freeVariables: Identifiers{ - "pivot", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(43), - }, - End: Location{ - Line: int(1076), - Column: int(53), - }, - file: p1, - }, - context: p15099, - freeVariables: Identifiers{ - "pivot", - "x", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(43), - }, - End: Location{ - Line: int(1076), - Column: int(44), - }, - file: p1, - }, - context: p15099, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - Op: BinaryOp(10), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(48), - }, - End: Location{ - Line: int(1076), - Column: int(53), - }, - file: p1, - }, - context: p15099, - freeVariables: Identifiers{ - "pivot", - }, - }, - Id: "pivot", - }, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1076), - Column: int(55), - }, - End: Location{ - Line: int(1076), - Column: int(59), - }, - file: p1, - }, - context: p15095, - freeVariables: Identifiers{ - "rest", - }, - }, - Id: "rest", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "left", - "pivot", - "rest", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "right", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(21), - }, - End: Location{ - Line: int(1077), - Column: int(60), - }, - file: p1, - }, - context: p15111, - freeVariables: Identifiers{ - "pivot", - "rest", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(21), - }, - End: Location{ - Line: int(1077), - Column: int(31), - }, - file: p1, - }, - context: p15111, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(21), - }, - End: Location{ - Line: int(1077), - Column: int(24), - }, - file: p1, - }, - context: p15111, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "filter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(32), - }, - End: Location{ - Line: int(1077), - Column: int(53), - }, - file: p1, - }, - context: p15120, - freeVariables: Identifiers{ - "pivot", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(44), - }, - End: Location{ - Line: int(1077), - Column: int(53), - }, - file: p1, - }, - context: p15124, - freeVariables: Identifiers{ - "pivot", - "x", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(44), - }, - End: Location{ - Line: int(1077), - Column: int(45), - }, - file: p1, - }, - context: p15124, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - Op: BinaryOp(7), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(48), - }, - End: Location{ - Line: int(1077), - Column: int(53), - }, - file: p1, - }, - context: p15124, - freeVariables: Identifiers{ - "pivot", - }, - }, - Id: "pivot", - }, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1077), - Column: int(55), - }, - End: Location{ - Line: int(1077), - Column: int(59), - }, - file: p1, - }, - context: p15120, - freeVariables: Identifiers{ - "rest", - }, - }, - Id: "rest", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "left", - "pivot", - "right", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(31), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "left", - "pivot", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(21), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "left", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(15), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(7), - }, - End: Location{ - Line: int(1078), - Column: int(10), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sort", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(16), - }, - End: Location{ - Line: int(1078), - Column: int(20), - }, - file: p1, - }, - context: p15145, - freeVariables: Identifiers{ - "left", - }, - }, - Id: "left", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(24), - }, - End: Location{ - Line: int(1078), - Column: int(31), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "pivot", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(25), - }, - End: Location{ - Line: int(1078), - Column: int(30), - }, - file: p1, - }, - context: p15151, - freeVariables: Identifiers{ - "pivot", - }, - }, - Id: "pivot", - }, - }, - TrailingComma: false, - }, - }, - Op: BinaryOp(3), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(34), - }, - End: Location{ - Line: int(1078), - Column: int(49), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "right", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(34), - }, - End: Location{ - Line: int(1078), - Column: int(42), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(34), - }, - End: Location{ - Line: int(1078), - Column: int(37), - }, - file: p1, - }, - context: p15004, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sort", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1078), - Column: int(43), - }, - End: Location{ - Line: int(1078), - Column: int(48), - }, - file: p1, - }, - context: p15162, - freeVariables: Identifiers{ - "right", - }, - }, - Id: "right", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "uniq", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15168, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15170, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15194, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15198, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15201, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15204, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15207, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15210, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15213, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15216, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15221, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15223, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1081), - Column: int(5), - }, - End: Location{ - Line: int(1088), - Column: int(26), - }, - file: p1, - }, - context: p15229, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "f", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1081), - Column: int(11), - }, - End: Location{ - Line: int(1087), - Column: int(16), - }, - file: p1, - }, - context: p15233, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(7), - }, - End: Location{ - Line: int(1087), - Column: int(16), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(10), - }, - End: Location{ - Line: int(1082), - Column: int(23), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(10), - }, - End: Location{ - Line: int(1082), - Column: int(20), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(10), - }, - End: Location{ - Line: int(1082), - Column: int(13), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(21), - }, - End: Location{ - Line: int(1082), - Column: int(22), - }, - file: p1, - }, - context: p15256, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1082), - Column: int(27), - }, - End: Location{ - Line: int(1082), - Column: int(28), - }, - file: p1, - }, - context: p15237, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1083), - Column: int(9), - }, - End: Location{ - Line: int(1083), - Column: int(12), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "b", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1083), - Column: int(10), - }, - End: Location{ - Line: int(1083), - Column: int(11), - }, - file: p1, - }, - context: p15263, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - TrailingComma: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(12), - }, - End: Location{ - Line: int(1087), - Column: int(16), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(15), - }, - End: Location{ - Line: int(1084), - Column: int(35), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(15), - }, - End: Location{ - Line: int(1084), - Column: int(16), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(17), - }, - End: Location{ - Line: int(1084), - Column: int(34), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(17), - }, - End: Location{ - Line: int(1084), - Column: int(30), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(17), - }, - End: Location{ - Line: int(1084), - Column: int(27), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(17), - }, - End: Location{ - Line: int(1084), - Column: int(20), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(28), - }, - End: Location{ - Line: int(1084), - Column: int(29), - }, - file: p1, - }, - context: p15290, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(33), - }, - End: Location{ - Line: int(1084), - Column: int(34), - }, - file: p1, - }, - context: p15237, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - Id: nil, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1084), - Column: int(39), - }, - End: Location{ - Line: int(1084), - Column: int(40), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1085), - Column: int(9), - }, - End: Location{ - Line: int(1085), - Column: int(10), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - BranchFalse: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1087), - Column: int(9), - }, - End: Location{ - Line: int(1087), - Column: int(16), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1087), - Column: int(9), - }, - End: Location{ - Line: int(1087), - Column: int(10), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1087), - Column: int(13), - }, - End: Location{ - Line: int(1087), - Column: int(16), - }, - file: p1, - }, - context: p15237, - freeVariables: Identifiers{ - "b", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1087), - Column: int(14), - }, - End: Location{ - Line: int(1087), - Column: int(15), - }, - file: p1, - }, - context: p15305, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - TrailingComma: false, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(5), - }, - End: Location{ - Line: int(1088), - Column: int(26), - }, - file: p1, - }, - context: p15229, - freeVariables: Identifiers{ - "arr", - "f", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(5), - }, - End: Location{ - Line: int(1088), - Column: int(14), - }, - file: p1, - }, - context: p15229, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(5), - }, - End: Location{ - Line: int(1088), - Column: int(8), - }, - file: p1, - }, - context: p15229, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "foldl", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(15), - }, - End: Location{ - Line: int(1088), - Column: int(16), - }, - file: p1, - }, - context: p15316, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(18), - }, - End: Location{ - Line: int(1088), - Column: int(21), - }, - file: p1, - }, - context: p15316, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1088), - Column: int(23), - }, - End: Location{ - Line: int(1088), - Column: int(25), - }, - file: p1, - }, - context: p15316, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "set", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15325, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15327, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15351, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15355, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15358, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15361, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15364, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15367, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15370, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15373, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15378, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15380, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(5), - }, - End: Location{ - Line: int(1091), - Column: int(28), - }, - file: p1, - }, - context: p15386, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(5), - }, - End: Location{ - Line: int(1091), - Column: int(13), - }, - file: p1, - }, - context: p15386, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(5), - }, - End: Location{ - Line: int(1091), - Column: int(8), - }, - file: p1, - }, - context: p15386, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "uniq", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(14), - }, - End: Location{ - Line: int(1091), - Column: int(27), - }, - file: p1, - }, - context: p15395, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(14), - }, - End: Location{ - Line: int(1091), - Column: int(22), - }, - file: p1, - }, - context: p15395, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(14), - }, - End: Location{ - Line: int(1091), - Column: int(17), - }, - file: p1, - }, - context: p15395, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "sort", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1091), - Column: int(23), - }, - End: Location{ - Line: int(1091), - Column: int(26), - }, - file: p1, - }, - context: p15404, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setMember", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15410, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15412, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15436, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15440, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15443, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15446, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15449, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15452, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15455, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15458, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15463, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15465, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - "arr", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(5), - }, - End: Location{ - Line: int(1095), - Column: int(43), - }, - file: p1, - }, - context: p15471, - freeVariables: Identifiers{ - "arr", - "std", - "x", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(5), - }, - End: Location{ - Line: int(1095), - Column: int(39), - }, - file: p1, - }, - context: p15471, - freeVariables: Identifiers{ - "arr", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(5), - }, - End: Location{ - Line: int(1095), - Column: int(15), - }, - file: p1, - }, - context: p15471, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(5), - }, - End: Location{ - Line: int(1095), - Column: int(8), - }, - file: p1, - }, - context: p15471, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(16), - }, - End: Location{ - Line: int(1095), - Column: int(38), - }, - file: p1, - }, - context: p15482, - freeVariables: Identifiers{ - "arr", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(16), - }, - End: Location{ - Line: int(1095), - Column: int(28), - }, - file: p1, - }, - context: p15482, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(16), - }, - End: Location{ - Line: int(1095), - Column: int(19), - }, - file: p1, - }, - context: p15482, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setInter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(29), - }, - End: Location{ - Line: int(1095), - Column: int(32), - }, - file: p1, - }, - context: p15491, - freeVariables: Identifiers{ - "x", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(30), - }, - End: Location{ - Line: int(1095), - Column: int(31), - }, - file: p1, - }, - context: p15495, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - TrailingComma: false, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(34), - }, - End: Location{ - Line: int(1095), - Column: int(37), - }, - file: p1, - }, - context: p15491, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1095), - Column: int(42), - }, - End: Location{ - Line: int(1095), - Column: int(43), - }, - file: p1, - }, - context: p15471, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setUnion", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15504, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15506, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15530, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15534, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15537, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15540, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15543, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15546, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15549, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15552, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15557, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15559, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(5), - }, - End: Location{ - Line: int(1098), - Column: int(19), - }, - file: p1, - }, - context: p15565, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(5), - }, - End: Location{ - Line: int(1098), - Column: int(12), - }, - file: p1, - }, - context: p15565, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(5), - }, - End: Location{ - Line: int(1098), - Column: int(8), - }, - file: p1, - }, - context: p15565, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "set", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(13), - }, - End: Location{ - Line: int(1098), - Column: int(18), - }, - file: p1, - }, - context: p15574, - freeVariables: Identifiers{ - "a", - "b", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(13), - }, - End: Location{ - Line: int(1098), - Column: int(14), - }, - file: p1, - }, - context: p15574, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Op: BinaryOp(3), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1098), - Column: int(17), - }, - End: Location{ - Line: int(1098), - Column: int(18), - }, - file: p1, - }, - context: p15574, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setInter", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15584, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15586, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15610, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15614, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15617, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15620, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15623, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15626, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15629, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15632, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15637, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15639, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1101), - Column: int(5), - }, - End: Location{ - Line: int(1111), - Column: int(24), - }, - file: p1, - }, - context: p15645, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1101), - Column: int(11), - }, - End: Location{ - Line: int(1110), - Column: int(35), - }, - file: p1, - }, - context: p15649, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - "i", - "j", - "acc", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(7), - }, - End: Location{ - Line: int(1110), - Column: int(35), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(10), - }, - End: Location{ - Line: int(1102), - Column: int(50), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "b", - "i", - "j", - "std", - }, - }, - Left: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(10), - }, - End: Location{ - Line: int(1102), - Column: int(28), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(10), - }, - End: Location{ - Line: int(1102), - Column: int(11), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(15), - }, - End: Location{ - Line: int(1102), - Column: int(28), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(15), - }, - End: Location{ - Line: int(1102), - Column: int(25), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(15), - }, - End: Location{ - Line: int(1102), - Column: int(18), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(26), - }, - End: Location{ - Line: int(1102), - Column: int(27), - }, - file: p1, - }, - context: p15670, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Op: BinaryOp(18), - Right: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(32), - }, - End: Location{ - Line: int(1102), - Column: int(50), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - "j", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(32), - }, - End: Location{ - Line: int(1102), - Column: int(33), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(37), - }, - End: Location{ - Line: int(1102), - Column: int(50), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(37), - }, - End: Location{ - Line: int(1102), - Column: int(47), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(37), - }, - End: Location{ - Line: int(1102), - Column: int(40), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1102), - Column: int(48), - }, - End: Location{ - Line: int(1102), - Column: int(49), - }, - file: p1, - }, - context: p15685, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1103), - Column: int(9), - }, - End: Location{ - Line: int(1103), - Column: int(12), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(9), - }, - End: Location{ - Line: int(1110), - Column: int(35), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "i", - "j", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(12), - }, - End: Location{ - Line: int(1105), - Column: int(16), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(12), - }, - End: Location{ - Line: int(1105), - Column: int(13), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(14), - }, - End: Location{ - Line: int(1105), - Column: int(15), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(20), - }, - End: Location{ - Line: int(1105), - Column: int(24), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(20), - }, - End: Location{ - Line: int(1105), - Column: int(21), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1105), - Column: int(22), - }, - End: Location{ - Line: int(1105), - Column: int(23), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(11), - }, - End: Location{ - Line: int(1106), - Column: int(48), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(11), - }, - End: Location{ - Line: int(1106), - Column: int(14), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(15), - }, - End: Location{ - Line: int(1106), - Column: int(16), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(18), - }, - End: Location{ - Line: int(1106), - Column: int(19), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(21), - }, - End: Location{ - Line: int(1106), - Column: int(26), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(21), - }, - End: Location{ - Line: int(1106), - Column: int(22), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(25), - }, - End: Location{ - Line: int(1106), - Column: int(26), - }, - file: p1, - }, - context: p15717, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(28), - }, - End: Location{ - Line: int(1106), - Column: int(33), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(28), - }, - End: Location{ - Line: int(1106), - Column: int(29), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(32), - }, - End: Location{ - Line: int(1106), - Column: int(33), - }, - file: p1, - }, - context: p15717, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(35), - }, - End: Location{ - Line: int(1106), - Column: int(47), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "a", - "acc", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(35), - }, - End: Location{ - Line: int(1106), - Column: int(38), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(41), - }, - End: Location{ - Line: int(1106), - Column: int(47), - }, - file: p1, - }, - context: p15717, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Elements: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(42), - }, - End: Location{ - Line: int(1106), - Column: int(46), - }, - file: p1, - }, - context: p15739, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(42), - }, - End: Location{ - Line: int(1106), - Column: int(43), - }, - file: p1, - }, - context: p15739, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1106), - Column: int(44), - }, - End: Location{ - Line: int(1106), - Column: int(45), - }, - file: p1, - }, - context: p15739, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(14), - }, - End: Location{ - Line: int(1110), - Column: int(35), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(17), - }, - End: Location{ - Line: int(1107), - Column: int(28), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "b", - "i", - "j", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(17), - }, - End: Location{ - Line: int(1107), - Column: int(21), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(17), - }, - End: Location{ - Line: int(1107), - Column: int(18), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(19), - }, - End: Location{ - Line: int(1107), - Column: int(20), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(9), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(24), - }, - End: Location{ - Line: int(1107), - Column: int(28), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(24), - }, - End: Location{ - Line: int(1107), - Column: int(25), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1107), - Column: int(26), - }, - End: Location{ - Line: int(1107), - Column: int(27), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(11), - }, - End: Location{ - Line: int(1108), - Column: int(35), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(11), - }, - End: Location{ - Line: int(1108), - Column: int(14), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(15), - }, - End: Location{ - Line: int(1108), - Column: int(16), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(18), - }, - End: Location{ - Line: int(1108), - Column: int(19), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(21), - }, - End: Location{ - Line: int(1108), - Column: int(26), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(21), - }, - End: Location{ - Line: int(1108), - Column: int(22), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(25), - }, - End: Location{ - Line: int(1108), - Column: int(26), - }, - file: p1, - }, - context: p15767, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(28), - }, - End: Location{ - Line: int(1108), - Column: int(29), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1108), - Column: int(31), - }, - End: Location{ - Line: int(1108), - Column: int(34), - }, - file: p1, - }, - context: p15767, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(11), - }, - End: Location{ - Line: int(1110), - Column: int(35), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(11), - }, - End: Location{ - Line: int(1110), - Column: int(14), - }, - file: p1, - }, - context: p15653, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(15), - }, - End: Location{ - Line: int(1110), - Column: int(16), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(18), - }, - End: Location{ - Line: int(1110), - Column: int(19), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(21), - }, - End: Location{ - Line: int(1110), - Column: int(22), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(24), - }, - End: Location{ - Line: int(1110), - Column: int(29), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(24), - }, - End: Location{ - Line: int(1110), - Column: int(25), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(28), - }, - End: Location{ - Line: int(1110), - Column: int(29), - }, - file: p1, - }, - context: p15786, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1110), - Column: int(31), - }, - End: Location{ - Line: int(1110), - Column: int(34), - }, - file: p1, - }, - context: p15786, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(5), - }, - End: Location{ - Line: int(1111), - Column: int(24), - }, - file: p1, - }, - context: p15645, - freeVariables: Identifiers{ - "a", - "aux", - "b", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(5), - }, - End: Location{ - Line: int(1111), - Column: int(8), - }, - file: p1, - }, - context: p15645, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(9), - }, - End: Location{ - Line: int(1111), - Column: int(10), - }, - file: p1, - }, - context: p15805, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(12), - }, - End: Location{ - Line: int(1111), - Column: int(13), - }, - file: p1, - }, - context: p15805, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(15), - }, - End: Location{ - Line: int(1111), - Column: int(16), - }, - file: p1, - }, - context: p15805, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(18), - }, - End: Location{ - Line: int(1111), - Column: int(19), - }, - file: p1, - }, - context: p15805, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1111), - Column: int(21), - }, - End: Location{ - Line: int(1111), - Column: int(23), - }, - file: p1, - }, - context: p15805, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setDiff", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p15816, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p15818, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p15842, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p15846, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p15849, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p15852, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p15855, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p15858, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p15861, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p15864, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p15869, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p15871, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1114), - Column: int(5), - }, - End: Location{ - Line: int(1126), - Column: int(24), - }, - file: p1, - }, - context: p15877, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1114), - Column: int(11), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15881, - freeVariables: Identifiers{ - "aux", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - "i", - "j", - "acc", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(7), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(10), - }, - End: Location{ - Line: int(1115), - Column: int(28), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "i", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(10), - }, - End: Location{ - Line: int(1115), - Column: int(11), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(15), - }, - End: Location{ - Line: int(1115), - Column: int(28), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(15), - }, - End: Location{ - Line: int(1115), - Column: int(25), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(15), - }, - End: Location{ - Line: int(1115), - Column: int(18), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1115), - Column: int(26), - }, - End: Location{ - Line: int(1115), - Column: int(27), - }, - file: p1, - }, - context: p15900, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1116), - Column: int(9), - }, - End: Location{ - Line: int(1116), - Column: int(12), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(12), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(15), - }, - End: Location{ - Line: int(1117), - Column: int(33), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - "j", - "std", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(15), - }, - End: Location{ - Line: int(1117), - Column: int(16), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(8), - Right: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(20), - }, - End: Location{ - Line: int(1117), - Column: int(33), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(20), - }, - End: Location{ - Line: int(1117), - Column: int(30), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(20), - }, - End: Location{ - Line: int(1117), - Column: int(23), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1117), - Column: int(31), - }, - End: Location{ - Line: int(1117), - Column: int(32), - }, - file: p1, - }, - context: p15919, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(9), - }, - End: Location{ - Line: int(1118), - Column: int(42), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(9), - }, - End: Location{ - Line: int(1118), - Column: int(12), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(13), - }, - End: Location{ - Line: int(1118), - Column: int(14), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(16), - }, - End: Location{ - Line: int(1118), - Column: int(17), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(19), - }, - End: Location{ - Line: int(1118), - Column: int(24), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(19), - }, - End: Location{ - Line: int(1118), - Column: int(20), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(23), - }, - End: Location{ - Line: int(1118), - Column: int(24), - }, - file: p1, - }, - context: p15927, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(26), - }, - End: Location{ - Line: int(1118), - Column: int(27), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(29), - }, - End: Location{ - Line: int(1118), - Column: int(41), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "a", - "acc", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(29), - }, - End: Location{ - Line: int(1118), - Column: int(32), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(35), - }, - End: Location{ - Line: int(1118), - Column: int(41), - }, - file: p1, - }, - context: p15927, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Elements: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(36), - }, - End: Location{ - Line: int(1118), - Column: int(40), - }, - file: p1, - }, - context: p15946, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(36), - }, - End: Location{ - Line: int(1118), - Column: int(37), - }, - file: p1, - }, - context: p15946, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1118), - Column: int(38), - }, - End: Location{ - Line: int(1118), - Column: int(39), - }, - file: p1, - }, - context: p15946, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(9), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "i", - "j", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(12), - }, - End: Location{ - Line: int(1120), - Column: int(16), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(12), - }, - End: Location{ - Line: int(1120), - Column: int(13), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(14), - }, - End: Location{ - Line: int(1120), - Column: int(15), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(20), - }, - End: Location{ - Line: int(1120), - Column: int(24), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(20), - }, - End: Location{ - Line: int(1120), - Column: int(21), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1120), - Column: int(22), - }, - End: Location{ - Line: int(1120), - Column: int(23), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(11), - }, - End: Location{ - Line: int(1121), - Column: int(39), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(11), - }, - End: Location{ - Line: int(1121), - Column: int(14), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(15), - }, - End: Location{ - Line: int(1121), - Column: int(16), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(18), - }, - End: Location{ - Line: int(1121), - Column: int(19), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(21), - }, - End: Location{ - Line: int(1121), - Column: int(26), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(21), - }, - End: Location{ - Line: int(1121), - Column: int(22), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(25), - }, - End: Location{ - Line: int(1121), - Column: int(26), - }, - file: p1, - }, - context: p15980, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(28), - }, - End: Location{ - Line: int(1121), - Column: int(33), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(28), - }, - End: Location{ - Line: int(1121), - Column: int(29), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(32), - }, - End: Location{ - Line: int(1121), - Column: int(33), - }, - file: p1, - }, - context: p15980, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1121), - Column: int(35), - }, - End: Location{ - Line: int(1121), - Column: int(38), - }, - file: p1, - }, - context: p15980, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(14), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(17), - }, - End: Location{ - Line: int(1122), - Column: int(28), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "b", - "i", - "j", - }, - }, - Left: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(17), - }, - End: Location{ - Line: int(1122), - Column: int(21), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(17), - }, - End: Location{ - Line: int(1122), - Column: int(18), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(19), - }, - End: Location{ - Line: int(1122), - Column: int(20), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Op: BinaryOp(9), - Right: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(24), - }, - End: Location{ - Line: int(1122), - Column: int(28), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(24), - }, - End: Location{ - Line: int(1122), - Column: int(25), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1122), - Column: int(26), - }, - End: Location{ - Line: int(1122), - Column: int(27), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Id: nil, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(11), - }, - End: Location{ - Line: int(1123), - Column: int(44), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(11), - }, - End: Location{ - Line: int(1123), - Column: int(14), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(15), - }, - End: Location{ - Line: int(1123), - Column: int(16), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(18), - }, - End: Location{ - Line: int(1123), - Column: int(19), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(21), - }, - End: Location{ - Line: int(1123), - Column: int(26), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(21), - }, - End: Location{ - Line: int(1123), - Column: int(22), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(25), - }, - End: Location{ - Line: int(1123), - Column: int(26), - }, - file: p1, - }, - context: p16018, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(28), - }, - End: Location{ - Line: int(1123), - Column: int(29), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(31), - }, - End: Location{ - Line: int(1123), - Column: int(43), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "a", - "acc", - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(31), - }, - End: Location{ - Line: int(1123), - Column: int(34), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(37), - }, - End: Location{ - Line: int(1123), - Column: int(43), - }, - file: p1, - }, - context: p16018, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Elements: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(38), - }, - End: Location{ - Line: int(1123), - Column: int(42), - }, - file: p1, - }, - context: p16037, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(38), - }, - End: Location{ - Line: int(1123), - Column: int(39), - }, - file: p1, - }, - context: p16037, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1123), - Column: int(40), - }, - End: Location{ - Line: int(1123), - Column: int(41), - }, - file: p1, - }, - context: p16037, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(11), - }, - End: Location{ - Line: int(1125), - Column: int(35), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "a", - "acc", - "aux", - "b", - "i", - "j", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(11), - }, - End: Location{ - Line: int(1125), - Column: int(14), - }, - file: p1, - }, - context: p15885, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(15), - }, - End: Location{ - Line: int(1125), - Column: int(16), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(18), - }, - End: Location{ - Line: int(1125), - Column: int(19), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(21), - }, - End: Location{ - Line: int(1125), - Column: int(22), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(24), - }, - End: Location{ - Line: int(1125), - Column: int(29), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "j", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(24), - }, - End: Location{ - Line: int(1125), - Column: int(25), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "j", - }, - }, - Id: "j", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(28), - }, - End: Location{ - Line: int(1125), - Column: int(29), - }, - file: p1, - }, - context: p16049, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1125), - Column: int(31), - }, - End: Location{ - Line: int(1125), - Column: int(34), - }, - file: p1, - }, - context: p16049, - freeVariables: Identifiers{ - "acc", - }, - }, - Id: "acc", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(5), - }, - End: Location{ - Line: int(1126), - Column: int(24), - }, - file: p1, - }, - context: p15877, - freeVariables: Identifiers{ - "a", - "aux", - "b", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(5), - }, - End: Location{ - Line: int(1126), - Column: int(8), - }, - file: p1, - }, - context: p15877, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(9), - }, - End: Location{ - Line: int(1126), - Column: int(10), - }, - file: p1, - }, - context: p16068, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(12), - }, - End: Location{ - Line: int(1126), - Column: int(13), - }, - file: p1, - }, - context: p16068, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(15), - }, - End: Location{ - Line: int(1126), - Column: int(16), - }, - file: p1, - }, - context: p16068, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(18), - }, - End: Location{ - Line: int(1126), - Column: int(19), - }, - file: p1, - }, - context: p16068, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1126), - Column: int(21), - }, - End: Location{ - Line: int(1126), - Column: int(23), - }, - file: p1, - }, - context: p16068, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mergePatch", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16079, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16081, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16105, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16109, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16112, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16115, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16118, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16121, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16124, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16127, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16132, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16134, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "target", - "patch", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(5), - }, - End: Location{ - Line: int(1150), - Column: int(12), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - "std", - "target", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(8), - }, - End: Location{ - Line: int(1129), - Column: int(23), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(8), - }, - End: Location{ - Line: int(1129), - Column: int(16), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(8), - }, - End: Location{ - Line: int(1129), - Column: int(11), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(17), - }, - End: Location{ - Line: int(1129), - Column: int(22), - }, - file: p1, - }, - context: p16159, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1129), - Column: int(27), - }, - End: Location{ - Line: int(1129), - Column: int(35), - }, - file: p1, - }, - context: p16140, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1130), - Column: int(7), - }, - End: Location{ - Line: int(1148), - Column: int(8), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - "std", - "target", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "target_object", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(9), - }, - End: Location{ - Line: int(1131), - Column: int(60), - }, - file: p1, - }, - context: p16166, - freeVariables: Identifiers{ - "std", - "target", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "target", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(12), - }, - End: Location{ - Line: int(1131), - Column: int(28), - }, - file: p1, - }, - context: p16166, - freeVariables: Identifiers{ - "std", - "target", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(12), - }, - End: Location{ - Line: int(1131), - Column: int(20), - }, - file: p1, - }, - context: p16166, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(12), - }, - End: Location{ - Line: int(1131), - Column: int(15), - }, - file: p1, - }, - context: p16166, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(21), - }, - End: Location{ - Line: int(1131), - Column: int(27), - }, - file: p1, - }, - context: p16185, - freeVariables: Identifiers{ - "target", - }, - }, - Id: "target", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(32), - }, - End: Location{ - Line: int(1131), - Column: int(40), - }, - file: p1, - }, - context: p16166, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(46), - }, - End: Location{ - Line: int(1131), - Column: int(52), - }, - file: p1, - }, - context: p16166, - freeVariables: Identifiers{ - "target", - }, - }, - Id: "target", - }, - BranchFalse: &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1131), - Column: int(58), - }, - End: Location{ - Line: int(1131), - Column: int(60), - }, - file: p1, - }, - context: p16166, - freeVariables: nil, - }, - Asserts: nil, - Fields: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1133), - Column: int(7), - }, - End: Location{ - Line: int(1148), - Column: int(8), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - "std", - "target_object", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "target_fields", - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(9), - }, - End: Location{ - Line: int(1134), - Column: int(92), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - "target_object", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(12), - }, - End: Location{ - Line: int(1134), - Column: int(35), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(12), - }, - End: Location{ - Line: int(1134), - Column: int(20), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(12), - }, - End: Location{ - Line: int(1134), - Column: int(15), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(21), - }, - End: Location{ - Line: int(1134), - Column: int(34), - }, - file: p1, - }, - context: p16214, - freeVariables: Identifiers{ - "target_object", - }, - }, - Id: "target_object", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(39), - }, - End: Location{ - Line: int(1134), - Column: int(47), - }, - file: p1, - }, - context: p16195, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(53), - }, - End: Location{ - Line: int(1134), - Column: int(84), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(53), - }, - End: Location{ - Line: int(1134), - Column: int(69), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(53), - }, - End: Location{ - Line: int(1134), - Column: int(56), - }, - file: p1, - }, - context: p16195, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(70), - }, - End: Location{ - Line: int(1134), - Column: int(83), - }, - file: p1, - }, - context: p16226, - freeVariables: Identifiers{ - "target_object", - }, - }, - Id: "target_object", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1134), - Column: int(90), - }, - End: Location{ - Line: int(1134), - Column: int(92), - }, - file: p1, - }, - context: p16195, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(7), - }, - End: Location{ - Line: int(1148), - Column: int(8), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - "std", - "target_fields", - "target_object", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "null_fields", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "patch", - "std", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(66), - }, - End: Location{ - Line: int(1136), - Column: int(74), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "k", - "patch", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(66), - }, - End: Location{ - Line: int(1136), - Column: int(71), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(72), - }, - End: Location{ - Line: int(1136), - Column: int(73), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(78), - }, - End: Location{ - Line: int(1136), - Column: int(82), - }, - file: p1, - }, - context: p16254, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(28), - }, - End: Location{ - Line: int(1136), - Column: int(29), - }, - file: p1, - }, - context: p16265, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(39), - }, - End: Location{ - Line: int(1136), - Column: int(62), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(39), - }, - End: Location{ - Line: int(1136), - Column: int(55), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(39), - }, - End: Location{ - Line: int(1136), - Column: int(42), - }, - file: p1, - }, - context: p16254, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1136), - Column: int(56), - }, - End: Location{ - Line: int(1136), - Column: int(61), - }, - file: p1, - }, - context: p16277, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(7), - }, - End: Location{ - Line: int(1148), - Column: int(8), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "null_fields", - "patch", - "std", - "target_fields", - "target_object", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "both_fields", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(27), - }, - End: Location{ - Line: int(1137), - Column: int(79), - }, - file: p1, - }, - context: p16283, - freeVariables: Identifiers{ - "patch", - "std", - "target_fields", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(27), - }, - End: Location{ - Line: int(1137), - Column: int(39), - }, - file: p1, - }, - context: p16283, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(27), - }, - End: Location{ - Line: int(1137), - Column: int(30), - }, - file: p1, - }, - context: p16283, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setUnion", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(40), - }, - End: Location{ - Line: int(1137), - Column: int(53), - }, - file: p1, - }, - context: p16292, - freeVariables: Identifiers{ - "target_fields", - }, - }, - Id: "target_fields", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(55), - }, - End: Location{ - Line: int(1137), - Column: int(78), - }, - file: p1, - }, - context: p16292, - freeVariables: Identifiers{ - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(55), - }, - End: Location{ - Line: int(1137), - Column: int(71), - }, - file: p1, - }, - context: p16292, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(55), - }, - End: Location{ - Line: int(1137), - Column: int(58), - }, - file: p1, - }, - context: p16292, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1137), - Column: int(72), - }, - End: Location{ - Line: int(1137), - Column: int(77), - }, - file: p1, - }, - context: p16303, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "both_fields", - "null_fields", - "patch", - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "both_fields", - "null_fields", - "patch", - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "patch", - "std", - "target_object", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "k", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "k", - "patch", - "std", - "target_object", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1139), - Column: int(7), - }, - End: Location{ - Line: int(1148), - Column: int(8), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "k", - "patch", - "std", - "target_object", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1140), - Column: int(10), - }, - End: Location{ - Line: int(1140), - Column: int(11), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(11), - }, - End: Location{ - Line: int(1146), - Column: int(55), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - "target_object", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(14), - }, - End: Location{ - Line: int(1141), - Column: int(38), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(15), - }, - End: Location{ - Line: int(1141), - Column: int(38), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(15), - }, - End: Location{ - Line: int(1141), - Column: int(28), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(15), - }, - End: Location{ - Line: int(1141), - Column: int(18), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHas", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(29), - }, - End: Location{ - Line: int(1141), - Column: int(34), - }, - file: p1, - }, - context: p16346, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1141), - Column: int(36), - }, - End: Location{ - Line: int(1141), - Column: int(37), - }, - file: p1, - }, - context: p16346, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1142), - Column: int(13), - }, - End: Location{ - Line: int(1142), - Column: int(29), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "target_object", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1142), - Column: int(13), - }, - End: Location{ - Line: int(1142), - Column: int(26), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "target_object", - }, - }, - Id: "target_object", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1142), - Column: int(27), - }, - End: Location{ - Line: int(1142), - Column: int(28), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(16), - }, - End: Location{ - Line: int(1146), - Column: int(55), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - "target_object", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(19), - }, - End: Location{ - Line: int(1143), - Column: int(51), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "std", - "target_object", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(20), - }, - End: Location{ - Line: int(1143), - Column: int(51), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(20), - }, - End: Location{ - Line: int(1143), - Column: int(33), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(20), - }, - End: Location{ - Line: int(1143), - Column: int(23), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHas", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(34), - }, - End: Location{ - Line: int(1143), - Column: int(47), - }, - file: p1, - }, - context: p16369, - freeVariables: Identifiers{ - "target_object", - }, - }, - Id: "target_object", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1143), - Column: int(49), - }, - End: Location{ - Line: int(1143), - Column: int(50), - }, - file: p1, - }, - context: p16369, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(13), - }, - End: Location{ - Line: int(1144), - Column: int(43), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(13), - }, - End: Location{ - Line: int(1144), - Column: int(27), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(13), - }, - End: Location{ - Line: int(1144), - Column: int(16), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mergePatch", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(28), - }, - End: Location{ - Line: int(1144), - Column: int(32), - }, - file: p1, - }, - context: p16382, - freeVariables: nil, - }, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(34), - }, - End: Location{ - Line: int(1144), - Column: int(42), - }, - file: p1, - }, - context: p16382, - freeVariables: Identifiers{ - "k", - "patch", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(34), - }, - End: Location{ - Line: int(1144), - Column: int(39), - }, - file: p1, - }, - context: p16382, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1144), - Column: int(40), - }, - End: Location{ - Line: int(1144), - Column: int(41), - }, - file: p1, - }, - context: p16382, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(13), - }, - End: Location{ - Line: int(1146), - Column: int(55), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "k", - "patch", - "std", - "target_object", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(13), - }, - End: Location{ - Line: int(1146), - Column: int(27), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(13), - }, - End: Location{ - Line: int(1146), - Column: int(16), - }, - file: p1, - }, - context: p16333, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "mergePatch", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(28), - }, - End: Location{ - Line: int(1146), - Column: int(44), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "k", - "target_object", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(28), - }, - End: Location{ - Line: int(1146), - Column: int(41), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "target_object", - }, - }, - Id: "target_object", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(42), - }, - End: Location{ - Line: int(1146), - Column: int(43), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(46), - }, - End: Location{ - Line: int(1146), - Column: int(54), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "k", - "patch", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(46), - }, - End: Location{ - Line: int(1146), - Column: int(51), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1146), - Column: int(52), - }, - End: Location{ - Line: int(1146), - Column: int(53), - }, - file: p1, - }, - context: p16398, - freeVariables: Identifiers{ - "k", - }, - }, - Id: "k", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1147), - Column: int(18), - }, - End: Location{ - Line: int(1147), - Column: int(55), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "both_fields", - "null_fields", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1147), - Column: int(18), - }, - End: Location{ - Line: int(1147), - Column: int(29), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1147), - Column: int(18), - }, - End: Location{ - Line: int(1147), - Column: int(21), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "setDiff", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1147), - Column: int(30), - }, - End: Location{ - Line: int(1147), - Column: int(41), - }, - file: p1, - }, - context: p16419, - freeVariables: Identifiers{ - "both_fields", - }, - }, - Id: "both_fields", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1147), - Column: int(43), - }, - End: Location{ - Line: int(1147), - Column: int(54), - }, - file: p1, - }, - context: p16419, - freeVariables: Identifiers{ - "null_fields", - }, - }, - Id: "null_fields", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1150), - Column: int(7), - }, - End: Location{ - Line: int(1150), - Column: int(12), - }, - file: p1, - }, - context: p16140, - freeVariables: Identifiers{ - "patch", - }, - }, - Id: "patch", - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16429, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16431, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16455, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16459, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16462, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16465, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16468, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16471, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16474, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16477, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16482, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16484, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1153), - Column: int(5), - }, - End: Location{ - Line: int(1153), - Column: int(33), - }, - file: p1, - }, - context: p16490, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1153), - Column: int(5), - }, - End: Location{ - Line: int(1153), - Column: int(23), - }, - file: p1, - }, - context: p16490, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1153), - Column: int(5), - }, - End: Location{ - Line: int(1153), - Column: int(8), - }, - file: p1, - }, - context: p16490, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFieldsEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1153), - Column: int(24), - }, - End: Location{ - Line: int(1153), - Column: int(25), - }, - file: p1, - }, - context: p16499, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1153), - Column: int(27), - }, - End: Location{ - Line: int(1153), - Column: int(32), - }, - file: p1, - }, - context: p16499, - freeVariables: nil, - }, - Value: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFieldsAll", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16506, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16508, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16532, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16536, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16539, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16542, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16545, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16548, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16551, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16554, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16559, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16561, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1156), - Column: int(5), - }, - End: Location{ - Line: int(1156), - Column: int(32), - }, - file: p1, - }, - context: p16567, - freeVariables: Identifiers{ - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1156), - Column: int(5), - }, - End: Location{ - Line: int(1156), - Column: int(23), - }, - file: p1, - }, - context: p16567, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1156), - Column: int(5), - }, - End: Location{ - Line: int(1156), - Column: int(8), - }, - file: p1, - }, - context: p16567, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFieldsEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1156), - Column: int(24), - }, - End: Location{ - Line: int(1156), - Column: int(25), - }, - file: p1, - }, - context: p16576, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1156), - Column: int(27), - }, - End: Location{ - Line: int(1156), - Column: int(31), - }, - file: p1, - }, - context: p16576, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHas", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16583, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16585, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16609, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16613, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16616, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16619, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16622, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16625, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16628, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16631, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16636, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16638, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o", - "f", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(5), - }, - End: Location{ - Line: int(1159), - Column: int(33), - }, - file: p1, - }, - context: p16644, - freeVariables: Identifiers{ - "f", - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(5), - }, - End: Location{ - Line: int(1159), - Column: int(20), - }, - file: p1, - }, - context: p16644, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(5), - }, - End: Location{ - Line: int(1159), - Column: int(8), - }, - file: p1, - }, - context: p16644, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHasEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(21), - }, - End: Location{ - Line: int(1159), - Column: int(22), - }, - file: p1, - }, - context: p16653, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(24), - }, - End: Location{ - Line: int(1159), - Column: int(25), - }, - file: p1, - }, - context: p16653, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1159), - Column: int(27), - }, - End: Location{ - Line: int(1159), - Column: int(32), - }, - file: p1, - }, - context: p16653, - freeVariables: nil, - }, - Value: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHasAll", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16662, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16664, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16688, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16692, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16695, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16698, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16701, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16704, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16707, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16710, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16715, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16717, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "o", - "f", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(5), - }, - End: Location{ - Line: int(1162), - Column: int(32), - }, - file: p1, - }, - context: p16723, - freeVariables: Identifiers{ - "f", - "o", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(5), - }, - End: Location{ - Line: int(1162), - Column: int(20), - }, - file: p1, - }, - context: p16723, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(5), - }, - End: Location{ - Line: int(1162), - Column: int(8), - }, - file: p1, - }, - context: p16723, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectHasEx", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(21), - }, - End: Location{ - Line: int(1162), - Column: int(22), - }, - file: p1, - }, - context: p16732, - freeVariables: Identifiers{ - "o", - }, - }, - Id: "o", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(24), - }, - End: Location{ - Line: int(1162), - Column: int(25), - }, - file: p1, - }, - context: p16732, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1162), - Column: int(27), - }, - End: Location{ - Line: int(1162), - Column: int(31), - }, - file: p1, - }, - context: p16732, - freeVariables: nil, - }, - Value: true, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p16741, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p16743, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p16767, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p16771, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p16774, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p16777, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p16780, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p16783, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p16786, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p16789, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p16794, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p16796, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1165), - Column: int(5), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "ta", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1165), - Column: int(16), - }, - End: Location{ - Line: int(1165), - Column: int(27), - }, - file: p1, - }, - context: p16806, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1165), - Column: int(16), - }, - End: Location{ - Line: int(1165), - Column: int(24), - }, - file: p1, - }, - context: p16806, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1165), - Column: int(16), - }, - End: Location{ - Line: int(1165), - Column: int(19), - }, - file: p1, - }, - context: p16806, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1165), - Column: int(25), - }, - End: Location{ - Line: int(1165), - Column: int(26), - }, - file: p1, - }, - context: p16815, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1166), - Column: int(5), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - "ta", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "tb", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1166), - Column: int(16), - }, - End: Location{ - Line: int(1166), - Column: int(27), - }, - file: p1, - }, - context: p16821, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1166), - Column: int(16), - }, - End: Location{ - Line: int(1166), - Column: int(24), - }, - file: p1, - }, - context: p16821, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1166), - Column: int(16), - }, - End: Location{ - Line: int(1166), - Column: int(19), - }, - file: p1, - }, - context: p16821, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1166), - Column: int(25), - }, - End: Location{ - Line: int(1166), - Column: int(26), - }, - file: p1, - }, - context: p16830, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(5), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - "ta", - "tb", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(8), - }, - End: Location{ - Line: int(1167), - Column: int(36), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - "ta", - "tb", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(9), - }, - End: Location{ - Line: int(1167), - Column: int(36), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - "ta", - "tb", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(9), - }, - End: Location{ - Line: int(1167), - Column: int(28), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(9), - }, - End: Location{ - Line: int(1167), - Column: int(12), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "primitiveEquals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(29), - }, - End: Location{ - Line: int(1167), - Column: int(31), - }, - file: p1, - }, - context: p16845, - freeVariables: Identifiers{ - "ta", - }, - }, - Id: "ta", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1167), - Column: int(33), - }, - End: Location{ - Line: int(1167), - Column: int(35), - }, - file: p1, - }, - context: p16845, - freeVariables: Identifiers{ - "tb", - }, - }, - Id: "tb", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1168), - Column: int(7), - }, - End: Location{ - Line: int(1168), - Column: int(12), - }, - file: p1, - }, - context: p16802, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(7), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - "ta", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(10), - }, - End: Location{ - Line: int(1170), - Column: int(42), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - "ta", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(10), - }, - End: Location{ - Line: int(1170), - Column: int(29), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(10), - }, - End: Location{ - Line: int(1170), - Column: int(13), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "primitiveEquals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(30), - }, - End: Location{ - Line: int(1170), - Column: int(32), - }, - file: p1, - }, - context: p16861, - freeVariables: Identifiers{ - "ta", - }, - }, - Id: "ta", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1170), - Column: int(34), - }, - End: Location{ - Line: int(1170), - Column: int(41), - }, - file: p1, - }, - context: p16861, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1171), - Column: int(9), - }, - End: Location{ - Line: int(1182), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "la", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1171), - Column: int(20), - }, - End: Location{ - Line: int(1171), - Column: int(33), - }, - file: p1, - }, - context: p16868, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1171), - Column: int(20), - }, - End: Location{ - Line: int(1171), - Column: int(30), - }, - file: p1, - }, - context: p16868, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1171), - Column: int(20), - }, - End: Location{ - Line: int(1171), - Column: int(23), - }, - file: p1, - }, - context: p16868, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1171), - Column: int(31), - }, - End: Location{ - Line: int(1171), - Column: int(32), - }, - file: p1, - }, - context: p16877, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(9), - }, - End: Location{ - Line: int(1182), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "la", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(12), - }, - End: Location{ - Line: int(1172), - Column: int(51), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "b", - "la", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(13), - }, - End: Location{ - Line: int(1172), - Column: int(51), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "b", - "la", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(13), - }, - End: Location{ - Line: int(1172), - Column: int(32), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(13), - }, - End: Location{ - Line: int(1172), - Column: int(16), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "primitiveEquals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(33), - }, - End: Location{ - Line: int(1172), - Column: int(35), - }, - file: p1, - }, - context: p16892, - freeVariables: Identifiers{ - "la", - }, - }, - Id: "la", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(37), - }, - End: Location{ - Line: int(1172), - Column: int(50), - }, - file: p1, - }, - context: p16892, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(37), - }, - End: Location{ - Line: int(1172), - Column: int(47), - }, - file: p1, - }, - context: p16892, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(37), - }, - End: Location{ - Line: int(1172), - Column: int(40), - }, - file: p1, - }, - context: p16892, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1172), - Column: int(48), - }, - End: Location{ - Line: int(1172), - Column: int(49), - }, - file: p1, - }, - context: p16903, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1173), - Column: int(11), - }, - End: Location{ - Line: int(1173), - Column: int(16), - }, - file: p1, - }, - context: p16802, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1175), - Column: int(11), - }, - End: Location{ - Line: int(1182), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "la", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1175), - Column: int(17), - }, - End: Location{ - Line: int(1181), - Column: int(31), - }, - file: p1, - }, - context: p16910, - freeVariables: Identifiers{ - "aux", - "la", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1176), - Column: int(13), - }, - End: Location{ - Line: int(1181), - Column: int(31), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "i", - "la", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1176), - Column: int(16), - }, - End: Location{ - Line: int(1176), - Column: int(23), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "i", - "la", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1176), - Column: int(16), - }, - End: Location{ - Line: int(1176), - Column: int(17), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1176), - Column: int(21), - }, - End: Location{ - Line: int(1176), - Column: int(23), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "la", - }, - }, - Id: "la", - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1177), - Column: int(15), - }, - End: Location{ - Line: int(1177), - Column: int(19), - }, - file: p1, - }, - context: p16914, - freeVariables: nil, - }, - Value: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(18), - }, - End: Location{ - Line: int(1181), - Column: int(31), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "i", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "i", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "i", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(21), - }, - End: Location{ - Line: int(1178), - Column: int(25), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "a", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(21), - }, - End: Location{ - Line: int(1178), - Column: int(22), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(23), - }, - End: Location{ - Line: int(1178), - Column: int(24), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(29), - }, - End: Location{ - Line: int(1178), - Column: int(33), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "b", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(29), - }, - End: Location{ - Line: int(1178), - Column: int(30), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1178), - Column: int(31), - }, - End: Location{ - Line: int(1178), - Column: int(32), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1179), - Column: int(15), - }, - End: Location{ - Line: int(1179), - Column: int(20), - }, - file: p1, - }, - context: p16914, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(15), - }, - End: Location{ - Line: int(1181), - Column: int(31), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(15), - }, - End: Location{ - Line: int(1181), - Column: int(18), - }, - file: p1, - }, - context: p16914, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(19), - }, - End: Location{ - Line: int(1181), - Column: int(20), - }, - file: p1, - }, - context: p16954, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(22), - }, - End: Location{ - Line: int(1181), - Column: int(23), - }, - file: p1, - }, - context: p16954, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(25), - }, - End: Location{ - Line: int(1181), - Column: int(30), - }, - file: p1, - }, - context: p16954, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(25), - }, - End: Location{ - Line: int(1181), - Column: int(26), - }, - file: p1, - }, - context: p16954, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1181), - Column: int(29), - }, - End: Location{ - Line: int(1181), - Column: int(30), - }, - file: p1, - }, - context: p16954, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1182), - Column: int(11), - }, - End: Location{ - Line: int(1182), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "aux", - "b", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1182), - Column: int(11), - }, - End: Location{ - Line: int(1182), - Column: int(14), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1182), - Column: int(15), - }, - End: Location{ - Line: int(1182), - Column: int(16), - }, - file: p1, - }, - context: p16969, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1182), - Column: int(18), - }, - End: Location{ - Line: int(1182), - Column: int(19), - }, - file: p1, - }, - context: p16969, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1182), - Column: int(21), - }, - End: Location{ - Line: int(1182), - Column: int(22), - }, - file: p1, - }, - context: p16969, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(12), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - "ta", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(15), - }, - End: Location{ - Line: int(1183), - Column: int(48), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - "ta", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(15), - }, - End: Location{ - Line: int(1183), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(15), - }, - End: Location{ - Line: int(1183), - Column: int(18), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "primitiveEquals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(35), - }, - End: Location{ - Line: int(1183), - Column: int(37), - }, - file: p1, - }, - context: p16985, - freeVariables: Identifiers{ - "ta", - }, - }, - Id: "ta", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1183), - Column: int(39), - }, - End: Location{ - Line: int(1183), - Column: int(47), - }, - file: p1, - }, - context: p16985, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1184), - Column: int(9), - }, - End: Location{ - Line: int(1196), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "fields", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1184), - Column: int(24), - }, - End: Location{ - Line: int(1184), - Column: int(43), - }, - file: p1, - }, - context: p16992, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1184), - Column: int(24), - }, - End: Location{ - Line: int(1184), - Column: int(40), - }, - file: p1, - }, - context: p16992, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1184), - Column: int(24), - }, - End: Location{ - Line: int(1184), - Column: int(27), - }, - file: p1, - }, - context: p16992, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1184), - Column: int(41), - }, - End: Location{ - Line: int(1184), - Column: int(42), - }, - file: p1, - }, - context: p17001, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1185), - Column: int(9), - }, - End: Location{ - Line: int(1196), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "fields", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "lfields", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1185), - Column: int(25), - }, - End: Location{ - Line: int(1185), - Column: int(43), - }, - file: p1, - }, - context: p17007, - freeVariables: Identifiers{ - "fields", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1185), - Column: int(25), - }, - End: Location{ - Line: int(1185), - Column: int(35), - }, - file: p1, - }, - context: p17007, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1185), - Column: int(25), - }, - End: Location{ - Line: int(1185), - Column: int(28), - }, - file: p1, - }, - context: p17007, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1185), - Column: int(36), - }, - End: Location{ - Line: int(1185), - Column: int(42), - }, - file: p1, - }, - context: p17016, - freeVariables: Identifiers{ - "fields", - }, - }, - Id: "fields", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(9), - }, - End: Location{ - Line: int(1196), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "fields", - "lfields", - "std", - }, - }, - Cond: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "fields", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "fields", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(12), - }, - End: Location{ - Line: int(1186), - Column: int(18), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "fields", - }, - }, - Id: "fields", - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(22), - }, - End: Location{ - Line: int(1186), - Column: int(41), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(22), - }, - End: Location{ - Line: int(1186), - Column: int(38), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(22), - }, - End: Location{ - Line: int(1186), - Column: int(25), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1186), - Column: int(39), - }, - End: Location{ - Line: int(1186), - Column: int(40), - }, - file: p1, - }, - context: p17041, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1187), - Column: int(11), - }, - End: Location{ - Line: int(1187), - Column: int(16), - }, - file: p1, - }, - context: p16802, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1189), - Column: int(11), - }, - End: Location{ - Line: int(1196), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "fields", - "lfields", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "aux", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1189), - Column: int(17), - }, - End: Location{ - Line: int(1195), - Column: int(31), - }, - file: p1, - }, - context: p17048, - freeVariables: Identifiers{ - "aux", - "fields", - "lfields", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - "b", - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1190), - Column: int(13), - }, - End: Location{ - Line: int(1195), - Column: int(31), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "fields", - "i", - "lfields", - "std", - }, - }, - Cond: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1190), - Column: int(16), - }, - End: Location{ - Line: int(1190), - Column: int(28), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "i", - "lfields", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1190), - Column: int(16), - }, - End: Location{ - Line: int(1190), - Column: int(17), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(8), - Right: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1190), - Column: int(21), - }, - End: Location{ - Line: int(1190), - Column: int(28), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "lfields", - }, - }, - Id: "lfields", - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1191), - Column: int(15), - }, - End: Location{ - Line: int(1191), - Column: int(19), - }, - file: p1, - }, - context: p17052, - freeVariables: nil, - }, - Value: true, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(18), - }, - End: Location{ - Line: int(1195), - Column: int(31), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "fields", - "i", - "std", - }, - }, - Cond: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(21), - }, - End: Location{ - Line: int(1192), - Column: int(54), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - "b", - "fields", - "i", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "f", - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(31), - }, - End: Location{ - Line: int(1192), - Column: int(40), - }, - file: p1, - }, - context: p17067, - freeVariables: Identifiers{ - "fields", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(31), - }, - End: Location{ - Line: int(1192), - Column: int(37), - }, - file: p1, - }, - context: p17067, - freeVariables: Identifiers{ - "fields", - }, - }, - Id: "fields", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(38), - }, - End: Location{ - Line: int(1192), - Column: int(39), - }, - file: p1, - }, - context: p17067, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Fun: nil, - }, - }, - Body: &Unary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "f", - "std", - }, - }, - Op: UnaryOp(0), - Expr: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "a", - "b", - "f", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(42), - }, - End: Location{ - Line: int(1192), - Column: int(46), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - "f", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(42), - }, - End: Location{ - Line: int(1192), - Column: int(43), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(44), - }, - End: Location{ - Line: int(1192), - Column: int(45), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - Id: nil, - }, - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(50), - }, - End: Location{ - Line: int(1192), - Column: int(54), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "b", - "f", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(50), - }, - End: Location{ - Line: int(1192), - Column: int(51), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1192), - Column: int(52), - }, - End: Location{ - Line: int(1192), - Column: int(53), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1193), - Column: int(15), - }, - End: Location{ - Line: int(1193), - Column: int(20), - }, - file: p1, - }, - context: p17052, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(15), - }, - End: Location{ - Line: int(1195), - Column: int(31), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "a", - "aux", - "b", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(15), - }, - End: Location{ - Line: int(1195), - Column: int(18), - }, - file: p1, - }, - context: p17052, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(19), - }, - End: Location{ - Line: int(1195), - Column: int(20), - }, - file: p1, - }, - context: p17102, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(22), - }, - End: Location{ - Line: int(1195), - Column: int(23), - }, - file: p1, - }, - context: p17102, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(25), - }, - End: Location{ - Line: int(1195), - Column: int(30), - }, - file: p1, - }, - context: p17102, - freeVariables: Identifiers{ - "i", - }, - }, - Left: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(25), - }, - End: Location{ - Line: int(1195), - Column: int(26), - }, - file: p1, - }, - context: p17102, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Op: BinaryOp(3), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1195), - Column: int(29), - }, - End: Location{ - Line: int(1195), - Column: int(30), - }, - file: p1, - }, - context: p17102, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: true, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1196), - Column: int(11), - }, - End: Location{ - Line: int(1196), - Column: int(23), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "aux", - "b", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1196), - Column: int(11), - }, - End: Location{ - Line: int(1196), - Column: int(14), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "aux", - }, - }, - Id: "aux", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1196), - Column: int(15), - }, - End: Location{ - Line: int(1196), - Column: int(16), - }, - file: p1, - }, - context: p17117, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1196), - Column: int(18), - }, - End: Location{ - Line: int(1196), - Column: int(19), - }, - file: p1, - }, - context: p17117, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1196), - Column: int(21), - }, - End: Location{ - Line: int(1196), - Column: int(22), - }, - file: p1, - }, - context: p17117, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - BranchFalse: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1198), - Column: int(9), - }, - End: Location{ - Line: int(1198), - Column: int(34), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "a", - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1198), - Column: int(9), - }, - End: Location{ - Line: int(1198), - Column: int(28), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1198), - Column: int(9), - }, - End: Location{ - Line: int(1198), - Column: int(12), - }, - file: p1, - }, - context: p16802, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "primitiveEquals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1198), - Column: int(29), - }, - End: Location{ - Line: int(1198), - Column: int(30), - }, - file: p1, - }, - context: p17131, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1198), - Column: int(32), - }, - End: Location{ - Line: int(1198), - Column: int(33), - }, - file: p1, - }, - context: p17131, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "resolvePath", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p17139, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p17141, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p17165, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p17169, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p17172, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p17175, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p17178, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p17181, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p17184, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p17187, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p17192, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p17194, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "f", - "r", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(5), - }, - End: Location{ - Line: int(1203), - Column: int(80), - }, - file: p1, - }, - context: p17200, - freeVariables: Identifiers{ - "f", - "r", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "arr", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(17), - }, - End: Location{ - Line: int(1202), - Column: int(34), - }, - file: p1, - }, - context: p17204, - freeVariables: Identifiers{ - "f", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(17), - }, - End: Location{ - Line: int(1202), - Column: int(26), - }, - file: p1, - }, - context: p17204, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(17), - }, - End: Location{ - Line: int(1202), - Column: int(20), - }, - file: p1, - }, - context: p17204, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "split", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(27), - }, - End: Location{ - Line: int(1202), - Column: int(28), - }, - file: p1, - }, - context: p17213, - freeVariables: Identifiers{ - "f", - }, - }, - Id: "f", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1202), - Column: int(30), - }, - End: Location{ - Line: int(1202), - Column: int(33), - }, - file: p1, - }, - context: p17213, - freeVariables: nil, - }, - Value: "/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(5), - }, - End: Location{ - Line: int(1203), - Column: int(80), - }, - file: p1, - }, - context: p17200, - freeVariables: Identifiers{ - "arr", - "r", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(5), - }, - End: Location{ - Line: int(1203), - Column: int(13), - }, - file: p1, - }, - context: p17200, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(5), - }, - End: Location{ - Line: int(1203), - Column: int(8), - }, - file: p1, - }, - context: p17200, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "join", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(14), - }, - End: Location{ - Line: int(1203), - Column: int(17), - }, - file: p1, - }, - context: p17225, - freeVariables: nil, - }, - Value: "/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(19), - }, - End: Location{ - Line: int(1203), - Column: int(79), - }, - file: p1, - }, - context: p17225, - freeVariables: Identifiers{ - "arr", - "r", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(19), - }, - End: Location{ - Line: int(1203), - Column: int(73), - }, - file: p1, - }, - context: p17225, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(19), - }, - End: Location{ - Line: int(1203), - Column: int(32), - }, - file: p1, - }, - context: p17225, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(19), - }, - End: Location{ - Line: int(1203), - Column: int(22), - }, - file: p1, - }, - context: p17225, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "makeArray", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(33), - }, - End: Location{ - Line: int(1203), - Column: int(52), - }, - file: p1, - }, - context: p17237, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(33), - }, - End: Location{ - Line: int(1203), - Column: int(48), - }, - file: p1, - }, - context: p17237, - freeVariables: Identifiers{ - "arr", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(33), - }, - End: Location{ - Line: int(1203), - Column: int(43), - }, - file: p1, - }, - context: p17237, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(33), - }, - End: Location{ - Line: int(1203), - Column: int(36), - }, - file: p1, - }, - context: p17237, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(44), - }, - End: Location{ - Line: int(1203), - Column: int(47), - }, - file: p1, - }, - context: p17248, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(4), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(51), - }, - End: Location{ - Line: int(1203), - Column: int(52), - }, - file: p1, - }, - context: p17237, - freeVariables: nil, - }, - Value: float64(1), - OriginalString: "1", - }, - }, - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(54), - }, - End: Location{ - Line: int(1203), - Column: int(72), - }, - file: p1, - }, - context: p17237, - freeVariables: Identifiers{ - "arr", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(66), - }, - End: Location{ - Line: int(1203), - Column: int(72), - }, - file: p1, - }, - context: p17255, - freeVariables: Identifiers{ - "arr", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(66), - }, - End: Location{ - Line: int(1203), - Column: int(69), - }, - file: p1, - }, - context: p17255, - freeVariables: Identifiers{ - "arr", - }, - }, - Id: "arr", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(70), - }, - End: Location{ - Line: int(1203), - Column: int(71), - }, - file: p1, - }, - context: p17255, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(3), - Right: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(76), - }, - End: Location{ - Line: int(1203), - Column: int(79), - }, - file: p1, - }, - context: p17225, - freeVariables: Identifiers{ - "r", - }, - }, - Elements: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1203), - Column: int(77), - }, - End: Location{ - Line: int(1203), - Column: int(78), - }, - file: p1, - }, - context: p17265, - freeVariables: Identifiers{ - "r", - }, - }, - Id: "r", - }, - }, - TrailingComma: false, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - }, - }, - PlusSuper: false, - }, - DesugaredObjectField{ - Hide: ObjectFieldHide(0), - Name: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prune", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "std", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(25), - Column: int(15), - }, - End: Location{ - Line: int(25), - Column: int(19), - }, - file: p1, - }, - context: p17271, - freeVariables: nil, - }, - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_table", - Body: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(993), - Column: int(24), - }, - End: Location{ - Line: int(993), - Column: int(90), - }, - file: p1, - }, - context: p17273, - freeVariables: nil, - }, - Value: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Fun: nil, - }, - LocalBind{ - Variable: "base64_inv", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "i", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(22), - }, - End: Location{ - Line: int(994), - Column: int(72), - }, - file: p1, - }, - context: p17297, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(40), - }, - file: p1, - }, - context: p17301, - freeVariables: Identifiers{ - "base64_table", - "i", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(25), - }, - End: Location{ - Line: int(994), - Column: int(37), - }, - file: p1, - }, - context: p17304, - freeVariables: Identifiers{ - "base64_table", - }, - }, - Id: "base64_table", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(38), - }, - End: Location{ - Line: int(994), - Column: int(39), - }, - file: p1, - }, - context: p17307, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - Id: nil, - }, - Body: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(43), - }, - End: Location{ - Line: int(994), - Column: int(44), - }, - file: p1, - }, - context: p17310, - freeVariables: Identifiers{ - "i", - }, - }, - Id: "i", - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(70), - }, - file: p1, - }, - context: p17313, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(63), - }, - file: p1, - }, - context: p17316, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(54), - }, - End: Location{ - Line: int(994), - Column: int(57), - }, - file: p1, - }, - context: p17319, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "range", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(64), - }, - End: Location{ - Line: int(994), - Column: int(65), - }, - file: p1, - }, - context: p17324, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(994), - Column: int(67), - }, - End: Location{ - Line: int(994), - Column: int(69), - }, - file: p1, - }, - context: p17326, - freeVariables: nil, - }, - Value: float64(63), - OriginalString: "63", - }, - }, - Named: []NamedArgument{}, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - LocalBind{ - Variable: "$", - Body: &Self{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - }, - Fun: nil, - }, - }, - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: p68, - freeVariables: Identifiers{ - "$", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "a", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1206), - Column: int(5), - }, - End: Location{ - Line: int(1224), - Column: int(8), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "a", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "isContent", - Body: &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1206), - Column: int(11), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17336, - freeVariables: Identifiers{ - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "b", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1207), - Column: int(7), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "t", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1207), - Column: int(17), - }, - End: Location{ - Line: int(1207), - Column: int(28), - }, - file: p1, - }, - context: p17344, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1207), - Column: int(17), - }, - End: Location{ - Line: int(1207), - Column: int(25), - }, - file: p1, - }, - context: p17344, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1207), - Column: int(17), - }, - End: Location{ - Line: int(1207), - Column: int(20), - }, - file: p1, - }, - context: p17344, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1207), - Column: int(26), - }, - End: Location{ - Line: int(1207), - Column: int(27), - }, - file: p1, - }, - context: p17353, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1208), - Column: int(7), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - "t", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1208), - Column: int(10), - }, - End: Location{ - Line: int(1208), - Column: int(11), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - &LiteralNull{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1208), - Column: int(15), - }, - End: Location{ - Line: int(1208), - Column: int(19), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1209), - Column: int(9), - }, - End: Location{ - Line: int(1209), - Column: int(14), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1210), - Column: int(12), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - "t", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "t", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1210), - Column: int(15), - }, - End: Location{ - Line: int(1210), - Column: int(16), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "t", - }, - }, - Id: "t", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1210), - Column: int(20), - }, - End: Location{ - Line: int(1210), - Column: int(27), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(9), - }, - End: Location{ - Line: int(1211), - Column: int(26), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(9), - }, - End: Location{ - Line: int(1211), - Column: int(22), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(9), - }, - End: Location{ - Line: int(1211), - Column: int(19), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(9), - }, - End: Location{ - Line: int(1211), - Column: int(12), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(20), - }, - End: Location{ - Line: int(1211), - Column: int(21), - }, - file: p1, - }, - context: p17393, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1211), - Column: int(25), - }, - End: Location{ - Line: int(1211), - Column: int(26), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1212), - Column: int(12), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - "t", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "t", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1212), - Column: int(15), - }, - End: Location{ - Line: int(1212), - Column: int(16), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "t", - }, - }, - Id: "t", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1212), - Column: int(20), - }, - End: Location{ - Line: int(1212), - Column: int(28), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Binary{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(9), - }, - End: Location{ - Line: int(1213), - Column: int(26), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Left: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(9), - }, - End: Location{ - Line: int(1213), - Column: int(22), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "b", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(9), - }, - End: Location{ - Line: int(1213), - Column: int(19), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(9), - }, - End: Location{ - Line: int(1213), - Column: int(12), - }, - file: p1, - }, - context: p17340, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "length", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(20), - }, - End: Location{ - Line: int(1213), - Column: int(21), - }, - file: p1, - }, - context: p17420, - freeVariables: Identifiers{ - "b", - }, - }, - Id: "b", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Op: BinaryOp(7), - Right: &LiteralNumber{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1213), - Column: int(25), - }, - End: Location{ - Line: int(1213), - Column: int(26), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: float64(0), - OriginalString: "0", - }, - }, - BranchFalse: &LiteralBoolean{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1215), - Column: int(9), - }, - End: Location{ - Line: int(1215), - Column: int(13), - }, - file: p1, - }, - context: p17340, - freeVariables: nil, - }, - Value: true, - }, - }, - }, - }, - }, - }, - Fun: nil, - }, - }, - Body: &Local{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1216), - Column: int(5), - }, - End: Location{ - Line: int(1224), - Column: int(8), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - }, - }, - Binds: LocalBinds{ - LocalBind{ - Variable: "t", - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1216), - Column: int(15), - }, - End: Location{ - Line: int(1216), - Column: int(26), - }, - file: p1, - }, - context: p17428, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1216), - Column: int(15), - }, - End: Location{ - Line: int(1216), - Column: int(23), - }, - file: p1, - }, - context: p17428, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1216), - Column: int(15), - }, - End: Location{ - Line: int(1216), - Column: int(18), - }, - file: p1, - }, - context: p17428, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "type", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1216), - Column: int(24), - }, - End: Location{ - Line: int(1216), - Column: int(25), - }, - file: p1, - }, - context: p17437, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - Fun: nil, - }, - }, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1217), - Column: int(5), - }, - End: Location{ - Line: int(1224), - Column: int(8), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - "t", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "t", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1217), - Column: int(8), - }, - End: Location{ - Line: int(1217), - Column: int(9), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "t", - }, - }, - Id: "t", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1217), - Column: int(13), - }, - End: Location{ - Line: int(1217), - Column: int(20), - }, - file: p1, - }, - context: p17332, - freeVariables: nil, - }, - Value: "array", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "isContent", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "isContent", - "std", - "x", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(35), - }, - End: Location{ - Line: int(1218), - Column: int(56), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "isContent", - "x", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(35), - }, - End: Location{ - Line: int(1218), - Column: int(44), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "isContent", - }, - }, - Id: "isContent", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(45), - }, - End: Location{ - Line: int(1218), - Column: int(55), - }, - file: p1, - }, - context: p17471, - freeVariables: Identifiers{ - "$", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(45), - }, - End: Location{ - Line: int(1218), - Column: int(52), - }, - file: p1, - }, - context: p17471, - freeVariables: Identifiers{ - "$", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(45), - }, - End: Location{ - Line: int(1218), - Column: int(46), - }, - file: p1, - }, - context: p17471, - freeVariables: Identifiers{ - "$", - }, - }, - Id: "$", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prune", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(53), - }, - End: Location{ - Line: int(1218), - Column: int(54), - }, - file: p1, - }, - context: p17480, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Elements: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(8), - }, - End: Location{ - Line: int(1218), - Column: int(20), - }, - file: p1, - }, - context: p17486, - freeVariables: Identifiers{ - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(8), - }, - End: Location{ - Line: int(1218), - Column: int(17), - }, - file: p1, - }, - context: p17486, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(8), - }, - End: Location{ - Line: int(1218), - Column: int(11), - }, - file: p1, - }, - context: p17486, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prune", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(18), - }, - End: Location{ - Line: int(1218), - Column: int(19), - }, - file: p1, - }, - context: p17495, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - }, - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1218), - Column: int(30), - }, - End: Location{ - Line: int(1218), - Column: int(31), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1219), - Column: int(10), - }, - End: Location{ - Line: int(1224), - Column: int(8), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - "t", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - "t", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "equals", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1219), - Column: int(13), - }, - End: Location{ - Line: int(1219), - Column: int(14), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "t", - }, - }, - Id: "t", - }, - &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1219), - Column: int(18), - }, - End: Location{ - Line: int(1219), - Column: int(26), - }, - file: p1, - }, - context: p17332, - freeVariables: nil, - }, - Value: "object", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "$objectFlatMerge", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "flatMap", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Function{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - }, - }, - Parameters: Parameters{ - Required: Identifiers{ - "x", - }, - Optional: nil, - }, - TrailingComma: false, - Body: &Conditional{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "isContent", - "std", - "x", - }, - }, - Cond: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(10), - }, - End: Location{ - Line: int(1222), - Column: int(36), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "a", - "isContent", - "std", - "x", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(10), - }, - End: Location{ - Line: int(1222), - Column: int(19), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "isContent", - }, - }, - Id: "isContent", - }, - Arguments: Arguments{ - Positional: Nodes{ - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(20), - }, - End: Location{ - Line: int(1222), - Column: int(35), - }, - file: p1, - }, - context: p17540, - freeVariables: Identifiers{ - "a", - "std", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(20), - }, - End: Location{ - Line: int(1222), - Column: int(29), - }, - file: p1, - }, - context: p17540, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(20), - }, - End: Location{ - Line: int(1222), - Column: int(23), - }, - file: p1, - }, - context: p17540, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prune", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(30), - }, - End: Location{ - Line: int(1222), - Column: int(34), - }, - file: p1, - }, - context: p17549, - freeVariables: Identifiers{ - "a", - "x", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(30), - }, - End: Location{ - Line: int(1222), - Column: int(31), - }, - file: p1, - }, - context: p17549, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1222), - Column: int(32), - }, - End: Location{ - Line: int(1222), - Column: int(33), - }, - file: p1, - }, - context: p17549, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchTrue: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: Identifiers{ - "$", - "a", - "x", - }, - }, - Elements: Nodes{ - &DesugaredObject{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1219), - Column: int(32), - }, - End: Location{ - Line: int(1223), - Column: int(6), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "$", - "a", - "x", - }, - }, - Asserts: nil, - Fields: DesugaredObjectFields{ - DesugaredObjectField{ - Hide: ObjectFieldHide(1), - Name: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(8), - }, - End: Location{ - Line: int(1220), - Column: int(9), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - Body: &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(12), - }, - End: Location{ - Line: int(1220), - Column: int(25), - }, - file: p1, - }, - context: p17564, - freeVariables: Identifiers{ - "$", - "a", - "x", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(12), - }, - End: Location{ - Line: int(1220), - Column: int(19), - }, - file: p1, - }, - context: p17564, - freeVariables: Identifiers{ - "$", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(12), - }, - End: Location{ - Line: int(1220), - Column: int(13), - }, - file: p1, - }, - context: p17564, - freeVariables: Identifiers{ - "$", - }, - }, - Id: "$", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "prune", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(20), - }, - End: Location{ - Line: int(1220), - Column: int(24), - }, - file: p1, - }, - context: p17573, - freeVariables: Identifiers{ - "a", - "x", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(20), - }, - End: Location{ - Line: int(1220), - Column: int(21), - }, - file: p1, - }, - context: p17573, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - Index: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1220), - Column: int(22), - }, - End: Location{ - Line: int(1220), - Column: int(23), - }, - file: p1, - }, - context: p17573, - freeVariables: Identifiers{ - "x", - }, - }, - Id: "x", - }, - Id: nil, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - PlusSuper: false, - }, - }, - }, - }, - TrailingComma: false, - }, - BranchFalse: &Array{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Elements: nil, - TrailingComma: false, - }, - }, - }, - &Apply{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1221), - Column: int(16), - }, - End: Location{ - Line: int(1221), - Column: int(35), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "a", - "std", - }, - }, - Target: &Index{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1221), - Column: int(16), - }, - End: Location{ - Line: int(1221), - Column: int(32), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "std", - }, - }, - Target: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1221), - Column: int(16), - }, - End: Location{ - Line: int(1221), - Column: int(19), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "std", - }, - }, - Id: "std", - }, - Index: &LiteralString{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(0), - Column: int(0), - }, - End: Location{ - Line: int(0), - Column: int(0), - }, - file: nil, - }, - context: nil, - freeVariables: nil, - }, - Value: "objectFields", - Kind: LiteralStringKind(1), - BlockIndent: "", - }, - Id: nil, - }, - Arguments: Arguments{ - Positional: Nodes{ - &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1221), - Column: int(33), - }, - End: Location{ - Line: int(1221), - Column: int(34), - }, - file: p1, - }, - context: p17589, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - }, - Named: nil, - }, - TrailingComma: false, - TailStrict: false, - }, - BranchFalse: &Var{ - NodeBase: NodeBase{ - loc: LocationRange{ - FileName: "", - Begin: Location{ - Line: int(1224), - Column: int(7), - }, - End: Location{ - Line: int(1224), - Column: int(8), - }, - file: p1, - }, - context: p17332, - freeVariables: Identifiers{ - "a", - }, - }, - Id: "a", - }, - }, - }, - }, - }, - }, - }, - PlusSuper: false, - }, - }, -} diff --git a/vendor/github.com/google/go-jsonnet/ast/util.go b/vendor/github.com/google/go-jsonnet/ast/util.go deleted file mode 100644 index f086b01..0000000 --- a/vendor/github.com/google/go-jsonnet/ast/util.go +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package ast - -import "sort" - -// AddIdentifiers adds a slice of identifiers to an identifier set. -func (i IdentifierSet) AddIdentifiers(idents Identifiers) { - for _, ident := range idents { - i.Add(ident) - } -} - -// ToOrderedSlice returns the elements of the current set as an ordered slice. -func (i IdentifierSet) ToOrderedSlice() []Identifier { - var s []Identifier - for v := range i { - s = append(s, v) - } - sort.Sort(identifierSorter(s)) - return s -} - -type identifierSorter []Identifier - -func (s identifierSorter) Len() int { return len(s) } -func (s identifierSorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] } -func (s identifierSorter) Less(i, j int) bool { return s[i] < s[j] } diff --git a/vendor/github.com/google/go-jsonnet/builtins.go b/vendor/github.com/google/go-jsonnet/builtins.go deleted file mode 100644 index dfaff5f..0000000 --- a/vendor/github.com/google/go-jsonnet/builtins.go +++ /dev/null @@ -1,909 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "bytes" - "crypto/md5" - "encoding/hex" - "fmt" - "math" - "sort" - "strings" - - "github.com/google/go-jsonnet/ast" -) - -func builtinPlus(e *evaluator, xp, yp potentialValue) (value, error) { - // TODO(sbarzowski) more types, mixing types - // TODO(sbarzowski) perhaps a more elegant way to dispatch - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - y, err := e.evaluate(yp) - if err != nil { - return nil, err - } - switch right := y.(type) { - case *valueString: - left, err := builtinToString(e, xp) - if err != nil { - return nil, err - } - return concatStrings(left.(*valueString), right), nil - - } - switch left := x.(type) { - case *valueNumber: - right, err := e.getNumber(y) - if err != nil { - return nil, err - } - return makeValueNumber(left.value + right.value), nil - case *valueString: - right, err := builtinToString(e, yp) - if err != nil { - return nil, err - } - return concatStrings(left, right.(*valueString)), nil - case valueObject: - right, err := e.getObject(y) - if err != nil { - return nil, err - } - return makeValueExtendedObject(left, right), nil - case *valueArray: - right, err := e.getArray(y) - if err != nil { - return nil, err - } - return concatArrays(left, right), nil - default: - return nil, e.typeErrorGeneral(x) - } -} - -func builtinMinus(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - y, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - return makeValueNumber(x.value - y.value), nil -} - -func builtinMult(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - y, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - return makeValueNumber(x.value * y.value), nil -} - -func builtinDiv(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - y, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - if y.value == 0 { - return nil, e.Error("Division by zero.") - } - return makeDoubleCheck(e, x.value/y.value) -} - -func builtinModulo(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - y, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - if y.value == 0 { - return nil, e.Error("Division by zero.") - } - return makeDoubleCheck(e, math.Mod(x.value, y.value)) -} - -func builtinLess(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - switch left := x.(type) { - case *valueNumber: - right, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - return makeValueBoolean(left.value < right.value), nil - case *valueString: - right, err := e.evaluateString(yp) - if err != nil { - return nil, err - } - return makeValueBoolean(stringLessThan(left, right)), nil - default: - return nil, e.typeErrorGeneral(x) - } -} - -func builtinGreater(e *evaluator, xp, yp potentialValue) (value, error) { - return builtinLess(e, yp, xp) -} - -func builtinGreaterEq(e *evaluator, xp, yp potentialValue) (value, error) { - res, err := builtinLess(e, xp, yp) - if err != nil { - return nil, err - } - return res.(*valueBoolean).not(), nil -} - -func builtinLessEq(e *evaluator, xp, yp potentialValue) (value, error) { - res, err := builtinGreater(e, xp, yp) - if err != nil { - return nil, err - } - return res.(*valueBoolean).not(), nil -} - -func builtinAnd(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateBoolean(xp) - if err != nil { - return nil, err - } - if !x.value { - return x, nil - } - y, err := e.evaluateBoolean(yp) - if err != nil { - return nil, err - } - return y, nil -} - -func builtinOr(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateBoolean(xp) - if err != nil { - return nil, err - } - if x.value { - return x, nil - } - y, err := e.evaluateBoolean(yp) - if err != nil { - return nil, err - } - return y, nil -} - -func builtinLength(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - var num int - switch x := x.(type) { - case valueObject: - num = len(objectFields(x, withoutHidden)) - case *valueArray: - num = len(x.elements) - case *valueString: - num = x.length() - case *valueFunction: - num = len(x.parameters().required) - default: - return nil, e.typeErrorGeneral(x) - } - return makeValueNumber(float64(num)), nil -} - -func builtinToString(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - switch x := x.(type) { - case *valueString: - return x, nil - } - var buf bytes.Buffer - err = e.i.manifestAndSerializeJSON(&buf, e.trace, x, false, "") - if err != nil { - return nil, err - } - return makeValueString(buf.String()), nil -} - -func builtinMakeArray(e *evaluator, szp potentialValue, funcp potentialValue) (value, error) { - sz, err := e.evaluateInt(szp) - if err != nil { - return nil, err - } - fun, err := e.evaluateFunction(funcp) - if err != nil { - return nil, err - } - var elems []potentialValue - for i := 0; i < sz; i++ { - elem := fun.call(args(&readyValue{intToValue(i)})) - elems = append(elems, elem) - } - return makeValueArray(elems), nil -} - -func builtinFlatMap(e *evaluator, funcp potentialValue, arrp potentialValue) (value, error) { - arr, err := e.evaluateArray(arrp) - if err != nil { - return nil, err - } - fun, err := e.evaluateFunction(funcp) - if err != nil { - return nil, err - } - num := arr.length() - // Start with capacity of the original array. - // This may spare us a few reallocations. - // TODO(sbarzowski) verify that it actually helps - elems := make([]potentialValue, 0, num) - for i := 0; i < num; i++ { - returned, err := e.evaluateArray(fun.call(args(arr.elements[i]))) - if err != nil { - return nil, err - } - for _, elem := range returned.elements { - elems = append(elems, elem) - } - } - return makeValueArray(elems), nil -} - -func joinArrays(e *evaluator, sep *valueArray, arr *valueArray) (value, error) { - result := make([]potentialValue, 0, arr.length()) - first := true - for _, elem := range arr.elements { - elemValue, err := e.evaluate(elem) - if err != nil { - return nil, err - } - switch v := elemValue.(type) { - case *valueNull: - continue - case *valueArray: - if !first { - for _, subElem := range sep.elements { - result = append(result, subElem) - } - } - for _, subElem := range v.elements { - result = append(result, subElem) - } - default: - return nil, e.typeErrorSpecific(elemValue, &valueArray{}) - } - first = false - - } - return makeValueArray(result), nil -} - -func joinStrings(e *evaluator, sep *valueString, arr *valueArray) (value, error) { - result := make([]rune, 0, arr.length()) - first := true - for _, elem := range arr.elements { - elemValue, err := e.evaluate(elem) - if err != nil { - return nil, err - } - switch v := elemValue.(type) { - case *valueNull: - continue - case *valueString: - if !first { - result = append(result, sep.value...) - } - result = append(result, v.value...) - default: - return nil, e.typeErrorSpecific(elemValue, &valueString{}) - } - first = false - } - return &valueString{value: result}, nil -} - -func builtinJoin(e *evaluator, sepp potentialValue, arrp potentialValue) (value, error) { - arr, err := e.evaluateArray(arrp) - if err != nil { - return nil, err - } - sep, err := e.evaluate(sepp) - if err != nil { - return nil, err - } - switch sep := sep.(type) { - case *valueString: - return joinStrings(e, sep, arr) - case *valueArray: - return joinArrays(e, sep, arr) - default: - return nil, e.Error("join first parameter should be string or array, got " + sep.getType().name) - } -} - -func builtinFilter(e *evaluator, funcp potentialValue, arrp potentialValue) (value, error) { - arr, err := e.evaluateArray(arrp) - if err != nil { - return nil, err - } - fun, err := e.evaluateFunction(funcp) - if err != nil { - return nil, err - } - num := arr.length() - // Start with capacity of the original array. - // This may spare us a few reallocations. - // TODO(sbarzowski) verify that it actually helps - elems := make([]potentialValue, 0, num) - for i := 0; i < num; i++ { - included, err := e.evaluateBoolean(fun.call(args(arr.elements[i]))) - if err != nil { - return nil, err - } - if included.value { - elems = append(elems, arr.elements[i]) - } - } - return makeValueArray(elems), nil -} - -func builtinRange(e *evaluator, fromp potentialValue, top potentialValue) (value, error) { - from, err := e.evaluateInt(fromp) - if err != nil { - return nil, err - } - to, err := e.evaluateInt(top) - if err != nil { - return nil, err - } - elems := make([]potentialValue, to-from+1) - for i := from; i <= to; i++ { - elems[i-from] = &readyValue{intToValue(i)} - } - return makeValueArray(elems), nil -} - -func builtinNegation(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateBoolean(xp) - if err != nil { - return nil, err - } - return makeValueBoolean(!x.value), nil -} - -func builtinBitNeg(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - i := int64(x.value) - return int64ToValue(^i), nil -} - -func builtinIdentity(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - return x, nil -} - -func builtinUnaryMinus(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - return makeValueNumber(-x.value), nil -} - -func primitiveEquals(e *evaluator, xp potentialValue, yp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - y, err := e.evaluate(yp) - if err != nil { - return nil, err - } - if x.getType() != y.getType() { - return makeValueBoolean(false), nil - } - switch left := x.(type) { - case *valueBoolean: - right, err := e.getBoolean(y) - if err != nil { - return nil, err - } - return makeValueBoolean(left.value == right.value), nil - case *valueNumber: - right, err := e.getNumber(y) - if err != nil { - return nil, err - } - return makeValueBoolean(left.value == right.value), nil - case *valueString: - right, err := e.getString(y) - if err != nil { - return nil, err - } - return makeValueBoolean(stringEqual(left, right)), nil - case *valueNull: - return makeValueBoolean(true), nil - case *valueFunction: - return nil, e.Error("Cannot test equality of functions") - default: - return nil, e.Error( - "primitiveEquals operates on primitive types, got " + x.getType().name, - ) - } -} - -func builtinType(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluate(xp) - if err != nil { - return nil, err - } - return makeValueString(x.getType().name), nil -} - -func builtinMd5(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateString(xp) - if err != nil { - return nil, err - } - hash := md5.Sum([]byte(string(x.value))) - return makeValueString(hex.EncodeToString(hash[:])), nil -} - -// Maximum allowed unicode codepoint -// https://en.wikipedia.org/wiki/Unicode#Architecture_and_terminology -const codepointMax = 0x10FFFF - -func builtinChar(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - if x.value > codepointMax { - return nil, e.Error(fmt.Sprintf("Invalid unicode codepoint, got %v", x.value)) - } else if x.value < 0 { - return nil, e.Error(fmt.Sprintf("Codepoints must be >= 0, got %v", x.value)) - } - return makeValueString(string(rune(x.value))), nil -} - -func builtinCodepoint(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateString(xp) - if err != nil { - return nil, err - } - if x.length() != 1 { - return nil, e.Error(fmt.Sprintf("codepoint takes a string of length 1, got length %v", x.length())) - } - return makeValueNumber(float64(x.value[0])), nil -} - -func makeDoubleCheck(e *evaluator, x float64) (value, error) { - if math.IsNaN(x) { - return nil, e.Error("Not a number") - } - if math.IsInf(x, 0) { - return nil, e.Error("Overflow") - } - return makeValueNumber(x), nil -} - -func liftNumeric(f func(float64) float64) func(*evaluator, potentialValue) (value, error) { - return func(e *evaluator, xp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - return makeDoubleCheck(e, f(x.value)) - } -} - -var builtinSqrt = liftNumeric(math.Sqrt) -var builtinCeil = liftNumeric(math.Ceil) -var builtinFloor = liftNumeric(math.Floor) -var builtinSin = liftNumeric(math.Sin) -var builtinCos = liftNumeric(math.Cos) -var builtinTan = liftNumeric(math.Tan) -var builtinAsin = liftNumeric(math.Asin) -var builtinAcos = liftNumeric(math.Acos) -var builtinAtan = liftNumeric(math.Atan) -var builtinLog = liftNumeric(math.Log) -var builtinExp = liftNumeric(func(f float64) float64 { - res := math.Exp(f) - if res == 0 && f > 0 { - return math.Inf(1) - } - return res -}) -var builtinMantissa = liftNumeric(func(f float64) float64 { - mantissa, _ := math.Frexp(f) - return mantissa -}) -var builtinExponent = liftNumeric(func(f float64) float64 { - _, exponent := math.Frexp(f) - return float64(exponent) -}) - -func liftBitwise(f func(int64, int64) int64) func(*evaluator, potentialValue, potentialValue) (value, error) { - return func(e *evaluator, xp, yp potentialValue) (value, error) { - x, err := e.evaluateNumber(xp) - if err != nil { - return nil, err - } - y, err := e.evaluateNumber(yp) - if err != nil { - return nil, err - } - return makeDoubleCheck(e, float64(f(int64(x.value), int64(y.value)))) - } -} - -// TODO(sbarzowski) negative shifts -var builtinShiftL = liftBitwise(func(x, y int64) int64 { return x << uint(y) }) -var builtinShiftR = liftBitwise(func(x, y int64) int64 { return x >> uint(y) }) -var builtinBitwiseAnd = liftBitwise(func(x, y int64) int64 { return x & y }) -var builtinBitwiseOr = liftBitwise(func(x, y int64) int64 { return x | y }) -var builtinBitwiseXor = liftBitwise(func(x, y int64) int64 { return x ^ y }) - -func builtinObjectFieldsEx(e *evaluator, objp potentialValue, includeHiddenP potentialValue) (value, error) { - obj, err := e.evaluateObject(objp) - if err != nil { - return nil, err - } - includeHidden, err := e.evaluateBoolean(includeHiddenP) - if err != nil { - return nil, err - } - fields := objectFields(obj, withHiddenFromBool(includeHidden.value)) - sort.Strings(fields) - elems := []potentialValue{} - for _, fieldname := range fields { - elems = append(elems, &readyValue{makeValueString(fieldname)}) - } - return makeValueArray(elems), nil -} - -func builtinObjectHasEx(e *evaluator, objp potentialValue, fnamep potentialValue, includeHiddenP potentialValue) (value, error) { - obj, err := e.evaluateObject(objp) - if err != nil { - return nil, err - } - fname, err := e.evaluateString(fnamep) - if err != nil { - return nil, err - } - includeHidden, err := e.evaluateBoolean(includeHiddenP) - if err != nil { - return nil, err - } - h := withHiddenFromBool(includeHidden.value) - fieldp := tryObjectIndex(objectBinding(obj), string(fname.value), h) - return makeValueBoolean(fieldp != nil), nil -} - -func builtinPow(e *evaluator, basep potentialValue, expp potentialValue) (value, error) { - base, err := e.evaluateNumber(basep) - if err != nil { - return nil, err - } - exp, err := e.evaluateNumber(expp) - if err != nil { - return nil, err - } - return makeDoubleCheck(e, math.Pow(base.value, exp.value)) -} - -func builtinStrReplace(e *evaluator, strp, fromp, top potentialValue) (value, error) { - str, err := e.evaluateString(strp) - if err != nil { - return nil, err - } - from, err := e.evaluateString(fromp) - if err != nil { - return nil, err - } - to, err := e.evaluateString(top) - if err != nil { - return nil, err - } - sStr := str.getString() - sFrom := from.getString() - sTo := to.getString() - if len(sFrom) == 0 { - return nil, e.Error("'from' string must not be zero length.") - } - return makeValueString(strings.Replace(sStr, sFrom, sTo, -1)), nil -} - -func builtinUglyObjectFlatMerge(e *evaluator, objarrp potentialValue) (value, error) { - objarr, err := e.evaluateArray(objarrp) - if err != nil { - return nil, err - } - if len(objarr.elements) == 0 { - return &valueSimpleObject{}, nil - } - newFields := simpleObjectFieldMap{ - values: make(map[string]simpleObjectField), - } - for _, elem := range objarr.elements { - obj, err := e.evaluateObject(elem) - if err != nil { - return nil, err - } - // starts getting ugly - we mess with object internals - simpleObj := obj.(*valueSimpleObject) - for _, fieldName := range simpleObj.fields.keys { - fieldVal := simpleObj.fields.values[fieldName] - if _, alreadyExists := newFields.values[fieldName]; alreadyExists { - return nil, e.Error(duplicateFieldNameErrMsg(fieldName)) - } - newFields.keys = append(newFields.keys, fieldName) - newFields.values[fieldName] = simpleObjectField{ - hide: fieldVal.hide, - field: &bindingsUnboundField{ - inner: fieldVal.field, - bindings: simpleObj.upValues, - }, - } - } - } - return makeValueSimpleObject( - nil, // no binding frame - newFields, - []unboundField{}, // No asserts allowed - ), nil -} - -func builtinExtVar(e *evaluator, namep potentialValue) (value, error) { - name, err := e.evaluateString(namep) - if err != nil { - return nil, err - } - index := name.getString() - if pv, ok := e.i.extVars[index]; ok { - return e.evaluate(pv) - } - return nil, e.Error("Undefined external variable: " + string(index)) -} - -func builtinNative(e *evaluator, namep potentialValue) (value, error) { - name, err := e.evaluateString(namep) - if err != nil { - return nil, err - } - index := name.getString() - if f, exists := e.i.nativeFuncs[index]; exists { - return &valueFunction{ec: f}, nil - - } - return nil, e.Error(fmt.Sprintf("Unrecognized native function name: %v", index)) - -} - -type unaryBuiltinFunc func(*evaluator, potentialValue) (value, error) -type binaryBuiltinFunc func(*evaluator, potentialValue, potentialValue) (value, error) -type ternaryBuiltinFunc func(*evaluator, potentialValue, potentialValue, potentialValue) (value, error) - -type unaryBuiltin struct { - name ast.Identifier - function unaryBuiltinFunc - parameters ast.Identifiers -} - -func getBuiltinEvaluator(e *evaluator, name ast.Identifier) *evaluator { - loc := ast.MakeLocationRangeMessage("") - context := "builtin function <" + string(name) + ">" - trace := TraceElement{loc: &loc, context: &context} - return &evaluator{i: e.i, trace: &trace} -} - -func (b *unaryBuiltin) EvalCall(args callArguments, e *evaluator) (value, error) { - flatArgs := flattenArgs(args, b.Parameters()) - return b.function(getBuiltinEvaluator(e, b.name), flatArgs[0]) -} - -func (b *unaryBuiltin) Parameters() Parameters { - return Parameters{required: b.parameters} -} - -func (b *unaryBuiltin) Name() ast.Identifier { - return b.name -} - -type binaryBuiltin struct { - name ast.Identifier - function binaryBuiltinFunc - parameters ast.Identifiers -} - -// flattenArgs transforms all arguments to a simple array of positional arguments. -// It's needed, because it's possible to use named arguments for required parameters. -// For example both `toString("x")` and `toString(a="x")` are allowed. -// It assumes that we have already checked for duplicates. -func flattenArgs(args callArguments, params Parameters) []potentialValue { - if len(args.named) == 0 { - return args.positional - } - if len(params.optional) != 0 { - panic("Can't normalize arguments if optional parameters are present") - } - needed := make(map[ast.Identifier]int) - - for i := len(args.positional); i < len(params.required); i++ { - needed[params.required[i]] = i - } - - flatArgs := make([]potentialValue, len(params.required)) - copy(flatArgs, args.positional) - for _, arg := range args.named { - flatArgs[needed[arg.name]] = arg.pv - } - return flatArgs -} - -func (b *binaryBuiltin) EvalCall(args callArguments, e *evaluator) (value, error) { - flatArgs := flattenArgs(args, b.Parameters()) - return b.function(getBuiltinEvaluator(e, b.name), flatArgs[0], flatArgs[1]) -} - -func (b *binaryBuiltin) Parameters() Parameters { - return Parameters{required: b.parameters} -} - -func (b *binaryBuiltin) Name() ast.Identifier { - return b.name -} - -type ternaryBuiltin struct { - name ast.Identifier - function ternaryBuiltinFunc - parameters ast.Identifiers -} - -func (b *ternaryBuiltin) EvalCall(args callArguments, e *evaluator) (value, error) { - flatArgs := flattenArgs(args, b.Parameters()) - return b.function(getBuiltinEvaluator(e, b.name), flatArgs[0], flatArgs[1], flatArgs[2]) -} - -func (b *ternaryBuiltin) Parameters() Parameters { - return Parameters{required: b.parameters} -} - -func (b *ternaryBuiltin) Name() ast.Identifier { - return b.name -} - -var desugaredBop = map[ast.BinaryOp]ast.Identifier{ - ast.BopPercent: "mod", - ast.BopManifestEqual: "equals", - ast.BopManifestUnequal: "notEquals", // Special case - ast.BopIn: "objectHasAll", -} - -var bopBuiltins = []*binaryBuiltin{ - ast.BopMult: &binaryBuiltin{name: "operator*", function: builtinMult, parameters: ast.Identifiers{"x", "y"}}, - ast.BopDiv: &binaryBuiltin{name: "operator/", function: builtinDiv, parameters: ast.Identifiers{"x", "y"}}, - // ast.BopPercent: , - - ast.BopPlus: &binaryBuiltin{name: "operator+", function: builtinPlus, parameters: ast.Identifiers{"x", "y"}}, - ast.BopMinus: &binaryBuiltin{name: "operator-", function: builtinMinus, parameters: ast.Identifiers{"x", "y"}}, - - ast.BopShiftL: &binaryBuiltin{name: "operator<<", function: builtinShiftL, parameters: ast.Identifiers{"x", "y"}}, - ast.BopShiftR: &binaryBuiltin{name: "operator>>", function: builtinShiftR, parameters: ast.Identifiers{"x", "y"}}, - - ast.BopGreater: &binaryBuiltin{name: "operator>", function: builtinGreater, parameters: ast.Identifiers{"x", "y"}}, - ast.BopGreaterEq: &binaryBuiltin{name: "operator>=", function: builtinGreaterEq, parameters: ast.Identifiers{"x", "y"}}, - ast.BopLess: &binaryBuiltin{name: "operator<,", function: builtinLess, parameters: ast.Identifiers{"x", "y"}}, - ast.BopLessEq: &binaryBuiltin{name: "operator<=", function: builtinLessEq, parameters: ast.Identifiers{"x", "y"}}, - - // bopManifestEqual: , - // bopManifestUnequal: , - - ast.BopBitwiseAnd: &binaryBuiltin{name: "operator&", function: builtinBitwiseAnd, parameters: ast.Identifiers{"x", "y"}}, - ast.BopBitwiseXor: &binaryBuiltin{name: "operator^", function: builtinBitwiseXor, parameters: ast.Identifiers{"x", "y"}}, - ast.BopBitwiseOr: &binaryBuiltin{name: "operator|", function: builtinBitwiseOr, parameters: ast.Identifiers{"x", "y"}}, - - ast.BopAnd: &binaryBuiltin{name: "operator&&", function: builtinAnd, parameters: ast.Identifiers{"x", "y"}}, - ast.BopOr: &binaryBuiltin{name: "operator||", function: builtinOr, parameters: ast.Identifiers{"x", "y"}}, -} - -var uopBuiltins = []*unaryBuiltin{ - ast.UopNot: &unaryBuiltin{name: "operator!", function: builtinNegation, parameters: ast.Identifiers{"x"}}, - ast.UopBitwiseNot: &unaryBuiltin{name: "operator~", function: builtinBitNeg, parameters: ast.Identifiers{"x"}}, - ast.UopPlus: &unaryBuiltin{name: "operator+ (unary)", function: builtinIdentity, parameters: ast.Identifiers{"x"}}, - ast.UopMinus: &unaryBuiltin{name: "operator- (unary)", function: builtinUnaryMinus, parameters: ast.Identifiers{"x"}}, -} - -type builtin interface { - evalCallable - Name() ast.Identifier -} - -func buildBuiltinMap(builtins []builtin) map[string]evalCallable { - result := make(map[string]evalCallable) - for _, b := range builtins { - result[string(b.Name())] = b - } - return result -} - -var funcBuiltins = buildBuiltinMap([]builtin{ - &unaryBuiltin{name: "extVar", function: builtinExtVar, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "length", function: builtinLength, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "toString", function: builtinToString, parameters: ast.Identifiers{"a"}}, - &binaryBuiltin{name: "makeArray", function: builtinMakeArray, parameters: ast.Identifiers{"sz", "func"}}, - &binaryBuiltin{name: "flatMap", function: builtinFlatMap, parameters: ast.Identifiers{"func", "arr"}}, - &binaryBuiltin{name: "join", function: builtinJoin, parameters: ast.Identifiers{"sep", "arr"}}, - &binaryBuiltin{name: "filter", function: builtinFilter, parameters: ast.Identifiers{"func", "arr"}}, - &binaryBuiltin{name: "range", function: builtinRange, parameters: ast.Identifiers{"from", "to"}}, - &binaryBuiltin{name: "primitiveEquals", function: primitiveEquals, parameters: ast.Identifiers{"sz", "func"}}, - &binaryBuiltin{name: "objectFieldsEx", function: builtinObjectFieldsEx, parameters: ast.Identifiers{"obj", "hidden"}}, - &ternaryBuiltin{name: "objectHasEx", function: builtinObjectHasEx, parameters: ast.Identifiers{"obj", "fname", "hidden"}}, - &unaryBuiltin{name: "type", function: builtinType, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "char", function: builtinChar, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "codepoint", function: builtinCodepoint, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "ceil", function: builtinCeil, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "floor", function: builtinFloor, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "sqrt", function: builtinSqrt, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "sin", function: builtinSin, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "cos", function: builtinCos, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "tan", function: builtinTan, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "asin", function: builtinAsin, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "acos", function: builtinAcos, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "atan", function: builtinAtan, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "log", function: builtinLog, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "exp", function: builtinExp, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "mantissa", function: builtinMantissa, parameters: ast.Identifiers{"x"}}, - &unaryBuiltin{name: "exponent", function: builtinExponent, parameters: ast.Identifiers{"x"}}, - &binaryBuiltin{name: "pow", function: builtinPow, parameters: ast.Identifiers{"base", "exp"}}, - &binaryBuiltin{name: "modulo", function: builtinModulo, parameters: ast.Identifiers{"x", "y"}}, - &unaryBuiltin{name: "md5", function: builtinMd5, parameters: ast.Identifiers{"x"}}, - &ternaryBuiltin{name: "strReplace", function: builtinStrReplace, parameters: ast.Identifiers{"str", "from", "to"}}, - &unaryBuiltin{name: "native", function: builtinNative, parameters: ast.Identifiers{"x"}}, - - // internal - &unaryBuiltin{name: "$objectFlatMerge", function: builtinUglyObjectFlatMerge, parameters: ast.Identifiers{"x"}}, -}) diff --git a/vendor/github.com/google/go-jsonnet/desugarer.go b/vendor/github.com/google/go-jsonnet/desugarer.go deleted file mode 100644 index e803c0b..0000000 --- a/vendor/github.com/google/go-jsonnet/desugarer.go +++ /dev/null @@ -1,631 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "bytes" - "encoding/hex" - "fmt" - "reflect" - "unicode/utf8" - - "github.com/google/go-jsonnet/ast" - "github.com/google/go-jsonnet/parser" -) - -func makeStr(s string) *ast.LiteralString { - return &ast.LiteralString{ - NodeBase: ast.NodeBase{}, - Value: s, - Kind: ast.StringDouble, - BlockIndent: "", - } -} - -func stringUnescape(loc *ast.LocationRange, s string) (string, error) { - var buf bytes.Buffer - // read one rune at a time - for i := 0; i < len(s); { - r, w := utf8.DecodeRuneInString(s[i:]) - i += w - switch r { - case '\\': - if i >= len(s) { - return "", parser.MakeStaticError("Truncated escape sequence in string literal.", *loc) - } - r2, w := utf8.DecodeRuneInString(s[i:]) - i += w - switch r2 { - case '"': - buf.WriteRune('"') - case '\'': - buf.WriteRune('\'') - case '\\': - buf.WriteRune('\\') - case '/': - buf.WriteRune('/') // See json.org, \/ is a valid escape. - case 'b': - buf.WriteRune('\b') - case 'f': - buf.WriteRune('\f') - case 'n': - buf.WriteRune('\n') - case 'r': - buf.WriteRune('\r') - case 't': - buf.WriteRune('\t') - case 'u': - if i+4 > len(s) { - return "", parser.MakeStaticError("Truncated unicode escape sequence in string literal.", *loc) - } - codeBytes, err := hex.DecodeString(s[i : i+4]) - if err != nil { - return "", parser.MakeStaticError(fmt.Sprintf("Unicode escape sequence was malformed: %s", s[0:4]), *loc) - } - code := int(codeBytes[0])*256 + int(codeBytes[1]) - buf.WriteRune(rune(code)) - i += 4 - default: - return "", parser.MakeStaticError(fmt.Sprintf("Unknown escape sequence in string literal: \\%c", r2), *loc) - } - - default: - buf.WriteRune(r) - } - } - return buf.String(), nil -} - -func desugarFields(location ast.LocationRange, fields *ast.ObjectFields, objLevel int) error { - // Simplify asserts - for i := range *fields { - field := &(*fields)[i] - if field.Kind != ast.ObjectAssert { - continue - } - msg := field.Expr3 - if msg == nil { - msg = buildLiteralString("Object assertion failed.") - } - field.Expr3 = nil - onFailure := &ast.Error{Expr: msg} - assertion := &ast.Conditional{ - Cond: field.Expr2, - BranchTrue: &ast.LiteralBoolean{Value: true}, // ignored anyway - BranchFalse: onFailure, - } - field.Expr2 = assertion - } - - for i := range *fields { - field := &((*fields)[i]) - if field.Method == nil { - continue - } - field.Expr2 = field.Method - field.Method = nil - // Body of the function already desugared through expr2 - } - - // Remove object-level locals - newFields := []ast.ObjectField{} - for _, field := range *fields { - if field.Kind == ast.ObjectLocal { - continue - } - var binds ast.LocalBinds - for _, local := range *fields { - if local.Kind != ast.ObjectLocal { - continue - } - binds = append(binds, ast.LocalBind{Variable: *local.Id, Body: ast.Clone(local.Expr2)}) - } - if len(binds) > 0 { - field.Expr2 = &ast.Local{ - NodeBase: ast.NewNodeBaseLoc(*field.Expr2.Loc()), - Binds: binds, - Body: field.Expr2, - } - } - newFields = append(newFields, field) - } - *fields = newFields - - // Change all to FIELD_EXPR - for i := range *fields { - field := &(*fields)[i] - switch field.Kind { - case ast.ObjectAssert: - // Nothing to do. - - case ast.ObjectFieldID: - field.Expr1 = makeStr(string(*field.Id)) - field.Kind = ast.ObjectFieldExpr - - case ast.ObjectFieldExpr: - // Nothing to do. - - case ast.ObjectFieldStr: - // Just set the flag. - field.Kind = ast.ObjectFieldExpr - - case ast.ObjectLocal: - return fmt.Errorf("INTERNAL ERROR: Locals should be removed by now") - } - } - - return nil -} - -func simpleLambda(body ast.Node, paramName ast.Identifier) ast.Node { - return &ast.Function{ - Body: body, - Parameters: ast.Parameters{Required: ast.Identifiers{paramName}}, - } -} - -func buildAnd(left ast.Node, right ast.Node) ast.Node { - return &ast.Binary{Op: ast.BopAnd, Left: left, Right: right} -} - -func desugarForSpec(inside ast.Node, forSpec *ast.ForSpec) (ast.Node, error) { - var body ast.Node - if len(forSpec.Conditions) > 0 { - cond := forSpec.Conditions[0].Expr - for i := 1; i < len(forSpec.Conditions); i++ { - cond = buildAnd(cond, forSpec.Conditions[i].Expr) - } - body = &ast.Conditional{ - Cond: cond, - BranchTrue: inside, - BranchFalse: &ast.Array{}, - } - } else { - body = inside - } - function := simpleLambda(body, forSpec.VarName) - current := buildStdCall("flatMap", function, forSpec.Expr) - if forSpec.Outer == nil { - return current, nil - } - return desugarForSpec(current, forSpec.Outer) -} - -func wrapInArray(inside ast.Node) ast.Node { - return &ast.Array{Elements: ast.Nodes{inside}} -} - -func desugarArrayComp(comp *ast.ArrayComp, objLevel int) (ast.Node, error) { - return desugarForSpec(wrapInArray(comp.Body), &comp.Spec) -} - -func desugarObjectComp(comp *ast.ObjectComp, objLevel int) (ast.Node, error) { - - if objLevel == 0 { - dollar := ast.Identifier("$") - comp.Fields = append(comp.Fields, ast.ObjectFieldLocalNoMethod(&dollar, &ast.Self{})) - } - - err := desugarFields(*comp.Loc(), &comp.Fields, objLevel+1) - if err != nil { - return nil, err - } - - if len(comp.Fields) != 1 { - panic("Too many fields in object comprehension, it should have been caught during parsing") - } - - arrComp := ast.ArrayComp{ - Body: buildDesugaredObject(comp.NodeBase, comp.Fields), - Spec: comp.Spec, - } - - desugaredArrayComp, err := desugarArrayComp(&arrComp, objLevel) - if err != nil { - return nil, err - } - - desugaredComp := buildStdCall("$objectFlatMerge", desugaredArrayComp) - return desugaredComp, nil -} - -func buildLiteralString(value string) ast.Node { - return &ast.LiteralString{ - Kind: ast.StringDouble, - Value: value, - } -} - -func buildSimpleIndex(obj ast.Node, member ast.Identifier) ast.Node { - return &ast.Index{ - Target: obj, - Id: &member, - } -} - -func buildStdCall(builtinName ast.Identifier, args ...ast.Node) ast.Node { - std := &ast.Var{Id: "std"} - builtin := buildSimpleIndex(std, builtinName) - return &ast.Apply{ - Target: builtin, - Arguments: ast.Arguments{Positional: args}, - } -} - -func buildDesugaredObject(nodeBase ast.NodeBase, fields ast.ObjectFields) *ast.DesugaredObject { - var newFields ast.DesugaredObjectFields - var newAsserts ast.Nodes - - for _, field := range fields { - if field.Kind == ast.ObjectAssert { - newAsserts = append(newAsserts, field.Expr2) - } else if field.Kind == ast.ObjectFieldExpr { - newFields = append(newFields, ast.DesugaredObjectField{ - Hide: field.Hide, - Name: field.Expr1, - Body: field.Expr2, - PlusSuper: field.SuperSugar, - }) - } else { - panic(fmt.Sprintf("INTERNAL ERROR: field should have been desugared: %v", field.Kind)) - } - } - - return &ast.DesugaredObject{ - NodeBase: nodeBase, - Asserts: newAsserts, - Fields: newFields, - } -} - -// Desugar Jsonnet expressions to reduce the number of constructs the rest of the implementation -// needs to understand. -// -// Note that despite the name, desugar() is not idempotent. String literals have their escape -// codes translated to low-level characters during desugaring. -// -// Desugaring should happen immediately after parsing, i.e. before static analysis and execution. -// Temporary variables introduced here should be prefixed with $ to ensure they do not clash with -// variables used in user code. -// TODO(sbarzowski) Actually we may want to do some static analysis before desugaring, e.g. -// warning user about dangerous use of constructs that we desugar. -func desugar(astPtr *ast.Node, objLevel int) (err error) { - node := *astPtr - - if node == nil { - return - } - - switch node := node.(type) { - case *ast.Apply: - desugar(&node.Target, objLevel) - for i := range node.Arguments.Positional { - err = desugar(&node.Arguments.Positional[i], objLevel) - if err != nil { - return - } - } - for i := range node.Arguments.Named { - err = desugar(&node.Arguments.Named[i].Arg, objLevel) - if err != nil { - return - } - } - - case *ast.ApplyBrace: - err = desugar(&node.Left, objLevel) - if err != nil { - return - } - err = desugar(&node.Right, objLevel) - if err != nil { - return - } - *astPtr = &ast.Binary{ - NodeBase: node.NodeBase, - Left: node.Left, - Op: ast.BopPlus, - Right: node.Right, - } - - case *ast.Array: - for i := range node.Elements { - err = desugar(&node.Elements[i], objLevel) - if err != nil { - return - } - } - - case *ast.ArrayComp: - comp, err := desugarArrayComp(node, objLevel) - if err != nil { - return err - } - *astPtr = comp - err = desugar(astPtr, objLevel) - if err != nil { - return err - } - - case *ast.Assert: - if node.Message == nil { - node.Message = buildLiteralString("Assertion failed") - } - *astPtr = &ast.Conditional{ - Cond: node.Cond, - BranchTrue: node.Rest, - BranchFalse: &ast.Error{Expr: node.Message}, - } - err = desugar(astPtr, objLevel) - if err != nil { - return err - } - - case *ast.Binary: - // some operators get replaced by stdlib functions - if funcname, replaced := desugaredBop[node.Op]; replaced { - if funcname == "notEquals" { - // TODO(sbarzowski) maybe we can handle it in more regular way - // but let's be consistent with the spec - *astPtr = &ast.Unary{ - Op: ast.UopNot, - Expr: buildStdCall(desugaredBop[ast.BopManifestEqual], node.Left, node.Right), - } - } else if node.Op == ast.BopIn { - // reversed order of arguments - *astPtr = buildStdCall(funcname, node.Right, node.Left) - } else { - *astPtr = buildStdCall(funcname, node.Left, node.Right) - } - return desugar(astPtr, objLevel) - } - - err = desugar(&node.Left, objLevel) - if err != nil { - return - } - err = desugar(&node.Right, objLevel) - if err != nil { - return - } - - case *ast.Conditional: - err = desugar(&node.Cond, objLevel) - if err != nil { - return - } - err = desugar(&node.BranchTrue, objLevel) - if err != nil { - return - } - if node.BranchFalse == nil { - node.BranchFalse = &ast.LiteralNull{} - } - err = desugar(&node.BranchFalse, objLevel) - if err != nil { - return - } - - case *ast.Dollar: - if objLevel == 0 { - return parser.MakeStaticError("No top-level object found.", *node.Loc()) - } - *astPtr = &ast.Var{NodeBase: node.NodeBase, Id: ast.Identifier("$")} - - case *ast.Error: - err = desugar(&node.Expr, objLevel) - if err != nil { - return - } - - case *ast.Function: - for i := range node.Parameters.Optional { - param := &node.Parameters.Optional[i] - err = desugar(¶m.DefaultArg, objLevel) - if err != nil { - return - } - } - err = desugar(&node.Body, objLevel) - if err != nil { - return - } - - case *ast.Import: - // desugar() is allowed to update the pointer to point to something else, but will never do - // this for a LiteralString. We cannot simply do &node.File because the type is - // **ast.LiteralString which is not compatible with *ast.Node. - var file ast.Node = node.File - err = desugar(&file, objLevel) - if err != nil { - return - } - - case *ast.ImportStr: - // See comment in ast.Import. - var file ast.Node = node.File - err = desugar(&file, objLevel) - if err != nil { - return - } - - case *ast.Index: - err = desugar(&node.Target, objLevel) - if err != nil { - return - } - if node.Id != nil { - if node.Index != nil { - panic(fmt.Sprintf("Node with both Id and Index: %#+v", node)) - } - node.Index = makeStr(string(*node.Id)) - node.Id = nil - } - err = desugar(&node.Index, objLevel) - if err != nil { - return - } - - case *ast.Slice: - if node.BeginIndex == nil { - node.BeginIndex = &ast.LiteralNull{} - } - if node.EndIndex == nil { - node.EndIndex = &ast.LiteralNull{} - } - if node.Step == nil { - node.Step = &ast.LiteralNull{} - } - *astPtr = buildStdCall("slice", node.Target, node.BeginIndex, node.EndIndex, node.Step) - err = desugar(astPtr, objLevel) - if err != nil { - return - } - - case *ast.Local: - for i := range node.Binds { - if node.Binds[i].Fun != nil { - node.Binds[i] = ast.LocalBind{ - Variable: node.Binds[i].Variable, - Body: node.Binds[i].Fun, - Fun: nil, - } - } - err = desugar(&node.Binds[i].Body, objLevel) - if err != nil { - return - } - } - err = desugar(&node.Body, objLevel) - if err != nil { - return - } - - case *ast.LiteralBoolean: - // Nothing to do. - - case *ast.LiteralNull: - // Nothing to do. - - case *ast.LiteralNumber: - // Nothing to do. - - case *ast.LiteralString: - if node.Kind.FullyEscaped() { - unescaped, err := stringUnescape(node.Loc(), node.Value) - if err != nil { - return err - } - node.Value = unescaped - } - node.Kind = ast.StringDouble - node.BlockIndent = "" - case *ast.Object: - // Hidden variable to allow $ binding. - if objLevel == 0 { - dollar := ast.Identifier("$") - node.Fields = append(node.Fields, ast.ObjectFieldLocalNoMethod(&dollar, &ast.Self{})) - } - - err = desugarFields(*node.Loc(), &node.Fields, objLevel) - if err != nil { - return - } - - *astPtr = buildDesugaredObject(node.NodeBase, node.Fields) - err = desugar(astPtr, objLevel) - if err != nil { - return - } - - case *ast.DesugaredObject: - for i := range node.Fields { - field := &((node.Fields)[i]) - if field.Name != nil { - err := desugar(&field.Name, objLevel) - if err != nil { - return err - } - } - err := desugar(&field.Body, objLevel+1) - if err != nil { - return err - } - } - for i := range node.Asserts { - assert := &((node.Asserts)[i]) - err := desugar(assert, objLevel+1) - if err != nil { - return err - } - } - - case *ast.ObjectComp: - comp, err := desugarObjectComp(node, objLevel) - if err != nil { - return err - } - err = desugar(&comp, objLevel) - if err != nil { - return err - } - *astPtr = comp - - case *ast.Parens: - *astPtr = node.Inner - err = desugar(astPtr, objLevel) - if err != nil { - return err - } - - case *ast.Self: - // Nothing to do. - - case *ast.SuperIndex: - if node.Id != nil { - node.Index = &ast.LiteralString{Value: string(*node.Id)} - node.Id = nil - } - - case *ast.InSuper: - err := desugar(&node.Index, objLevel) - if err != nil { - return err - } - case *ast.Unary: - err = desugar(&node.Expr, objLevel) - if err != nil { - return - } - - case *ast.Var: - // Nothing to do. - - default: - panic(fmt.Sprintf("Desugarer does not recognize ast: %s", reflect.TypeOf(node))) - } - - return nil -} - -func desugarFile(ast *ast.Node) error { - err := desugar(ast, 0) - if err != nil { - return err - } - return nil -} diff --git a/vendor/github.com/google/go-jsonnet/doc.go b/vendor/github.com/google/go-jsonnet/doc.go deleted file mode 100644 index 94d1b64..0000000 --- a/vendor/github.com/google/go-jsonnet/doc.go +++ /dev/null @@ -1,27 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -/* -Package jsonnet implements a parser and evaluator for jsonnet. - -Jsonnet is a domain specific configuration language that helps you define JSON -data. Jsonnet lets you compute fragments of JSON within the structure, bringing -the same benefit to structured data that templating languages bring to plain -text. - -See http://jsonnet.org/ for a full language description and tutorial. -*/ -package jsonnet diff --git a/vendor/github.com/google/go-jsonnet/error_formatter.go b/vendor/github.com/google/go-jsonnet/error_formatter.go deleted file mode 100644 index 3a79a1f..0000000 --- a/vendor/github.com/google/go-jsonnet/error_formatter.go +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "bytes" - "fmt" - "io" - - "github.com/google/go-jsonnet/ast" - "github.com/google/go-jsonnet/parser" -) - -// An ErrorFormatter formats errors with stacktraces and color. -type ErrorFormatter interface { - // Format static, runtime, and unexpected errors prior to printing them. - Format(err error) string - - // Set the the maximum length of stack trace before cropping. - SetMaxStackTraceSize(size int) - - // Set the color formatter for the location color. - SetColorFormatter(color ColorFormatter) -} - -// ColorFormatter represents a function that writes to the terminal using color. -type ColorFormatter func(w io.Writer, f string, a ...interface{}) (n int, err error) - -var _ ErrorFormatter = &termErrorFormatter{} - -type termErrorFormatter struct { - // maxStackTraceSize is the maximum length of stack trace before cropping - maxStackTraceSize int - - // Examples of current state of the art. - // http://elm-lang.org/blog/compiler-errors-for-humans - // https://clang.llvm.org/diagnostics.html - color ColorFormatter - pretty bool - - // sp is currently never set, but is used to format locations. - sp *ast.SourceProvider -} - -func (ef *termErrorFormatter) SetMaxStackTraceSize(size int) { - ef.maxStackTraceSize = size -} - -func (ef *termErrorFormatter) SetColorFormatter(color ColorFormatter) { - ef.color = color -} - -func (ef *termErrorFormatter) Format(err error) string { - switch err := err.(type) { - case RuntimeError: - return ef.formatRuntime(&err) - case parser.StaticError: - return ef.formatStatic(&err) - default: - return ef.formatInternal(err) - } -} - -func (ef *termErrorFormatter) formatRuntime(err *RuntimeError) string { - return err.Error() + "\n" + ef.buildStackTrace(err.StackTrace) -} - -func (ef *termErrorFormatter) formatStatic(err *parser.StaticError) string { - var buf bytes.Buffer - buf.WriteString(err.Error() + "\n") - ef.showCode(&buf, err.Loc) - return buf.String() -} - -const bugURL = "https://github.com/google/go-jsonnet/issues" - -func (ef *termErrorFormatter) formatInternal(err error) string { - return "INTERNAL ERROR: " + err.Error() + "\n" + - "Please report a bug here: " + bugURL + "\n" -} - -func (ef *termErrorFormatter) showCode(buf *bytes.Buffer, loc ast.LocationRange) { - errFprintf := fmt.Fprintf - if ef.color != nil { - errFprintf = ef.color - } - if loc.WithCode() { - // TODO(sbarzowski) include line numbers - // TODO(sbarzowski) underline errors instead of depending only on color - fmt.Fprintf(buf, "\n") - beginning := ast.LineBeginning(&loc) - ending := ast.LineEnding(&loc) - fmt.Fprintf(buf, "%v", ef.sp.GetSnippet(beginning)) - errFprintf(buf, "%v", ef.sp.GetSnippet(loc)) - fmt.Fprintf(buf, "%v", ef.sp.GetSnippet(ending)) - buf.WriteByte('\n') - } - fmt.Fprintf(buf, "\n") -} - -func (ef *termErrorFormatter) frame(frame *TraceFrame, buf *bytes.Buffer) { - // TODO(sbarzowski) tabs are probably a bad idea - fmt.Fprintf(buf, "\t%v\t%v\n", frame.Loc.String(), frame.Name) - if ef.pretty { - ef.showCode(buf, frame.Loc) - } -} - -func (ef *termErrorFormatter) buildStackTrace(frames []TraceFrame) string { - // https://github.com/google/jsonnet/blob/master/core/libjsonnet.cpp#L594 - maxAbove := ef.maxStackTraceSize / 2 - maxBelow := ef.maxStackTraceSize - maxAbove - var buf bytes.Buffer - sz := len(frames) - for i := 0; i < sz; i++ { - // TODO(sbarzowski) make pretty format more readable (it's already useful) - if ef.pretty { - fmt.Fprintf(&buf, "-------------------------------------------------\n") - } - if ef.maxStackTraceSize > 0 && i >= maxAbove && i < sz-maxBelow { - if ef.pretty { - fmt.Fprintf(&buf, "\t... (skipped %v frames)\n", sz-maxAbove-maxBelow) - } else { - buf.WriteString("\t...\n") - } - - i = sz - maxBelow - 1 - } else { - ef.frame(&frames[sz-i-1], &buf) - } - } - return buf.String() -} diff --git a/vendor/github.com/google/go-jsonnet/evaluator.go b/vendor/github.com/google/go-jsonnet/evaluator.go deleted file mode 100644 index f3141a8..0000000 --- a/vendor/github.com/google/go-jsonnet/evaluator.go +++ /dev/null @@ -1,227 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "fmt" - - "github.com/google/go-jsonnet/ast" -) - -// evaluator is a convenience wrapper for interpreter -// Most importantly it keeps the context for traces and handles details -// of error handling. -type evaluator struct { - i *interpreter - trace *TraceElement -} - -func makeEvaluator(i *interpreter, trace *TraceElement) *evaluator { - return &evaluator{i: i, trace: trace} -} - -func (e *evaluator) inNewContext(trace *TraceElement) *evaluator { - return makeEvaluator(e.i, trace) -} - -func (e *evaluator) evaluate(ph potentialValue) (value, error) { - return ph.getValue(e.i, e.trace) -} - -func (e *evaluator) evaluateTailCall(ph potentialValue, tc tailCallStatus) (value, error) { - if tc == tailCall { - e.i.stack.tailCallTrimStack() - } - return ph.getValue(e.i, e.trace) -} - -func (e *evaluator) Error(s string) error { - err := makeRuntimeError(s, e.i.getCurrentStackTrace(e.trace)) - return err -} - -func (e *evaluator) typeErrorSpecific(bad value, good value) error { - return e.Error( - fmt.Sprintf("Unexpected type %v, expected %v", bad.getType().name, good.getType().name), - ) -} - -func (e *evaluator) typeErrorGeneral(bad value) error { - return e.Error( - fmt.Sprintf("Unexpected type %v", bad.getType().name), - ) -} - -func (e *evaluator) getNumber(val value) (*valueNumber, error) { - switch v := val.(type) { - case *valueNumber: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueNumber{}) - } -} - -func (e *evaluator) evaluateNumber(pv potentialValue) (*valueNumber, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getNumber(v) -} - -func (e *evaluator) getInt(val value) (int, error) { - num, err := e.getNumber(val) - if err != nil { - return 0, err - } - // We conservatively convert ot int32, so that it can be machine-sized int - // on any machine. And it's used only for indexing anyway. - intNum := int(int32(num.value)) - if float64(intNum) != num.value { - return 0, e.Error(fmt.Sprintf("Expected an integer, but got %v", num.value)) - } - return intNum, nil -} - -func (e *evaluator) evaluateInt(pv potentialValue) (int, error) { - v, err := e.evaluate(pv) - if err != nil { - return 0, err - } - return e.getInt(v) -} - -func (e *evaluator) getInt64(val value) (int64, error) { - num, err := e.getNumber(val) - if err != nil { - return 0, err - } - intNum := int64(num.value) - if float64(intNum) != num.value { - return 0, e.Error(fmt.Sprintf("Expected an integer, but got %v", num.value)) - } - return intNum, nil -} - -func (e *evaluator) evaluateInt64(pv potentialValue) (int64, error) { - v, err := e.evaluate(pv) - if err != nil { - return 0, err - } - return e.getInt64(v) -} - -func (e *evaluator) getString(val value) (*valueString, error) { - switch v := val.(type) { - case *valueString: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueString{}) - } -} - -func (e *evaluator) evaluateString(pv potentialValue) (*valueString, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getString(v) -} - -func (e *evaluator) getBoolean(val value) (*valueBoolean, error) { - switch v := val.(type) { - case *valueBoolean: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueBoolean{}) - } -} - -func (e *evaluator) evaluateBoolean(pv potentialValue) (*valueBoolean, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getBoolean(v) -} - -func (e *evaluator) getArray(val value) (*valueArray, error) { - switch v := val.(type) { - case *valueArray: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueArray{}) - } -} - -func (e *evaluator) evaluateArray(pv potentialValue) (*valueArray, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getArray(v) -} - -func (e *evaluator) getFunction(val value) (*valueFunction, error) { - switch v := val.(type) { - case *valueFunction: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueFunction{}) - } -} - -func (e *evaluator) evaluateFunction(pv potentialValue) (*valueFunction, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getFunction(v) -} - -func (e *evaluator) getObject(val value) (valueObject, error) { - switch v := val.(type) { - case valueObject: - return v, nil - default: - return nil, e.typeErrorSpecific(val, &valueSimpleObject{}) - } -} - -func (e *evaluator) evaluateObject(pv potentialValue) (valueObject, error) { - v, err := e.evaluate(pv) - if err != nil { - return nil, err - } - return e.getObject(v) -} - -func (e *evaluator) evalInCurrentContext(a ast.Node, tc tailCallStatus) (value, error) { - return e.i.evaluate(a, tc) -} - -func (e *evaluator) evalInCleanEnv(env *environment, ast ast.Node, trimmable bool) (value, error) { - return e.i.EvalInCleanEnv(e.trace, env, ast, trimmable) -} - -func (e *evaluator) lookUpVar(ident ast.Identifier) potentialValue { - th := e.i.stack.lookUpVar(ident) - if th == nil { - panic(fmt.Sprintf("RUNTIME: Unknown variable: %v (we should have caught this statically)", ident)) - } - return th -} diff --git a/vendor/github.com/google/go-jsonnet/imports.go b/vendor/github.com/google/go-jsonnet/imports.go deleted file mode 100644 index d3be696..0000000 --- a/vendor/github.com/google/go-jsonnet/imports.go +++ /dev/null @@ -1,220 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "fmt" - "io/ioutil" - "os" - "path" -) - -// An Importer imports data from a path. -// TODO(sbarzowski) caching of errors (may require breaking changes) -type Importer interface { - // Import fetches data from a given path. It may be relative - // to the file where we do the import. What "relative path" - // means depends on the importer. - // - // It is required that: - // a) for given (importedFrom, importedPath) the same - // (contents, foundAt) are returned on subsequent calls. - // b) for given foundAt, the contents are always the same - // - // It is recommended that if there are multiple locations that - // need to be probed (e.g. relative + multiple library paths) - // then all results of all attempts will be cached separately, - // both nonexistence and contents of existing ones. - // FileImporter may serve as an example. - Import(importedFrom, importedPath string) (contents Contents, foundAt string, err error) -} - -// Contents is a representation of imported data. It is a simple -// string wrapper, which makes it easier to enforce the caching policy. -type Contents struct { - data *string -} - -func (c Contents) String() string { - return *c.data -} - -// MakeContents creates Contents from a string. -func MakeContents(s string) Contents { - return Contents{ - data: &s, - } -} - -// ImportCache represents a cache of imported data. -// -// While the user-defined Importer implementations -// are required to cache file content, this cache -// is an additional layer of optimization that caches values -// (i.e. the result of executing the file content). -// It also verifies that the content pointer is the same for two foundAt values. -type ImportCache struct { - foundAtVerification map[string]Contents - codeCache map[string]potentialValue - importer Importer -} - -// MakeImportCache creates an ImportCache using an Importer. -func MakeImportCache(importer Importer) *ImportCache { - return &ImportCache{ - importer: importer, - foundAtVerification: make(map[string]Contents), - codeCache: make(map[string]potentialValue), - } -} - -func (cache *ImportCache) importData(importedFrom, importedPath string) (contents Contents, foundAt string, err error) { - contents, foundAt, err = cache.importer.Import(importedFrom, importedPath) - if err != nil { - return Contents{}, "", err - } - if cached, importedBefore := cache.foundAtVerification[foundAt]; importedBefore { - if cached != contents { - panic(fmt.Sprintf("importer problem: a different instance of Contents returned when importing %#v again", foundAt)) - } - } else { - cache.foundAtVerification[foundAt] = contents - } - return -} - -// ImportString imports a string, caches it and then returns it. -func (cache *ImportCache) ImportString(importedFrom, importedPath string, e *evaluator) (*valueString, error) { - data, _, err := cache.importData(importedFrom, importedPath) - if err != nil { - return nil, e.Error(err.Error()) - } - return makeValueString(data.String()), nil -} - -func codeToPV(e *evaluator, filename string, code string) potentialValue { - node, err := snippetToAST(filename, code) - if err != nil { - // TODO(sbarzowski) we should wrap (static) error here - // within a RuntimeError. Because whether we get this error or not - // actually depends on what happens in Runtime (whether import gets - // evaluated). - // The same thinking applies to external variables. - return makeErrorThunk(err) - } - return makeThunk(makeInitialEnv(filename, e.i.baseStd), node) -} - -// ImportCode imports code from a path. -func (cache *ImportCache) ImportCode(importedFrom, importedPath string, e *evaluator) (value, error) { - contents, foundAt, err := cache.importData(importedFrom, importedPath) - if err != nil { - return nil, e.Error(err.Error()) - } - var pv potentialValue - if cachedPV, isCached := cache.codeCache[foundAt]; !isCached { - // File hasn't been parsed and analyzed before, update the cache record. - pv = codeToPV(e, foundAt, contents.String()) - cache.codeCache[foundAt] = pv - } else { - pv = cachedPV - } - return e.evaluate(pv) -} - -// Concrete importers -// ------------------------------------- - -// FileImporter imports data from the filesystem. -type FileImporter struct { - JPaths []string - fsCache map[string]*fsCacheEntry -} - -type fsCacheEntry struct { - exists bool - contents Contents -} - -func (importer *FileImporter) tryPath(dir, importedPath string) (found bool, contents Contents, foundHere string, err error) { - if importer.fsCache == nil { - importer.fsCache = make(map[string]*fsCacheEntry) - } - var absPath string - if path.IsAbs(importedPath) { - absPath = importedPath - } else { - absPath = path.Join(dir, importedPath) - } - var entry *fsCacheEntry - if cacheEntry, isCached := importer.fsCache[absPath]; isCached { - entry = cacheEntry - } else { - contentBytes, err := ioutil.ReadFile(absPath) - if err != nil { - if os.IsNotExist(err) { - entry = &fsCacheEntry{ - exists: false, - } - } else { - return false, Contents{}, "", err - } - } else { - entry = &fsCacheEntry{ - exists: true, - contents: MakeContents(string(contentBytes)), - } - } - importer.fsCache[absPath] = entry - } - return entry.exists, entry.contents, absPath, nil -} - -// Import imports file from the filesystem. -func (importer *FileImporter) Import(importedFrom, importedPath string) (contents Contents, foundAt string, err error) { - dir, _ := path.Split(importedFrom) - found, content, foundHere, err := importer.tryPath(dir, importedPath) - if err != nil { - return Contents{}, "", err - } - - for i := len(importer.JPaths) - 1; !found && i >= 0; i-- { - found, content, foundHere, err = importer.tryPath(importer.JPaths[i], importedPath) - if err != nil { - return Contents{}, "", err - } - } - - if !found { - return Contents{}, "", fmt.Errorf("couldn't open import %#v: no match locally or in the Jsonnet library paths", importedPath) - } - return content, foundHere, nil -} - -// MemoryImporter "imports" data from an in-memory map. -type MemoryImporter struct { - Data map[string]Contents -} - -// Import fetches data from a map entry. -// All paths are treated as absolute keys. -func (importer *MemoryImporter) Import(importedFrom, importedPath string) (contents Contents, foundAt string, err error) { - if content, ok := importer.Data[importedPath]; ok { - return content, importedPath, nil - } - return Contents{}, "", fmt.Errorf("import not available %v", importedPath) -} diff --git a/vendor/github.com/google/go-jsonnet/interpreter.go b/vendor/github.com/google/go-jsonnet/interpreter.go deleted file mode 100644 index a379d19..0000000 --- a/vendor/github.com/google/go-jsonnet/interpreter.go +++ /dev/null @@ -1,1053 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "bytes" - "fmt" - "math" - "reflect" - "sort" - - "github.com/google/go-jsonnet/ast" -) - -// TODO(sbarzowski) use it as a pointer in most places b/c it can sometimes be shared -// for example it can be shared between array elements and function arguments -type environment struct { - sb selfBinding - - // Bindings introduced in this frame. The way previous bindings are treated - // depends on the type of a frame. - // If isCall == true then previous bindings are ignored (it's a clean - // environment with just the variables we have here). - // If isCall == false then if this frame doesn't contain a binding - // previous bindings will be used. - upValues bindingFrame -} - -func makeEnvironment(upValues bindingFrame, sb selfBinding) environment { - return environment{ - upValues: upValues, - sb: sb, - } -} - -func callFrameToTraceFrame(frame *callFrame) TraceFrame { - return traceElementToTraceFrame(frame.trace) -} - -func (i *interpreter) getCurrentStackTrace(additional *TraceElement) []TraceFrame { - var result []TraceFrame - for _, f := range i.stack.stack { - if f.isCall { - result = append(result, callFrameToTraceFrame(f)) - } - } - if additional != nil { - result = append(result, traceElementToTraceFrame(additional)) - } - return result -} - -type callFrame struct { - // True if it switches to a clean environment (function call or array element) - // False otherwise, e.g. for local - // This makes callFrame a misnomer as it is technically not always a call... - isCall bool - - // Tracing information about the place where it was called from. - trace *TraceElement - - // Whether this frame can be removed from the stack when it doesn't affect - // the evaluation result, but in case of an error, it won't appear on the - // stack trace. - // It's used for tail call optimization. - trimmable bool - - env environment -} - -func dumpCallFrame(c *callFrame) string { - var loc ast.LocationRange - if c.trace == nil || c.trace.loc == nil { - loc = ast.MakeLocationRangeMessage("?") - } else { - loc = *c.trace.loc - } - return fmt.Sprintf("", - c.isCall, - loc, - c.trimmable, - ) -} - -type callStack struct { - calls int - limit int - stack []*callFrame -} - -func dumpCallStack(c *callStack) string { - var buf bytes.Buffer - fmt.Fprintf(&buf, "") - return buf.String() -} - -func (s *callStack) top() *callFrame { - r := s.stack[len(s.stack)-1] - return r -} - -// It might've been popped already by tail call optimization. -// We check if it was trimmed by comparing the current stack size to the position -// of the frame we want to pop. -func (s *callStack) popIfExists(whichFrame int) { - if len(s.stack) == whichFrame { - if s.top().isCall { - s.calls-- - } - s.stack = s.stack[:len(s.stack)-1] - } -} - -/** If there is a trimmable frame followed by some locals, pop them all. */ -func (s *callStack) tailCallTrimStack() { - for i := len(s.stack) - 1; i >= 0; i-- { - if s.stack[i].isCall { - if !s.stack[i].trimmable { - return - } - // Remove this stack frame and everything above it - s.stack = s.stack[:i] - s.calls-- - return - } - } -} - -type tailCallStatus int - -const ( - nonTailCall tailCallStatus = iota - tailCall -) - -func (i *interpreter) newCall(trace *TraceElement, env environment, trimmable bool) error { - s := &i.stack - if s.calls >= s.limit { - return makeRuntimeError("max stack frames exceeded.", i.getCurrentStackTrace(trace)) - } - s.stack = append(s.stack, &callFrame{ - isCall: true, - trace: trace, - env: env, - trimmable: trimmable, - }) - s.calls++ - return nil -} - -func (i *interpreter) newLocal(vars bindingFrame) { - s := &i.stack - s.stack = append(s.stack, &callFrame{ - env: makeEnvironment(vars, selfBinding{}), - }) -} - -// getSelfBinding resolves the self construct -func (s *callStack) getSelfBinding() selfBinding { - for i := len(s.stack) - 1; i >= 0; i-- { - if s.stack[i].isCall { - return s.stack[i].env.sb - } - } - panic(fmt.Sprintf("malformed stack %v", dumpCallStack(s))) -} - -// lookUpVar finds for the closest variable in scope that matches the given name. -func (s *callStack) lookUpVar(id ast.Identifier) potentialValue { - for i := len(s.stack) - 1; i >= 0; i-- { - bind := s.stack[i].env.upValues[id] - if bind != nil { - return bind - } - if s.stack[i].isCall { - // Nothing beyond the captured environment of the thunk / closure. - break - } - } - return nil -} - -func makeCallStack(limit int) callStack { - return callStack{ - calls: 0, - limit: limit, - } -} - -// Keeps current execution context and evaluates things -type interpreter struct { - // Current stack. It is used for: - // 1) Keeping environment (object we're in, variables) - // 2) Diagnostic information in case of failure - stack callStack - - // External variables - extVars map[string]potentialValue - - // Native functions - nativeFuncs map[string]*NativeFunction - - // A part of std object common to all files - baseStd valueObject - - // Keeps imports - importCache *ImportCache - - // Keeps default ordering - keepOrder bool -} - -// Build a binding frame containing specified variables. -func (i *interpreter) capture(freeVars ast.Identifiers) bindingFrame { - env := make(bindingFrame) - for _, fv := range freeVars { - env[fv] = i.stack.lookUpVar(fv) - if env[fv] == nil { - panic(fmt.Sprintf("Variable %v vanished", fv)) - } - } - return env -} - -func addBindings(a, b bindingFrame) bindingFrame { - result := make(bindingFrame) - - for k, v := range a { - result[k] = v - } - - for k, v := range b { - result[k] = v - } - - return result -} - -func (i *interpreter) getCurrentEnv(ast ast.Node) environment { - return makeEnvironment( - i.capture(ast.FreeVariables()), - i.stack.getSelfBinding(), - ) -} - -func (i *interpreter) evaluate(a ast.Node, tc tailCallStatus) (value, error) { - e := &evaluator{ - trace: &TraceElement{ - loc: a.Loc(), - context: a.Context(), - }, - i: i, - } - - switch node := a.(type) { - case *ast.Array: - sb := i.stack.getSelfBinding() - var elements []potentialValue - for _, el := range node.Elements { - env := makeEnvironment(i.capture(el.FreeVariables()), sb) - elThunk := makeThunk(env, el) - elements = append(elements, elThunk) - } - return makeValueArray(elements), nil - - case *ast.Binary: - // Some binary operators are lazy, so thunks are needed in general - env := i.getCurrentEnv(node) - // TODO(sbarzowski) make sure it displays nicely in stack trace (thunk names etc.) - // TODO(sbarzowski) it may make sense not to show a line in stack trace for operators - // at all in many cases. 1 + 2 + 3 + 4 + error "x" will show 5 lines - // of stack trace now, and it's not that nice. - left := makeThunk(env, node.Left) - right := makeThunk(env, node.Right) - - builtin := bopBuiltins[node.Op] - - result, err := builtin.function(e, left, right) - if err != nil { - return nil, err - } - return result, nil - - case *ast.Unary: - env := i.getCurrentEnv(node) - arg := makeThunk(env, node.Expr) - - builtin := uopBuiltins[node.Op] - - result, err := builtin.function(e, arg) - if err != nil { - return nil, err - } - return result, nil - - case *ast.Conditional: - cond, err := e.evalInCurrentContext(node.Cond, nonTailCall) - if err != nil { - return nil, err - } - condBool, err := e.getBoolean(cond) - if err != nil { - return nil, err - } - if condBool.value { - return e.evalInCurrentContext(node.BranchTrue, tc) - } - return e.evalInCurrentContext(node.BranchFalse, tc) - - case *ast.DesugaredObject: - // Evaluate all the field names. Check for null, dups, etc. - fields := simpleObjectFieldMap{ - values: make(map[string]simpleObjectField), - } - for _, field := range node.Fields { - fieldNameValue, err := e.evalInCurrentContext(field.Name, nonTailCall) - if err != nil { - return nil, err - } - var fieldName string - switch fieldNameValue := fieldNameValue.(type) { - case *valueString: - fieldName = fieldNameValue.getString() - case *valueNull: - // Omitted field. - continue - default: - return nil, e.Error(fmt.Sprintf("Field name must be string, got %v", fieldNameValue.getType().name)) - } - - if _, ok := fields.values[fieldName]; ok { - return nil, e.Error(duplicateFieldNameErrMsg(fieldName)) - } - var f unboundField = &codeUnboundField{field.Body} - if field.PlusSuper { - f = &PlusSuperUnboundField{f} - } - fields.keys = append(fields.keys, fieldName) - fields.values[fieldName] = simpleObjectField{field.Hide, f} - } - var asserts []unboundField - for _, assert := range node.Asserts { - asserts = append(asserts, &codeUnboundField{assert}) - } - upValues := i.capture(node.FreeVariables()) - return makeValueSimpleObject(upValues, fields, asserts), nil - - case *ast.Error: - msgVal, err := e.evalInCurrentContext(node.Expr, nonTailCall) - if err != nil { - // error when evaluating error message - return nil, err - } - if msgVal.getType() != stringType { - msgVal, err = builtinToString(e, &readyValue{msgVal}) - if err != nil { - return nil, err - } - } - msg, err := e.getString(msgVal) - if err != nil { - return nil, err - } - return nil, e.Error(msg.getString()) - - case *ast.Index: - targetValue, err := e.evalInCurrentContext(node.Target, nonTailCall) - if err != nil { - return nil, err - } - index, err := e.evalInCurrentContext(node.Index, nonTailCall) - if err != nil { - return nil, err - } - switch target := targetValue.(type) { - case valueObject: - indexString, err := e.getString(index) - if err != nil { - return nil, err - } - return target.index(e, indexString.getString()) - case *valueArray: - indexInt, err := e.getNumber(index) - if err != nil { - return nil, err - } - // TODO(https://github.com/google/jsonnet/issues/377): non-integer indexes should be an error - return target.index(e, int(indexInt.value), tc) - - case *valueString: - indexInt, err := e.getNumber(index) - if err != nil { - return nil, err - } - // TODO(https://github.com/google/jsonnet/issues/377): non-integer indexes should be an error - return target.index(e, int(indexInt.value)) - } - - return nil, e.Error(fmt.Sprintf("Value non indexable: %v", reflect.TypeOf(targetValue))) - - case *ast.Import: - codePath := node.Loc().FileName - return i.importCache.ImportCode(codePath, node.File.Value, e) - - case *ast.ImportStr: - codePath := node.Loc().FileName - return i.importCache.ImportString(codePath, node.File.Value, e) - - case *ast.LiteralBoolean: - return makeValueBoolean(node.Value), nil - - case *ast.LiteralNull: - return makeValueNull(), nil - - case *ast.LiteralNumber: - return makeValueNumber(node.Value), nil - - case *ast.LiteralString: - return makeValueString(node.Value), nil - - case *ast.Local: - vars := make(bindingFrame) - bindEnv := i.getCurrentEnv(a) - for _, bind := range node.Binds { - th := makeThunk(bindEnv, bind.Body) - - // recursive locals - vars[bind.Variable] = th - bindEnv.upValues[bind.Variable] = th - } - i.newLocal(vars) - sz := len(i.stack.stack) - // Add new stack frame, with new thunk for this variable - // execute body WRT stack frame. - v, err := e.evalInCurrentContext(node.Body, tc) - i.stack.popIfExists(sz) - - return v, err - - case *ast.Self: - sb := i.stack.getSelfBinding() - return sb.self, nil - - case *ast.Var: - return e.evaluateTailCall(e.lookUpVar(node.Id), tc) - - case *ast.SuperIndex: - index, err := e.evalInCurrentContext(node.Index, nonTailCall) - if err != nil { - return nil, err - } - indexStr, err := e.getString(index) - if err != nil { - return nil, err - } - return objectIndex(e, i.stack.getSelfBinding().super(), indexStr.getString()) - - case *ast.InSuper: - index, err := e.evalInCurrentContext(node.Index, nonTailCall) - if err != nil { - return nil, err - } - indexStr, err := e.getString(index) - if err != nil { - return nil, err - } - field := tryObjectIndex(i.stack.getSelfBinding().super(), indexStr.getString(), withHidden) - return makeValueBoolean(field != nil), nil - - case *ast.Function: - return &valueFunction{ - ec: makeClosure(i.getCurrentEnv(a), node), - }, nil - - case *ast.Apply: - // Eval target - target, err := e.evalInCurrentContext(node.Target, nonTailCall) - if err != nil { - return nil, err - } - function, err := e.getFunction(target) - if err != nil { - return nil, err - } - - // environment in which we can evaluate arguments - argEnv := i.getCurrentEnv(a) - arguments := callArguments{ - positional: make([]potentialValue, len(node.Arguments.Positional)), - named: make([]namedCallArgument, len(node.Arguments.Named)), - tailstrict: node.TailStrict, - } - for i, arg := range node.Arguments.Positional { - arguments.positional[i] = makeThunk(argEnv, arg) - } - - for i, arg := range node.Arguments.Named { - arguments.named[i] = namedCallArgument{name: arg.Name, pv: makeThunk(argEnv, arg.Arg)} - } - return e.evaluateTailCall(function.call(arguments), tc) - - default: - return nil, e.Error(fmt.Sprintf("Executing this AST type not implemented yet: %v", reflect.TypeOf(a))) - } -} - -// unparseString Wraps in "" and escapes stuff to make the string JSON-compliant and human-readable. -func unparseString(v string) string { - var buf bytes.Buffer - buf.WriteString("\"") - for _, c := range v { - switch c { - case '"': - buf.WriteString("\\\"") - case '\\': - buf.WriteString("\\\\") - case '\b': - buf.WriteString("\\b") - case '\f': - buf.WriteString("\\f") - case '\n': - buf.WriteString("\\n") - case '\r': - buf.WriteString("\\r") - case '\t': - buf.WriteString("\\t") - case 0: - buf.WriteString("\\u0000") - default: - if c < 0x20 || (c >= 0x7f && c <= 0x9f) { - buf.WriteString(fmt.Sprintf("\\u%04x", int(c))) - } else { - buf.WriteRune(c) - } - } - } - buf.WriteString("\"") - return buf.String() -} - -func unparseNumber(v float64) string { - if v == math.Floor(v) { - return fmt.Sprintf("%.0f", v) - } - - // See "What Every Computer Scientist Should Know About Floating-Point Arithmetic" - // Theorem 15 - // http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html - return fmt.Sprintf("%.17g", v) -} - -// manifestJSON converts to standard JSON representation as in "encoding/json" package -func (i *interpreter) manifestJSON(trace *TraceElement, v value) (interface{}, error) { - e := &evaluator{i: i, trace: trace} - switch v := v.(type) { - - case *valueBoolean: - return v.value, nil - - case *valueFunction: - return nil, makeRuntimeError("couldn't manifest function in JSON output.", i.getCurrentStackTrace(trace)) - - case *valueNumber: - return v.value, nil - - case *valueString: - return v.getString(), nil - - case *valueNull: - return nil, nil - - case *valueArray: - result := make([]interface{}, 0, len(v.elements)) - for _, th := range v.elements { - elVal, err := e.evaluate(th) - if err != nil { - return nil, err - } - elem, err := i.manifestJSON(trace, elVal) - if err != nil { - return nil, err - } - result = append(result, elem) - } - return result, nil - - case valueObject: - fieldNames := objectFields(v, withoutHidden) - err := checkAssertions(e, v) - if err != nil { - return nil, err - } - - if i.keepOrder == false { - sort.Strings(fieldNames) - } - - result := &orderedMap{ - keys: fieldNames, - values: make(map[string]interface{}), - } - - for _, fieldName := range fieldNames { - fieldVal, err := v.index(e, fieldName) - if err != nil { - return nil, err - } - - field, err := i.manifestJSON(trace, fieldVal) - if err != nil { - return nil, err - } - result.values[fieldName] = field - } - - return result, nil - - default: - return nil, makeRuntimeError( - fmt.Sprintf("manifesting this value not implemented yet: %s", reflect.TypeOf(v)), - i.getCurrentStackTrace(trace), - ) - - } -} - -func serializeJSON(v interface{}, multiline bool, indent string, buf *bytes.Buffer) { - switch v := v.(type) { - case nil: - buf.WriteString("null") - - case []interface{}: - if len(v) == 0 { - buf.WriteString("[ ]") - } else { - var prefix string - var indent2 string - if multiline { - prefix = "[\n" - indent2 = indent + " " - } else { - prefix = "[" - indent2 = indent - } - for _, elem := range v { - buf.WriteString(prefix) - buf.WriteString(indent2) - serializeJSON(elem, multiline, indent2, buf) - if multiline { - prefix = ",\n" - } else { - prefix = ", " - } - } - if multiline { - buf.WriteString("\n") - } - buf.WriteString(indent) - buf.WriteString("]") - } - - case bool: - if v { - buf.WriteString("true") - } else { - buf.WriteString("false") - } - - case float64: - buf.WriteString(unparseNumber(v)) - - case *orderedMap: - fieldNames := v.keys - - if len(fieldNames) == 0 { - buf.WriteString("{ }") - } else { - var prefix string - var indent2 string - if multiline { - prefix = "{\n" - indent2 = indent + " " - } else { - prefix = "{" - indent2 = indent - } - for _, fieldName := range fieldNames { - fieldVal := v.values[fieldName] - - buf.WriteString(prefix) - buf.WriteString(indent2) - buf.WriteString(unparseString(fieldName)) - buf.WriteString(": ") - - serializeJSON(fieldVal, multiline, indent2, buf) - - if multiline { - prefix = ",\n" - } else { - prefix = ", " - } - } - - if multiline { - buf.WriteString("\n") - } - buf.WriteString(indent) - buf.WriteString("}") - } - - case string: - buf.WriteString(unparseString(v)) - - default: - panic(fmt.Sprintf("Unsupported value for serialization %#+v", v)) - } -} - -func (i *interpreter) manifestAndSerializeJSON( - buf *bytes.Buffer, trace *TraceElement, v value, multiline bool, indent string) error { - manifested, err := i.manifestJSON(trace, v) - if err != nil { - return err - } - serializeJSON(manifested, multiline, indent, buf) - return nil -} - -// manifestString expects the value to be a string and returns it. -func (i *interpreter) manifestString(buf *bytes.Buffer, trace *TraceElement, v value) error { - switch v := v.(type) { - case *valueString: - buf.WriteString(v.getString()) - return nil - default: - return makeRuntimeError(fmt.Sprintf("expected string result, got: %s", v.getType().name), i.getCurrentStackTrace(trace)) - } -} - -func (i *interpreter) manifestAndSerializeMulti(trace *TraceElement, v value, stringOutputMode bool) (r map[string]string, err error) { - r = make(map[string]string) - json, err := i.manifestJSON(trace, v) - if err != nil { - return r, err - } - switch json := json.(type) { - case *orderedMap: - for filename, fileJSON := range json.values { - if stringOutputMode { - switch val := fileJSON.(type) { - case string: - r[filename] = val - default: - msg := fmt.Sprintf("multi mode: top-level object's key %s has a value of type %T, "+ - "should be a string", filename, val) - return r, makeRuntimeError(msg, i.getCurrentStackTrace(trace)) - } - } else { - var buf bytes.Buffer - serializeJSON(fileJSON, true, "", &buf) - buf.WriteString("\n") - r[filename] = buf.String() - } - } - default: - msg := fmt.Sprintf("multi mode: top-level object was a %s, "+ - "should be an object whose keys are filenames and values hold "+ - "the JSON for that file.", v.getType().name) - return r, makeRuntimeError(msg, i.getCurrentStackTrace(trace)) - } - return -} - -func (i *interpreter) manifestAndSerializeYAMLStream(trace *TraceElement, v value) (r []string, err error) { - r = make([]string, 0) - json, err := i.manifestJSON(trace, v) - if err != nil { - return r, err - } - switch json := json.(type) { - case []interface{}: - for _, doc := range json { - var buf bytes.Buffer - serializeJSON(doc, true, "", &buf) - buf.WriteString("\n") - r = append(r, buf.String()) - } - default: - msg := fmt.Sprintf("stream mode: top-level object was a %s, "+ - "should be an array whose elements hold "+ - "the JSON for each document in the stream.", v.getType().name) - return r, makeRuntimeError(msg, i.getCurrentStackTrace(trace)) - } - return -} - -func jsonToValue(e *evaluator, v interface{}) (value, error) { - switch v := v.(type) { - case nil: - return &nullValue, nil - - case []interface{}: - elems := make([]potentialValue, len(v)) - for i, elem := range v { - val, err := jsonToValue(e, elem) - if err != nil { - return nil, err - } - elems[i] = &readyValue{val} - } - return makeValueArray(elems), nil - - case bool: - return makeValueBoolean(v), nil - case float64: - return makeValueNumber(v), nil - - case *orderedMap: - fieldMap := map[string]value{} - for name, f := range v.values { - val, err := jsonToValue(e, f) - if err != nil { - return nil, err - } - fieldMap[name] = val - } - return buildObject(ast.ObjectFieldInherit, fieldMap), nil - - case string: - return makeValueString(v), nil - - default: - return nil, e.Error(fmt.Sprintf("Not a json type: %#+v", v)) - } -} - -func (i *interpreter) EvalInCleanEnv(fromWhere *TraceElement, env *environment, ast ast.Node, trimmable bool) (value, error) { - err := i.newCall(fromWhere, *env, trimmable) - if err != nil { - return nil, err - } - stackSize := len(i.stack.stack) - - val, err := i.evaluate(ast, tailCall) - - i.stack.popIfExists(stackSize) - - return val, err -} - -func buildStdObject(i *interpreter) (valueObject, error) { - objVal, err := evaluateStd(i) - if err != nil { - return nil, err - } - obj := objVal.(*valueSimpleObject) - builtinFields := map[string]unboundField{} - for key, ec := range funcBuiltins { - function := valueFunction{ec: ec} // TODO(sbarzowski) better way to build function value - builtinFields[key] = &readyValue{&function} - } - - for name, value := range builtinFields { - obj.fields.keys = append(obj.fields.keys, name) - obj.fields.values[name] = simpleObjectField{ast.ObjectFieldHidden, value} - } - return obj, nil -} - -func evaluateStd(i *interpreter) (value, error) { - beforeStdEnv := makeEnvironment( - bindingFrame{}, - makeUnboundSelfBinding(), - ) - evalLoc := ast.MakeLocationRangeMessage("During evaluation of std") - evalTrace := &TraceElement{loc: &evalLoc} - node := ast.StdAst - return i.EvalInCleanEnv(evalTrace, &beforeStdEnv, node, false) -} - -func prepareExtVars(i *interpreter, ext vmExtMap, kind string) map[string]potentialValue { - result := make(map[string]potentialValue) - for name, content := range ext { - if content.isCode { - varLoc := ast.MakeLocationRangeMessage("During evaluation") - varTrace := &TraceElement{ - loc: &varLoc, - } - e := &evaluator{ - i: i, - trace: varTrace, - } - result[name] = codeToPV(e, "<"+kind+":"+name+">", content.value) - } else { - result[name] = &readyValue{makeValueString(content.value)} - } - } - return result -} - -func buildObject(hide ast.ObjectFieldHide, fields map[string]value) valueObject { - fieldMap := simpleObjectFieldMap{ - values: make(map[string]simpleObjectField), - } - for name, v := range fields { - fieldMap.keys = append(fieldMap.keys, name) - fieldMap.values[name] = simpleObjectField{hide, &readyValue{v}} - } - return makeValueSimpleObject(bindingFrame{}, fieldMap, nil) -} - -func buildInterpreter(ext vmExtMap, nativeFuncs map[string]*NativeFunction, maxStack int, keepOrder bool, importer Importer) (*interpreter, error) { - i := interpreter{ - stack: makeCallStack(maxStack), - importCache: MakeImportCache(importer), - nativeFuncs: nativeFuncs, - keepOrder: keepOrder, - } - - stdObj, err := buildStdObject(&i) - if err != nil { - return nil, err - } - - i.baseStd = stdObj - - i.extVars = prepareExtVars(&i, ext, "extvar") - return &i, nil -} - -func makeInitialEnv(filename string, baseStd valueObject) environment { - fileSpecific := buildObject(ast.ObjectFieldHidden, map[string]value{ - "thisFile": makeValueString(filename), - }) - return makeEnvironment( - bindingFrame{ - "std": &readyValue{makeValueExtendedObject(baseStd, fileSpecific)}, - }, - makeUnboundSelfBinding(), - ) -} - -func evaluateAux(i *interpreter, node ast.Node, tla vmExtMap) (value, *TraceElement, error) { - evalLoc := ast.MakeLocationRangeMessage("During evaluation") - evalTrace := &TraceElement{ - loc: &evalLoc, - } - env := makeInitialEnv(node.Loc().FileName, i.baseStd) - result, err := i.EvalInCleanEnv(evalTrace, &env, node, false) - if err != nil { - return nil, nil, err - } - // If it's not a function, ignore TLA - if f, ok := result.(*valueFunction); ok { - toplevelArgMap := prepareExtVars(i, tla, "top-level-arg") - args := callArguments{} - for argName, pv := range toplevelArgMap { - args.named = append(args.named, namedCallArgument{name: ast.Identifier(argName), pv: pv}) - } - funcLoc := ast.MakeLocationRangeMessage("Top-level function") - funcTrace := &TraceElement{ - loc: &funcLoc, - } - result, err = f.call(args).getValue(i, funcTrace) - if err != nil { - return nil, nil, err - } - } - manifestationLoc := ast.MakeLocationRangeMessage("During manifestation") - manifestationTrace := &TraceElement{ - loc: &manifestationLoc, - } - return result, manifestationTrace, nil -} - -// TODO(sbarzowski) this function takes far too many arguments - build interpreter in vm instead -func evaluate(node ast.Node, ext vmExtMap, tla vmExtMap, nativeFuncs map[string]*NativeFunction, - maxStack int, keepOrder bool, importer Importer, stringOutputMode bool) (string, error) { - - i, err := buildInterpreter(ext, nativeFuncs, maxStack, keepOrder, importer) - if err != nil { - return "", err - } - - result, manifestationTrace, err := evaluateAux(i, node, tla) - if err != nil { - return "", err - } - - var buf bytes.Buffer - if stringOutputMode { - err = i.manifestString(&buf, manifestationTrace, result) - } else { - err = i.manifestAndSerializeJSON(&buf, manifestationTrace, result, true, "") - } - if err != nil { - return "", err - } - buf.WriteString("\n") - return buf.String(), nil -} - -// TODO(sbarzowski) this function takes far too many arguments - build interpreter in vm instead -func evaluateMulti(node ast.Node, ext vmExtMap, tla vmExtMap, nativeFuncs map[string]*NativeFunction, - maxStack int, keepOrder bool, importer Importer, stringOutputMode bool) (map[string]string, error) { - - i, err := buildInterpreter(ext, nativeFuncs, maxStack, keepOrder, importer) - if err != nil { - return nil, err - } - - result, manifestationTrace, err := evaluateAux(i, node, tla) - if err != nil { - return nil, err - } - - return i.manifestAndSerializeMulti(manifestationTrace, result, stringOutputMode) -} - -// TODO(sbarzowski) this function takes far too many arguments - build interpreter in vm instead -func evaluateStream(node ast.Node, ext vmExtMap, tla vmExtMap, nativeFuncs map[string]*NativeFunction, - maxStack int, keepOrder bool, importer Importer) ([]string, error) { - - i, err := buildInterpreter(ext, nativeFuncs, maxStack, keepOrder, importer) - if err != nil { - return nil, err - } - - result, manifestationTrace, err := evaluateAux(i, node, tla) - if err != nil { - return nil, err - } - - return i.manifestAndSerializeYAMLStream(manifestationTrace, result) -} diff --git a/vendor/github.com/google/go-jsonnet/parser/context.go b/vendor/github.com/google/go-jsonnet/parser/context.go deleted file mode 100644 index 2fc84f6..0000000 --- a/vendor/github.com/google/go-jsonnet/parser/context.go +++ /dev/null @@ -1,376 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package parser - -import ( - "fmt" - - "github.com/google/go-jsonnet/ast" -) - -var topLevelContext = "$" - -const anonymous = "anonymous" - -// TODO(sbarzowski) polish children functions and consider moving to AST -// and exporting - -// directChildren are children of AST node that are executed in the same context -// and environment as their parent -// -// They must satisfy the following rules: -// * (no-delayed-evaluation) They are evaluated when their parent is evaluated or never. -// * (no-indirect-evaluation) They cannot be evaluated during evaluation of any non-direct children -// * (same-environment) They must be evaluated in the same environment as their parent -func directChildren(node ast.Node) []ast.Node { - switch node := node.(type) { - case *ast.Apply: - return []ast.Node{node.Target} - // TODO(sbarzowski) tailstrict call arguments (once we have tailstrict) - case *ast.ApplyBrace: - return []ast.Node{node.Left, node.Right} - case *ast.Array: - return nil - case *ast.Assert: - return []ast.Node{node.Cond, node.Message, node.Rest} - case *ast.Binary: - return []ast.Node{node.Left, node.Right} - case *ast.Conditional: - return []ast.Node{node.Cond, node.BranchTrue, node.BranchFalse} - case *ast.Dollar: - return nil - case *ast.Error: - return []ast.Node{node.Expr} - case *ast.Function: - return nil - case *ast.Import: - return nil - case *ast.ImportStr: - return nil - case *ast.Index: - return []ast.Node{node.Target, node.Index} - case *ast.Slice: - return []ast.Node{node.Target, node.BeginIndex, node.EndIndex, node.Step} - case *ast.Local: - return []ast.Node{node.Body} - case *ast.LiteralBoolean: - return nil - case *ast.LiteralNull: - return nil - case *ast.LiteralNumber: - return nil - case *ast.LiteralString: - return nil - case *ast.Object: - return objectFieldsDirectChildren(node.Fields) - case *ast.ArrayComp: - result := []ast.Node{} - spec := &node.Spec - for spec != nil { - result = append(result, spec.Expr) - for _, ifspec := range spec.Conditions { - result = append(result, ifspec.Expr) - } - spec = spec.Outer - } - return result - case *ast.ObjectComp: - result := objectFieldsDirectChildren(node.Fields) - spec := &node.Spec - for spec != nil { - result = append(result, spec.Expr) - for _, ifspec := range spec.Conditions { - result = append(result, ifspec.Expr) - } - spec = spec.Outer - } - return result - case *ast.Parens: - return []ast.Node{node.Inner} - case *ast.Self: - return nil - case *ast.SuperIndex: - return []ast.Node{node.Index} - case *ast.InSuper: - return []ast.Node{node.Index} - case *ast.Unary: - return []ast.Node{node.Expr} - case *ast.Var: - return nil - } - panic(fmt.Sprintf("directChildren: Unknown node %#v", node)) -} - -// thunkChildren are children of AST node that are executed in a new context -// and capture environment from parent (thunked) -// TODO(sbarzowski) Make sure it works well with boundary cases like tailstrict arguments, -// make it more precise. -// Rules: -// * (same-environment) They must be evaluated in the same environment as their parent -// * (not-direct) If they can be direct children, they should (and cannot be thunked). -func thunkChildren(node ast.Node) []ast.Node { - switch node := node.(type) { - case *ast.Apply: - var nodes []ast.Node - for _, arg := range node.Arguments.Positional { - nodes = append(nodes, arg) - } - for _, arg := range node.Arguments.Named { - nodes = append(nodes, arg.Arg) - } - return nodes - case *ast.ApplyBrace: - return nil - case *ast.Array: - return node.Elements - case *ast.Assert: - return nil - case *ast.Binary: - return nil - case *ast.Conditional: - return nil - case *ast.Dollar: - return nil - case *ast.Error: - return nil - case *ast.Function: - return nil - case *ast.Import: - return nil - case *ast.ImportStr: - return nil - case *ast.Index: - return nil - case *ast.Slice: - return nil - case *ast.Local: - // TODO(sbarzowski) complicated - return nil - case *ast.LiteralBoolean: - return nil - case *ast.LiteralNull: - return nil - case *ast.LiteralNumber: - return nil - case *ast.LiteralString: - return nil - case *ast.Object: - return nil - case *ast.ArrayComp: - return []ast.Node{node.Body} - case *ast.ObjectComp: - return nil - case *ast.Parens: - return nil - case *ast.Self: - return nil - case *ast.SuperIndex: - return nil - case *ast.InSuper: - return nil - case *ast.Unary: - return nil - case *ast.Var: - return nil - } - panic(fmt.Sprintf("thunkChildren: Unknown node %#v", node)) -} - -func objectFieldsDirectChildren(fields ast.ObjectFields) ast.Nodes { - result := ast.Nodes{} - for _, field := range fields { - if field.Expr1 != nil { - result = append(result, field.Expr1) - } - } - return result -} - -func inObjectFieldsChildren(fields ast.ObjectFields) ast.Nodes { - result := ast.Nodes{} - for _, field := range fields { - if field.MethodSugar { - result = append(result, field.Method) - } else { - if field.Expr2 != nil { - result = append(result, field.Expr2) - } - if field.Expr3 != nil { - result = append(result, field.Expr3) - } - } - } - return result -} - -// children that are neither direct nor thunked, e.g. object field body -// They are evaluated in a different environment from their parent. -func specialChildren(node ast.Node) []ast.Node { - switch node := node.(type) { - case *ast.Apply: - return nil - case *ast.ApplyBrace: - return nil - case *ast.Array: - return nil - case *ast.Assert: - return nil - case *ast.Binary: - return nil - case *ast.Conditional: - return nil - case *ast.Dollar: - return nil - case *ast.Error: - return nil - case *ast.Function: - // TODO(sbarzowski) this - return nil - case *ast.Import: - return nil - case *ast.ImportStr: - return nil - case *ast.Index: - return nil - case *ast.Slice: - return nil - case *ast.Local: - return nil - case *ast.LiteralBoolean: - return nil - case *ast.LiteralNull: - return nil - case *ast.LiteralNumber: - return nil - case *ast.LiteralString: - return nil - case *ast.Object: - return inObjectFieldsChildren(node.Fields) - case *ast.ArrayComp: - return []ast.Node{node.Body} - case *ast.ObjectComp: - - case *ast.Self: - return nil - case *ast.SuperIndex: - return nil - case *ast.InSuper: - return nil - case *ast.Unary: - return nil - case *ast.Var: - return nil - } - panic(fmt.Sprintf("specialChildren: Unknown node %#v", node)) -} - -// Children returns all children of a node. -func Children(node ast.Node) []ast.Node { - var result []ast.Node - result = append(result, directChildren(node)...) - result = append(result, thunkChildren(node)...) - result = append(result, specialChildren(node)...) - return result -} - -func functionContext(funcName string) *string { - r := "function <" + funcName + ">" - return &r -} - -func objectContext(objName string) *string { - r := "object <" + objName + ">" - return &r -} - -// addContext adds context to a node and its whole subtree. -// -// context is the surrounding context of a node (e.g. a function it's in) -// -// bind is a name that the node is bound to, i.e. if node is a local bind body -// then bind is its name. For nodes that are not bound to variables `anonymous` -// should be passed. For example: -// local x = 2 + 2; x -// In such case bind for binary node 2 + 2 is "x" and for every other node, -// including its children, its anonymous. -func addContext(node ast.Node, context *string, bind string) { - if node == nil { - return - } - - node.SetContext(context) - - switch node := node.(type) { - case *ast.Function: - funContext := functionContext(bind) - addContext(node.Body, funContext, anonymous) - for i := range node.Parameters.Optional { - // Default arguments have the same context as the function body. - addContext(node.Parameters.Optional[i].DefaultArg, funContext, anonymous) - } - case *ast.Object: - // TODO(sbarzowski) include fieldname, maybe even chains - - outOfObject := directChildren(node) - for _, f := range outOfObject { - // This actually is evaluated outside of object - addContext(f, context, anonymous) - } - - objContext := objectContext(bind) - inObject := inObjectFieldsChildren(node.Fields) - for _, f := range inObject { - // This actually is evaluated outside of object - addContext(f, objContext, anonymous) - } - - case *ast.ObjectComp: - outOfObject := directChildren(node) - for _, f := range outOfObject { - // This actually is evaluated outside of object - addContext(f, context, anonymous) - } - - objContext := objectContext(bind) - inObject := inObjectFieldsChildren(node.Fields) - for _, f := range inObject { - // This actually is evaluated outside of object - addContext(f, objContext, anonymous) - } - - case *ast.Local: - for _, bind := range node.Binds { - namedThunkContext := "thunk <" + string(bind.Variable) + "> from <" + *context + ">" - if bind.Fun != nil { - addContext(bind.Fun, &namedThunkContext, string(bind.Variable)) - } else { - addContext(bind.Body, &namedThunkContext, string(bind.Variable)) - } - } - addContext(node.Body, context, bind) - default: - for _, child := range directChildren(node) { - addContext(child, context, anonymous) - } - - // TODO(sbarzowski) avoid "thunk from " - for _, child := range thunkChildren(node) { - addContext(child, &thunkContext, anonymous) - } - } -} diff --git a/vendor/github.com/google/go-jsonnet/parser/lexer.go b/vendor/github.com/google/go-jsonnet/parser/lexer.go deleted file mode 100644 index c63817a..0000000 --- a/vendor/github.com/google/go-jsonnet/parser/lexer.go +++ /dev/null @@ -1,825 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package parser - -import ( - "bytes" - "fmt" - "strconv" - "strings" - "unicode/utf8" - - "github.com/google/go-jsonnet/ast" -) - -// --------------------------------------------------------------------------- -// Fodder -// -// Fodder is stuff that is usually thrown away by lexers/preprocessors but is -// kept so that the source can be round tripped with full fidelity. -type fodderKind int - -const ( - fodderWhitespace fodderKind = iota - fodderCommentC - fodderCommentCpp - fodderCommentHash -) - -type fodderElement struct { - kind fodderKind - data string -} - -type fodder []fodderElement - -// --------------------------------------------------------------------------- -// Token - -type tokenKind int - -const ( - // Symbols - tokenBraceL tokenKind = iota - tokenBraceR - tokenBracketL - tokenBracketR - tokenComma - tokenDollar - tokenDot - tokenParenL - tokenParenR - tokenSemicolon - - // Arbitrary length lexemes - tokenIdentifier - tokenNumber - tokenOperator - tokenStringBlock - tokenStringDouble - tokenStringSingle - tokenVerbatimStringDouble - tokenVerbatimStringSingle - - // Keywords - tokenAssert - tokenElse - tokenError - tokenFalse - tokenFor - tokenFunction - tokenIf - tokenImport - tokenImportStr - tokenIn - tokenLocal - tokenNullLit - tokenSelf - tokenSuper - tokenTailStrict - tokenThen - tokenTrue - - // A special token that holds line/column information about the end of the - // file. - tokenEndOfFile -) - -var tokenKindStrings = []string{ - // Symbols - tokenBraceL: `"{"`, - tokenBraceR: `"}"`, - tokenBracketL: `"["`, - tokenBracketR: `"]"`, - tokenComma: `","`, - tokenDollar: `"$"`, - tokenDot: `"."`, - tokenParenL: `"("`, - tokenParenR: `")"`, - tokenSemicolon: `";"`, - - // Arbitrary length lexemes - tokenIdentifier: "IDENTIFIER", - tokenNumber: "NUMBER", - tokenOperator: "OPERATOR", - tokenStringBlock: "STRING_BLOCK", - tokenStringDouble: "STRING_DOUBLE", - tokenStringSingle: "STRING_SINGLE", - tokenVerbatimStringDouble: "VERBATIM_STRING_DOUBLE", - tokenVerbatimStringSingle: "VERBATIM_STRING_SINGLE", - - // Keywords - tokenAssert: "assert", - tokenElse: "else", - tokenError: "error", - tokenFalse: "false", - tokenFor: "for", - tokenFunction: "function", - tokenIf: "if", - tokenImport: "import", - tokenImportStr: "importstr", - tokenIn: "in", - tokenLocal: "local", - tokenNullLit: "null", - tokenSelf: "self", - tokenSuper: "super", - tokenTailStrict: "tailstrict", - tokenThen: "then", - tokenTrue: "true", - - // A special token that holds line/column information about the end of the - // file. - tokenEndOfFile: "end of file", -} - -func (tk tokenKind) String() string { - if tk < 0 || int(tk) >= len(tokenKindStrings) { - panic(fmt.Sprintf("INTERNAL ERROR: Unknown token kind:: %d", tk)) - } - return tokenKindStrings[tk] -} - -type token struct { - kind tokenKind // The type of the token - fodder fodder // Any fodder the occurs before this token - data string // Content of the token if it is not a keyword - - // Extra info for when kind == tokenStringBlock - stringBlockIndent string // The sequence of whitespace that indented the block. - stringBlockTermIndent string // This is always fewer whitespace characters than in stringBlockIndent. - - loc ast.LocationRange -} - -// Tokens is a slice of token structs. -type Tokens []token - -func (t *token) String() string { - if t.data == "" { - return t.kind.String() - } else if t.kind == tokenOperator { - return fmt.Sprintf("\"%v\"", t.data) - } else { - return fmt.Sprintf("(%v, \"%v\")", t.kind, t.data) - } -} - -// --------------------------------------------------------------------------- -// Helpers - -func isUpper(r rune) bool { - return r >= 'A' && r <= 'Z' -} - -func isLower(r rune) bool { - return r >= 'a' && r <= 'z' -} - -func isNumber(r rune) bool { - return r >= '0' && r <= '9' -} - -func isIdentifierFirst(r rune) bool { - return isUpper(r) || isLower(r) || r == '_' -} - -func isIdentifier(r rune) bool { - return isIdentifierFirst(r) || isNumber(r) -} - -func isSymbol(r rune) bool { - switch r { - case '!', '$', ':', '~', '+', '-', '&', '|', '^', '=', '<', '>', '*', '/', '%': - return true - } - return false -} - -// Check that b has at least the same whitespace prefix as a and returns the -// amount of this whitespace, otherwise returns 0. If a has no whitespace -// prefix than return 0. -func checkWhitespace(a, b string) int { - i := 0 - for ; i < len(a); i++ { - if a[i] != ' ' && a[i] != '\t' { - // a has run out of whitespace and b matched up to this point. Return - // result. - return i - } - if i >= len(b) { - // We ran off the edge of b while a still has whitespace. Return 0 as - // failure. - return 0 - } - if a[i] != b[i] { - // a has whitespace but b does not. Return 0 as failure. - return 0 - } - } - // We ran off the end of a and b kept up - return i -} - -// --------------------------------------------------------------------------- -// Lexer - -type position struct { - byteNo int // Byte position of last rune read - lineNo int // Line number - lineStart int // Rune position of the last newline -} - -type lexer struct { - fileName string // The file name being lexed, only used for errors - input string // The input string - source *ast.Source - - pos position // Current position in input - prev position // Previous position in input - - tokens Tokens // The tokens that we've generated so far - - // Information about the token we are working on right now - fodder fodder - tokenStart int - tokenStartLoc ast.Location -} - -const lexEOF = -1 - -func makeLexer(fn string, input string) *lexer { - return &lexer{ - fileName: fn, - input: input, - source: ast.BuildSource(input), - pos: position{byteNo: 0, lineNo: 1, lineStart: 0}, - prev: position{byteNo: lexEOF, lineNo: 0, lineStart: 0}, - tokenStartLoc: ast.Location{Line: 1, Column: 1}, - } -} - -// next returns the next rune in the input. -func (l *lexer) next() rune { - if int(l.pos.byteNo) >= len(l.input) { - l.prev = l.pos - return lexEOF - } - r, w := utf8.DecodeRuneInString(l.input[l.pos.byteNo:]) - l.prev = l.pos - l.pos.byteNo += w - if r == '\n' { - l.pos.lineStart = l.pos.byteNo - l.pos.lineNo++ - } - return r -} - -func (l *lexer) acceptN(n int) { - for i := 0; i < n; i++ { - l.next() - } -} - -// peek returns but does not consume the next rune in the input. -func (l *lexer) peek() rune { - r := l.next() - l.backup() - return r -} - -// backup steps back one rune. Can only be called once per call of next. -func (l *lexer) backup() { - if l.prev.byteNo == lexEOF { - panic("backup called with no valid previous rune") - } - l.pos = l.prev - l.prev = position{byteNo: lexEOF} -} - -func locationFromPosition(pos position) ast.Location { - return ast.Location{Line: pos.lineNo, Column: pos.byteNo - pos.lineStart + 1} -} - -func (l *lexer) location() ast.Location { - return locationFromPosition(l.pos) -} - -func (l *lexer) prevLocation() ast.Location { - if l.prev.byteNo == lexEOF { - panic("prevLocation called with no valid previous rune") - } - return locationFromPosition(l.prev) -} - -// Reset the current working token start to the current cursor position. This -// may throw away some characters. This does not throw away any accumulated -// fodder. -func (l *lexer) resetTokenStart() { - l.tokenStart = l.pos.byteNo - l.tokenStartLoc = l.location() -} - -func (l *lexer) emitFullToken(kind tokenKind, data, stringBlockIndent, stringBlockTermIndent string) { - l.tokens = append(l.tokens, token{ - kind: kind, - fodder: l.fodder, - data: data, - stringBlockIndent: stringBlockIndent, - stringBlockTermIndent: stringBlockTermIndent, - loc: ast.MakeLocationRange(l.fileName, l.source, l.tokenStartLoc, l.location()), - }) - l.fodder = fodder{} -} - -func (l *lexer) emitToken(kind tokenKind) { - l.emitFullToken(kind, l.input[l.tokenStart:l.pos.byteNo], "", "") - l.resetTokenStart() -} - -func (l *lexer) addWhitespaceFodder() { - fodderData := l.input[l.tokenStart:l.pos.byteNo] - if len(l.fodder) == 0 || l.fodder[len(l.fodder)-1].kind != fodderWhitespace { - l.fodder = append(l.fodder, fodderElement{kind: fodderWhitespace, data: fodderData}) - } else { - l.fodder[len(l.fodder)-1].data += fodderData - } - l.resetTokenStart() -} - -func (l *lexer) addCommentFodder(kind fodderKind) { - fodderData := l.input[l.tokenStart:l.pos.byteNo] - l.fodder = append(l.fodder, fodderElement{kind: kind, data: fodderData}) - l.resetTokenStart() -} - -func (l *lexer) addFodder(kind fodderKind, data string) { - l.fodder = append(l.fodder, fodderElement{kind: kind, data: data}) -} - -func (l *lexer) makeStaticErrorPoint(msg string, loc ast.Location) StaticError { - return StaticError{Msg: msg, Loc: ast.MakeLocationRange(l.fileName, l.source, loc, loc)} -} - -// lexNumber will consume a number and emit a token. It is assumed -// that the next rune to be served by the lexer will be a leading digit. -func (l *lexer) lexNumber() error { - // This function should be understood with reference to the linked image: - // http://www.json.org/number.gif - - // Note, we deviate from the json.org documentation as follows: - // There is no reason to lex negative numbers as atomic tokens, it is better to parse them - // as a unary operator combined with a numeric literal. This avoids x-1 being tokenized as - // instead of the intended . - - type numLexState int - const ( - numBegin numLexState = iota - numAfterZero - numAfterOneToNine - numAfterDot - numAfterDigit - numAfterE - numAfterExpSign - numAfterExpDigit - ) - - state := numBegin - -outerLoop: - for true { - r := l.next() - switch state { - case numBegin: - switch { - case r == '0': - state = numAfterZero - case r >= '1' && r <= '9': - state = numAfterOneToNine - default: - // The caller should ensure the first rune is a digit. - panic("Couldn't lex number") - } - case numAfterZero: - switch r { - case '.': - state = numAfterDot - case 'e', 'E': - state = numAfterE - default: - break outerLoop - } - case numAfterOneToNine: - switch { - case r == '.': - state = numAfterDot - case r == 'e' || r == 'E': - state = numAfterE - case r >= '0' && r <= '9': - state = numAfterOneToNine - default: - break outerLoop - } - case numAfterDot: - switch { - case r >= '0' && r <= '9': - state = numAfterDigit - default: - return l.makeStaticErrorPoint( - fmt.Sprintf("Couldn't lex number, junk after decimal point: %v", strconv.QuoteRuneToASCII(r)), - l.prevLocation()) - } - case numAfterDigit: - switch { - case r == 'e' || r == 'E': - state = numAfterE - case r >= '0' && r <= '9': - state = numAfterDigit - default: - break outerLoop - } - case numAfterE: - switch { - case r == '+' || r == '-': - state = numAfterExpSign - case r >= '0' && r <= '9': - state = numAfterExpDigit - default: - return l.makeStaticErrorPoint( - fmt.Sprintf("Couldn't lex number, junk after 'E': %v", strconv.QuoteRuneToASCII(r)), - l.prevLocation()) - } - case numAfterExpSign: - if r >= '0' && r <= '9' { - state = numAfterExpDigit - } else { - return l.makeStaticErrorPoint( - fmt.Sprintf("Couldn't lex number, junk after exponent sign: %v", strconv.QuoteRuneToASCII(r)), - l.prevLocation()) - } - - case numAfterExpDigit: - if r >= '0' && r <= '9' { - state = numAfterExpDigit - } else { - break outerLoop - } - } - } - - l.backup() - l.emitToken(tokenNumber) - return nil -} - -// lexIdentifier will consume a identifer and emit a token. It is assumed -// that the next rune to be served by the lexer will be a leading digit. This -// may emit a keyword or an identifier. -func (l *lexer) lexIdentifier() { - r := l.next() - if !isIdentifierFirst(r) { - panic("Unexpected character in lexIdentifier") - } - for ; r != lexEOF; r = l.next() { - if !isIdentifier(r) { - break - } - } - l.backup() - - switch l.input[l.tokenStart:l.pos.byteNo] { - case "assert": - l.emitToken(tokenAssert) - case "else": - l.emitToken(tokenElse) - case "error": - l.emitToken(tokenError) - case "false": - l.emitToken(tokenFalse) - case "for": - l.emitToken(tokenFor) - case "function": - l.emitToken(tokenFunction) - case "if": - l.emitToken(tokenIf) - case "import": - l.emitToken(tokenImport) - case "importstr": - l.emitToken(tokenImportStr) - case "in": - l.emitToken(tokenIn) - case "local": - l.emitToken(tokenLocal) - case "null": - l.emitToken(tokenNullLit) - case "self": - l.emitToken(tokenSelf) - case "super": - l.emitToken(tokenSuper) - case "tailstrict": - l.emitToken(tokenTailStrict) - case "then": - l.emitToken(tokenThen) - case "true": - l.emitToken(tokenTrue) - default: - // Not a keyword, assume it is an identifier - l.emitToken(tokenIdentifier) - } -} - -// lexSymbol will lex a token that starts with a symbol. This could be a -// C or C++ comment, block quote or an operator. This function assumes that the next -// rune to be served by the lexer will be the first rune of the new token. -func (l *lexer) lexSymbol() error { - r := l.next() - - // Single line C++ style comment - if r == '/' && l.peek() == '/' { - l.next() - l.resetTokenStart() // Throw out the leading // - for r = l.next(); r != lexEOF && r != '\n'; r = l.next() { - } - // Leave the '\n' in the lexer to be fodder for the next round - l.backup() - l.addCommentFodder(fodderCommentCpp) - return nil - } - - if r == '/' && l.peek() == '*' { - commentStartLoc := l.tokenStartLoc - l.next() // consume the '*' - l.resetTokenStart() // Throw out the leading /* - for r = l.next(); ; r = l.next() { - if r == lexEOF { - return l.makeStaticErrorPoint("Multi-line comment has no terminating */", - commentStartLoc) - } - if r == '*' && l.peek() == '/' { - commentData := l.input[l.tokenStart : l.pos.byteNo-1] // Don't include trailing */ - l.addFodder(fodderCommentC, commentData) - l.next() // Skip past '/' - l.resetTokenStart() // Start next token at this point - return nil - } - } - } - - if r == '|' && strings.HasPrefix(l.input[l.pos.byteNo:], "||") { - commentStartLoc := l.tokenStartLoc - l.acceptN(2) // Skip "||" - var cb bytes.Buffer - - // Skip whitespace - for r = l.next(); r == ' ' || r == '\t' || r == '\r'; r = l.next() { - } - - // Skip \n - if r != '\n' { - return l.makeStaticErrorPoint("Text block requires new line after |||.", - commentStartLoc) - } - - // Process leading blank lines before calculating stringBlockIndent - for r = l.next(); r == '\n'; r = l.next() { - cb.WriteRune(r) - } - l.backup() - numWhiteSpace := checkWhitespace(l.input[l.pos.byteNo:], l.input[l.pos.byteNo:]) - stringBlockIndent := l.input[l.pos.byteNo : l.pos.byteNo+numWhiteSpace] - if numWhiteSpace == 0 { - return l.makeStaticErrorPoint("Text block's first line must start with whitespace", - commentStartLoc) - } - - for { - if numWhiteSpace <= 0 { - panic("Unexpected value for numWhiteSpace") - } - l.acceptN(numWhiteSpace) - for r = l.next(); r != '\n'; r = l.next() { - if r == lexEOF { - return l.makeStaticErrorPoint("Unexpected EOF", commentStartLoc) - } - cb.WriteRune(r) - } - cb.WriteRune('\n') - - // Skip any blank lines - for r = l.next(); r == '\n'; r = l.next() { - cb.WriteRune(r) - } - l.backup() - - // Look at the next line - numWhiteSpace = checkWhitespace(stringBlockIndent, l.input[l.pos.byteNo:]) - if numWhiteSpace == 0 { - // End of the text block - var stringBlockTermIndent string - for r = l.next(); r == ' ' || r == '\t'; r = l.next() { - stringBlockTermIndent += string(r) - } - l.backup() - if !strings.HasPrefix(l.input[l.pos.byteNo:], "|||") { - return l.makeStaticErrorPoint("Text block not terminated with |||", commentStartLoc) - } - l.acceptN(3) // Skip '|||' - l.emitFullToken(tokenStringBlock, cb.String(), - stringBlockIndent, stringBlockTermIndent) - l.resetTokenStart() - return nil - } - } - } - - // Assume any string of symbols is a single operator. - for r = l.next(); isSymbol(r); r = l.next() { - // Not allowed // in operators - if r == '/' && strings.HasPrefix(l.input[l.pos.byteNo:], "/") { - break - } - // Not allowed /* in operators - if r == '/' && strings.HasPrefix(l.input[l.pos.byteNo:], "*") { - break - } - // Not allowed ||| in operators - if r == '|' && strings.HasPrefix(l.input[l.pos.byteNo:], "||") { - break - } - } - - l.backup() - - // Operators are not allowed to end with + - ~ ! unless they are one rune long. - // So, wind it back if we need to, but stop at the first rune. - // This relies on the hack that all operator symbols are ASCII and thus there is - // no need to treat this substring as general UTF-8. - for r = rune(l.input[l.pos.byteNo-1]); l.pos.byteNo > l.tokenStart+1; l.pos.byteNo-- { - switch r { - case '+', '-', '~', '!': - continue - } - break - } - - if l.input[l.tokenStart:l.pos.byteNo] == "$" { - l.emitToken(tokenDollar) - } else { - l.emitToken(tokenOperator) - } - return nil -} - -// Lex returns a slice of tokens recognised in input. -func Lex(fn string, input string) (Tokens, error) { - l := makeLexer(fn, input) - - var err error - - for r := l.next(); r != lexEOF; r = l.next() { - switch r { - case ' ', '\t', '\r', '\n': - l.addWhitespaceFodder() - continue - case '{': - l.emitToken(tokenBraceL) - case '}': - l.emitToken(tokenBraceR) - case '[': - l.emitToken(tokenBracketL) - case ']': - l.emitToken(tokenBracketR) - case ',': - l.emitToken(tokenComma) - case '.': - l.emitToken(tokenDot) - case '(': - l.emitToken(tokenParenL) - case ')': - l.emitToken(tokenParenR) - case ';': - l.emitToken(tokenSemicolon) - - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': - l.backup() - err = l.lexNumber() - if err != nil { - return nil, err - } - - // String literals - case '"': - stringStartLoc := l.prevLocation() - for r = l.next(); ; r = l.next() { - if r == lexEOF { - return nil, l.makeStaticErrorPoint("Unterminated String", stringStartLoc) - } - if r == '"' { - // Don't include the quotes in the token data - l.emitFullToken(tokenStringDouble, l.input[l.tokenStart+1:l.pos.byteNo-1], "", "") - l.resetTokenStart() - break - } - if r == '\\' && l.peek() != lexEOF { - r = l.next() - } - } - case '\'': - stringStartLoc := l.prevLocation() - for r = l.next(); ; r = l.next() { - if r == lexEOF { - return nil, l.makeStaticErrorPoint("Unterminated String", stringStartLoc) - } - if r == '\'' { - // Don't include the quotes in the token data - l.emitFullToken(tokenStringSingle, l.input[l.tokenStart+1:l.pos.byteNo-1], "", "") - l.resetTokenStart() - break - } - if r == '\\' && l.peek() != lexEOF { - r = l.next() - } - } - case '@': - // Verbatim string literals. - // ' and " quoting is interpreted here, unlike non-verbatim strings - // where it is done later by jsonnet_string_unescape. This is OK - // in this case because no information is lost by resoving the - // repeated quote into a single quote, so we can go back to the - // original form in the formatter. - var data []rune - stringStartLoc := l.prevLocation() - quot := l.next() - var kind tokenKind - if quot == '"' { - kind = tokenVerbatimStringDouble - } else if quot == '\'' { - kind = tokenVerbatimStringSingle - } else { - return nil, l.makeStaticErrorPoint( - fmt.Sprintf("Couldn't lex verbatim string, junk after '@': %v", quot), - stringStartLoc, - ) - } - for r = l.next(); ; r = l.next() { - if r == lexEOF { - return nil, l.makeStaticErrorPoint("Unterminated String", stringStartLoc) - } else if r == quot { - if l.peek() == quot { - l.next() - data = append(data, r) - } else { - l.emitFullToken(kind, string(data), "", "") - l.resetTokenStart() - break - } - } else { - data = append(data, r) - } - } - - case '#': - l.resetTokenStart() // Throw out the leading # - for r = l.next(); r != lexEOF && r != '\n'; r = l.next() { - } - // Leave the '\n' in the lexer to be fodder for the next round - l.backup() - l.addCommentFodder(fodderCommentHash) - - default: - if isIdentifierFirst(r) { - l.backup() - l.lexIdentifier() - } else if isSymbol(r) { - l.backup() - err = l.lexSymbol() - if err != nil { - return nil, err - } - } else { - return nil, l.makeStaticErrorPoint( - fmt.Sprintf("Could not lex the character %s", strconv.QuoteRuneToASCII(r)), - l.prevLocation()) - } - - } - } - - // We are currently at the EOF. Emit a special token to capture any - // trailing fodder - l.emitToken(tokenEndOfFile) - return l.tokens, nil -} diff --git a/vendor/github.com/google/go-jsonnet/parser/literalfield_set.go b/vendor/github.com/google/go-jsonnet/parser/literalfield_set.go deleted file mode 100644 index e39b4cd..0000000 --- a/vendor/github.com/google/go-jsonnet/parser/literalfield_set.go +++ /dev/null @@ -1,172 +0,0 @@ -// Generated by: main -// TypeWriter: set -// Directive: +gen on LiteralField - -package parser - -// Set is a modification of https://github.com/deckarep/golang-set -// The MIT License (MIT) -// Copyright (c) 2013 Ralph Caraveo (deckarep@gmail.com) - -// LiteralFieldSet is the primary type that represents a set -type LiteralFieldSet map[LiteralField]struct{} - -// NewLiteralFieldSet creates and returns a reference to an empty set. -func NewLiteralFieldSet(a ...LiteralField) LiteralFieldSet { - s := make(LiteralFieldSet) - for _, i := range a { - s.Add(i) - } - return s -} - -// ToSlice returns the elements of the current set as a slice -func (set LiteralFieldSet) ToSlice() []LiteralField { - var s []LiteralField - for v := range set { - s = append(s, v) - } - return s -} - -// Add adds an item to the current set if it doesn't already exist in the set. -func (set LiteralFieldSet) Add(i LiteralField) bool { - _, found := set[i] - set[i] = struct{}{} - return !found //False if it existed already -} - -// Contains determines if a given item is already in the set. -func (set LiteralFieldSet) Contains(i LiteralField) bool { - _, found := set[i] - return found -} - -// ContainsAll determines if the given items are all in the set -func (set LiteralFieldSet) ContainsAll(i ...LiteralField) bool { - for _, v := range i { - if !set.Contains(v) { - return false - } - } - return true -} - -// IsSubset determines if every item in the other set is in this set. -func (set LiteralFieldSet) IsSubset(other LiteralFieldSet) bool { - for elem := range set { - if !other.Contains(elem) { - return false - } - } - return true -} - -// IsSuperset determines if every item of this set is in the other set. -func (set LiteralFieldSet) IsSuperset(other LiteralFieldSet) bool { - return other.IsSubset(set) -} - -// Union returns a new set with all items in both sets. -func (set LiteralFieldSet) Union(other LiteralFieldSet) LiteralFieldSet { - unionedSet := NewLiteralFieldSet() - - for elem := range set { - unionedSet.Add(elem) - } - for elem := range other { - unionedSet.Add(elem) - } - return unionedSet -} - -// Intersect returns a new set with items that exist only in both sets. -func (set LiteralFieldSet) Intersect(other LiteralFieldSet) LiteralFieldSet { - intersection := NewLiteralFieldSet() - // loop over smaller set - if set.Cardinality() < other.Cardinality() { - for elem := range set { - if other.Contains(elem) { - intersection.Add(elem) - } - } - } else { - for elem := range other { - if set.Contains(elem) { - intersection.Add(elem) - } - } - } - return intersection -} - -// Difference returns a new set with items in the current set but not in the other set -func (set LiteralFieldSet) Difference(other LiteralFieldSet) LiteralFieldSet { - differencedSet := NewLiteralFieldSet() - for elem := range set { - if !other.Contains(elem) { - differencedSet.Add(elem) - } - } - return differencedSet -} - -// SymmetricDifference returns a new set with items in the current set or the other set but not in both. -func (set LiteralFieldSet) SymmetricDifference(other LiteralFieldSet) LiteralFieldSet { - aDiff := set.Difference(other) - bDiff := other.Difference(set) - return aDiff.Union(bDiff) -} - -// Clear clears the entire set to be the empty set. -func (set *LiteralFieldSet) Clear() { - *set = make(LiteralFieldSet) -} - -// Remove allows the removal of a single item in the set. -func (set LiteralFieldSet) Remove(i LiteralField) { - delete(set, i) -} - -// Cardinality returns how many items are currently in the set. -func (set LiteralFieldSet) Cardinality() int { - return len(set) -} - -// Iter returns a channel of type LiteralField that you can range over. -func (set LiteralFieldSet) Iter() <-chan LiteralField { - ch := make(chan LiteralField) - go func() { - for elem := range set { - ch <- elem - } - close(ch) - }() - - return ch -} - -// Equal determines if two sets are equal to each other. -// If they both are the same size and have the same items they are considered equal. -// Order of items is not relevent for sets to be equal. -func (set LiteralFieldSet) Equal(other LiteralFieldSet) bool { - if set.Cardinality() != other.Cardinality() { - return false - } - for elem := range set { - if !other.Contains(elem) { - return false - } - } - return true -} - -// Clone returns a clone of the set. -// Does NOT clone the underlying elements. -func (set LiteralFieldSet) Clone() LiteralFieldSet { - clonedSet := NewLiteralFieldSet() - for elem := range set { - clonedSet.Add(elem) - } - return clonedSet -} diff --git a/vendor/github.com/google/go-jsonnet/parser/parser.go b/vendor/github.com/google/go-jsonnet/parser/parser.go deleted file mode 100644 index 65384be..0000000 --- a/vendor/github.com/google/go-jsonnet/parser/parser.go +++ /dev/null @@ -1,1193 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package parser reads Jsonnet files and parses them into AST nodes. -package parser - -import ( - "fmt" - "strconv" - - "github.com/google/go-jsonnet/ast" -) - -type precedence int - -const ( - applyPrecedence precedence = 2 // ast.Function calls and indexing. - unaryPrecedence precedence = 4 // Logical and bitwise negation, unary + - - maxPrecedence precedence = 16 // ast.Local, If, ast.Import, ast.Function, Error -) - -var bopPrecedence = map[ast.BinaryOp]precedence{ - ast.BopMult: 5, - ast.BopDiv: 5, - ast.BopPercent: 5, - ast.BopPlus: 6, - ast.BopMinus: 6, - ast.BopShiftL: 7, - ast.BopShiftR: 7, - ast.BopGreater: 8, - ast.BopGreaterEq: 8, - ast.BopLess: 8, - ast.BopLessEq: 8, - ast.BopIn: 8, - ast.BopManifestEqual: 9, - ast.BopManifestUnequal: 9, - ast.BopBitwiseAnd: 10, - ast.BopBitwiseXor: 11, - ast.BopBitwiseOr: 12, - ast.BopAnd: 13, - ast.BopOr: 14, -} - -// --------------------------------------------------------------------------- - -func makeUnexpectedError(t *token, while string) error { - return MakeStaticError( - fmt.Sprintf("Unexpected: %v while %v", t, while), t.loc) -} - -func locFromTokens(begin, end *token) ast.LocationRange { - return ast.LocationRangeBetween(&begin.loc, &end.loc) -} - -func locFromTokenAST(begin *token, end ast.Node) ast.LocationRange { - return ast.LocationRangeBetween(&begin.loc, end.Loc()) -} - -// --------------------------------------------------------------------------- - -type parser struct { - t Tokens - currT int -} - -func makeParser(t Tokens) *parser { - return &parser{ - t: t, - } -} - -func (p *parser) pop() *token { - t := &p.t[p.currT] - p.currT++ - return t -} - -func (p *parser) unexpectedTokenError(tk tokenKind, t *token) error { - if tk == t.kind { - panic("Unexpectedly expected token kind.") - } - return MakeStaticError(fmt.Sprintf("Expected token %v but got %v", tk, t), t.loc) -} - -func (p *parser) popExpect(tk tokenKind) (*token, error) { - t := p.pop() - if t.kind != tk { - return nil, p.unexpectedTokenError(tk, t) - } - return t, nil -} - -func (p *parser) popExpectOp(op string) (*token, error) { - t := p.pop() - if t.kind != tokenOperator || t.data != op { - return nil, MakeStaticError( - fmt.Sprintf("Expected operator %v but got %v", op, t), t.loc) - } - return t, nil -} - -func (p *parser) peek() *token { - return &p.t[p.currT] -} - -func (p *parser) doublePeek() *token { - return &p.t[p.currT+1] -} - -// in some cases it's convenient to parse something as an expression, and later -// decide that it should be just an identifer -func astVarToIdentifier(node ast.Node) (*ast.Identifier, bool) { - v, ok := node.(*ast.Var) - if ok { - return &v.Id, true - } - return nil, false -} - -func (p *parser) parseArgument() (*ast.Identifier, ast.Node, error) { - var id *ast.Identifier - if p.peek().kind == tokenIdentifier && p.doublePeek().kind == tokenOperator && p.doublePeek().data == "=" { - ident := p.pop() - var tmpID = ast.Identifier(ident.data) - id = &tmpID - p.pop() // "=" token - } - expr, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - return id, expr, nil -} - -// TODO(sbarzowski) - this returned bool is weird -// TODO(sbarzowski) - name - it's also used for parameters -func (p *parser) parseArguments(elementKind string) (*token, *ast.Arguments, bool, error) { - args := &ast.Arguments{} - gotComma := false - namedArgumentAdded := false - first := true - for { - next := p.peek() - - if next.kind == tokenParenR { - // gotComma can be true or false here. - return p.pop(), args, gotComma, nil - } - - if !first && !gotComma { - return nil, nil, false, MakeStaticError(fmt.Sprintf("Expected a comma before next %s, got %s.", elementKind, next), next.loc) - } - - id, expr, err := p.parseArgument() - if err != nil { - return nil, nil, false, err - } - if id == nil { - if namedArgumentAdded { - return nil, nil, false, MakeStaticError("Positional argument after a named argument is not allowed", next.loc) - } - args.Positional = append(args.Positional, expr) - } else { - namedArgumentAdded = true - args.Named = append(args.Named, ast.NamedArgument{Name: *id, Arg: expr}) - } - - if p.peek().kind == tokenComma { - p.pop() - gotComma = true - } else { - gotComma = false - } - - first = false - } -} - -// TODO(sbarzowski) - this returned bool is weird -func (p *parser) parseParameters(elementKind string) (*ast.Parameters, bool, error) { - _, args, trailingComma, err := p.parseArguments(elementKind) - if err != nil { - return nil, false, err - } - var params ast.Parameters - for _, arg := range args.Positional { - id, ok := astVarToIdentifier(arg) - if !ok { - return nil, false, MakeStaticError(fmt.Sprintf("Expected simple identifier but got a complex expression."), *arg.Loc()) - } - params.Required = append(params.Required, *id) - } - for _, arg := range args.Named { - params.Optional = append(params.Optional, ast.NamedParameter{Name: arg.Name, DefaultArg: arg.Arg}) - } - return ¶ms, trailingComma, nil -} - -// TODO(sbarzowski) add location to all individual binds -func (p *parser) parseBind(binds *ast.LocalBinds) error { - varID, err := p.popExpect(tokenIdentifier) - if err != nil { - return err - } - for _, b := range *binds { - if b.Variable == ast.Identifier(varID.data) { - return MakeStaticError(fmt.Sprintf("Duplicate local var: %v", varID.data), varID.loc) - } - } - - var fun *ast.Function - if p.peek().kind == tokenParenL { - p.pop() - params, gotComma, err := p.parseParameters("function parameter") - if err != nil { - return err - } - fun = &ast.Function{ - Parameters: *params, - TrailingComma: gotComma, - } - } - - _, err = p.popExpectOp("=") - if err != nil { - return err - } - body, err := p.parse(maxPrecedence) - if err != nil { - return err - } - - if fun != nil { - fun.NodeBase = ast.NewNodeBaseLoc(locFromTokenAST(varID, body)) - fun.Body = body - *binds = append(*binds, ast.LocalBind{ - Variable: ast.Identifier(varID.data), - Body: body, - Fun: fun, - }) - } else { - *binds = append(*binds, ast.LocalBind{ - Variable: ast.Identifier(varID.data), - Body: body, - }) - } - - return nil -} - -func (p *parser) parseObjectAssignmentOp() (plusSugar bool, hide ast.ObjectFieldHide, err error) { - op, err := p.popExpect(tokenOperator) - if err != nil { - return - } - opStr := op.data - if opStr[0] == '+' { - plusSugar = true - opStr = opStr[1:] - } - - numColons := 0 - for len(opStr) > 0 { - if opStr[0] != ':' { - err = MakeStaticError( - fmt.Sprintf("Expected one of :, ::, :::, +:, +::, +:::, got: %v", op.data), op.loc) - return - } - opStr = opStr[1:] - numColons++ - } - - switch numColons { - case 1: - hide = ast.ObjectFieldInherit - case 2: - hide = ast.ObjectFieldHidden - case 3: - hide = ast.ObjectFieldVisible - default: - err = MakeStaticError( - fmt.Sprintf("Expected one of :, ::, :::, +:, +::, +:::, got: %v", op.data), op.loc) - return - } - - return -} - -// A LiteralField is a field of an object or object comprehension. -// +gen set -type LiteralField string - -// Parse object or object comprehension without leading brace -func (p *parser) parseObjectRemainder(tok *token) (ast.Node, *token, error) { - var fields ast.ObjectFields - literalFields := make(LiteralFieldSet) - binds := make(ast.IdentifierSet) - - gotComma := false - first := true - - for { - next := p.pop() - if !gotComma && !first { - if next.kind == tokenComma { - next = p.pop() - gotComma = true - } - } - - if next.kind == tokenBraceR { - return &ast.Object{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, next)), - Fields: fields, - TrailingComma: gotComma, - }, next, nil - } - - if next.kind == tokenFor { - // It's a comprehension - numFields := 0 - numAsserts := 0 - var field ast.ObjectField - for _, f := range fields { - if f.Kind == ast.ObjectLocal { - continue - } - if f.Kind == ast.ObjectAssert { - numAsserts++ - continue - } - numFields++ - field = f - } - - if numAsserts > 0 { - return nil, nil, MakeStaticError("Object comprehension cannot have asserts.", next.loc) - } - if numFields != 1 { - return nil, nil, MakeStaticError("Object comprehension can only have one field.", next.loc) - } - if field.Hide != ast.ObjectFieldInherit { - return nil, nil, MakeStaticError("Object comprehensions cannot have hidden fields.", next.loc) - } - if field.Kind != ast.ObjectFieldExpr { - return nil, nil, MakeStaticError("Object comprehensions can only have [e] fields.", next.loc) - } - spec, last, err := p.parseComprehensionSpecs(tokenBraceR) - if err != nil { - return nil, nil, err - } - return &ast.ObjectComp{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, last)), - Fields: fields, - TrailingComma: gotComma, - Spec: *spec, - }, last, nil - } - - if !gotComma && !first { - return nil, nil, MakeStaticError("Expected a comma before next field.", next.loc) - } - first = false - - switch next.kind { - case tokenBracketL, tokenIdentifier, tokenStringDouble, tokenStringSingle, - tokenStringBlock, tokenVerbatimStringDouble, tokenVerbatimStringSingle: - var kind ast.ObjectFieldKind - var expr1 ast.Node - var id *ast.Identifier - switch next.kind { - case tokenIdentifier: - kind = ast.ObjectFieldID - id = (*ast.Identifier)(&next.data) - case tokenStringDouble, tokenStringSingle, - tokenStringBlock, tokenVerbatimStringDouble, tokenVerbatimStringSingle: - kind = ast.ObjectFieldStr - expr1 = tokenStringToAst(next) - default: - kind = ast.ObjectFieldExpr - var err error - expr1, err = p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - _, err = p.popExpect(tokenBracketR) - if err != nil { - return nil, nil, err - } - } - - isMethod := false - methComma := false - var params *ast.Parameters - if p.peek().kind == tokenParenL { - p.pop() - var err error - params, methComma, err = p.parseParameters("method parameter") - if err != nil { - return nil, nil, err - } - isMethod = true - } - - plusSugar, hide, err := p.parseObjectAssignmentOp() - if err != nil { - return nil, nil, err - } - - if plusSugar && isMethod { - return nil, nil, MakeStaticError( - fmt.Sprintf("Cannot use +: syntax sugar in a method: %v", next.data), next.loc) - } - - if kind != ast.ObjectFieldExpr { - if !literalFields.Add(LiteralField(next.data)) { - return nil, nil, MakeStaticError( - fmt.Sprintf("Duplicate field: %v", next.data), next.loc) - } - } - - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - - var method *ast.Function - if isMethod { - method = &ast.Function{ - Parameters: *params, - TrailingComma: methComma, - Body: body, - } - } - - fields = append(fields, ast.ObjectField{ - Kind: kind, - Hide: hide, - SuperSugar: plusSugar, - MethodSugar: isMethod, - Method: method, - Expr1: expr1, - Id: id, - Params: params, - TrailingComma: methComma, - Expr2: body, - }) - - case tokenLocal: - varID, err := p.popExpect(tokenIdentifier) - if err != nil { - return nil, nil, err - } - - id := ast.Identifier(varID.data) - - if binds.Contains(id) { - return nil, nil, MakeStaticError(fmt.Sprintf("Duplicate local var: %v", id), varID.loc) - } - - // TODO(sbarzowski) Can we reuse regular local bind parsing here? - - isMethod := false - funcComma := false - var params *ast.Parameters - if p.peek().kind == tokenParenL { - p.pop() - isMethod = true - params, funcComma, err = p.parseParameters("function parameter") - if err != nil { - return nil, nil, err - } - } - _, err = p.popExpectOp("=") - if err != nil { - return nil, nil, err - } - - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - - var method *ast.Function - if isMethod { - method = &ast.Function{ - Parameters: *params, - TrailingComma: funcComma, - Body: body, - } - } - - binds.Add(id) - - fields = append(fields, ast.ObjectField{ - Kind: ast.ObjectLocal, - Hide: ast.ObjectFieldVisible, - SuperSugar: false, - MethodSugar: isMethod, - Method: method, - Id: &id, - Params: params, - TrailingComma: funcComma, - Expr2: body, - }) - - case tokenAssert: - cond, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - var msg ast.Node - if p.peek().kind == tokenOperator && p.peek().data == ":" { - p.pop() - msg, err = p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - } - - fields = append(fields, ast.ObjectField{ - Kind: ast.ObjectAssert, - Hide: ast.ObjectFieldVisible, - Expr2: cond, - Expr3: msg, - }) - default: - return nil, nil, makeUnexpectedError(next, "parsing field definition") - } - gotComma = false - } -} - -/* parses for x in expr for y in expr if expr for z in expr ... */ -func (p *parser) parseComprehensionSpecs(end tokenKind) (*ast.ForSpec, *token, error) { - var parseComprehensionSpecsHelper func(outer *ast.ForSpec) (*ast.ForSpec, *token, error) - parseComprehensionSpecsHelper = func(outer *ast.ForSpec) (*ast.ForSpec, *token, error) { - var ifSpecs []ast.IfSpec - - varID, err := p.popExpect(tokenIdentifier) - if err != nil { - return nil, nil, err - } - id := ast.Identifier(varID.data) - _, err = p.popExpect(tokenIn) - if err != nil { - return nil, nil, err - } - arr, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - forSpec := &ast.ForSpec{ - VarName: id, - Expr: arr, - Outer: outer, - } - - maybeIf := p.pop() - for ; maybeIf.kind == tokenIf; maybeIf = p.pop() { - cond, err := p.parse(maxPrecedence) - if err != nil { - return nil, nil, err - } - ifSpecs = append(ifSpecs, ast.IfSpec{ - Expr: cond, - }) - } - forSpec.Conditions = ifSpecs - if maybeIf.kind == end { - return forSpec, maybeIf, nil - } - - if maybeIf.kind != tokenFor { - return nil, nil, MakeStaticError( - fmt.Sprintf("Expected for, if or %v after for clause, got: %v", end, maybeIf), maybeIf.loc) - } - - return parseComprehensionSpecsHelper(forSpec) - } - return parseComprehensionSpecsHelper(nil) -} - -// Assumes that the leading '[' has already been consumed and passed as tok. -// Should read up to and consume the trailing ']' -func (p *parser) parseArray(tok *token) (ast.Node, error) { - next := p.peek() - if next.kind == tokenBracketR { - p.pop() - return &ast.Array{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, next)), - }, nil - } - - first, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - var gotComma bool - next = p.peek() - if next.kind == tokenComma { - p.pop() - next = p.peek() - gotComma = true - } - - if next.kind == tokenFor { - // It's a comprehension - p.pop() - spec, last, err := p.parseComprehensionSpecs(tokenBracketR) - if err != nil { - return nil, err - } - return &ast.ArrayComp{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, last)), - Body: first, - TrailingComma: gotComma, - Spec: *spec, - }, nil - } - // Not a comprehension: It can have more elements. - elements := ast.Nodes{first} - - for { - if next.kind == tokenBracketR { - // TODO(dcunnin): SYNTAX SUGAR HERE (preserve comma) - p.pop() - break - } - if !gotComma { - return nil, MakeStaticError("Expected a comma before next array element.", next.loc) - } - nextElem, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - elements = append(elements, nextElem) - next = p.peek() - if next.kind == tokenComma { - p.pop() - next = p.peek() - gotComma = true - } else { - gotComma = false - } - } - - return &ast.Array{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, next)), - Elements: elements, - TrailingComma: gotComma, - }, nil -} - -func tokenStringToAst(tok *token) *ast.LiteralString { - switch tok.kind { - case tokenStringSingle: - return &ast.LiteralString{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: tok.data, - Kind: ast.StringSingle, - } - case tokenStringDouble: - return &ast.LiteralString{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: tok.data, - Kind: ast.StringDouble, - } - case tokenStringBlock: - return &ast.LiteralString{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: tok.data, - Kind: ast.StringBlock, - BlockIndent: tok.stringBlockIndent, - } - case tokenVerbatimStringDouble: - return &ast.LiteralString{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: tok.data, - Kind: ast.VerbatimStringDouble, - } - case tokenVerbatimStringSingle: - return &ast.LiteralString{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: tok.data, - Kind: ast.VerbatimStringSingle, - } - default: - panic(fmt.Sprintf("Not a string token %#+v", tok)) - } -} - -func (p *parser) parseTerminal() (ast.Node, error) { - tok := p.pop() - switch tok.kind { - case tokenAssert, tokenBraceR, tokenBracketR, tokenComma, tokenDot, tokenElse, - tokenError, tokenFor, tokenFunction, tokenIf, tokenIn, tokenImport, tokenImportStr, - tokenLocal, tokenOperator, tokenParenR, tokenSemicolon, tokenTailStrict, tokenThen: - return nil, makeUnexpectedError(tok, "parsing terminal") - - case tokenEndOfFile: - return nil, MakeStaticError("Unexpected end of file.", tok.loc) - - case tokenBraceL: - obj, _, err := p.parseObjectRemainder(tok) - return obj, err - - case tokenBracketL: - return p.parseArray(tok) - - case tokenParenL: - inner, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - tokRight, err := p.popExpect(tokenParenR) - if err != nil { - return nil, err - } - return &ast.Parens{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(tok, tokRight)), - Inner: inner, - }, nil - - // Literals - case tokenNumber: - // This shouldn't fail as the lexer should make sure we have good input but - // we handle the error regardless. - num, err := strconv.ParseFloat(tok.data, 64) - if err != nil { - return nil, MakeStaticError("Could not parse floating point number.", tok.loc) - } - return &ast.LiteralNumber{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: num, - OriginalString: tok.data, - }, nil - case tokenStringDouble, tokenStringSingle, - tokenStringBlock, tokenVerbatimStringDouble, tokenVerbatimStringSingle: - return tokenStringToAst(tok), nil - case tokenFalse: - return &ast.LiteralBoolean{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: false, - }, nil - case tokenTrue: - return &ast.LiteralBoolean{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Value: true, - }, nil - case tokenNullLit: - return &ast.LiteralNull{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - }, nil - - // Variables - case tokenDollar: - return &ast.Dollar{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - }, nil - case tokenIdentifier: - return &ast.Var{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Id: ast.Identifier(tok.data), - }, nil - case tokenSelf: - return &ast.Self{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - }, nil - case tokenSuper: - next := p.pop() - var index ast.Node - var id *ast.Identifier - switch next.kind { - case tokenDot: - fieldID, err := p.popExpect(tokenIdentifier) - if err != nil { - return nil, err - } - id = (*ast.Identifier)(&fieldID.data) - case tokenBracketL: - var err error - index, err = p.parse(maxPrecedence) - if err != nil { - return nil, err - } - _, err = p.popExpect(tokenBracketR) - if err != nil { - return nil, err - } - default: - return nil, MakeStaticError("Expected . or [ after super.", tok.loc) - } - return &ast.SuperIndex{ - NodeBase: ast.NewNodeBaseLoc(tok.loc), - Index: index, - Id: id, - }, nil - } - - return nil, MakeStaticError(fmt.Sprintf("INTERNAL ERROR: Unknown tok kind: %v", tok.kind), tok.loc) -} - -func (p *parser) parsingFailure(msg string, tok *token) (ast.Node, error) { - return nil, MakeStaticError(msg, tok.loc) -} - -func (p *parser) parse(prec precedence) (ast.Node, error) { - begin := p.peek() - - switch begin.kind { - // These cases have effectively maxPrecedence as the first - // call to parse will parse them. - case tokenAssert: - p.pop() - cond, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - var msg ast.Node - if p.peek().kind == tokenOperator && p.peek().data == ":" { - p.pop() - msg, err = p.parse(maxPrecedence) - if err != nil { - return nil, err - } - } - _, err = p.popExpect(tokenSemicolon) - if err != nil { - return nil, err - } - rest, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - return &ast.Assert{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, rest)), - Cond: cond, - Message: msg, - Rest: rest, - }, nil - - case tokenError: - p.pop() - expr, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - return &ast.Error{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, expr)), - Expr: expr, - }, nil - - case tokenIf: - p.pop() - cond, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - _, err = p.popExpect(tokenThen) - if err != nil { - return nil, err - } - branchTrue, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - var branchFalse ast.Node - lr := locFromTokenAST(begin, branchTrue) - if p.peek().kind == tokenElse { - p.pop() - branchFalse, err = p.parse(maxPrecedence) - if err != nil { - return nil, err - } - lr = locFromTokenAST(begin, branchFalse) - } - return &ast.Conditional{ - NodeBase: ast.NewNodeBaseLoc(lr), - Cond: cond, - BranchTrue: branchTrue, - BranchFalse: branchFalse, - }, nil - - case tokenFunction: - p.pop() - next := p.pop() - if next.kind == tokenParenL { - params, gotComma, err := p.parseParameters("function parameter") - if err != nil { - return nil, err - } - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - return &ast.Function{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, body)), - Parameters: *params, - TrailingComma: gotComma, - Body: body, - }, nil - } - return nil, MakeStaticError(fmt.Sprintf("Expected ( but got %v", next), next.loc) - - case tokenImport: - p.pop() - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - if lit, ok := body.(*ast.LiteralString); ok { - if lit.Kind == ast.StringBlock { - return nil, MakeStaticError("Block string literals not allowed in imports", *body.Loc()) - } - return &ast.Import{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, body)), - File: lit, - }, nil - } - return nil, MakeStaticError("Computed imports are not allowed", *body.Loc()) - - case tokenImportStr: - p.pop() - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - if lit, ok := body.(*ast.LiteralString); ok { - if lit.Kind == ast.StringBlock { - return nil, MakeStaticError("Block string literals not allowed in imports", *body.Loc()) - } - return &ast.ImportStr{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, body)), - File: lit, - }, nil - } - return nil, MakeStaticError("Computed imports are not allowed", *body.Loc()) - - case tokenLocal: - p.pop() - var binds ast.LocalBinds - for { - err := p.parseBind(&binds) - if err != nil { - return nil, err - } - delim := p.pop() - if delim.kind != tokenSemicolon && delim.kind != tokenComma { - return nil, MakeStaticError(fmt.Sprintf("Expected , or ; but got %v", delim), delim.loc) - } - if delim.kind == tokenSemicolon { - break - } - } - body, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - return &ast.Local{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, body)), - Binds: binds, - Body: body, - }, nil - - default: - // ast.Unary operator - if begin.kind == tokenOperator { - uop, ok := ast.UopMap[begin.data] - if !ok { - return nil, MakeStaticError(fmt.Sprintf("Not a unary operator: %v", begin.data), begin.loc) - } - if prec == unaryPrecedence { - op := p.pop() - expr, err := p.parse(prec) - if err != nil { - return nil, err - } - return &ast.Unary{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(op, expr)), - Op: uop, - Expr: expr, - }, nil - } - } - - // Base case - if prec == 0 { - return p.parseTerminal() - } - - lhs, err := p.parse(prec - 1) - if err != nil { - return nil, err - } - - for { - // Then next token must be a binary operator. - - var bop ast.BinaryOp - - // Check precedence is correct for this level. If we're parsing operators - // with higher precedence, then return lhs and let lower levels deal with - // the operator. - switch p.peek().kind { - case tokenIn: - bop = ast.BopIn - if bopPrecedence[bop] != prec { - return lhs, nil - } - case tokenOperator: - _ = "breakpoint" - if p.peek().data == ":" { - // Special case for the colons in assert. Since COLON is no-longer a - // special token, we have to make sure it does not trip the - // op_is_binary test below. It should terminate parsing of the - // expression here, returning control to the parsing of the actual - // assert AST. - return lhs, nil - } - if p.peek().data == "::" { - // Special case for [e::] - // We need to stop parsing e when we see the :: and - // avoid tripping the op_is_binary test below. - return lhs, nil - } - var ok bool - bop, ok = ast.BopMap[p.peek().data] - if !ok { - return nil, MakeStaticError(fmt.Sprintf("Not a binary operator: %v", p.peek().data), p.peek().loc) - } - - if bopPrecedence[bop] != prec { - return lhs, nil - } - - case tokenDot, tokenBracketL, tokenParenL, tokenBraceL: - if applyPrecedence != prec { - return lhs, nil - } - default: - return lhs, nil - } - - op := p.pop() - switch op.kind { - case tokenBracketL: - // handle slice - var indexes [3]ast.Node - colonsConsumed := 0 - - var end *token - readyForNextIndex := true - for colonsConsumed < 3 { - if p.peek().kind == tokenBracketR { - end = p.pop() - break - } else if p.peek().data == ":" { - colonsConsumed++ - end = p.pop() - readyForNextIndex = true - } else if p.peek().data == "::" { - colonsConsumed += 2 - end = p.pop() - readyForNextIndex = true - } else if readyForNextIndex { - indexes[colonsConsumed], err = p.parse(maxPrecedence) - if err != nil { - return nil, err - } - readyForNextIndex = false - } else { - return nil, p.unexpectedTokenError(tokenBracketR, p.peek()) - } - } - if colonsConsumed > 2 { - // example: target[42:42:42:42] - return p.parsingFailure("Invalid slice: too many colons", end) - } - if colonsConsumed == 0 && readyForNextIndex { - // example: target[] - return p.parsingFailure("ast.Index requires an expression", end) - } - isSlice := colonsConsumed > 0 - - if isSlice { - lhs = &ast.Slice{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, end)), - Target: lhs, - BeginIndex: indexes[0], - EndIndex: indexes[1], - Step: indexes[2], - } - } else { - lhs = &ast.Index{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, end)), - Target: lhs, - Index: indexes[0], - } - } - case tokenDot: - fieldID, err := p.popExpect(tokenIdentifier) - if err != nil { - return nil, err - } - id := ast.Identifier(fieldID.data) - lhs = &ast.Index{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, fieldID)), - Target: lhs, - Id: &id, - } - case tokenParenL: - end, args, gotComma, err := p.parseArguments("function argument") - if err != nil { - return nil, err - } - tailStrict := false - if p.peek().kind == tokenTailStrict { - p.pop() - tailStrict = true - } - lhs = &ast.Apply{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, end)), - Target: lhs, - Arguments: *args, - TrailingComma: gotComma, - TailStrict: tailStrict, - } - case tokenBraceL: - obj, end, err := p.parseObjectRemainder(op) - if err != nil { - return nil, err - } - lhs = &ast.ApplyBrace{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, end)), - Left: lhs, - Right: obj, - } - default: - if op.kind == tokenIn && p.peek().kind == tokenSuper { - super := p.pop() - lhs = &ast.InSuper{ - NodeBase: ast.NewNodeBaseLoc(locFromTokens(begin, super)), - Index: lhs, - } - } else { - rhs, err := p.parse(prec - 1) - if err != nil { - return nil, err - } - lhs = &ast.Binary{ - NodeBase: ast.NewNodeBaseLoc(locFromTokenAST(begin, rhs)), - Left: lhs, - Op: bop, - Right: rhs, - } - } - } - } - } -} - -// --------------------------------------------------------------------------- - -// Parse parses a slice of tokens into a parse tree. -func Parse(t Tokens) (ast.Node, error) { - p := makeParser(t) - expr, err := p.parse(maxPrecedence) - if err != nil { - return nil, err - } - - if p.peek().kind != tokenEndOfFile { - return nil, MakeStaticError(fmt.Sprintf("Did not expect: %v", p.peek()), p.peek().loc) - } - - addContext(expr, &topLevelContext, anonymous) - - return expr, nil -} diff --git a/vendor/github.com/google/go-jsonnet/parser/static_error.go b/vendor/github.com/google/go-jsonnet/parser/static_error.go deleted file mode 100644 index ac96e65..0000000 --- a/vendor/github.com/google/go-jsonnet/parser/static_error.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package parser - -import ( - "fmt" - - "github.com/google/go-jsonnet/ast" -) - -////////////////////////////////////////////////////////////////////////////// -// StaticError - -// StaticError represents an error during parsing/lexing or static analysis. -// TODO(sbarzowski) Make it possible to have multiple static errors and warnings -type StaticError struct { - Loc ast.LocationRange - Msg string -} - -// MakeStaticErrorMsg returns a StaticError with a message. -func MakeStaticErrorMsg(msg string) StaticError { - return StaticError{Msg: msg} -} - -// MakeStaticError returns a StaticError with a message and a LocationRange. -func MakeStaticError(msg string, lr ast.LocationRange) StaticError { - return StaticError{Msg: msg, Loc: lr} -} - -// Error returns the string representation of a StaticError. -func (err StaticError) Error() string { - loc := "" - if err.Loc.IsSet() { - loc = err.Loc.String() - } - return fmt.Sprintf("%v %v", loc, err.Msg) -} diff --git a/vendor/github.com/google/go-jsonnet/runtime_error.go b/vendor/github.com/google/go-jsonnet/runtime_error.go deleted file mode 100644 index 0692039..0000000 --- a/vendor/github.com/google/go-jsonnet/runtime_error.go +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import "github.com/google/go-jsonnet/ast" - -// RuntimeError is an error discovered during evaluation of the program -type RuntimeError struct { - StackTrace []TraceFrame - Msg string -} - -func makeRuntimeError(msg string, stackTrace []TraceFrame) RuntimeError { - return RuntimeError{ - Msg: msg, - StackTrace: stackTrace, - } -} - -func (err RuntimeError) Error() string { - return "RUNTIME ERROR: " + err.Msg -} - -// The stack - -// TraceFrame is tracing information about a single frame of the call stack. -// TODO(sbarzowski) the difference from TraceElement. Do we even need this? -type TraceFrame struct { - Loc ast.LocationRange - Name string -} - -func traceElementToTraceFrame(trace *TraceElement) TraceFrame { - tf := TraceFrame{Loc: *trace.loc} - if trace.context != nil { - // TODO(sbarzowski) maybe it should never be nil - tf.Name = *trace.context - } else { - tf.Name = "" - } - return tf -} - -// TraceElement represents tracing information, including a location range and a -// surrounding context. -// TODO(sbarzowski) better name -type TraceElement struct { - loc *ast.LocationRange - context ast.Context -} diff --git a/vendor/github.com/google/go-jsonnet/static_analyzer.go b/vendor/github.com/google/go-jsonnet/static_analyzer.go deleted file mode 100644 index 88d9377..0000000 --- a/vendor/github.com/google/go-jsonnet/static_analyzer.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -Copyright 2016 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "fmt" - - "github.com/google/go-jsonnet/ast" - "github.com/google/go-jsonnet/parser" -) - -type analysisState struct { - err error - freeVars ast.IdentifierSet -} - -func visitNext(a ast.Node, inObject bool, vars ast.IdentifierSet, state *analysisState) { - if state.err != nil { - return - } - state.err = analyzeVisit(a, inObject, vars) - state.freeVars.AddIdentifiers(a.FreeVariables()) -} - -func analyzeVisit(a ast.Node, inObject bool, vars ast.IdentifierSet) error { - s := &analysisState{freeVars: ast.NewIdentifierSet()} - - // TODO(sbarzowski) Test somehow that we're visiting all the nodes - switch a := a.(type) { - case *ast.Apply: - visitNext(a.Target, inObject, vars, s) - for _, arg := range a.Arguments.Positional { - visitNext(arg, inObject, vars, s) - } - for _, arg := range a.Arguments.Named { - visitNext(arg.Arg, inObject, vars, s) - } - case *ast.Array: - for _, elem := range a.Elements { - visitNext(elem, inObject, vars, s) - } - case *ast.Binary: - visitNext(a.Left, inObject, vars, s) - visitNext(a.Right, inObject, vars, s) - case *ast.Conditional: - visitNext(a.Cond, inObject, vars, s) - visitNext(a.BranchTrue, inObject, vars, s) - visitNext(a.BranchFalse, inObject, vars, s) - case *ast.Error: - visitNext(a.Expr, inObject, vars, s) - case *ast.Function: - newVars := vars.Clone() - for _, param := range a.Parameters.Required { - newVars.Add(param) - } - for _, param := range a.Parameters.Optional { - newVars.Add(param.Name) - } - for _, param := range a.Parameters.Optional { - visitNext(param.DefaultArg, inObject, newVars, s) - } - visitNext(a.Body, inObject, newVars, s) - // Parameters are free inside the body, but not visible here or outside - for _, param := range a.Parameters.Required { - s.freeVars.Remove(param) - } - for _, param := range a.Parameters.Optional { - s.freeVars.Remove(param.Name) - } - case *ast.Import: - //nothing to do here - case *ast.ImportStr: - //nothing to do here - case *ast.InSuper: - if !inObject { - return parser.MakeStaticError("Can't use super outside of an object.", *a.Loc()) - } - visitNext(a.Index, inObject, vars, s) - case *ast.SuperIndex: - if !inObject { - return parser.MakeStaticError("Can't use super outside of an object.", *a.Loc()) - } - visitNext(a.Index, inObject, vars, s) - case *ast.Index: - visitNext(a.Target, inObject, vars, s) - visitNext(a.Index, inObject, vars, s) - case *ast.Local: - newVars := vars.Clone() - for _, bind := range a.Binds { - newVars.Add(bind.Variable) - } - // Binds in local can be mutually or even self recursive - for _, bind := range a.Binds { - visitNext(bind.Body, inObject, newVars, s) - } - visitNext(a.Body, inObject, newVars, s) - - // Any usage of newly created variables inside are considered free - // but they are not here or outside - for _, bind := range a.Binds { - s.freeVars.Remove(bind.Variable) - } - case *ast.LiteralBoolean: - //nothing to do here - case *ast.LiteralNull: - //nothing to do here - case *ast.LiteralNumber: - //nothing to do here - case *ast.LiteralString: - //nothing to do here - case *ast.DesugaredObject: - for _, field := range a.Fields { - // Field names are calculated *outside* of the object - visitNext(field.Name, inObject, vars, s) - visitNext(field.Body, true, vars, s) - } - for _, assert := range a.Asserts { - visitNext(assert, true, vars, s) - } - case *ast.Self: - if !inObject { - return parser.MakeStaticError("Can't use self outside of an object.", *a.Loc()) - } - case *ast.Unary: - visitNext(a.Expr, inObject, vars, s) - case *ast.Var: - if !vars.Contains(a.Id) { - return parser.MakeStaticError(fmt.Sprintf("Unknown variable: %v", a.Id), *a.Loc()) - } - s.freeVars.Add(a.Id) - default: - panic(fmt.Sprintf("Unexpected node %#v", a)) - } - a.SetFreeVariables(s.freeVars.ToOrderedSlice()) - return s.err -} - -func analyze(node ast.Node) error { - return analyzeVisit(node, false, ast.NewIdentifierSet("std")) -} diff --git a/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.golden b/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.golden deleted file mode 100644 index 651b782..0000000 --- a/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.golden +++ /dev/null @@ -1,5 +0,0 @@ -testdata/object_comp_illegal:1:15-18 Object comprehension can only have one field. - -{ local x = 5 for y in [1, 2, 3] } - - diff --git a/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.jsonnet b/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.jsonnet deleted file mode 100644 index 3906d7c..0000000 --- a/vendor/github.com/google/go-jsonnet/testdata/object_comp_illegal.jsonnet +++ /dev/null @@ -1 +0,0 @@ -{ local x = 5 for y in [1, 2, 3] } diff --git a/vendor/github.com/google/go-jsonnet/thunks.go b/vendor/github.com/google/go-jsonnet/thunks.go deleted file mode 100644 index 5cfab6a..0000000 --- a/vendor/github.com/google/go-jsonnet/thunks.go +++ /dev/null @@ -1,334 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import "github.com/google/go-jsonnet/ast" - -// readyValue -// ------------------------------------- - -// readyValue is a wrapper which allows to use a concrete value where normally -// some evaluation would be expected (e.g. object fields). It's not part -// of the value interface for increased type safety (it would be very easy -// to "overevaluate" otherwise) and conveniently it also saves us from implementing -// these methods for all value types. -type readyValue struct { - content value -} - -func (rv *readyValue) getValue(i *interpreter, t *TraceElement) (value, error) { - return rv.content, nil -} - -func (rv *readyValue) bindToObject(sb selfBinding, origBinding bindingFrame, fieldName string) potentialValue { - return rv -} - -func (rv *readyValue) aPotentialValue() {} - -// potentialValues -// ------------------------------------- - -// evaluable is something that can be evaluated and the result is always the same -// It may require computation every time evaluation is requested (in contrast with -// potentialValue which guarantees that computation happens at most once). -type evaluable interface { - // fromWhere keeps the information from where the evaluation was requested. - getValue(i *interpreter, fromWhere *TraceElement) (value, error) -} - -// thunk holds code and environment in which the code is supposed to be evaluated -type thunk struct { - env environment - body ast.Node -} - -// TODO(sbarzowski) feedback from dcunnin: -// makeThunk returning a cachedThunk is weird. -// Maybe call thunk 'exprThunk' (or astThunk but then it looks like an AST node). -// Then call cachedThunk just thunk? -// Or, call this makeCachedExprThunk because that's what it really is. -func makeThunk(env environment, body ast.Node) *cachedThunk { - return makeCachedThunk(&thunk{ - env: env, - body: body, - }) -} - -func (t *thunk) getValue(i *interpreter, trace *TraceElement) (value, error) { - return i.EvalInCleanEnv(trace, &t.env, t.body, false) -} - -// callThunk represents a concrete, but not yet evaluated call to a function -type callThunk struct { - function evalCallable - args callArguments -} - -func makeCallThunk(ec evalCallable, args callArguments) potentialValue { - return makeCachedThunk(&callThunk{function: ec, args: args}) -} - -func call(ec evalCallable, arguments ...potentialValue) potentialValue { - return makeCallThunk(ec, args(arguments...)) -} - -func (th *callThunk) getValue(i *interpreter, trace *TraceElement) (value, error) { - evaluator := makeEvaluator(i, trace) - err := checkArguments(evaluator, th.args, th.function.Parameters()) - if err != nil { - return nil, err - } - return th.function.EvalCall(th.args, evaluator) -} - -// deferredThunk allows deferring creation of evaluable until it's actually needed. -// It's useful for self-recursive structures. -type deferredThunk func() evaluable - -func (th deferredThunk) getValue(i *interpreter, trace *TraceElement) (value, error) { - return th().getValue(i, trace) -} - -func makeDeferredThunk(th deferredThunk) potentialValue { - return makeCachedThunk(th) -} - -// cachedThunk is a wrapper that caches the value of a potentialValue after -// the first evaluation. -// Note: All potentialValues are required to provide the same value every time, -// so it's only there for efficiency. -// TODO(sbarzowski) investigate efficiency of various representations -type cachedThunk struct { - pv evaluable -} - -func makeCachedThunk(pv evaluable) *cachedThunk { - return &cachedThunk{pv} -} - -func (t *cachedThunk) getValue(i *interpreter, trace *TraceElement) (value, error) { - v, err := t.pv.getValue(i, trace) - if err != nil { - // TODO(sbarzowski) perhaps cache errors as well - // may be necessary if we allow handling them in any way - return nil, err - } - t.pv = &readyValue{v} - return v, nil -} - -func (t *cachedThunk) aPotentialValue() {} - -// errorThunk can be used when potentialValue is expected, but we already -// know that something went wrong -type errorThunk struct { - err error -} - -func (th *errorThunk) getValue(i *interpreter, trace *TraceElement) (value, error) { - return nil, th.err -} - -func makeErrorThunk(err error) *errorThunk { - return &errorThunk{err} -} - -func (th *errorThunk) aPotentialValue() {} - -// unboundFields -// ------------------------------------- - -type codeUnboundField struct { - body ast.Node -} - -func (f *codeUnboundField) bindToObject(sb selfBinding, origBindings bindingFrame, fieldName string) potentialValue { - // TODO(sbarzowski) better object names (perhaps include a field name too?) - return makeThunk(makeEnvironment(origBindings, sb), f.body) -} - -// Provide additional bindings for a field. It shadows bindings from the object. -type bindingsUnboundField struct { - inner unboundField - // in addition to "generic" binding frame from the object - bindings bindingFrame -} - -func (f *bindingsUnboundField) bindToObject(sb selfBinding, origBindings bindingFrame, fieldName string) potentialValue { - var upValues bindingFrame - upValues = make(bindingFrame) - for variable, pvalue := range origBindings { - upValues[variable] = pvalue - } - for variable, pvalue := range f.bindings { - upValues[variable] = pvalue - } - return f.inner.bindToObject(sb, upValues, fieldName) -} - -// PlusSuperUnboundField represents a `field+: ...` that hasn't been bound to an object. -type PlusSuperUnboundField struct { - inner unboundField -} - -func (f *PlusSuperUnboundField) bindToObject(sb selfBinding, origBinding bindingFrame, fieldName string) potentialValue { - left := tryObjectIndex(sb.super(), fieldName, withHidden) - right := f.inner.bindToObject(sb, origBinding, fieldName) - if left != nil { - return call(bopBuiltins[ast.BopPlus], left, right) - } - return right -} - -// evalCallables -// ------------------------------------- - -type closure struct { - // base environment of a closure - // arguments should be added to it, before executing it - env environment - function *ast.Function - params Parameters -} - -func forceThunks(e *evaluator, args bindingFrame) error { - for _, arg := range args { - _, err := e.evaluate(arg) - if err != nil { - return err - } - } - return nil -} - -func (closure *closure) EvalCall(arguments callArguments, e *evaluator) (value, error) { - argThunks := make(bindingFrame) - parameters := closure.Parameters() - for i, arg := range arguments.positional { - var name ast.Identifier - if i < len(parameters.required) { - name = parameters.required[i] - } else { - name = parameters.optional[i-len(parameters.required)].name - } - argThunks[name] = arg - } - - for _, arg := range arguments.named { - argThunks[arg.name] = arg.pv - } - - var calledEnvironment environment - - for i := range parameters.optional { - param := ¶meters.optional[i] - if _, exists := argThunks[param.name]; !exists { - argThunks[param.name] = makeDeferredThunk(func() evaluable { - // Default arguments are evaluated in the same environment as function body - return param.defaultArg.inEnv(&calledEnvironment) - }) - } - } - - if arguments.tailstrict { - err := forceThunks(e, argThunks) - if err != nil { - return nil, err - } - } - - calledEnvironment = makeEnvironment( - addBindings(closure.env.upValues, argThunks), - closure.env.sb, - ) - return e.evalInCleanEnv(&calledEnvironment, closure.function.Body, arguments.tailstrict) -} - -func (closure *closure) Parameters() Parameters { - return closure.params - -} - -func prepareClosureParameters(parameters ast.Parameters, env environment) Parameters { - optionalParameters := make([]namedParameter, 0, len(parameters.Optional)) - for _, named := range parameters.Optional { - optionalParameters = append(optionalParameters, namedParameter{ - name: named.Name, - defaultArg: &defaultArgument{ - body: named.DefaultArg, - }, - }) - } - return Parameters{ - required: parameters.Required, - optional: optionalParameters, - } -} - -func makeClosure(env environment, function *ast.Function) *closure { - return &closure{ - env: env, - function: function, - params: prepareClosureParameters(function.Parameters, env), - } -} - -// NativeFunction represents a function implemented in Go. -type NativeFunction struct { - Func func([]interface{}) (interface{}, error) - Params ast.Identifiers - Name string -} - -// EvalCall evaluates a call to a NativeFunction and returns the result. -func (native *NativeFunction) EvalCall(arguments callArguments, e *evaluator) (value, error) { - flatArgs := flattenArgs(arguments, native.Parameters()) - nativeArgs := make([]interface{}, 0, len(flatArgs)) - for _, arg := range flatArgs { - v, err := e.evaluate(arg) - if err != nil { - return nil, err - } - json, err := e.i.manifestJSON(e.trace, v) - if err != nil { - return nil, err - } - nativeArgs = append(nativeArgs, json) - } - resultJSON, err := native.Func(nativeArgs) - if err != nil { - return nil, e.Error(err.Error()) - } - return jsonToValue(e, resultJSON) -} - -// Parameters returns a NativeFunction's parameters. -func (native *NativeFunction) Parameters() Parameters { - return Parameters{required: native.Params} -} - -// partialPotentialValue -// ------------------------------------- - -type defaultArgument struct { - body ast.Node -} - -func (da *defaultArgument) inEnv(env *environment) potentialValue { - return makeThunk(*env, da.body) -} diff --git a/vendor/github.com/google/go-jsonnet/value.go b/vendor/github.com/google/go-jsonnet/value.go deleted file mode 100644 index 7b86330..0000000 --- a/vendor/github.com/google/go-jsonnet/value.go +++ /dev/null @@ -1,693 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "encoding/json" - "errors" - "fmt" - - "github.com/google/go-jsonnet/ast" -) - -// value represents a concrete jsonnet value of a specific type. -// Various operations on values are allowed, depending on their type. -// All values are of course immutable. -type value interface { - aValue() - - getType() *valueType -} - -type valueType struct { - name string -} - -var stringType = &valueType{"string"} -var numberType = &valueType{"number"} -var functionType = &valueType{"function"} -var objectType = &valueType{"object"} -var booleanType = &valueType{"boolean"} -var nullType = &valueType{"null"} -var arrayType = &valueType{"array"} - -// potentialValue is something that may be evaluated to a concrete value. -// The result of the evaluation may *NOT* depend on the current state -// of the interpreter. The evaluation may fail. -// -// It can be used to represent lazy values (e.g. variables values in jsonnet -// are not calculated before they are used). It is also a useful abstraction -// in other cases like error handling. -// -// It may or may not require arbitrary computation when getValue is called the -// first time, but any subsequent calls will immediately return. -// -// TODO(sbarzowski) perhaps call it just "Thunk"? -type potentialValue interface { - // fromWhere keeps the information from where the evaluation was requested. - getValue(i *interpreter, fromWhere *TraceElement) (value, error) - - aPotentialValue() -} - -// A set of variables with associated potentialValues. -type bindingFrame map[ast.Identifier]potentialValue - -type valueBase struct{} - -func (v *valueBase) aValue() {} - -// Primitive values -// ------------------------------------- - -// valueString represents a string value, internally using a []rune for quick -// indexing. -type valueString struct { - valueBase - // We use rune slices instead of strings for quick indexing - value []rune -} - -func (s *valueString) index(e *evaluator, index int) (value, error) { - if 0 <= index && index < s.length() { - return makeValueString(string(s.value[index])), nil - } - return nil, e.Error(fmt.Sprintf("Index %d out of bounds, not within [0, %v)", index, s.length())) -} - -func concatStrings(a, b *valueString) *valueString { - result := make([]rune, 0, len(a.value)+len(b.value)) - for _, r := range a.value { - result = append(result, r) - } - for _, r := range b.value { - result = append(result, r) - } - return &valueString{value: result} -} - -func stringLessThan(a, b *valueString) bool { - var length int - if len(a.value) < len(b.value) { - length = len(a.value) - } else { - length = len(b.value) - } - for i := 0; i < length; i++ { - if a.value[i] != b.value[i] { - return a.value[i] < b.value[i] - } - } - return len(a.value) < len(b.value) -} - -func stringEqual(a, b *valueString) bool { - if len(a.value) != len(b.value) { - return false - } - for i := 0; i < len(a.value); i++ { - if a.value[i] != b.value[i] { - return false - } - } - return true -} - -func (s *valueString) length() int { - return len(s.value) -} - -func (s *valueString) getString() string { - return string(s.value) -} - -func makeValueString(v string) *valueString { - return &valueString{value: []rune(v)} -} - -func (*valueString) getType() *valueType { - return stringType -} - -type valueBoolean struct { - valueBase - value bool -} - -func (*valueBoolean) getType() *valueType { - return booleanType -} - -func makeValueBoolean(v bool) *valueBoolean { - return &valueBoolean{value: v} -} - -func (b *valueBoolean) not() *valueBoolean { - return makeValueBoolean(!b.value) -} - -type valueNumber struct { - valueBase - value float64 -} - -func (*valueNumber) getType() *valueType { - return numberType -} - -func makeValueNumber(v float64) *valueNumber { - return &valueNumber{value: v} -} - -func intToValue(i int) *valueNumber { - return makeValueNumber(float64(i)) -} - -func int64ToValue(i int64) *valueNumber { - return makeValueNumber(float64(i)) -} - -type valueNull struct { - valueBase -} - -var nullValue valueNull - -func makeValueNull() *valueNull { - return &nullValue -} - -func (*valueNull) getType() *valueType { - return nullType -} - -// ast.Array -// ------------------------------------- - -type valueArray struct { - valueBase - elements []potentialValue -} - -func (arr *valueArray) index(e *evaluator, index int, tc tailCallStatus) (value, error) { - if 0 <= index && index < arr.length() { - return e.evaluateTailCall(arr.elements[index], tc) - } - return nil, e.Error(fmt.Sprintf("Index %d out of bounds, not within [0, %v)", index, arr.length())) -} - -func (arr *valueArray) length() int { - return len(arr.elements) -} - -func makeValueArray(elements []potentialValue) *valueArray { - // We don't want to keep a bigger array than necessary - // so we create a new one with minimal capacity - var arrayElems []potentialValue - if len(elements) == cap(elements) { - arrayElems = elements - } else { - arrayElems = make([]potentialValue, len(elements)) - for i := range elements { - arrayElems[i] = elements[i] - } - } - return &valueArray{ - elements: arrayElems, - } -} - -func concatArrays(a, b *valueArray) *valueArray { - result := make([]potentialValue, 0, len(a.elements)+len(b.elements)) - for _, r := range a.elements { - result = append(result, r) - } - for _, r := range b.elements { - result = append(result, r) - } - return &valueArray{elements: result} -} - -func (*valueArray) getType() *valueType { - return arrayType -} - -// ast.Function -// ------------------------------------- - -type valueFunction struct { - valueBase - ec evalCallable -} - -// TODO(sbarzowski) better name? -type evalCallable interface { - EvalCall(args callArguments, e *evaluator) (value, error) - Parameters() Parameters -} - -type partialPotentialValue interface { - inEnv(env *environment) potentialValue -} - -func (f *valueFunction) call(args callArguments) potentialValue { - return makeCallThunk(f.ec, args) -} - -func (f *valueFunction) parameters() Parameters { - return f.ec.Parameters() -} - -func checkArguments(e *evaluator, args callArguments, params Parameters) error { - received := make(map[ast.Identifier]bool) - accepted := make(map[ast.Identifier]bool) - - numPassed := len(args.positional) - numExpected := len(params.required) + len(params.optional) - - if numPassed > numExpected { - return e.Error(fmt.Sprintf("function expected %v positional argument(s), but got %v", numExpected, numPassed)) - } - - for _, param := range params.required { - accepted[param] = true - } - - for _, param := range params.optional { - accepted[param.name] = true - } - - for i := range args.positional { - if i < len(params.required) { - received[params.required[i]] = true - } else { - received[params.optional[i-len(params.required)].name] = true - } - } - - for _, arg := range args.named { - if _, present := received[arg.name]; present { - return e.Error(fmt.Sprintf("Argument %v already provided", arg.name)) - } - if _, present := accepted[arg.name]; !present { - return e.Error(fmt.Sprintf("function has no parameter %v", arg.name)) - } - received[arg.name] = true - } - - for _, param := range params.required { - if _, present := received[param]; !present { - return e.Error(fmt.Sprintf("Missing argument: %v", param)) - } - } - - return nil -} - -func (f *valueFunction) getType() *valueType { - return functionType -} - -// Parameters represents required position and optional named parameters for a -// function definition. -type Parameters struct { - required ast.Identifiers - optional []namedParameter -} - -type namedParameter struct { - name ast.Identifier - defaultArg potentialValueInEnv -} - -type potentialValueInEnv interface { - inEnv(env *environment) potentialValue -} - -type callArguments struct { - positional []potentialValue - named []namedCallArgument - tailstrict bool -} - -type namedCallArgument struct { - name ast.Identifier - pv potentialValue -} - -func args(xs ...potentialValue) callArguments { - return callArguments{positional: xs} -} - -// Objects -// ------------------------------------- - -// Object is a value that allows indexing (taking a value of a field) -// and combining through mixin inheritence (operator +). -// -// Note that every time a field is indexed it evaluates it again, there is -// no caching of field values. See: https://github.com/google/go-jsonnet/issues/113 -type valueObject interface { - value - inheritanceSize() int - index(e *evaluator, field string) (value, error) - assertionsChecked() bool - setAssertionsCheckResult(err error) - getAssertionsCheckResult() error -} - -type selfBinding struct { - // self is the lexically nearest object we are in, or nil. Note - // that this is not the same as context, because we could be inside a function, - // inside an object and then context would be the function, but self would still point - // to the object. - self valueObject - - // superDepth is the "super" level of self. Sometimes, we look upwards in the - // inheritance tree, e.g. via an explicit use of super, or because a given field - // has been inherited. When evaluating a field from one of these super objects, - // we need to bind self to the concrete object (so self must point - // there) but uses of super should be resolved relative to the object whose - // field we are evaluating. Thus, we keep a second field for that. This is - // usually 0, unless we are evaluating a super object's field. - // TODO(sbarzowski) provide some examples - // TODO(sbarzowski) provide somewhere a complete explanation of the object model - superDepth int -} - -func makeUnboundSelfBinding() selfBinding { - return selfBinding{ - nil, - 123456789, // poison value - } -} - -func objectBinding(obj valueObject) selfBinding { - return selfBinding{self: obj, superDepth: 0} -} - -func (sb selfBinding) super() selfBinding { - return selfBinding{self: sb.self, superDepth: sb.superDepth + 1} -} - -// Hidden represents wether to include hidden fields in a lookup. -type Hidden int - -// With/without hidden fields -const ( - withHidden Hidden = iota - withoutHidden -) - -func withHiddenFromBool(with bool) Hidden { - if with { - return withHidden - } - return withoutHidden -} - -// Hack - we need to distinguish not-checked-yet and no error situations -// so we have a special value for no error and nil means that we don't know yet. -var errNoErrorInObjectInvariants = errors.New("no error - assertions passed") - -type valueObjectBase struct { - valueBase - assertionError error -} - -func (*valueObjectBase) getType() *valueType { - return objectType -} - -func (obj *valueObjectBase) assertionsChecked() bool { - // nil - not checked yet - // errNoErrorInObjectInvariants - we checked and there is no error (or checking in progress) - return obj.assertionError != nil -} - -func (obj *valueObjectBase) setAssertionsCheckResult(err error) { - if err != nil { - obj.assertionError = err - } else { - obj.assertionError = errNoErrorInObjectInvariants - } -} - -func (obj *valueObjectBase) getAssertionsCheckResult() error { - if obj.assertionError == nil { - panic("Assertions not checked yet") - } - if obj.assertionError == errNoErrorInObjectInvariants { - return nil - } - return obj.assertionError -} - -// valueSimpleObject represents a flat object (no inheritance). -// Note that it can be used as part of extended objects -// in inheritance using operator +. -// -// Fields are late bound (to object), so they are not values or potentialValues. -// This is important for inheritance, for example: -// Let a = {x: 42} and b = {y: self.x}. Evaluating b.y is an error, -// but (a+b).y evaluates to 42. -type valueSimpleObject struct { - valueObjectBase - upValues bindingFrame - fields simpleObjectFieldMap - asserts []unboundField -} - -func checkAssertionsHelper(e *evaluator, obj valueObject, curr valueObject, superDepth int) error { - switch curr := curr.(type) { - case *valueExtendedObject: - err := checkAssertionsHelper(e, obj, curr.right, superDepth) - if err != nil { - return err - } - err = checkAssertionsHelper(e, obj, curr.left, superDepth+curr.right.inheritanceSize()) - if err != nil { - return err - } - return nil - case *valueSimpleObject: - for _, assert := range curr.asserts { - _, err := e.evaluate(assert.bindToObject(selfBinding{self: obj, superDepth: superDepth}, curr.upValues, "")) - if err != nil { - return err - } - } - return nil - default: - panic(fmt.Sprintf("Unknown object type %#v", obj)) - } -} - -func checkAssertions(e *evaluator, obj valueObject) error { - if !obj.assertionsChecked() { - // Assertions may refer to the object that will normally - // trigger checking of assertions, resulting in an endless recursion. - // To avoid that, while we check them, we treat them as already passed. - obj.setAssertionsCheckResult(errNoErrorInObjectInvariants) - obj.setAssertionsCheckResult(checkAssertionsHelper(e, obj, obj, 0)) - } - return obj.getAssertionsCheckResult() -} - -func (o *valueSimpleObject) index(e *evaluator, field string) (value, error) { - return objectIndex(e, objectBinding(o), field) -} - -func (*valueSimpleObject) inheritanceSize() int { - return 1 -} - -func makeValueSimpleObject(b bindingFrame, fields simpleObjectFieldMap, asserts []unboundField) *valueSimpleObject { - return &valueSimpleObject{ - upValues: b, - fields: fields, - asserts: asserts, - } -} - -type simpleObjectFieldMap struct { - keys []string - values map[string]simpleObjectField -} - -type simpleObjectField struct { - hide ast.ObjectFieldHide - field unboundField -} - -// unboundField is a field that doesn't know yet in which object it is. -type unboundField interface { - bindToObject(sb selfBinding, origBinding bindingFrame, fieldName string) potentialValue -} - -// valueExtendedObject represents an object created through inheritence (left + right). -// We represent it as the pair of objects. This results in a tree-like structure. -// Example: -// (A + B) + C -// -// + -// / \ -// + C -// / \ -// A B -// -// It is possible to create an arbitrary binary tree. -// Note however, that because + is associative the only thing that matters -// is the order of leafs. -// -// This represenation allows us to implement "+" in O(1), -// but requires going through the tree and trying subsequent leafs for field access. -// -type valueExtendedObject struct { - valueObjectBase - left, right valueObject - totalInheritanceSize int -} - -func (o *valueExtendedObject) index(e *evaluator, field string) (value, error) { - return objectIndex(e, objectBinding(o), field) -} - -func (o *valueExtendedObject) inheritanceSize() int { - return o.totalInheritanceSize -} - -func makeValueExtendedObject(left, right valueObject) *valueExtendedObject { - return &valueExtendedObject{ - left: left, - right: right, - totalInheritanceSize: left.inheritanceSize() + right.inheritanceSize(), - } -} - -// findField returns a field in object curr, with superDepth at least minSuperDepth -// It also returns an associated bindingFrame and actual superDepth that the field -// was found at. -func findField(curr value, minSuperDepth int, f string) (*simpleObjectField, bindingFrame, int) { - switch curr := curr.(type) { - case *valueExtendedObject: - if curr.right.inheritanceSize() > minSuperDepth { - field, frame, counter := findField(curr.right, minSuperDepth, f) - if field != nil { - return field, frame, counter - } - } - field, frame, counter := findField(curr.left, minSuperDepth-curr.right.inheritanceSize(), f) - return field, frame, counter + curr.right.inheritanceSize() - - case *valueSimpleObject: - if minSuperDepth <= 0 { - if field, ok := curr.fields.values[f]; ok { - return &field, curr.upValues, 0 - } - } - return nil, nil, 0 - default: - panic(fmt.Sprintf("Unknown object type %#v", curr)) - } -} - -func objectIndex(e *evaluator, sb selfBinding, fieldName string) (value, error) { - err := checkAssertions(e, sb.self) - if err != nil { - return nil, err - } - if sb.superDepth >= sb.self.inheritanceSize() { - return nil, e.Error("Attempt to use super when there is no super class.") - } - objp := tryObjectIndex(sb, fieldName, withHidden) - if objp == nil { - return nil, e.Error(fmt.Sprintf("Field does not exist: %s", fieldName)) - } - return e.evaluate(objp) -} - -func tryObjectIndex(sb selfBinding, fieldName string, h Hidden) potentialValue { - field, upValues, foundAt := findField(sb.self, sb.superDepth, fieldName) - if field == nil || (h == withoutHidden && field.hide == ast.ObjectFieldHidden) { - return nil - } - fieldSelfBinding := selfBinding{self: sb.self, superDepth: foundAt} - - return field.field.bindToObject(fieldSelfBinding, upValues, fieldName) -} - -type fieldHideMap struct { - keys []string - values map[string]ast.ObjectFieldHide -} - -func objectFieldsVisibility(obj valueObject) fieldHideMap { - r := fieldHideMap{ - values: make(map[string]ast.ObjectFieldHide), - } - switch obj := obj.(type) { - case *valueExtendedObject: - r = objectFieldsVisibility(obj.left) - rightMap := objectFieldsVisibility(obj.right) - for _, k := range rightMap.keys { - v := rightMap.values[k] - if v == ast.ObjectFieldInherit { - if _, alreadyExists := r.values[k]; !alreadyExists { - r.keys = append(r.keys, k) - r.values[k] = v - } - } else { - r.values[k] = v - } - } - return r - - case *valueSimpleObject: - for _, fieldName := range obj.fields.keys { - fieldValue := obj.fields.values[fieldName] - r.keys = append(r.keys, fieldName) - r.values[fieldName] = fieldValue.hide - } - } - return r -} - -func objectFields(obj valueObject, h Hidden) []string { - var r []string - fields := objectFieldsVisibility(obj) - for _, fieldName := range fields.keys { - hide := fields.values[fieldName] - if h == withHidden || hide != ast.ObjectFieldHidden { - r = append(r, fieldName) - } - } - return r -} - -func duplicateFieldNameErrMsg(fieldName string) string { - return fmt.Sprintf("Duplicate field name: %s", unparseString(fieldName)) -} - -type orderedMap struct { - keys []string - values map[string]interface{} -} - -func (om orderedMap) MarshalJSON() ([]byte, error) { - return json.Marshal(om.values) -} diff --git a/vendor/github.com/google/go-jsonnet/vm.go b/vendor/github.com/google/go-jsonnet/vm.go deleted file mode 100644 index 050a9e2..0000000 --- a/vendor/github.com/google/go-jsonnet/vm.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -Copyright 2017 Google Inc. All rights reserved. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package jsonnet - -import ( - "errors" - "fmt" - "runtime/debug" - - "github.com/google/go-jsonnet/ast" - "github.com/google/go-jsonnet/parser" -) - -// Note: There are no garbage collection params because we're using the native -// Go garbage collector. - -// VM is the core interpreter and is the touchpoint used to parse and execute -// Jsonnet. -type VM struct { - MaxStack int - ext vmExtMap - tla vmExtMap - nativeFuncs map[string]*NativeFunction - importer Importer - ErrorFormatter ErrorFormatter - StringOutput bool - KeepOrder bool -} - -// External variable or top level argument provided before execution -type vmExt struct { - // jsonnet code to evaluate or string to pass - value string - // isCode determines whether it should be evaluated as jsonnet code or - // treated as string. - isCode bool -} - -type vmExtMap map[string]vmExt - -// MakeVM creates a new VM with default parameters. -func MakeVM() *VM { - return &VM{ - MaxStack: 500, - ext: make(vmExtMap), - tla: make(vmExtMap), - nativeFuncs: make(map[string]*NativeFunction), - ErrorFormatter: &termErrorFormatter{pretty: false, maxStackTraceSize: 20}, - importer: &FileImporter{}, - } -} - -// ExtVar binds a Jsonnet external var to the given value. -func (vm *VM) ExtVar(key string, val string) { - vm.ext[key] = vmExt{value: val, isCode: false} -} - -// ExtCode binds a Jsonnet external code var to the given code. -func (vm *VM) ExtCode(key string, val string) { - vm.ext[key] = vmExt{value: val, isCode: true} -} - -// TLAVar binds a Jsonnet top level argument to the given value. -func (vm *VM) TLAVar(key string, val string) { - vm.tla[key] = vmExt{value: val, isCode: false} -} - -// TLACode binds a Jsonnet top level argument to the given code. -func (vm *VM) TLACode(key string, val string) { - vm.tla[key] = vmExt{value: val, isCode: true} -} - -// Importer sets Importer to use during evaluation (import callback). -func (vm *VM) Importer(i Importer) { - vm.importer = i -} - -type evalKind int - -const ( - evalKindRegular evalKind = iota - evalKindMulti = iota - evalKindStream = iota -) - -func (vm *VM) evaluateSnippet(filename string, snippet string, kind evalKind) (output interface{}, err error) { - defer func() { - if r := recover(); r != nil { - err = fmt.Errorf("(CRASH) %v\n%s", r, debug.Stack()) - } - }() - node, err := snippetToAST(filename, snippet) - if err != nil { - return "", err - } - switch kind { - case evalKindRegular: - output, err = evaluate(node, vm.ext, vm.tla, vm.nativeFuncs, vm.MaxStack, vm.KeepOrder, vm.importer, vm.StringOutput) - case evalKindMulti: - output, err = evaluateMulti(node, vm.ext, vm.tla, vm.nativeFuncs, vm.MaxStack, vm.KeepOrder, vm.importer, vm.StringOutput) - case evalKindStream: - output, err = evaluateStream(node, vm.ext, vm.tla, vm.nativeFuncs, vm.MaxStack, vm.KeepOrder, vm.importer) - } - if err != nil { - return "", err - } - return output, nil -} - -// NativeFunction registers a native function. -func (vm *VM) NativeFunction(f *NativeFunction) { - vm.nativeFuncs[f.Name] = f -} - -// EvaluateSnippet evaluates a string containing Jsonnet code, return a JSON -// string. -// -// The filename parameter is only used for error messages. -func (vm *VM) EvaluateSnippet(filename string, snippet string) (json string, formattedErr error) { - output, err := vm.evaluateSnippet(filename, snippet, evalKindRegular) - if err != nil { - return "", errors.New(vm.ErrorFormatter.Format(err)) - } - json = output.(string) - return -} - -// EvaluateSnippetStream evaluates a string containing Jsonnet code to an array. -// The array is returned as an array of JSON strings. -// -// The filename parameter is only used for error messages. -func (vm *VM) EvaluateSnippetStream(filename string, snippet string) (docs []string, formattedErr error) { - output, err := vm.evaluateSnippet(filename, snippet, evalKindStream) - if err != nil { - return nil, errors.New(vm.ErrorFormatter.Format(err)) - } - docs = output.([]string) - return -} - -// EvaluateSnippetMulti evaluates a string containing Jsonnet code to key-value -// pairs. The keys are field name strings and the values are JSON strings. -// -// The filename parameter is only used for error messages. -func (vm *VM) EvaluateSnippetMulti(filename string, snippet string) (files map[string]string, formattedErr error) { - output, err := vm.evaluateSnippet(filename, snippet, evalKindMulti) - if err != nil { - return nil, errors.New(vm.ErrorFormatter.Format(err)) - } - files = output.(map[string]string) - return -} - -func snippetToAST(filename string, snippet string) (ast.Node, error) { - tokens, err := parser.Lex(filename, snippet) - if err != nil { - return nil, err - } - node, err := parser.Parse(tokens) - if err != nil { - return nil, err - } - err = desugarFile(&node) - if err != nil { - return nil, err - } - err = analyze(node) - if err != nil { - return nil, err - } - return node, nil -} - -// SnippetToAST parses a snippet and returns the resulting AST. -func SnippetToAST(filename string, snippet string) (ast.Node, error) { - return snippetToAST(filename, snippet) -} - -// Version returns the Jsonnet version number. -func Version() string { - return "v0.10.0" -} diff --git a/vendor/github.com/jackspirou/syscerts/LICENSE b/vendor/github.com/jackspirou/syscerts/LICENSE deleted file mode 100644 index 8dada3e..0000000 --- a/vendor/github.com/jackspirou/syscerts/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/jackspirou/syscerts/root.go b/vendor/github.com/jackspirou/syscerts/root.go deleted file mode 100644 index 7b9c76d..0000000 --- a/vendor/github.com/jackspirou/syscerts/root.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2012 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 syscerts - -import ( - "crypto/x509" - "sync" -) - -var ( - once sync.Once - systemRoots *x509.CertPool -) - -// SystemRootsPool attempts to find and return a pool of all all installed -// system certificates. -func SystemRootsPool() *x509.CertPool { - once.Do(initSystemRoots) - return systemRoots -} diff --git a/vendor/github.com/jackspirou/syscerts/root_bsd.go b/vendor/github.com/jackspirou/syscerts/root_bsd.go deleted file mode 100644 index be18ab1..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_bsd.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2015 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. - -// +build dragonfly freebsd netbsd openbsd - -package syscerts - -// Possible certificate files; stop after finding one. -var certFiles = []string{ - "/usr/local/share/certs/ca-root-nss.crt", // FreeBSD/DragonFly - "/etc/ssl/cert.pem", // OpenBSD - "/etc/openssl/certs/ca-certificates.crt", // NetBSD -} diff --git a/vendor/github.com/jackspirou/syscerts/root_cgo_darwin.go b/vendor/github.com/jackspirou/syscerts/root_cgo_darwin.go deleted file mode 100644 index 0f39879..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_cgo_darwin.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2011 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. - -// +build cgo,darwin,!arm,!arm64,!ios - -package syscerts - -/* -#cgo CFLAGS: -mmacosx-version-min=10.6 -D__MAC_OS_X_VERSION_MAX_ALLOWED=1060 -#cgo LDFLAGS: -framework CoreFoundation -framework Security - -#include -#include - -// FetchPEMRootsC fetches the system's list of trusted X.509 root certificates. -// -// On success it returns 0 and fills pemRoots with a CFDataRef that contains the extracted root -// certificates of the system. On failure, the function returns -1. -// -// Note: The CFDataRef returned in pemRoots must be released (using CFRelease) after -// we've consumed its content. -int FetchPEMRootsC(CFDataRef *pemRoots) { - if (pemRoots == NULL) { - return -1; - } - - CFArrayRef certs = NULL; - OSStatus err = SecTrustCopyAnchorCertificates(&certs); - if (err != noErr) { - return -1; - } - - CFMutableDataRef combinedData = CFDataCreateMutable(kCFAllocatorDefault, 0); - int i, ncerts = CFArrayGetCount(certs); - for (i = 0; i < ncerts; i++) { - CFDataRef data = NULL; - SecCertificateRef cert = (SecCertificateRef)CFArrayGetValueAtIndex(certs, i); - if (cert == NULL) { - continue; - } - - // Note: SecKeychainItemExport is deprecated as of 10.7 in favor of SecItemExport. - // Once we support weak imports via cgo we should prefer that, and fall back to this - // for older systems. - err = SecKeychainItemExport(cert, kSecFormatX509Cert, kSecItemPemArmour, NULL, &data); - if (err != noErr) { - continue; - } - - if (data != NULL) { - CFDataAppendBytes(combinedData, CFDataGetBytePtr(data), CFDataGetLength(data)); - CFRelease(data); - } - } - - CFRelease(certs); - - *pemRoots = combinedData; - return 0; -} -*/ - -/* -import "C" -import ( - "crypto/x509" - "unsafe" -) - -func initSystemRoots() { - roots := x509.NewCertPool() - - var data C.CFDataRef = nil - err := C.FetchPEMRootsC(&data) - if err == -1 { - return - } - - defer C.CFRelease(C.CFTypeRef(data)) - buf := C.GoBytes(unsafe.Pointer(C.CFDataGetBytePtr(data)), C.int(C.CFDataGetLength(data))) - roots.AppendCertsFromPEM(buf) - systemRoots = roots -} -*/ diff --git a/vendor/github.com/jackspirou/syscerts/root_darwin.go b/vendor/github.com/jackspirou/syscerts/root_darwin.go deleted file mode 100644 index b7d4a57..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_darwin.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2013 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 root_darwin_arm_gen.go -output root_darwin_armx.go - -package syscerts - -import ( - "crypto/x509" - "os" - "os/exec" -) - -func execSecurityRoots() (*x509.CertPool, error) { - roots := x509.NewCertPool() - cmd := exec.Command("/usr/bin/security", "find-certificate", "-a", "-p", "/System/Library/Keychains/SystemRootCertificates.keychain") - data, err := cmd.Output() - if err != nil { - return nil, err - } - roots.AppendCertsFromPEM(data) - - // if available add the Mac OSX System Keychain - if _, err := os.Stat("/Library/Keychains/System.keychain"); err == nil { - cmd = exec.Command("/usr/bin/security", "find-certificate", "-a", "-p", "/Library/Keychains/System.keychain") - data, err = cmd.Output() - if err != nil { - return nil, err - } - roots.AppendCertsFromPEM(data) - } - - return roots, nil -} - -func initSystemRoots() { - systemRoots, _ = execSecurityRoots() -} diff --git a/vendor/github.com/jackspirou/syscerts/root_darwin_arm_gen.go b/vendor/github.com/jackspirou/syscerts/root_darwin_arm_gen.go deleted file mode 100644 index 51581df..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_darwin_arm_gen.go +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright 2015 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. - -// +build ignore - -// Generates root_darwin_armx.go. -// -// As of iOS 8, there is no API for querying the system trusted X.509 root -// certificates. We could use SecTrustEvaluate to verify that a trust chain -// exists for a certificate, but the x509 API requires returning the entire -// chain. -// -// Apple publishes the list of trusted root certificates for iOS on -// support.apple.com. So we parse the list and extract the certificates from -// an OS X machine and embed them into the x509 package. -package main - -import ( - "bytes" - "crypto/x509" - "encoding/pem" - "flag" - "fmt" - "go/format" - "io/ioutil" - "log" - "math/big" - "net/http" - "os/exec" - "strings" -) - -var output = flag.String("output", "root_darwin_armx.go", "file name to write") - -func main() { - certs, err := selectCerts() - if err != nil { - log.Fatal(err) - } - - buf := new(bytes.Buffer) - - fmt.Fprintf(buf, "// Created by root_darwin_arm_gen --output %s; DO NOT EDIT\n", *output) - fmt.Fprintf(buf, "%s", header) - - fmt.Fprintf(buf, "const systemRootsPEM = `\n") - for _, cert := range certs { - b := &pem.Block{ - Type: "CERTIFICATE", - Bytes: cert.Raw, - } - if err := pem.Encode(buf, b); err != nil { - log.Fatal(err) - } - } - fmt.Fprintf(buf, "`") - - source, err := format.Source(buf.Bytes()) - if err != nil { - log.Fatal("source format error:", err) - } - if err := ioutil.WriteFile(*output, source, 0644); err != nil { - log.Fatal(err) - } -} - -func selectCerts() ([]*x509.Certificate, error) { - ids, err := fetchCertIDs() - if err != nil { - return nil, err - } - - scerts, err := sysCerts() - if err != nil { - return nil, err - } - - var certs []*x509.Certificate - for _, id := range ids { - sn, ok := big.NewInt(0).SetString(id.serialNumber, 0) // 0x prefix selects hex - if !ok { - return nil, fmt.Errorf("invalid serial number: %q", id.serialNumber) - } - ski, ok := big.NewInt(0).SetString(id.subjectKeyID, 0) - if !ok { - return nil, fmt.Errorf("invalid Subject Key ID: %q", id.subjectKeyID) - } - - for _, cert := range scerts { - if sn.Cmp(cert.SerialNumber) != 0 { - continue - } - cski := big.NewInt(0).SetBytes(cert.SubjectKeyId) - if ski.Cmp(cski) != 0 { - continue - } - certs = append(certs, cert) - break - } - } - return certs, nil -} - -func sysCerts() (certs []*x509.Certificate, err error) { - cmd := exec.Command("/usr/bin/security", "find-certificate", "-a", "-p", "/System/Library/Keychains/SystemRootCertificates.keychain") - data, err := cmd.Output() - if err != nil { - return nil, err - } - for len(data) > 0 { - var block *pem.Block - block, data = pem.Decode(data) - if block == nil { - break - } - if block.Type != "CERTIFICATE" || len(block.Headers) != 0 { - continue - } - - cert, err := x509.ParseCertificate(block.Bytes) - if err != nil { - continue - } - certs = append(certs, cert) - } - return certs, nil -} - -type certID struct { - serialNumber string - subjectKeyID string -} - -// fetchCertIDs fetches IDs of iOS X509 certificates from apple.com. -func fetchCertIDs() ([]certID, error) { - resp, err := http.Get("https://support.apple.com/en-us/HT204132") - if err != nil { - return nil, err - } - defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) - if err != nil { - return nil, err - } - text := string(body) - text = text[strings.Index(text, "
")] - - lines := strings.Split(text, "\n") - var ids []certID - var id certID - for i, ln := range lines { - if i == len(lines)-1 { - break - } - const sn = "Serial Number:" - if ln == sn { - id.serialNumber = "0x" + strings.Replace(strings.TrimSpace(lines[i+1]), ":", "", -1) - continue - } - if strings.HasPrefix(ln, sn) { - // extract hex value from parentheses. - id.serialNumber = ln[strings.Index(ln, "(")+1 : len(ln)-1] - continue - } - if strings.TrimSpace(ln) == "X509v3 Subject Key Identifier:" { - id.subjectKeyID = "0x" + strings.Replace(strings.TrimSpace(lines[i+1]), ":", "", -1) - ids = append(ids, id) - id = certID{} - } - } - return ids, nil -} - -const header = ` -// Copyright 2015 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. - -// +build cgo -// +build darwin -// +build arm arm64 - -package syscerts - -func initSystemRoots() { - systemRoots = x509.NewCertPool() - systemRoots.AppendCertsFromPEM([]byte(systemRootsPEM)) -} -` diff --git a/vendor/github.com/jackspirou/syscerts/root_darwin_armx.go b/vendor/github.com/jackspirou/syscerts/root_darwin_armx.go deleted file mode 100644 index 5eca670..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_darwin_armx.go +++ /dev/null @@ -1,4909 +0,0 @@ -// Created by root_darwin_arm_gen --output root_darwin_armx.go; DO NOT EDIT - -// Copyright 2015 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. - -// +build cgo -// +build darwin -// +build arm arm64 ios - -package syscerts - -import "crypto/x509" - -func initSystemRoots() { - systemRoots = x509.NewCertPool() - systemRoots.AppendCertsFromPEM([]byte(systemRootsPEM)) -} - -const systemRootsPEM = ` ------BEGIN CERTIFICATE----- -MIIF8DCCA9igAwIBAgIPBuhGJy8fCo/RhFzjafbVMA0GCSqGSIb3DQEBBQUAMDgx -CzAJBgNVBAYTAkVTMRQwEgYDVQQKDAtJWkVOUEUgUy5BLjETMBEGA1UEAwwKSXpl -bnBlLmNvbTAeFw0wNzEyMTMxMzA4MjdaFw0zNzEyMTMwODI3MjVaMDgxCzAJBgNV -BAYTAkVTMRQwEgYDVQQKDAtJWkVOUEUgUy5BLjETMBEGA1UEAwwKSXplbnBlLmNv -bTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMnTesoPHqynhugWZWqx -whtFMnGV2f4QW8yv56V5AY+Jw8ryVXH3d753lPNypCxE2J6SmxQ6oeckkAoKVo7F -2CaU4dlI4S0+2gpy3aOZFdqBoof0e24md4lYrdbrDLJBenNubdt6eEHpCIgSfocu -ZhFjbFT7PJ1ywLwu/8K33Q124zrX97RovqL144FuwUZvXY3gTcZUVYkaMzEKsVe5 -o4qYw+w7NMWVQWl+dcI8IMVhulFHoCCQk6GQS/NOfIVFVJrRBSZBsLVNHTO+xAPI -JXzBcNs79AktVCdIrC/hxKw+yMuSTFM5NyPs0wH54AlETU1kwOENWocivK0bo/4m -tRXzp/yEGensoYi0RGmEg/OJ0XQGqcwL1sLeJ4VQJsoXuMl6h1YsGgEebL4TrRCs -tST1OJGh1kva8bvS3ke18byB9llrzxlT6Y0Vy0rLqW9E5RtBz+GGp8rQap+8TI0G -M1qiheWQNaBiXBZO8OOi+gMatCxxs1gs3nsL2xoP694hHwZ3BgOwye+Z/MC5TwuG -KP7Suerj2qXDR2kS4Nvw9hmL7Xtw1wLW7YcYKCwEJEx35EiKGsY7mtQPyvp10gFA -Wo15v4vPS8+qFsGV5K1Mij4XkdSxYuWC5YAEpAN+jb/af6IPl08M0w3719Hlcn4c -yHf/W5oPt64FRuXxqBbsR6QXAgMBAAGjgfYwgfMwgbAGA1UdEQSBqDCBpYEPaW5m -b0BpemVucGUuY29tpIGRMIGOMUcwRQYDVQQKDD5JWkVOUEUgUy5BLiAtIENJRiBB -MDEzMzcyNjAtUk1lcmMuVml0b3JpYS1HYXN0ZWl6IFQxMDU1IEY2MiBTODFDMEEG -A1UECQw6QXZkYSBkZWwgTWVkaXRlcnJhbmVvIEV0b3JiaWRlYSAxNCAtIDAxMDEw -IFZpdG9yaWEtR2FzdGVpejAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB -BjAdBgNVHQ4EFgQUHRxlDqjyJXu0kc/ksbHmvVV0bAUwDQYJKoZIhvcNAQEFBQAD -ggIBAMeBRm8hGE+gBe/n1bqXUKJg7aWSFBpSm/nxiEqg3Hh10dUflU7F57dp5iL0 -+CmoKom+z892j+Mxc50m0xwbRxYpB2iEitL7sRskPtKYGCwkjq/2e+pEFhsqxPqg -l+nqbFik73WrAGLRne0TNtsiC7bw0fRue0aHwp28vb5CO7dz0JoqPLRbEhYArxk5 -ja2DUBzIgU+9Ag89njWW7u/kwgN8KRwCfr00J16vU9adF79XbOnQgxCvv11N75B7 -XSus7Op9ACYXzAJcY9cZGKfsK8eKPlgOiofmg59OsjQerFQJTx0CCzl+gQgVuaBp -E8gyK+OtbBPWg50jLbJtooiGfqgNASYJQNntKE6MkyQP2/EeTXp6WuKlWPHcj1+Z -ggwuz7LdmMySlD/5CbOlliVbN/UShUHiGUzGigjB3Bh6Dx4/glmimj4/+eAJn/3B -kUtdyXvWton83x18hqrNA/ILUpLxYm9/h+qrdslsUMIZgq+qHfUgKGgu1fxkN0/P -pUTEvnK0jHS0bKf68r10OEMr3q/53NjgnZ/cPcqlY0S/kqJPTIAcuxrDmkoEVU3K -7iYLHL8CxWTTnn7S05EcS6L1HOUXHA0MUqORH5zwIe0ClG+poEnK6EOMxPQ02nwi -o8ZmPrgbBYhdurz3vOXcFD2nhqi2WVIhA16L4wTtSyoeo09Q ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEKjCCAxKgAwIBAgIEOGPe+DANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChML -RW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBp -bmNvcnAuIGJ5IHJlZi4gKGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5 -IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVudHJ1c3QubmV0IENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0yOTA3 -MjQxNDE1MTJaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3d3d3 -LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxp -YWIuKTElMCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEG -A1UEAxMqRW50cnVzdC5uZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgp -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqjIAcVFmQq -K0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOLGp18EzoOH1u3Hs/lJBQe -sYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSGlVuX -MlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVT -XTzWnLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/ -HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH -4QIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNV -HQ4EFgQUVeSB0RGAvtiJuQijMfmhJAkWuXAwDQYJKoZIhvcNAQEFBQADggEBADub -j1abMOdTmXx6eadNl9cZlZD7Bh/KM3xGY4+WZiT6QBshJ8rmcnPyT/4xmf3IDExo -U8aAghOY+rat2l098c5u9hURlIIM7j+VrxGrD9cv3h8Dj1csHsm7mhpElesYT6Yf -zX1XEC+bBAlahLVu2B064dae0Wx5XnkcFMXj0EyTO2U87d89vqbllRrDtRnDvV5b -u/8j72gZyxKTJ1wDLW8w0B62GqzeWvfRqqgnpv55gcR5mTNXuhKwqeBCbJPKVt7+ -bYQLCIt+jerXmCHG8+c8eS9enNFMFY3h7CI3zJpDC5fcgJCNs2ebb0gIFVbPv/Er -fF6adulZkMV8gzURZVE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFwTCCA6mgAwIBAgIITrIAZwwDXU8wDQYJKoZIhvcNAQEFBQAwSTELMAkGA1UE -BhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEjMCEGA1UEAxMaU3dpc3NTaWdu -IFBsYXRpbnVtIENBIC0gRzIwHhcNMDYxMDI1MDgzNjAwWhcNMzYxMDI1MDgzNjAw -WjBJMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFHMSMwIQYDVQQD -ExpTd2lzc1NpZ24gUGxhdGludW0gQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQAD -ggIPADCCAgoCggIBAMrfogLi2vj8Bxax3mCq3pZcZB/HL37PZ/pEQtZ2Y5Wu669y -IIpFR4ZieIbWIDkm9K6j/SPnpZy1IiEZtzeTIsBQnIJ71NUERFzLtMKfkr4k2Htn -IuJpX+UFeNSH2XFwMyVTtIc7KZAoNppVRDBopIOXfw0enHb/FZ1glwCNioUD7IC+ -6ixuEFGSzH7VozPY1kneWCqv9hbrS3uQMpe5up1Y8fhXSQQeol0GcN1x2/ndi5ob -jM89o03Oy3z2u5yg+gnOI2Ky6Q0f4nIoj5+saCB9bzuohTEJfwvH6GXp43gOCWcw -izSC+13gzJ2BbWLuCB4ELE6b7P6pT1/9aXjvCR+htL/68++QHkwFix7qepF6w9fl -+zC8bBsQWJj3Gl/QKTIDE0ZNYWqFTFJ0LwYfexHihJfGmfNtf9dng34TaNhxKFrY -zt3oEBSa/m0jh26OWnA81Y0JAKeqvLAxN23IhBQeW71FYyBrS3SMvds6DsHPWhaP -pZjydomyExI7C3d3rLvlPClKknLKYRorXkzig3R3+jVIeoVNjZpTxN94ypeRSCtF -KwH3HBqi7Ri6Cr2D+m+8jVeTO9TUps4e8aCxzqv9KyiaTxvXw3LbpMS/XUz13XuW -ae5ogObnmLo2t/5u7Su9IPhlGdpVCX4l3P5hYnL5fhgC72O00Puv5TtjjGePAgMB -AAGjgawwgakwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O -BBYEFFCvzAeHFUdvOMW0ZdHelarp35zMMB8GA1UdIwQYMBaAFFCvzAeHFUdvOMW0 -ZdHelarp35zMMEYGA1UdIAQ/MD0wOwYJYIV0AVkBAQEBMC4wLAYIKwYBBQUHAgEW -IGh0dHA6Ly9yZXBvc2l0b3J5LnN3aXNzc2lnbi5jb20vMA0GCSqGSIb3DQEBBQUA -A4ICAQAIhab1Fgz8RBrBY+D5VUYI/HAcQiiWjrfFwUF1TglxeeVtlspLpYhg0DB0 -uMoI3LQwnkAHFmtllXcBrqS3NQuB2nEVqXQXOHtYyvkv+8Bldo1bAbl93oI9ZLi+ -FHSjClTTLJUYFzX1UWs/j6KWYTl4a0vlpqD4U99REJNi54Av4tHgvI42Rncz7Lj7 -jposiU0xEQ8mngS7twSNC/K5/FqdOxa3L8iYq/6KUFkuozv8KV2LwUvJ4ooTHbG/ -u0IdUt1O2BReEMYxB+9xJ/cbOQncguqLs5WGXv312l0xpuAxtpTmREl0xRbl9x8D -YSjFyMsSoEJL+WuICI20MhjzdZ/EfwBPBZWcoxcCw7NTm6ogOSkrZvqdr16zktK1 -puEa+S1BaYEUtLS17Yk9zvupnTVCRLEcFHOBzyoBNZox1S2PbYTfgE1X4z/FhHXa -icYwu+uPyyIIoK6q8QNsOktNCaUOcsZWayFCTiMlFGiudgp8DAdwZPmaL/YFOSbG -DI8Zf0NebvRbFS/bYV3mZy8/CJT5YLSYMdp08YSTcU1f+2BY0fvEwW2JorsgH51x -kcsymxM9Pn2SUjWskpSi0xjCfMfqr3YFFt1nJ8J+HAciIfNAChs0B0QTwoRqjt8Z -Wr9/6x3iGjjRXK9HkmuAtTClyY3YqzGBH9/CZjfTk6mFhnll0g== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFuzCCA6OgAwIBAgIIVwoRl0LE48wwDQYJKoZIhvcNAQELBQAwazELMAkGA1UE -BhMCSVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8w -MzM1ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290 -IENBMB4XDTExMDkyMjExMjIwMloXDTMwMDkyMjExMjIwMlowazELMAkGA1UEBhMC -SVQxDjAMBgNVBAcMBU1pbGFuMSMwIQYDVQQKDBpBY3RhbGlzIFMucC5BLi8wMzM1 -ODUyMDk2NzEnMCUGA1UEAwweQWN0YWxpcyBBdXRoZW50aWNhdGlvbiBSb290IENB -MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAp8bEpSmkLO/lGMWwUKNv -UTufClrJwkg4CsIcoBh/kbWHuUA/3R1oHwiD1S0eiKD4j1aPbZkCkpAW1V8IbInX -4ay8IMKx4INRimlNAJZaby/ARH6jDuSRzVju3PvHHkVH3Se5CAGfpiEd9UEtL0z9 -KK3giq0itFZljoZUj5NDKd45RnijMCO6zfB9E1fAXdKDa0hMxKufgFpbOr3JpyI/ -gCczWw63igxdBzcIy2zSekciRDXFzMwujt0q7bd9Zg1fYVEiVRvjRuPjPdA1Yprb -rxTIW6HMiRvhMCb8oJsfgadHHwTrozmSBp+Z07/T6k9QnBn+locePGX2oxgkg4YQ -51Q+qDp2JE+BIcXjDwL4k5RHILv+1A7TaLndxHqEguNTVHnd25zS8gebLra8Pu2F -be8lEfKXGkJh90qX6IuxEAf6ZYGyojnP9zz/GPvG8VqLWeICrHuS0E4UT1lF9gxe -KF+w6D9Fz8+vm2/7hNN3WpVvrJSEnu68wEqPSpP4RCHiMUVhUE4Q2OM1fEwZtN4F -v6MGn8i1zeQf1xcGDXqVdFUNaBr8EBtiZJ1t4JWgw5QHVw0U5r0F+7if5t+L4sbn -fpb2U8WANFAoWPASUHEXMLrmeGO89LKtmyuy/uE5jF66CyCU3nuDuP/jVo23Eek7 -jPKxwV2dpAtMK9myGPW1n0sCAwEAAaNjMGEwHQYDVR0OBBYEFFLYiDrIn3hm7Ynz -ezhwlMkCAjbQMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUUtiIOsifeGbt -ifN7OHCUyQICNtAwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQAL -e3KHwGCmSUyIWOYdiPcUZEim2FgKDk8TNd81HdTtBjHIgT5q1d07GjLukD0R0i70 -jsNjLiNmsGe+b7bAEzlgqqI0JZN1Ut6nna0Oh4lScWoWPBkdg/iaKWW+9D+a2fDz -WochcYBNy+A4mz+7+uAwTc+G02UQGRjRlwKxK3JCaKygvU5a2hi/a5iB0P2avl4V -SM0RFbnAKVy06Ij3Pjaut2L9HmLecHgQHEhb2rykOLpn7VU+Xlff1ANATIGk0k9j -pwlCCRT8AKnCgHNPLsBA2RF7SOp6AsDT6ygBJlh0wcBzIm2Tlf05fbsq4/aC4yyX -X04fkZT6/iyj2HYauE2yOE+b+h1IYHkm4vP9qdCa6HCPSXrW5b0KDtst842/6+Ok -fcvHlXHo2qN8xcL4dJIEG4aspCJTQLas/kx2z/uUMsA1n3Y/buWQbqCmJqK4LL7R -K4X9p2jIugErsWx0Hbhzlefut8cl8ABMALJ+tguLHPPAUJ4lueAI3jZm/zel0btU -ZCzJJ7VLkn5l/9Mt4blOvH+kQSGQQXemOR/qnuOf0GZvBeyqdn6/axag67XH/JJU -LysRJyU3eExRarDzzFhdFPFqSBX/wge2sY0PjlxQRrM9vwGYT7JZVEc+NHt4bVaT -LnPqZih4zR0Uv6CPLy64Lo7yFIrM6bV8+2ydDKXhlg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz -dCBOZXR3b3JraW5nMB4XDTEwMDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDEL -MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp -cm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SEHi3y -YJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbua -kCNrmreIdIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRL -QESxG9fhwoXA3hA/Pe24/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp -6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gbh+0t+nvujArjqWaJGctB+d1ENmHP4ndG -yH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNVHQ4EFgQUBx/S55zawm6i -QLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ -KoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfO -tDIuUFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzu -QY0x2+c06lkh1QF612S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZ -Lgo/bNjR9eUJtGxUAArgFU2HdW23WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4u -olu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9/ZFvgrG+CJPbFEfxojfHRZ48 -x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEvTCCA6WgAwIBAgIBADANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJFVTEn -MCUGA1UEChMeQUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQL -ExpodHRwOi8vd3d3LmNoYW1iZXJzaWduLm9yZzEiMCAGA1UEAxMZQ2hhbWJlcnMg -b2YgQ29tbWVyY2UgUm9vdDAeFw0wMzA5MzAxNjEzNDNaFw0zNzA5MzAxNjEzNDRa -MH8xCzAJBgNVBAYTAkVVMScwJQYDVQQKEx5BQyBDYW1lcmZpcm1hIFNBIENJRiBB -ODI3NDMyODcxIzAhBgNVBAsTGmh0dHA6Ly93d3cuY2hhbWJlcnNpZ24ub3JnMSIw -IAYDVQQDExlDaGFtYmVycyBvZiBDb21tZXJjZSBSb290MIIBIDANBgkqhkiG9w0B -AQEFAAOCAQ0AMIIBCAKCAQEAtzZV5aVdGDDg2olUkfzIx1L4L1DZ77F1c2VHfRtb -unXF/KGIJPov7coISjlUxFF6tdpg6jg8gbLL8bvZkSM/SAFwdakFKq0fcfPJVD0d -BmpAPrMMhe5cG3nCYsS4No41XQEMIwRHNaqbYE6gZj3LJgqcQKH0XZi/caulAGgq -7YN6D6IUtdQis4CwPAxaUWktWBiP7Zme8a7ileb2R6jWDA+wWFjbw2Y3npuRVDM3 -0pQcakjJyfKl2qUMI/cjDpwyVV5xnIQFUZot/eZOKjRa3spAN2cMVCFVd9oKDMyX -roDclDZK9D7ONhMeU+SsTjoF7Nuucpw4i9A5O4kKPnf+dQIBA6OCAUQwggFAMBIG -A1UdEwEB/wQIMAYBAf8CAQwwPAYDVR0fBDUwMzAxoC+gLYYraHR0cDovL2NybC5j -aGFtYmVyc2lnbi5vcmcvY2hhbWJlcnNyb290LmNybDAdBgNVHQ4EFgQU45T1sU3p -26EpW1eLTXYGduHRooowDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIA -BzAnBgNVHREEIDAegRxjaGFtYmVyc3Jvb3RAY2hhbWJlcnNpZ24ub3JnMCcGA1Ud -EgQgMB6BHGNoYW1iZXJzcm9vdEBjaGFtYmVyc2lnbi5vcmcwWAYDVR0gBFEwTzBN -BgsrBgEEAYGHLgoDATA+MDwGCCsGAQUFBwIBFjBodHRwOi8vY3BzLmNoYW1iZXJz -aWduLm9yZy9jcHMvY2hhbWJlcnNyb290Lmh0bWwwDQYJKoZIhvcNAQEFBQADggEB -AAxBl8IahsAifJ/7kPMa0QOx7xP5IV8EnNrJpY0nbJaHkb5BkAFyk+cefV/2icZd -p0AJPaxJRUXcLo0waLIJuvvDL8y6C98/d3tGfToSJI6WjzwFCm/SlCgdbQzALogi -1djPHRPH8EjX1wWnz8dHnjs8NMiAT9QUu/wNUPf6s+xCX6ndbcj0dc97wXImsQEc -XCz9ek60AcUFV7nnPKoF2YjpB0ZBzu9Bga5Y34OirsrXdx/nADydb47kMgkdTXg0 -eDQ8lJsm7U9xxhl6vSAiSFr+S30Dt+dYvsYyTnQeaN2oaFuzPu5ifdmA6Ap1erfu -tGWaIZDgqtCYvDi1czyL+Nw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmlj -YXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAwMFoXDTI4MTIzMTIzNTk1OVowezEL -MAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UE -BwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNVBAMM -GEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQua -BtDFcCLNSS1UY8y2bmhGC1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe -3M/vg4aijJRPn2jymJBGhCfHdr/jzDUsi14HZGWCwEiwqJH5YZ92IFCokcdmtet4 -YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszWY19zjNoFmag4qMsXeDZR -rOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjHYpy+g8cm -ez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQU -oBEKIz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF -MAMBAf8wewYDVR0fBHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20v -QUFBQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29t -b2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2VzLmNybDANBgkqhkiG9w0BAQUF -AAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm7l3sAg9g1o1Q -GE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz -Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2 -G9w84FoVxp7Z8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsi -l2D4kF501KKaU73yqWjgom7C12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3 -smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCB -gTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G -A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNV -BAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjEyMDEwMDAw -MDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3Jl -YXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01P -RE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0 -aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3 -UcEbVASY06m/weaKXTuH+7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI -2GqGd0S7WWaXUF601CxwRM/aN5VCaTwwxHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8 -Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV4EajcNxo2f8ESIl33rXp -+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA1KGzqSX+ -DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5O -nKVIrLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW -/zAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6g -PKA6hjhodHRwOi8vY3JsLmNvbW9kb2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9u -QXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOCAQEAPpiem/Yb6dc5t3iuHXIY -SdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CPOGEIqB6BCsAv -IC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/ -RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4 -zJVSk/BwJVmcIGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5dd -BA6+C4OmF4O5MBKgxTMVBbkN+8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IB -ZQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDcDCCAligAwIBAgIBBTANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQGEwJVUzEY -MBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNEb0QxDDAKBgNVBAsT -A1BLSTEWMBQGA1UEAxMNRG9EIFJvb3QgQ0EgMjAeFw0wNDEyMTMxNTAwMTBaFw0y -OTEyMDUxNTAwMTBaMFsxCzAJBgNVBAYTAlVTMRgwFgYDVQQKEw9VLlMuIEdvdmVy -bm1lbnQxDDAKBgNVBAsTA0RvRDEMMAoGA1UECxMDUEtJMRYwFAYDVQQDEw1Eb0Qg -Um9vdCBDQSAyMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwCzB9o07 -rP8/PNZxvrh0IgfscEEV/KtA4weqwcPYn/7aTDq/P8jYKHtLNgHArEUlw9IOCo+F -GGQQPRoTcCpvjtfcjZOzQQ84Ic2tq8I9KgXTVxE3Dc2MUfmT48xGSSGOFLTNyxQ+ -OM1yMe6rEvJl6jQuVl3/7mN1y226kTT8nvP0LRy+UMRC31mI/2qz+qhsPctWcXEF -lrufgOWARVlnQbDrw61gpIB1BhecDvRD4JkOG/t/9bPMsoGCsf0ywbi+QaRktWA6 -WlEwjM7eQSwZR1xJEGS5dKmHQa99brrBuKG/ZTE6BGf5tbuOkooAY7ix5ow4X4P/ -UNU7ol1rshDMYwIDAQABoz8wPTAdBgNVHQ4EFgQUSXS7DF66ev4CVO97oMaVxgmA -cJYwCwYDVR0PBAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD -ggEBAJiRjT+JyLv1wGlzKTs1rLqzCHY9cAmS6YREIQF9FHYb7lFsHY0VNy17MWn0 -mkS4r0bMNPojywMnGdKDIXUr5+AbmSbchECV6KjSzPZYXGbvP0qXEIIdugqi3VsG -K52nZE7rLgE1pLQ/E61V5NVzqGmbEfGY8jEeb0DU+HifjpGgb3AEkGaqBivO4XqS -tX3h4NGW56E6LcyxnR8FRO2HmdNNGnA5wQQM5X7Z8a/XIA7xInolpHOZzD+kByeW -qKKV7YK5FtOeC4fCwfKI9WLfaN/HvGlR7bFc3FRUKQ8JOZqsA8HbDE2ubwp6Fknx -v5HSOJTT9pUst2zJQraNypCNhdk= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDkjCCAnqgAwIBAgIRAIW9S/PY2uNp9pTXX8OlRCMwDQYJKoZIhvcNAQEFBQAw -PTELMAkGA1UEBhMCRlIxETAPBgNVBAoTCENlcnRwbHVzMRswGQYDVQQDExJDbGFz -cyAyIFByaW1hcnkgQ0EwHhcNOTkwNzA3MTcwNTAwWhcNMTkwNzA2MjM1OTU5WjA9 -MQswCQYDVQQGEwJGUjERMA8GA1UEChMIQ2VydHBsdXMxGzAZBgNVBAMTEkNsYXNz -IDIgUHJpbWFyeSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANxQ -ltAS+DXSCHh6tlJw/W/uz7kRy1134ezpfgSN1sxvc0NXYKwzCkTsA18cgCSR5aiR -VhKC9+Ar9NuuYS6JEI1rbLqzAr3VNsVINyPi8Fo3UjMXEuLRYE2+L0ER4/YXJQyL -kcAbmXuZVg2v7tK8R1fjeUl7NIknJITesezpWE7+Tt9avkGtrAjFGA7v0lPubNCd -EgETjdyAYveVqUSISnFOYFWe2yMZeVYHDD9jC1yw4r5+FfyUM1hBOHTE4Y+L3yas -H7WLO7dDWWuwJKZtkIvEcupdM5i3y95ee++U8Rs+yskhwcWYAqqi9lt3m/V+llU0 -HGdpwPFC40es/CgcZlUCAwEAAaOBjDCBiTAPBgNVHRMECDAGAQH/AgEKMAsGA1Ud -DwQEAwIBBjAdBgNVHQ4EFgQU43Mt38sOKAze3bOkynm4jrvoMIkwEQYJYIZIAYb4 -QgEBBAQDAgEGMDcGA1UdHwQwMC4wLKAqoCiGJmh0dHA6Ly93d3cuY2VydHBsdXMu -Y29tL0NSTC9jbGFzczIuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCnVM+IRBnL39R/ -AN9WM2K191EBkOvDP9GIROkkXe/nFL0gt5o8AP5tn9uQ3Nf0YtaLcF3n5QRIqWh8 -yfFC82x/xXp8HVGIutIKPidd3i1RTtMTZGnkLuPT55sJmabglZvOGtd/vjzOUrMR -FcEPF80Du5wlFbqidon8BvEY0JNLDnyCt6X09l/+7UCmnYR0ObncHoUW2ikbhiMA -ybuJfm6AiB4vFLQDJKgybwOaRywwvlbGp0ICcBvqQNi6BQNwB6SW//1IMwrh3KWB -kJtN3X3n57LNXMhqlfil9o3EXXgIvnsG1knPGTZQIy4I5p4FTUcY1Rbpsda2ENW7 -l7+ijrRU ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEPjCCAyagAwIBAgIESlOMKDANBgkqhkiG9w0BAQsFADCBvjELMAkGA1UEBhMC -VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50 -cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3Qs -IEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVz -dCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzIwHhcNMDkwNzA3MTcy -NTU0WhcNMzAxMjA3MTc1NTU0WjCBvjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUVu -dHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3d3cuZW50cnVzdC5uZXQvbGVnYWwt -dGVybXMxOTA3BgNVBAsTMChjKSAyMDA5IEVudHJ1c3QsIEluYy4gLSBmb3IgYXV0 -aG9yaXplZCB1c2Ugb25seTEyMDAGA1UEAxMpRW50cnVzdCBSb290IENlcnRpZmlj -YXRpb24gQXV0aG9yaXR5IC0gRzIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK -AoIBAQC6hLZy254Ma+KZ6TABp3bqMriVQRrJ2mFOWHLP/vaCeb9zYQYKpSfYs1/T -RU4cctZOMvJyig/3gxnQaoCAAEUesMfnmr8SVycco2gvCoe9amsOXmXzHHfV1IWN -cCG0szLni6LVhjkCsbjSR87kyUnEO6fe+1R9V77w6G7CebI6C1XiUJgWMhNcL3hW -wcKUs/Ja5CeanyTXxuzQmyWC48zCxEXFjJd6BmsqEZ+pCm5IO2/b1BEZQvePB7/1 -U1+cPvQXLOZprE4yTGJ36rfo5bs0vBmLrpxR57d+tVOxMyLlbc9wPBr64ptntoP0 -jaWvYkxN4FisZDQSA/i2jZRjJKRxAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAP -BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqciZ60B7vfec7aVHUbI2fkBJmqzAN -BgkqhkiG9w0BAQsFAAOCAQEAeZ8dlsa2eT8ijYfThwMEYGprmi5ZiXMRrEPR9RP/ -jTkrwPK9T3CMqS/qF8QLVJ7UG5aYMzyorWKiAHarWWluBh1+xLlEjZivEtRh2woZ -Rkfz6/djwUAFQKXSt/S1mja/qYh2iARVBCuch38aNzx+LaUa2NSJXsq9rD1s2G2v -1fN2D807iDginWyTmsQ9v4IbZT+mD12q/OWyFcq1rca8PdCE6OoGcrBNOTJ4vz4R -nAuknZoh8/CbCzB428Hch0P+vGOaysXCHMnHjf87ElgI5rY97HosTvuDls4MPGmH -VHOkc8KT/1EQrBVUAdj8BbGJoX90g5pJ19xOe4pIb4tF9g== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID9jCCAt6gAwIBAgIQZIKe/DcedF38l/+XyLH/QTANBgkqhkiG9w0BAQsFADCB -lDELMAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8w -HQYDVQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRl -YyBDbGFzcyAyIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -IC0gRzYwHhcNMTExMDE4MDAwMDAwWhcNMzcxMjAxMjM1OTU5WjCBlDELMAkGA1UE -BhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZT -eW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAy -IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzYwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDNzOkFyGOFyz9AYxe9GPo15gRn -V2WYKaRPyVyPDzTS+NqoE2KquB5QZ3iwFkygOakVeq7t0qLA8JA3KRgmXOgNPLZs -ST/B4NzZS7YUGQum05bh1gnjGSYc+R9lS/kaQxwAg9bQqkmi1NvmYji6UBRDbfkx -+FYW2TgCkc/rbN27OU6Z4TBnRfHU8I3D3/7yOAchfQBeVkSz5GC9kSucq1sEcg+y -KNlyqwUgQiWpWwNqIBDMMfAr2jUs0Pual07wgksr2F82owstr2MNHSV/oW5cYqGN -KD6h/Bwg+AEvulWaEbAZ0shQeWsOagXXqgQ2sqPy4V93p3ec5R7c6d9qwWVdAgMB -AAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW -BBSHjCCVyJhK0daABkqQNETfHE2/sDANBgkqhkiG9w0BAQsFAAOCAQEAgY6ypWaW -tyGltu9vI1pf24HFQqV4wWn99DzX+VxrcHIa/FqXTQCAiIiCisNxDY7FiZss7Y0L -0nJU9X3UXENX6fOupQIR9nYrgVfdfdp0MP1UR/bgFm6mtApI5ud1Bw8pGTnOefS2 -bMVfmdUfS/rfbSw8DVSAcPCIC4DPxmiiuB1w2XaM/O6lyc+tHc+ZJVdaYkXLFmu9 -Sc2lo4xpeSWuuExsi0BmSxY/zwIa3eFsawdhanYVKZl/G92IgMG/tY9zxaaWI4Sm -KIYkM2oBLldzJbZev4/mHWGoQClnHYebHX+bn5nNMdZUvmK7OaxoEkiRIKXLsd3+ -b/xa5IJVWa8xqQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEdDCCA1ygAwIBAgIQRL4Mi1AAJLQR0zYq/mUK/TANBgkqhkiG9w0BAQUFADCB -lzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3Qt -SGFyZHdhcmUwHhcNOTkwNzA5MTgxMDQyWhcNMTkwNzA5MTgxOTIyWjCBlzELMAkG -A1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEe -MBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8v -d3d3LnVzZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdh -cmUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCx98M4P7Sof885glFn -0G2f0v9Y8+efK+wNiVSZuTiZFvfgIXlIwrthdBKWHTxqctU8EGc6Oe0rE81m65UJ -M6Rsl7HoxuzBdXmcRl6Nq9Bq/bkqVRcQVLMZ8Jr28bFdtqdt++BxF2uiiPsA3/4a -MXcMmgF6sTLjKwEHOG7DpV4jvEWbe1DByTCP2+UretNb+zNAHqDVmBe8i4fDidNd -oI6yqqr2jmmIBsX6iSHzCJ1pLgkzmykNRg+MzEk0sGlRvfkGzWitZky8PqxhvQqI -DsjfPe58BEydCl5rkdbux+0ojatNh4lz0G6k0B4WixThdkQDf2Os5M1JnMWS9Ksy -oUhbAgMBAAGjgbkwgbYwCwYDVR0PBAQDAgHGMA8GA1UdEwEB/wQFMAMBAf8wHQYD -VR0OBBYEFKFyXyYbKJhDlV0HN9WFlp1L0sNFMEQGA1UdHwQ9MDswOaA3oDWGM2h0 -dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9VVE4tVVNFUkZpcnN0LUhhcmR3YXJlLmNy -bDAxBgNVHSUEKjAoBggrBgEFBQcDAQYIKwYBBQUHAwUGCCsGAQUFBwMGBggrBgEF -BQcDBzANBgkqhkiG9w0BAQUFAAOCAQEARxkP3nTGmZev/K0oXnWO6y1n7k57K9cM -//bey1WiCuFMVGWTYGufEpytXoMs61quwOQt9ABjHbjAbPLPSbtNk28Gpgoiskli -CE7/yMgUsogWXecB5BKV5UU0s4tpvc+0hY91UZ59Ojg6FEgSxvunOxqNDYJAB+gE -CJChicsZUN/KHAG8HQQZexB2lzvukJDKxA4fFm517zP4029bHpbj4HR3dHuKom4t -3XbWOTCC8KucUvIqx69JXn7HaOWCgchqJ/kniCrVWFCVH/A7HFe7fRQ5YiuayZSS -KqMiDP+JJn1fIytH1xUdqWqeUQ0qUZ6B+dQ7XnASfxAynB67nfhmqA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDojCCAoqgAwIBAgIQE4Y1TR0/BvLB+WUF1ZAcYjANBgkqhkiG9w0BAQUFADBr -MQswCQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRl -cm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNv -bW1lcmNlIFJvb3QwHhcNMDIwNjI2MDIxODM2WhcNMjIwNjI0MDAxNjEyWjBrMQsw -CQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRlcm5h -dGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNvbW1l -cmNlIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvV95WHm6h -2mCxlCfLF9sHP4CFT8icttD0b0/Pmdjh28JIXDqsOTPHH2qLJj0rNfVIsZHBAk4E -lpF7sDPwsRROEW+1QK8bRaVK7362rPKgH1g/EkZgPI2h4H3PVz4zHvtH8aoVlwdV -ZqW1LS7YgFmypw23RuwhY/81q6UCzyr0TP579ZRdhE2o8mCP2w4lPJ9zcc+U30rq -299yOIzzlr3xF7zSujtFWsan9sYXiwGd/BmoKoMWuDpI/k4+oKsGGelT84ATB+0t -vz8KPFUgOSwsAGl0lUq8ILKpeeUYiZGo3BxN77t+Nwtd/jmliFKMAGzsGHxBvfaL -dXe6YJ2E5/4tAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQD -AgEGMB0GA1UdDgQWBBQVOIMPPyw/cDMezUb+B4wg4NfDtzANBgkqhkiG9w0BAQUF -AAOCAQEAX/FBfXxcCLkr4NWSR/pnXKUTwwMhmytMiUbPWU3J/qVAtmPN3XEolWcR -zCSs00Rsca4BIGsDoo8Ytyk6feUWYFN4PMCvFYP3j1IzJL1kk5fui/fbGKhtcbP3 -LBfQdCVp9/5rPJS+TUtBjE7ic9DjkCJzQ83z7+pzzkWKsKZJ/0x9nXGIxHYdkFsd -7v3M9+79YKWxehZx0RbQfBI8bGmX265fOZpwLwU8GUYEmSA20GBuYQa7FkKMcPcw -++DbZqMAAb3mLNqRX6BGi01qnD093QVG/na/oAo85ADmJ7f/hC3euiInlhBx6yLt -398znM/jra6O1I7mT1GvFpLgXPYHDw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFpDCCA4ygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP -bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAyMB4XDTAyMDUyODA2 -MDAwMFoXDTM3MDkyOTE0MDgwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft -ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg -Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBAMxBRR3pPU0Q9oyxQcngXssNt79Hc9PwVU3dxgz6sWYFas14tNwC -206B89enfHG8dWOgXeMHDEjsJcQDIPT/DjsS/5uN4cbVG7RtIuOx238hZK+GvFci -KtZHgVdEglZTvYYUAQv8f3SkWq7xuhG1m1hagLQ3eAkzfDJHA1zEpYNI9FdWboE2 -JxhP7JsowtS013wMPgwr38oE18aO6lhOqKSlGBxsRZijQdEt0sdtjRnxrXm3gT+9 -BoInLRBYBbV4Bbkv2wxrkJB+FFk4u5QkE+XRnRTf04JNRvCAOVIyD+OEsnpD8l7e -Xz8d3eOyG6ChKiMDbi4BFYdcpnV1x5dhvt6G3NRI270qv0pV2uh9UPu0gBe4lL8B -PeraunzgWGcXuVjgiIZGZ2ydEEdYMtA1fHkqkKJaEBEjNa0vzORKW6fIJ/KD3l67 -Xnfn6KVuY8INXWHQjNJsWiEOyiijzirplcdIz5ZvHZIlyMbGwcEMBawmxNJ10uEq -Z8A9W6Wa6897GqidFEXlD6CaZd4vKL3Ob5Rmg0gp2OpljK+T2WSfVVcmv2/LNzGZ -o2C7HK2JNDJiuEMhBnIMoVxtRsX6Kc8w3onccVvdtjc+31D1uAclJuW8tf48ArO3 -+L5DwYcRlJ4jbBeKuIonDFRH8KmzwICMoCfrHRnjB453cMor9H124HhnAgMBAAGj -YzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFE1FwWg4u3OpaaEg5+31IqEj -FNeeMB8GA1UdIwQYMBaAFE1FwWg4u3OpaaEg5+31IqEjFNeeMA4GA1UdDwEB/wQE -AwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAZ2sGuV9FOypLM7PmG2tZTiLMubekJcmn -xPBUlgtk87FYT15R/LKXeydlwuXK5w0MJXti4/qftIe3RUavg6WXSIylvfEWK5t2 -LHo1YGwRgJfMqZJS5ivmae2p+DYtLHe/YUjRYwu5W1LtGLBDQiKmsXeu3mnFzccc -obGlHBD7GL4acN3Bkku+KVqdPzW+5X1R+FXgJXUjhx5c3LqdsKyzadsXg8n33gy8 -CNyRnqjQ1xU3c6U1uPx+xURABsPr+CKAXEfOAuMRn0T//ZoyzH1kUQ7rVyZ2OuMe -IjzCpjbdGe+n/BLzJsBZMYVMnNjP36TMzCmT/5RtdlwTCJfy7aULTd3oyWgOZtMA -DjMSW7yV5TKQqLPGbIOtd+6Lfn6xqavT4fG2wLHqiMDn05DpKJKUe2h7lyoKZy2F -AjgQ5ANh1NolNscIWC2hp1GvMApJ9aZphwctREZ2jirlmjvXGKL8nDgQzMY70rUX -Om/9riW99XJZZLF0KjhfGEzfz3EEWjbUvy+ZnOjZurGV5gJLIaFb1cFPj65pbVPb -AZO1XB4Y3WRayhgoPmMEEf0cjQAPuDffZ4qdZqkCapH/E8ovXYO8h5Ns3CRRFgQl -Zvqz2cK6Kb6aSDiCmfS/O0oxGfm/jiEzFMpPVF/7zvuPcX/9XhmgD0uRuMRUvAaw -RY8mkaKO/qk= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYD -VQQGEwJIVTERMA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0 -ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0G -CSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5odTAeFw0wOTA2MTYxMTMwMThaFw0y -OTEyMzAxMTMwMThaMIGCMQswCQYDVQQGEwJIVTERMA8GA1UEBwwIQnVkYXBlc3Qx -FjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUtU3pp -Z25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5o -dTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOn4j/NjrdqG2KfgQvvP -kd6mJviZpWNwrZuuyjNAfW2WbqEORO7hE52UQlKavXWFdCyoDh2Tthi3jCyoz/tc -cbna7P7ofo/kLx2yqHWH2Leh5TvPmUpG0IMZfcChEhyVbUr02MelTTMuhTlAdX4U -fIASmFDHQWe4oIBhVKZsTh/gnQ4H6cm6M+f+wFUoLAKApxn1ntxVUwOXewdI/5n7 -N4okxFnMUBBjjqqpGrCEGob5X7uxUG6k0QrM1XF+H6cbfPVTbiJfyyvm1HxdrtbC -xkzlBQHZ7Vf8wSN5/PrIJIOV87VqUQHQd9bpEqH5GoP7ghu5sJf0dgYzQ0mg/wu1 -+rUCAwEAAaOBgDB+MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0G -A1UdDgQWBBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAfBgNVHSMEGDAWgBTLD8bfQkPM -Pcu1SCOhGnqmKrs0aDAbBgNVHREEFDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqG -SIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0olZMEyL/azXm4Q5DwpL7v8u8h -mLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfXI/OMn74dseGk -ddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775 -tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c -2Pm2G2JwCz02yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5t -HMN1Rq41Bab2XD0h7lbwyYIiLXpUq3DDfSJlgnCW ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIHqTCCBZGgAwIBAgIQYwaGp8U3ZaVDkKhqWMzUMjANBgkqhkiG9w0BAQUFADCB -jzELMAkGA1UEBhMCTFYxNTAzBgNVBAoTLFZBUyBMYXR2aWphcyBQYXN0cyAtIFZp -ZW4ucmVnLk5yLjQwMDAzMDUyNzkwMSMwIQYDVQQLExpTZXJ0aWZpa2FjaWphcyBw -YWthbHBvanVtaTEkMCIGA1UEAxMbVkFTIExhdHZpamFzIFBhc3RzIFNTSShSQ0Ep -MB4XDTA2MDkxMzA5MjIxMFoXDTI0MDkxMzA5Mjc1N1owgY8xCzAJBgNVBAYTAkxW -MTUwMwYDVQQKEyxWQVMgTGF0dmlqYXMgUGFzdHMgLSBWaWVuLnJlZy5Oci40MDAw -MzA1Mjc5MDEjMCEGA1UECxMaU2VydGlmaWthY2lqYXMgcGFrYWxwb2p1bWkxJDAi -BgNVBAMTG1ZBUyBMYXR2aWphcyBQYXN0cyBTU0koUkNBKTCCAiIwDQYJKoZIhvcN -AQEBBQADggIPADCCAgoCggIBAJu4+f1hVS9PpKUUtS6OuSSPrPuxVD9A/0/F5YZo -e1OT+zWCNahQLpRSoNuDPnXaFXCsCc/ugkmtNkm5tHGLtAChQgbKCApjl7YI/O60 -3Jh4GYLJ+H9kPqrJ/rGN67Bk9bzzxD46kOpOjj8bGbxqg8ORPGxV+wpSwOjhXXeF -M8VJ3+xqv79sN/6OSaIVGM6LjmseOKMwb4iBfnJWRBrEejkP9sSPltSy6wBOXN67 -5zu35iQFk2tN5pFEv+6YG8eFGxFBeyI2p74+6Ho33BjekJ2PzbLXmj/iF39bDOHv -P2Y9biTksM7DDIhslNo4JXxSOeNzFLMARWOaDEJAXgTG93JkzsluM7Pk020klTeT -fvIAXRmLH/NDc6ifRdIGqey0Qrv67gzHTz9RH9Gv0KwYf4eBIv6p3QeWbXz4TtlN -OlBp1UF+xdp02I5z5X6D4cMZgbe9v0COvi6aogyqTgIuuyrhCF0xA8msJ7Cv3NXI -FH1AnVWJIfmQzNTJYEFzq+jN2DpVOQqCmf6b9fU8HJHLwPpGVK4h/CqsXHveepdx -/WxrzUiapNuBfBg3L5B9YZS9F8lctlQWd8oJSqrpvE+UdQFaVryS0o+515feVnQB -9xZxSbH1GEaZQe5i4bMsZXVpKXJDA/ibH/o49J7sQBCOrJfVsDO+nxjcLfdBeFRK -YkTnAgMBAAGjggH9MIIB+TAOBgNVHQ8BAf8EBAMCAQYwGAYIKwYBBQUHAQMEDDAK -MAgGBgQAjkYBATAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTMw/Vm/3OsOFqW -GyGJuIFMH8teJTAQBgkrBgEEAYI3FQEEAwIBADCCAYkGA1UdIASCAYAwggF8MIIB -eAYLKwYBBAGBxFkBAQIwggFnMIIBOAYIKwYBBQUHAgIwggEqHoIBJgBTAGkAcwAg -AGkAcgAgAHMAZQByAHQAaQBmAGkAawBhAHQAcwAsACAAawBvACAAaQB6AGQAZQB2 -AGkAcwAgAFYAQQBTACAATABhAHQAdgBpAGoAYQBzACAAUABhAHMAdABzACwAIABu -AG8AZAByAG8AcwBpAG4AbwB0ACAAYQB0AGIAaQBsAHMAdABpAGIAdQAgAEUAbABl -AGsAdAByAG8AbgBpAHMAawBvACAAZABvAGsAdQBtAGUAbgB0AHUAIABsAGkAawB1 -AG0AYQBtACAAdQBuACAARQBpAHIAbwBwAGEAcwAgAFAAYQByAGwAYQBtAGUAbgB0 -AGEAIABkAGkAcgBlAGsAdABpAHYAYQBpACAAMQA5ADkAOQAvADkAMwAvAEUASzAp -BggrBgEFBQcCARYdaHR0cDovL3d3dy5lLW1lLmx2L3JlcG9zaXRvcnkwDQYJKoZI -hvcNAQEFBQADggIBAB8oSjWQIWNoCi94r6MegiaXoz8nGdJLo0J6BhNlW8EEy+t9 -fO+U8vGJ9bffUgIhadLqljTloM+XuJxVDhCFoxReLAX4tTp28/l6uN62DCdp8suU -kQsdudWOb5kvzfIZVjk6SFbwAf+Cdbay/dHU9fJjV0xNoX7MELoEae/0FPyzlx9F -7m9KKH/Rxie8x6Opa3vtghNvq94P+3HrXBEaqSzQMJ/8NjdW75XpurcTtq6fAmGt -nuxrBG82nw+Z98LJyEwouSjUIdeeVNXAzvSO5FWUe48kxjj8q3qkVnc9qEXvZJKk -0Ep+u3OL9A1Sc7g6SF5DgNOpcHdi/8coHHMeQ+YnJFtJueY2pI79xS0veqV5EnrX -IbIlbcgPosNhS+VI4le6n/KKId3bZPDaGd/OwJuAOcJ3d2MVU3KE+qSPBzeGIX1Q -+j1qN9uRDjez/c4Lynth0Jx0nH04aG3pex3W8Sq07ztgUncF5gLCX4xbvPB9t3PH -kWuyKrNjozTVq60lcUf/Gj56to2VdsPups0DCWzuRWeYz5lIdsHOinSaaFIBNCLI -7eIUC4S9bhCMsXKbvugI11fVf+q0AT1O5OLoZ+eMfunnQhHvlUbIkda+JxeAGTSY -58bfHvwhX56GPbx+8Jy9cp70R4JbcWfz+txUTKhc2FnH0AcOEzMnvPRp8Gsh ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEDzCCAvegAwIBAgIBATANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQGEwJTSzET -MBEGA1UEBxMKQnJhdGlzbGF2YTETMBEGA1UEChMKRGlzaWcgYS5zLjERMA8GA1UE -AxMIQ0EgRGlzaWcwHhcNMDYwMzIyMDEzOTM0WhcNMTYwMzIyMDEzOTM0WjBKMQsw -CQYDVQQGEwJTSzETMBEGA1UEBxMKQnJhdGlzbGF2YTETMBEGA1UEChMKRGlzaWcg -YS5zLjERMA8GA1UEAxMIQ0EgRGlzaWcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw -ggEKAoIBAQCS9jHBfYj9mQGp2HvycXXxMcbzdWb6UShGhJd4NLxs/LxFWYgmGErE -Nx+hSkS943EE9UQX4j/8SFhvXJ56CbpRNyIjZkMhsDxkovhqFQ4/61HhVKndBpnX -mjxUizkDPw/Fzsbrg3ICqB9x8y34dQjbYkzo+s7552oftms1grrijxaSfQUMbEYD -XcDtab86wYqg6I7ZuUUohwjstMoVvoLdtUSLLa2GDGhibYVW8qwUYzrG0ZmsNHhW -S8+2rT+MitcE5eN4TPWGqvWP+j1scaMtymfraHtuM6kMgiioTGohQBUgDCZbg8Kp -FhXAJIJdKxatymP2dACw30PEEGBWZ2NFAgMBAAGjgf8wgfwwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUjbJJaJ1yCCW5wCf1UJNWSEZx+Y8wDgYDVR0PAQH/BAQD -AgEGMDYGA1UdEQQvMC2BE2Nhb3BlcmF0b3JAZGlzaWcuc2uGFmh0dHA6Ly93d3cu -ZGlzaWcuc2svY2EwZgYDVR0fBF8wXTAtoCugKYYnaHR0cDovL3d3dy5kaXNpZy5z -ay9jYS9jcmwvY2FfZGlzaWcuY3JsMCygKqAohiZodHRwOi8vY2EuZGlzaWcuc2sv -Y2EvY3JsL2NhX2Rpc2lnLmNybDAaBgNVHSAEEzARMA8GDSuBHpGT5goAAAABAQEw -DQYJKoZIhvcNAQEFBQADggEBAF00dGFMrzvY/59tWDYcPQuBDRIrRhCA/ec8J9B6 -yKm2fnQwM6M6int0wHl5QpNt/7EpFIKrIYwvF/k/Ji/1WcbvgAa3mkkp7M5+cTxq -EEHA9tOasnxakZzArFvITV734VP/Q3f8nktnbNfzg9Gg4H8l37iYC5oyOGwwoPP/ -CBUz91BKez6jPiCp3C9WgArtQVCwyfTssuMmRAAOb54GvCKWU3BlxFAKRmukLyeB -EicTXxChds6KezfqwzlhA5WYOudsiCUI/HloDYd9Yvi0X/vF2Ey9WLw/Q1vUHgFN -PGO+I++MzVpQuGhU+QqZMxEA4Z7CRneC9VkGjCFMhwnN5ag= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDXTCCAkWgAwIBAgIDAOJCMA0GCSqGSIb3DQEBBQUAMFUxCzAJBgNVBAYTAkFU -MRAwDgYDVQQKEwdBLVRydXN0MRkwFwYDVQQLExBBLVRydXN0LW5RdWFsLTAxMRkw -FwYDVQQDExBBLVRydXN0LW5RdWFsLTAxMB4XDTA0MTEzMDIzMDAwMFoXDTE0MTEz -MDIzMDAwMFowVTELMAkGA1UEBhMCQVQxEDAOBgNVBAoTB0EtVHJ1c3QxGTAXBgNV -BAsTEEEtVHJ1c3QtblF1YWwtMDExGTAXBgNVBAMTEEEtVHJ1c3QtblF1YWwtMDEw -ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQD/9RyAEZ6eHmhYzNJ328f0 -jmdSUFi6EqRqOxb3jHNPTIpK82CR6z5lmSnZQNUuCPD+htbNZffd2DKVB06NOyZ1 -2zcOMCgj4GtkZoqE0zPpPT3bpoE55nkZZe/qWEX/64wz/L/4EdkvKDSKG/UsP75M -tmCVY5m2Eg73RVFRz4ccBIMpHel4lzEqSkdDtZOY5fnkrE333hx67nxq21vY8Eyf -8O4fPQ5RtN8eohQCcPQ1z6ypU1R7N9jPRpnI+yzMOiwd3+QcKhHi1miCzo0pkOaB -1CwmfsTyNl8qU0NJUL9Ta6cea7WThwTiWol2yD88cd2cy388xpbNkfrCPmZNGLoV -AgMBAAGjNjA0MA8GA1UdEwEB/wQFMAMBAf8wEQYDVR0OBAoECE5ZzscCMocwMA4G -A1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEA69I9R1hU9Gbl9vV7W7AH -QpUJAlFAvv2It/eY8p2ouQUPVaSZikaKtAYrCD/arzfXB43Qet+dM6CpHsn8ikYR -vQKePjXv3Evf+C1bxwJAimcnZV6W+bNOTpdo8lXljxkmfN+Z5S+XzvK2ttUtP4Et -YOVaxHw2mPMNbvDeY+foJkiBn3KYjGabMaR8moZqof5ofj4iS/WyamTZti6v/fKx -n1vII+/uWkcxV5DT5+r9HLon0NYF0Vg317Wh+gWDV59VZo+dcwJDb+keYqMFYoqp -77SGkZGu41S8NGYkQY3X9rNHRkDbLfpKYDmy6NanpOE1EHW1/sNSFAs43qZZKJEQ -xg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEojCCA4qgAwIBAgIQRL4Mi1AAJLQR0zYlJWfJiTANBgkqhkiG9w0BAQUFADCB -rjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xNjA0BgNVBAMTLVVUTi1VU0VSRmlyc3Qt -Q2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBFbWFpbDAeFw05OTA3MDkxNzI4NTBa -Fw0xOTA3MDkxNzM2NThaMIGuMQswCQYDVQQGEwJVUzELMAkGA1UECBMCVVQxFzAV -BgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5l -dHdvcmsxITAfBgNVBAsTGGh0dHA6Ly93d3cudXNlcnRydXN0LmNvbTE2MDQGA1UE -AxMtVVROLVVTRVJGaXJzdC1DbGllbnQgQXV0aGVudGljYXRpb24gYW5kIEVtYWls -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsjmFpPJ9q0E7YkY3rs3B -YHW8OWX5ShpHornMSMxqmNVNNRm5pELlzkniii8efNIxB8dOtINknS4p1aJkxIW9 -hVE1eaROaJB7HHqkkqgX8pgV8pPMyaQylbsMTzC9mKALi+VuG6JG+ni8om+rWV6l -L8/K2m2qL+usobNqqrcuZzWLeeEeaYji5kbNoKXqvgvOdjp6Dpvq/NonWz1zHyLm -SGHGTPNpsaguG7bUMSAsvIKKjqQOpdeJQ/wWWq8dcdcRWdq6hw2v+vPhwvCkxWeM -1tZUOt4KpLoDd7NlyP0e03RiqhjKaJMeoYV+9Udly/hNVyh00jT/MLbu9mIwFIws -6wIDAQABo4G5MIG2MAsGA1UdDwQEAwIBxjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud -DgQWBBSJgmd9xJ0mcABLtFBIfN49rgRufTBYBgNVHR8EUTBPME2gS6BJhkdodHRw -Oi8vY3JsLnVzZXJ0cnVzdC5jb20vVVROLVVTRVJGaXJzdC1DbGllbnRBdXRoZW50 -aWNhdGlvbmFuZEVtYWlsLmNybDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUH -AwQwDQYJKoZIhvcNAQEFBQADggEBALFtYV2mGn98q0rkMPxTbyUkxsrt4jFcKw7u -7mFVbwQ+zznexRtJlOTrIEy05p5QLnLZjfWqo7NK2lYcYJeA3IKirUq9iiv/Cwm0 -xtcgBEXkzYABurorbs6q15L+5K/r9CYdFip/bDCVNy8zEqx/3cfREYxRmLLQo5HQ -rfafnoOTHh1CuEava2bwm3/q4wMC5QJRwarVNZ1yQAOJujEdxRBoUp7fooXFXAim -eOZTT7Hot9MUnpOmw2TjrH5xzbyf6QMbzPvprDHBr3wVdAKZw7JHpsIyYdfHb0gk -USeh1YdV8nuPmD0Wnu51tvjQjvLzxq4oW6fw8zYX/MMF08oDSlQ= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVz -dCBQcmVtaXVtMB4XDTEwMDEyOTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkG -A1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1U -cnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxBLf -qV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtnBKAQ -JG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ -+jjeRFcV5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrS -s8PhaJyJ+HoAVt70VZVs+7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5 -HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmdGPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d7 -70O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5Rp9EixAqnOEhss/n/fauG -V+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NIS+LI+H+S -qHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S -5u046uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4Ia -C1nEWTJ3s7xgaVY5/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TX -OwF0lkLgAOIua+rF7nKsu7/+6qqo+Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYE -FJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/ -BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByvMiPIs0laUZx2 -KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg -Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B -8OWycvpEgjNC6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQ -MKSOyARiqcTtNd56l+0OOF6SL5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc -0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK+4w1IX2COPKpVJEZNZOUbWo6xbLQ -u4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmVBtWVyuEklut89pMF -u+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFgIxpH -YoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8 -GKa1qF60g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaO -RtGdFNrHF+QFlozEJLUbzxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6e -KeC2uAloGRwYQw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEFTCCAv2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSAwHgYDVQQDExdBZGRUcnVzdCBQdWJsaWMgQ0EgUm9vdDAeFw0wMDA1MzAx -MDQxNTBaFw0yMDA1MzAxMDQxNTBaMGQxCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtB -ZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQIE5ldHdvcmsxIDAeBgNV -BAMTF0FkZFRydXN0IFB1YmxpYyBDQSBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEA6Rowj4OIFMEg2Dybjxt+A3S72mnTRqX4jsIMEZBRpS9mVEBV -6tsfSlbunyNu9DnLoblv8n75XYcmYZ4c+OLspoH4IcUkzBEMP9smcnrHAZcHF/nX -GCwwfQ56HmIexkvA/X1id9NEHif2P0tEs7c42TkfYNVRknMDtABp4/MUTu7R3AnP -dzRGULD4EfL+OHn3Bzn+UZKXC1sIXzSGAa2Il+tmzV7R/9x98oTaunet3IAIx6eH -1lWfl2royBFkuucZKT8Rs3iQhCBSWxHveNCD9tVIkNAwHM+A+WD+eeSI8t0A65RF -62WUaUC6wNW0uLp9BBGo6zEFlpROWCGOn9Bg/QIDAQABo4HRMIHOMB0GA1UdDgQW -BBSBPjfYkrAfd59ctKtzquf2NGAv+jALBgNVHQ8EBAMCAQYwDwYDVR0TAQH/BAUw -AwEB/zCBjgYDVR0jBIGGMIGDgBSBPjfYkrAfd59ctKtzquf2NGAv+qFopGYwZDEL -MAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQLExRBZGRU -cnVzdCBUVFAgTmV0d29yazEgMB4GA1UEAxMXQWRkVHJ1c3QgUHVibGljIENBIFJv -b3SCAQEwDQYJKoZIhvcNAQEFBQADggEBAAP3FUr4JNojVhaTdt02KLmuG7jD8WS6 -IBh4lSknVwW8fCr0uVFV2ocC3g8WFzH4qnkuCRO7r7IgGRLlk/lL+YPoRNWyQSW/ -iHVv/xD8SlTQX/D67zZzfRs2RcYhbbQVuE7PnFylPVoAjgbjPGsye/Kf8Lb93/Ao -GEjwxrzQvzSAlsJKsW2Ox5BF3i9nrEUEo3rcVZLJR2bYGozH7ZxOmuASu7VqTITh -4SINhwBk/ox9Yjllpu9CtoAlEmEBqCQTcAARJl/6NVDFSMwGR+gn2HCNX2TmoUQm -XiLsks3/QppEIW1cxeMiHV9HEufOX1362KqxMy3ZdvJOOjMMK7MtkAY= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEajCCA1KgAwIBAgIBATANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJKUDEN -MAsGA1UECgwESlBLSTEpMCcGA1UECwwgUHJlZmVjdHVyYWwgQXNzb2NpYXRpb24g -Rm9yIEpQS0kxETAPBgNVBAsMCEJyaWRnZUNBMB4XDTAzMTIyNzA1MDgxNVoXDTEz -MTIyNjE0NTk1OVowWjELMAkGA1UEBhMCSlAxDTALBgNVBAoMBEpQS0kxKTAnBgNV -BAsMIFByZWZlY3R1cmFsIEFzc29jaWF0aW9uIEZvciBKUEtJMREwDwYDVQQLDAhC -cmlkZ2VDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANTnUmg7K3m8 -52vd77kwkq156euwoWm5no8E8kmaTSc7x2RABPpqNTlMKdZ6ttsyYrqREeDkcvPL -yF7yf/I8+innasNtsytcTAy8xY8Avsbd4JkCGW9dyPjk9pzzc3yLQ64Rx2fujRn2 -agcEVdPCr/XpJygX8FD5bbhkZ0CVoiASBmlHOcC3YpFlfbT1QcpOSOb7o+VdKVEi -MMfbBuU2IlYIaSr/R1nO7RPNtkqkFWJ1/nKjKHyzZje7j70qSxb+BTGcNgTHa1YA -UrogKB+UpBftmb4ds+XlkEJ1dvwokiSbCDaWFKD+YD4B2s0bvjCbw8xuZFYGhNyR -/2D5XfN1s2MCAwEAAaOCATkwggE1MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MG0GA1UdHwRmMGQwYqBgoF6kXDBaMQswCQYDVQQGEwJKUDENMAsGA1UE -CgwESlBLSTEpMCcGA1UECwwgUHJlZmVjdHVyYWwgQXNzb2NpYXRpb24gRm9yIEpQ -S0kxETAPBgNVBAsMCEJyaWRnZUNBMIGDBgNVHREEfDB6pHgwdjELMAkGA1UEBhMC -SlAxJzAlBgNVBAoMHuWFrOeahOWAi+S6uuiqjeiovOOCteODvOODk+OCuTEeMBwG -A1UECwwV6YO96YGT5bqc55yM5Y2U6K2w5LyaMR4wHAYDVQQLDBXjg5bjg6rjg4Pj -grjoqo3oqLzlsYAwHQYDVR0OBBYEFNQXMiCqQNkR2OaZmQgLtf8mR8p8MA0GCSqG -SIb3DQEBBQUAA4IBAQATjJo4reTNPC5CsvAKu1RYT8PyXFVYHbKsEpGt4GR8pDCg -HEGAiAhHSNrGh9CagZMXADvlG0gmMOnXowriQQixrtpkmx0TB8tNAlZptZWkZC+R -8TnjOkHrk2nFAEC3ezbdK0R7MR4tJLDQCnhEWbg50rf0wZ/aF8uAaVeEtHXa6W0M -Xq3dSe0XAcrLbX4zZHQTaWvdpLAIjl6DZ3SCieRMyoWUL+LXaLFdTP5WBCd+No58 -IounD9X4xxze2aeRVaiV/WnQ0OSPNS7n7YXy6xQdnaOU4KRW/Lne1EDf5IfWC/ih -bVAmhZMbcrkWWcsR6aCPG+2mV3zTD6AUzuKPal8Y ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG -A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv -b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw -MDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i -YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT -aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ -jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp -xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp -1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG -snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ -U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8 -9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0B -AQUFAAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOz -yj1hTdNGCbM+w6DjY1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE -38NflNUVyRRBnMRddWQVDf9VMOyGj/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymP -AbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhHhm4qxFYxldBniYUr+WymXUad -DKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveCX4XSQRjbgbME -HMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDdTCCAl2gAwIBAgILAgAAAAAA1ni3lAUwDQYJKoZIhvcNAQEEBQAwVzELMAkG -A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv -b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAw -MDBaFw0xNDAxMjgxMjAwMDBaMFcxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i -YWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYDVQQDExJHbG9iYWxT -aWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDaDuaZ -jc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavp -xy0Sy6scTHAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp -1Wrjsok6Vjk4bwY8iGlbKk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdG -snUOhugZitVtbNV4FpWi6cgKOOvyJBNPc1STE4U6G7weNLWLBYy5d4ux2x8gkasJ -U26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrXgzT/LCrBbBlDSgeF59N8 -9iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIABjAdBgNVHQ4EFgQU -YHtmGkUNl8qJUC99BM00qP/8/UswDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0B -AQQFAAOCAQEArqqf/LfSyx9fOSkoGJ40yWxPbxrwZKJwSk8ThptgKJ7ogUmYfQq7 -5bCdPTbbjwVR/wkxKh/diXeeDy5slQTthsu0AD+EAk2AaioteAuubyuig0SDH81Q -gkwkr733pbTIWg/050deSY43lv6aiAU62cDbKYfmGZZHpzqmjIs8d/5GY6dT2iHR -rH5Jokvmw2dZL7OKDrssvamqQnw1wdh/1acxOk5jQzmvCLBhNIzTmKlDNPYPhyk7 -ncJWWJh3w/cbrPad+D6qp1RF8PX51TFl/mtYnHGzHtdS6jIX/EBgHcl5JLL2bP2o -Zg6C3ZjL2sJETy6ge/L3ayx2EYRGinij4w== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEKzCCAxOgAwIBAgIEOsylTDANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJE -SzEVMBMGA1UEChMMVERDIEludGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQg -Um9vdCBDQTAeFw0wMTA0MDUxNjMzMTdaFw0yMTA0MDUxNzAzMTdaMEMxCzAJBgNV -BAYTAkRLMRUwEwYDVQQKEwxUREMgSW50ZXJuZXQxHTAbBgNVBAsTFFREQyBJbnRl -cm5ldCBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxLhA -vJHVYx/XmaCLDEAedLdInUaMArLgJF/wGROnN4NrXceO+YQwzho7+vvOi20jxsNu -Zp+Jpd/gQlBn+h9sHvTQBda/ytZO5GhgbEaqHF1j4QeGDmUApy6mcca8uYGoOn0a -0vnRrEvLznWv3Hv6gXPU/Lq9QYjUdLP5Xjg6PEOo0pVOd20TDJ2PeAG3WiAfAzc1 -4izbSysseLlJ28TQx5yc5IogCSEWVmb/Bexb4/DPqyQkXsN/cHoSxNK1EKC2IeGN -eGlVRGn1ypYcNIUXJXfi9i8nmHj9eQY6otZaQ8H/7AQ77hPv01ha/5Lr7K7a8jcD -R0G2l8ktCkEiu7vmpwIDAQABo4IBJTCCASEwEQYJYIZIAYb4QgEBBAQDAgAHMGUG -A1UdHwReMFwwWqBYoFakVDBSMQswCQYDVQQGEwJESzEVMBMGA1UEChMMVERDIElu -dGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQgUm9vdCBDQTENMAsGA1UEAxME -Q1JMMTArBgNVHRAEJDAigA8yMDAxMDQwNTE2MzMxN1qBDzIwMjEwNDA1MTcwMzE3 -WjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUbGQBx/2FbazI2p5QCIUItTxWqFAw -HQYDVR0OBBYEFGxkAcf9hW2syNqeUAiFCLU8VqhQMAwGA1UdEwQFMAMBAf8wHQYJ -KoZIhvZ9B0EABBAwDhsIVjUuMDo0LjADAgSQMA0GCSqGSIb3DQEBBQUAA4IBAQBO -Q8zR3R0QGwZ/t6T609lN+yOfI1Rb5osvBCiLtSdtiaHsmGnc540mgwV5dOy0uaOX -wTUA/RXaOYE6lTGQ3pfphqiZdwzlWqCE/xIWrG64jcN7ksKsLtB9KOy282A4aW8+ -2ARVPp7MVdK6/rtHBNcK2RYKNCn1WBPVT8+PVkuzHu7TmHnaCB4Mb7j4Fifvwm89 -9qNLPg7kbWzbO0ESm70NRyN/PErQr8Cv9u8btRXE64PECV90i9kR+8JWsTz4cMo0 -jUNAE4z9mQNUecYu6oah9jrUCbz0vGbMPVjQV0kK7iXiQe4T+Zs4NNEA9X7nlB38 -aQNiuJkFBT1reBK9sG9l ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIB4TCCAYegAwIBAgIRKjikHJYKBN5CsiilC+g0mAIwCgYIKoZIzj0EAwIwUDEk -MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI0MRMwEQYDVQQKEwpH -bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX -DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD -QSAtIFI0MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu -MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuMZ5049sJQ6fLjkZHAOkrprlOQcJ -FspjsbmG+IpXwVfOQvpzofdlQv8ewQCybnMO/8ch5RikqtlxP6jUuc6MHaNCMEAw -DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFFSwe61F -uOJAf/sKbvu+M8k8o4TVMAoGCCqGSM49BAMCA0gAMEUCIQDckqGgE6bPA7DmxCGX -kPoUVy0D7O48027KqGx2vKLeuwIgJ6iFJzWbVsaj8kfSt24bAgAXqmemFZHe+pTs -ewv4n4Q= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF0DCCBLigAwIBAgIEOrZQizANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJC -TTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDElMCMGA1UECxMcUm9vdCBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eTEuMCwGA1UEAxMlUXVvVmFkaXMgUm9vdCBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wMTAzMTkxODMzMzNaFw0yMTAzMTcxODMz -MzNaMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMSUw -IwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYDVQQDEyVR -dW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv2G1lVO6V/z68mcLOhrfEYBklbTRvM16z/Yp -li4kVEAkOPcahdxYTMukJ0KX0J+DisPkBgNbAKVRHnAEdOLB1Dqr1607BxgFjv2D -rOpm2RgbaIr1VxqYuvXtdj182d6UajtLF8HVj71lODqV0D1VNk7feVcxKh7YWWVJ -WCCYfqtffp/p1k3sg3Spx2zY7ilKhSoGFPlU5tPaZQeLYzcS19Dsw3sgQUSj7cug -F+FxZc4dZjH3dgEZyH0DWLaVSR2mEiboxgx24ONmy+pdpibu5cxfvWenAScOospU -xbF6lR1xHkopigPcakXBpBlebzbNw6Kwt/5cOOJSvPhEQ+aQuwIDAQABo4ICUjCC -Ak4wPQYIKwYBBQUHAQEEMTAvMC0GCCsGAQUFBzABhiFodHRwczovL29jc3AucXVv -dmFkaXNvZmZzaG9yZS5jb20wDwYDVR0TAQH/BAUwAwEB/zCCARoGA1UdIASCAREw -ggENMIIBCQYJKwYBBAG+WAABMIH7MIHUBggrBgEFBQcCAjCBxxqBxFJlbGlhbmNl -IG9uIHRoZSBRdW9WYWRpcyBSb290IENlcnRpZmljYXRlIGJ5IGFueSBwYXJ0eSBh -c3N1bWVzIGFjY2VwdGFuY2Ugb2YgdGhlIHRoZW4gYXBwbGljYWJsZSBzdGFuZGFy -ZCB0ZXJtcyBhbmQgY29uZGl0aW9ucyBvZiB1c2UsIGNlcnRpZmljYXRpb24gcHJh -Y3RpY2VzLCBhbmQgdGhlIFF1b1ZhZGlzIENlcnRpZmljYXRlIFBvbGljeS4wIgYI -KwYBBQUHAgEWFmh0dHA6Ly93d3cucXVvdmFkaXMuYm0wHQYDVR0OBBYEFItLbe3T -KbkGGew5Oanwl4Rqy+/fMIGuBgNVHSMEgaYwgaOAFItLbe3TKbkGGew5Oanwl4Rq -y+/foYGEpIGBMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1p -dGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYD -VQQDEyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggQ6tlCL -MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAitQUtf70mpKnGdSk -fnIYj9lofFIk3WdvOXrEql494liwTXCYhGHoG+NpGA7O+0dQoE7/8CQfvbLO9Sf8 -7C9TqnN7Az10buYWnuulLsS/VidQK2K6vkscPFVcQR0kvoIgR13VRH56FmjffU1R -cHhXHTMe/QKZnAzNCgVPx7uOpHX6Sm2xgI4JVrmcGmD+XcHXetwReNDWXcG31a0y -mQM6isxUJTkxgXsTIlG6Rmyhu576BGxJJnSP0nPrzDCi5upZIof4l/UO/erMkqQW -xFIY6iHOsfHmhIHluqmGKPJDWl0Snawe2ajlCmqnf6CHKc/yiU3U7MXi5nrQNiOK -SnQ2+Q== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx -KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd -BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl -YyBHbG9iYWxSb290IENsYXNzIDIwHhcNMDgxMDAxMTA0MDE0WhcNMzMxMDAxMjM1 -OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy -aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50 -ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDIwggEiMA0G -CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqX9obX+hzkeXaXPSi5kfl82hVYAUd -AqSzm1nzHoqvNK38DcLZSBnuaY/JIPwhqgcZ7bBcrGXHX+0CfHt8LRvWurmAwhiC -FoT6ZrAIxlQjgeTNuUk/9k9uN0goOA/FvudocP05l03Sx5iRUKrERLMjfTlH6VJi -1hKTXrcxlkIF+3anHqP1wvzpesVsqXFP6st4vGCvx9702cu+fjOlbpSD8DT6Iavq -jnKgP6TeMFvvhk1qlVtDRKgQFRzlAVfFmPHmBiiRqiDFt1MmUUOyCxGVWOHAD3bZ -wI18gfNycJ5v/hqO2V81xrJvNHy+SE/iWjnX2J14np+GPgNeGYtEotXHAgMBAAGj -QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS/ -WSA2AHmgoCJrjNXyYdK4LMuCSjANBgkqhkiG9w0BAQsFAAOCAQEAMQOiYQsfdOhy -NsZt+U2e+iKo4YFWz827n+qrkRk4r6p8FU3ztqONpfSO9kSpp+ghla0+AGIWiPAC -uvxhI+YzmzB6azZie60EI4RYZeLbK4rnJVM3YlNfvNoBYimipidx5joifsFvHZVw -IEoHNN/q/xWA5brXethbdXwFeilHfkCoMRN3zUA7tFFHei4R40cR3p1m0IvVVGb6 -g1XqfMIpiRvpb7PO4gWEyS8+eIVibslfwXhjdFjASBgMmTnrpMwatXlajRWc2BQN -9noHV8cigwUtPJslJj0Ys6lDfMjIq2SPDqO/nBudMNva0Bkuqjzx+zOAduTNrRlP -BSeOE6Fuwg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFODCCAyCgAwIBAgIRAJW+FqD3LkbxezmCcvqLzZYwDQYJKoZIhvcNAQEFBQAw -NzEUMBIGA1UECgwLVGVsaWFTb25lcmExHzAdBgNVBAMMFlRlbGlhU29uZXJhIFJv -b3QgQ0EgdjEwHhcNMDcxMDE4MTIwMDUwWhcNMzIxMDE4MTIwMDUwWjA3MRQwEgYD -VQQKDAtUZWxpYVNvbmVyYTEfMB0GA1UEAwwWVGVsaWFTb25lcmEgUm9vdCBDQSB2 -MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMK+6yfwIaPzaSZVfp3F -VRaRXP3vIb9TgHot0pGMYzHw7CTww6XScnwQbfQ3t+XmfHnqjLWCi65ItqwA3GV1 -7CpNX8GH9SBlK4GoRz6JI5UwFpB/6FcHSOcZrr9FZ7E3GwYq/t75rH2D+1665I+X -Z75Ljo1kB1c4VWk0Nj0TSO9P4tNmHqTPGrdeNjPUtAa9GAH9d4RQAEX1jF3oI7x+ -/jXh7VB7qTCNGdMJjmhnXb88lxhTuylixcpecsHHltTbLaC0H2kD7OriUPEMPPCs -81Mt8Bz17Ww5OXOAFshSsCPN4D7c3TxHoLs1iuKYaIu+5b9y7tL6pe0S7fyYGKkm -dtwoSxAgHNN/Fnct7W+A90m7UwW7XWjH1Mh1Fj+JWov3F0fUTPHSiXk+TT2YqGHe -Oh7S+F4D4MHJHIzTjU3TlTazN19jY5szFPAtJmtTfImMMsJu7D0hADnJoWjiUIMu -sDor8zagrC/kb2HCUQk5PotTubtn2txTuXZZNp1D5SDgPTJghSJRt8czu90VL6R4 -pgd7gUY2BIbdeTXHlSw7sKMXNeVzH7RcWe/a6hBle3rQf5+ztCo3O3CLm1u5K7fs -slESl1MpWtTwEhDcTwK7EpIvYtQ/aUN8Ddb8WHUBiJ1YFkveupD/RwGJBmr2X7KQ -arMCpgKIv7NHfirZ1fpoeDVNAgMBAAGjPzA9MA8GA1UdEwEB/wQFMAMBAf8wCwYD -VR0PBAQDAgEGMB0GA1UdDgQWBBTwj1k4ALP1j5qWDNXr+nuqF+gTEjANBgkqhkiG -9w0BAQUFAAOCAgEAvuRcYk4k9AwI//DTDGjkk0kiP0Qnb7tt3oNmzqjMDfz1mgbl -dxSR651Be5kqhOX//CHBXfDkH1e3damhXwIm/9fH907eT/j3HEbAek9ALCI18Bmx -0GtnLLCo4MBANzX2hFxc469CeP6nyQ1Q6g2EdvZR74NTxnr/DlZJLo961gzmJ1Tj -TQpgcmLNkQfWpb/ImWvtxBnmq0wROMVvMeJuScg/doAmAyYp4Db29iBT4xdwNBed -Y2gea+zDTYa4EzAvXUYNR0PVG6pZDrlcjQZIrXSHX8f8MVRBE+LHIQ6e4B4N4cB7 -Q4WQxYpYxmUKeFfyxiMPAdkgS94P+5KFdSpcc41teyWRyu5FrgZLAMzTsVlQ2jqI -OylDRl6XK1TOU2+NSueW+r9xDkKLfP0ooNBIytrEgUy7onOTJsjrDNYmiLbAJM+7 -vVvrdX3pCI6GMyx5dwlppYn8s3CQh3aP0yK7Qs69cwsgJirQmz1wHiRszYd2qReW -t88NkvuOGKmYSdGe/mBEciG5Ge3C9THxOUiIkCR1VBatzvT4aRRkOfujuLpwQMcn -HL/EVlP6Y2XQ8xwOFvVrhlhNGNTkDY6lnVuR3HYkUD/GKvvZt5y11ubQ2egZixVx -SK236thZiNSQvxaz2emsWWFUyBy6ysHK4bkgTI86k4mloMy/0/Z1pHWWbVY= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCB -qTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf -Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw -MDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNV -BAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3MDAwMDAwWhcNMzYw -NzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5j -LjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYG -A1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl -IG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCsoPD7gFnUnMekz52hWXMJEEUMDSxuaPFs -W0hoSVk3/AszGcJ3f8wQLZU0HObrTQmnHNK4yZc2AreJ1CRfBsDMRJSUjQJib+ta -3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/u6f1OCyn1PoSgAfGcq/gcfomk -6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6 -Sk/KaAcdHJ1KxtUvkcx8cXIcxcBn6zL9yZJclNqFwJu/U30rCfSMnZEfl2pSy94J -NqR32HuHUETVPm4pafs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBA -MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBR7W0XP -r87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUFAAOCAQEAeRHAS7ORtvzw6WfU -DW5FvlXok9LOAz/t2iWwHVfLHjp2oEzsUHboZHIMpKnxuIvW1oeEuzLlQRHAd9mz -YJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/Ac9IiAX -xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2 -/qxAeeWsEG89jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/ -LHbTY5xZ3Y+m4Q6gLkH3LpVHz7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7 -jVaMaA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDhDCCAmygAwIBAgIBCTANBgkqhkiG9w0BAQUFADAzMQswCQYDVQQGEwJDTjER -MA8GA1UEChMIVW5pVHJ1c3QxETAPBgNVBAMTCFVDQSBSb290MB4XDTA0MDEwMTAw -MDAwMFoXDTI5MTIzMTAwMDAwMFowMzELMAkGA1UEBhMCQ04xETAPBgNVBAoTCFVu -aVRydXN0MREwDwYDVQQDEwhVQ0EgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBALNdB8qGJn1r4vs4CQ7MgsJqGgCiFV/W6dQBt1YDAVmP9ThpJHbC -XivF9iu/r/tB/Q9a/KvXg3BNMJjRnrJ2u5LWu+kQKGkoNkTo8SzXWHwk1n8COvCB -a2FgP/Qz3m3l6ihST/ypHWN8C7rqrsRoRuTej8GnsrZYWm0dLNmMOreIy4XU9+gD -Xv2yTVDo1h//rgI/i0+WITyb1yXJHT/7mLFZ5PCpO6+zzYUs4mBGzG+OoOvwNMXx -QhhgrhLtRnUc5dipllq+3lrWeGeWW5N3UPJuG96WUUqm1ktDdSFmjXfsAoR2XEQQ -th1hbOSjIH23jboPkXXHjd+8AmCoKai9PUMCAwEAAaOBojCBnzALBgNVHQ8EBAMC -AQYwDAYDVR0TBAUwAwEB/zBjBgNVHSUEXDBaBggrBgEFBQcDAQYIKwYBBQUHAwIG -CCsGAQUFBwMDBggrBgEFBQcDBAYIKwYBBQUHAwUGCCsGAQUFBwMGBggrBgEFBQcD -BwYIKwYBBQUHAwgGCCsGAQUFBwMJMB0GA1UdDgQWBBTbHzXza0z/QjFkm827Wh4d -SBC37jANBgkqhkiG9w0BAQUFAAOCAQEAOGy3iPGt+lg3dNHocN6cJ1nL5BXXoMNg -14iABMUwTD3UGusGXllH5rxmy+AI/Og17GJ9ysDawXiv5UZv+4mCI4/211NmVaDe -JRI7cTYWVRJ2+z34VFsxugAG+H1V5ad2g6pcSpemKijfvcZsCyOVjjN/Hl5AHxNU -LJzltQ7dFyiuawHTUin1Ih+QOfTcYmjwPIZH7LgFRbu3DJaUxmfLI3HQjnQi1kHr -A6i26r7EARK1s11AdgYg1GS4KUYGis4fk5oQ7vuqWrTcL9Ury/bXBYSYBZELhPc9 -+tb5evosFeo2gkO3t7jj83EB7UNDogVFwygFBzXjAaU4HoDU18PZ3g== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCB -ijELMAkGA1UEBhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHly -aWdodCAoYykgMjAwNTEiMCAGA1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNl -ZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBHbG9iYWwgUm9vdCBHQSBDQTAeFw0w -NTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYDVQQGEwJDSDEQMA4G -A1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIwIAYD -VQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBX -SVNlS2V5IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A -MIIBCgKCAQEAy0+zAJs9Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxR -VVuuk+g3/ytr6dTqvirdqFEr12bDYVxgAsj1znJ7O7jyTmUIms2kahnBAbtzptf2 -w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbDd50kc3vkDIzh2TbhmYsF -mQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ/yxViJGg -4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t9 -4B3RLoGbw9ho972WG6xwsRYUC9tguSYBBQIDAQABo1EwTzALBgNVHQ8EBAMCAYYw -DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUswN+rja8sHnR3JQmthG+IbJphpQw -EAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBAEuh/wuHbrP5wUOx -SPMowB0uyQlB+pQAHKSkq0lPjz0e701vvbyk9vImMMkQyh2I+3QZH4VFvbBsUfk2 -ftv1TDI6QU9bR8/oCy22xBmddMVHxjtqD6wU2zz0c5ypBd8A3HR4+vg1YFkCExh8 -vPtNsCBtQ7tgMHpnM1zFmdH4LTlSc/uMqpclXHLZCB6rTjzjgTGfA6b7wP4piFXa -hNVQA7bihKOmNqoROgHhGEvWRGizPflTdISzRpFGlgC3gCy24eMQ4tui5yiPAZZi -Fj4A4xylNoEYokxSdsARo27mHbrjWr42U8U+dY+GaSlYU7Wcu2+fXMUY7N0v4ZjJ -/L7fCg0= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDlDCCAnygAwIBAgIQWAsFbFMk27JQVxhf+eWmUDANBgkqhkiG9w0BAQUFADAn -MQswCQYDVQQGEwJCRTEYMBYGA1UEAxMPQmVsZ2l1bSBSb290IENBMB4XDTAzMDEy -NjIzMDAwMFoXDTE0MDEyNjIzMDAwMFowJzELMAkGA1UEBhMCQkUxGDAWBgNVBAMT -D0JlbGdpdW0gUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB -AMihcekcRkJ5eHFvna6pqKsot03HIOswkVp19eLSz8hMFJhCWK3HEcVAQGpa+XQS -J4fpnOVxTiIs0RIYqjBeoiG52bv/9nTrMQHnO35YD5EWTXaJqAFPrSJmcPpLHZXB -MFjqvNll2Jq0iOtJRlLf0lMVdssUXRlJsW9q09P9vMIt7EU/CT9YvvzU7wCMgTVy -v/cY6pZifSsofxVsY9LKyn0FrMhtB20yvmi4BUCuVJhWPmbxMOjvxKuTXgfeMo8S -dKpbNCNUwOpszv42kqgJF+qhLc9s44Qd3ocuMws8dOIhUDiVLlzg5cYx+dtA+mqh -pIqTm6chBocdJ9PEoclMsG8CAwEAAaOBuzCBuDAOBgNVHQ8BAf8EBAMCAQYwDwYD -VR0TAQH/BAUwAwEB/zBCBgNVHSAEOzA5MDcGBWA4AQEBMC4wLAYIKwYBBQUHAgEW -IGh0dHA6Ly9yZXBvc2l0b3J5LmVpZC5iZWxnaXVtLmJlMB0GA1UdDgQWBBQQ8AxW -m2HqVzq2NZdtn925FI7b5jARBglghkgBhvhCAQEEBAMCAAcwHwYDVR0jBBgwFoAU -EPAMVpth6lc6tjWXbZ/duRSO2+YwDQYJKoZIhvcNAQEFBQADggEBAMhtIlGKYfgP -lm7VILKB+MbcoxYA2s1q52sq+llIp0xJN9dzoWoBZV4yveeX09AuPHPTjHuD79ZC -wT+oqV0PN7p20kC9zC0/00RBSZz9Wyn0AiMiW3Ebv1jZKE4tRfTa57VjRUQRDSp/ -M382SbTObqkCMa5c/ciJv0J71/Fg8teH9lcuen5qE4Ad3OPQYx49cTGxYNSeCMqr -8JTHSHVUgfMbrXec6LKP24OsjzRr6L/D2fVDw2RV6xq9NoY2uiGMlxoh1OotO6y6 -7Kcdq765Sps1LxxcHVGnH1TtEpf/8m6HfUbJdNbv6z195lluBpQE5KJVhzgoaiJe -4r50ErAEQyo= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UE -BhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVz -dCBDb21tZXJjaWFsMB4XDTEwMDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDEL -MAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZp -cm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6EqdbDuKP -Hx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yr -ba0F8PrVC8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPAL -MeIrJmqbTFeurCA+ukV6BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1 -yHp52UKqK39c/s4mT6NmgTWvRLpUHhwwMmWd5jyTXlBOeuM61G7MGvv50jeuJCqr -VwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNVHQ4EFgQUnZPGU4teyq8/ -nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwDQYJ -KoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYG -XUPGhi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNj -vbz4YYCanrHOQnDiqX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivt -Z8SOyUOyXGsViQK8YvxO8rUzqrJv0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9g -N53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0khsUlHRUe072o0EclNmsxZt9YC -nlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEQzCCAyugAwIBAgIDCYP0MA0GCSqGSIb3DQEBCwUAMFAxCzAJBgNVBAYTAkRF -MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxKjAoBgNVBAMMIUQtVFJVU1QgUm9vdCBD -bGFzcyAzIENBIDIgRVYgMjAwOTAeFw0wOTExMDUwODUwNDZaFw0yOTExMDUwODUw -NDZaMFAxCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxELVRydXN0IEdtYkgxKjAoBgNV -BAMMIUQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgRVYgMjAwOTCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAJnxhDRwui+3MKCOvXwEz75ivJn9gpfSegpn -ljgJ9hBOlSJzmY3aFS3nBfwZcyK3jpgAvDw9rKFs+9Z5JUut8Mxk2og+KbgPCdM0 -3TP1YtHhzRnp7hhPTFiu4h7WDFsVWtg6uMQYZB7jM7K1iXdODL/ZlGsTl28So/6Z -qQTMFexgaDbtCHu39b+T7WYxg4zGcTSHThfqr4uRjRxWQa4iN1438h3Z0S0NL2lR -p75mpoo6Kr3HGrHhFPC+Oh25z1uxav60sUYgovseO3Dvk5h9jHOW8sXvhXCtKSb8 -HgQ+HKDYD8tSg2J87otTlZCpV6LqYQXY+U3EJ/pure3511H3a6UCAwEAAaOCASQw -ggEgMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNOUikxiEyoZLsyvcop9Ntea -HNxnMA4GA1UdDwEB/wQEAwIBBjCB3QYDVR0fBIHVMIHSMIGHoIGEoIGBhn9sZGFw -Oi8vZGlyZWN0b3J5LmQtdHJ1c3QubmV0L0NOPUQtVFJVU1QlMjBSb290JTIwQ2xh -c3MlMjAzJTIwQ0ElMjAyJTIwRVYlMjAyMDA5LE89RC1UcnVzdCUyMEdtYkgsQz1E -RT9jZXJ0aWZpY2F0ZXJldm9jYXRpb25saXN0MEagRKBChkBodHRwOi8vd3d3LmQt -dHJ1c3QubmV0L2NybC9kLXRydXN0X3Jvb3RfY2xhc3NfM19jYV8yX2V2XzIwMDku -Y3JsMA0GCSqGSIb3DQEBCwUAA4IBAQA07XtaPKSUiO8aEXUHL7P+PPoeUSbrh/Yp -3uDx1MYkCenBz1UbtDDZzhr+BlGmFaQt77JLvyAoJUnRpjZ3NOhk31KxEcdzes05 -nsKtjHEh8lprr988TlWvsoRlFIm5d8sqMb7Po23Pb0iUMkZv53GMoKaEGTcH8gNF -CSuGdXzfX2lXANtu2KZyIktQ1HWYVt+3GP9DQ1CuekR78HlR10M9p9OB0/DJT7na -xpeG0ILD5EJt/rDiZE4OJudANCa1CInXCGNjOCd1HjPqbqjdn5lPdE2BiYBL3ZqX -KVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVvw9y4AyHqnxbxLFS1 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF2TCCA8GgAwIBAgIQHp4o6Ejy5e/DfEoeWhhntjANBgkqhkiG9w0BAQsFADBk -MQswCQYDVQQGEwJjaDERMA8GA1UEChMIU3dpc3Njb20xJTAjBgNVBAsTHERpZ2l0 -YWwgQ2VydGlmaWNhdGUgU2VydmljZXMxGzAZBgNVBAMTElN3aXNzY29tIFJvb3Qg -Q0EgMjAeFw0xMTA2MjQwODM4MTRaFw0zMTA2MjUwNzM4MTRaMGQxCzAJBgNVBAYT -AmNoMREwDwYDVQQKEwhTd2lzc2NvbTElMCMGA1UECxMcRGlnaXRhbCBDZXJ0aWZp -Y2F0ZSBTZXJ2aWNlczEbMBkGA1UEAxMSU3dpc3Njb20gUm9vdCBDQSAyMIICIjAN -BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAlUJOhJ1R5tMJ6HJaI2nbeHCOFvEr -jw0DzpPMLgAIe6szjPTpQOYXTKueuEcUMncy3SgM3hhLX3af+Dk7/E6J2HzFZ++r -0rk0X2s682Q2zsKwzxNoysjL67XiPS4h3+os1OD5cJZM/2pYmLcX5BtS5X4HAB1f -2uY+lQS3aYg5oUFgJWFLlTloYhyxCwWJwDaCFCE/rtuh/bxvHGCGtlOUSbkrRsVP -ACu/obvLP+DHVxxX6NZp+MEkUp2IVd3Chy50I9AU/SpHWrumnf2U5NGKpV+GY3aF -y6//SSj8gO1MedK75MDvAe5QQQg1I3ArqRa0jG6F6bYRzzHdUyYb3y1aSgJA/MTA -tukxGggo5WDDH8SQjhBiYEQN7Aq+VRhxLKX0srwVYv8c474d2h5Xszx+zYIdkeNL -6yxSNLCK/RJOlrDrcH+eOfdmQrGrrFLadkBXeyq96G4DsguAhYidDMfCd7Camlf0 -uPoTXGiTOmekl9AbmbeGMktg2M7v0Ax/lZ9vh0+Hio5fCHyqW/xavqGRn1V9TrAL -acywlKinh/LTSlDcX3KwFnUey7QYYpqwpzmqm59m2I2mbJYV4+by+PGDYmy7Velh -k6M99bFXi08jsJvllGov34zflVEpYKELKeRcVVi3qPyZ7iVNTA6z00yPhOgpD/0Q -VAKFyPnlw4vP5w8CAwEAAaOBhjCBgzAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0hBBYw -FDASBgdghXQBUwIBBgdghXQBUwIBMBIGA1UdEwEB/wQIMAYBAf8CAQcwHQYDVR0O -BBYEFE0mICKJS9PVpAqhb97iEoHF8TwuMB8GA1UdIwQYMBaAFE0mICKJS9PVpAqh -b97iEoHF8TwuMA0GCSqGSIb3DQEBCwUAA4ICAQAyCrKkG8t9voJXiblqf/P0wS4R -fbgZPnm3qKhyN2abGu2sEzsOv2LwnN+ee6FTSA5BesogpxcbtnjsQJHzQq0Qw1zv -/2BZf82Fo4s9SBwlAjxnffUy6S8w5X2lejjQ82YqZh6NM4OKb3xuqFp1mrjX2lhI -REeoTPpMSQpKwhI3qEAMw8jh0FcNlzKVxzqfl9NX+Ave5XLzo9v/tdhZsnPdTSpx -srpJ9csc1fV5yJmz/MFMdOO0vSk3FQQoHt5FRnDsr7p4DooqzgB53MBfGWcsa0vv -aGgLQ+OswWIJ76bdZWGgr4RVSJFSHMYlkSrQwSIjYVmvRRGFHQEkNI/Ps/8XciAT -woCqISxxOQ7Qj1zB09GOInJGTB2Wrk9xseEFKZZZ9LuedT3PDTcNYtsmjGOpI99n -Bjx8Oto0QuFmtEYE3saWmA9LSHokMnWRn6z3aOkquVVlzl1h0ydw2Df+n7mvoC5W -t6NlUe07qxS/TFED6F+KBZvuim6c779o+sjaC+NCydAXFJy3SuCvkychVSa1ZC+N -8f+mQAWFBVzKBxlcCxMoTFh/wqXvRdpg065lYZ1Tg3TCrvJcwhbtkj6EPnNgiLx2 -9CzP0H1907he0ZESEOnN3col49XtmS++dYFLJPlFRpTJKSFTnCZFqhMX5OfNeOI5 -wSsSnqaeG8XmDtkx2Q== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEZjCCA06gAwIBAgIQRL4Mi1AAJLQR0zYt4LNfGzANBgkqhkiG9w0BAQUFADCB -lTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHTAbBgNVBAMTFFVUTi1VU0VSRmlyc3Qt -T2JqZWN0MB4XDTk5MDcwOTE4MzEyMFoXDTE5MDcwOTE4NDAzNlowgZUxCzAJBgNV -BAYTAlVTMQswCQYDVQQIEwJVVDEXMBUGA1UEBxMOU2FsdCBMYWtlIENpdHkxHjAc -BgNVBAoTFVRoZSBVU0VSVFJVU1QgTmV0d29yazEhMB8GA1UECxMYaHR0cDovL3d3 -dy51c2VydHJ1c3QuY29tMR0wGwYDVQQDExRVVE4tVVNFUkZpcnN0LU9iamVjdDCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6qgT+jo2F4qjEAVZURnicP -HxzfOpuCaDDASmEd8S8O+r5596Uj71VRloTN2+O5bj4x2AogZ8f02b+U60cEPgLO -KqJdhwQJ9jCdGIqXsqoc/EHSoTbL+z2RuufZcDX65OeQw5ujm9M89RKZd7G3CeBo -5hy485RjiGpq/gt2yb70IuRnuasaXnfBhQfdDWy/7gbHd2pBnqcP1/vulBe3/IW+ -pKvEHDHd17bR5PDv3xaPslKT16HUiaEHLr/hARJCHhrh2JU022R5KP+6LhHC5ehb -kkj7RwvCbNqtMoNB86XlQXD9ZZBt+vpRxPm9lisZBCzTbafc8H9vg2XiaquHhnUC -AwEAAaOBrzCBrDALBgNVHQ8EBAMCAcYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E -FgQU2u1kdBScFDyr3ZmpvVsoTYs8ydgwQgYDVR0fBDswOTA3oDWgM4YxaHR0cDov -L2NybC51c2VydHJ1c3QuY29tL1VUTi1VU0VSRmlyc3QtT2JqZWN0LmNybDApBgNV -HSUEIjAgBggrBgEFBQcDAwYIKwYBBQUHAwgGCisGAQQBgjcKAwQwDQYJKoZIhvcN -AQEFBQADggEBAAgfUrE3RHjb/c652pWWmKpVZIC1WkDdIaXFwfNfLEzIR1pp6ujw -NTX00CXzyKakh0q9G7FzCL3Uw8q2NbtZhncxzaeAFK4T7/yxSPlrJSUtUbYsbUXB -mMiKVl0+7kNOPmsnjtA6S4ULX9Ptaqd1y9Fahy85dRNacrACgZ++8A+EVCBibGnU -4U3GDZlDAQ0Slox4nb9QorFEqmrPF3rPbw/U+CRVX/A0FklmPlBGyWNxODFiuGK5 -81OtbLUrohKqGU8J2l7nk8aOFAj+8DCAGKCGhU3IfdeLA/5u1fedFqySLKAj5ZyR -Uh+U3xeUc8OzwcFxBSAAeL0TUh2oPs0AH8g= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDjjCCAnagAwIBAgIIKv++n6Lw6YcwDQYJKoZIhvcNAQEFBQAwKDELMAkGA1UE -BhMCQkUxGTAXBgNVBAMTEEJlbGdpdW0gUm9vdCBDQTIwHhcNMDcxMDA0MTAwMDAw -WhcNMjExMjE1MDgwMDAwWjAoMQswCQYDVQQGEwJCRTEZMBcGA1UEAxMQQmVsZ2l1 -bSBSb290IENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMZzQh6S -/3UPi790hqc/7bIYLS2X+an7mEoj39WN4IzGMhwWLQdC1i22bi+n9fzGhYJdld61 -IgDMqFNAn68KNaJ6x+HK92AQZw6nUHMXU5WfIp8MXW+2QbyM69odRr2nlL/zGsvU -+40OHjPIltfsjFPekx40HopQcSZYtF3CiInaYNKJIT/e1wEYNm7hLHADBGXvmAYr -XR5i3FVr/mZkIV/4L+HXmymvb82fqgxG0YjFnaKVn6w/Fa7yYd/vw2uaItgscf1Y -HewApDgglVrH1Tdjuk+bqv5WRi5j2Qsj1Yr6tSPwiRuhFA0m2kHwOI8w7QUmecFL -TqG4flVSOmlGhHUCAwEAAaOBuzCBuDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ -BAUwAwEB/zBCBgNVHSAEOzA5MDcGBWA4CQEBMC4wLAYIKwYBBQUHAgEWIGh0dHA6 -Ly9yZXBvc2l0b3J5LmVpZC5iZWxnaXVtLmJlMB0GA1UdDgQWBBSFiuv0xbu+DlkD -lN7WgAEV4xCcOTARBglghkgBhvhCAQEEBAMCAAcwHwYDVR0jBBgwFoAUhYrr9MW7 -vg5ZA5Te1oABFeMQnDkwDQYJKoZIhvcNAQEFBQADggEBAFHYhd27V2/MoGy1oyCc -UwnzSgEMdL8rs5qauhjyC4isHLMzr87lEwEnkoRYmhC598wUkmt0FoqW6FHvv/pK -JaeJtmMrXZRY0c8RcrYeuTlBFk0pvDVTC9rejg7NqZV3JcqUWumyaa7YwBO+mPyW -nIR/VRPmPIfjvCCkpDZoa01gZhz5v6yAlGYuuUGK02XThIAC71AdXkbc98m6tTR8 -KvPG2F9fVJ3bTc0R5/0UAoNmXsimABKgX77OFP67H6dh96tK8QYUn8pJQsKpvO2F -sauBQeYNxUJpU4c5nUwfAA4+Bw11V0SoU7Q2dmSZ3G7rPUZuFF1eR1ONeE3gJ7uO -hXY= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFyjCCA7KgAwIBAgIEAJiWjDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJO -TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFh -dCBkZXIgTmVkZXJsYW5kZW4gUm9vdCBDQSAtIEcyMB4XDTA4MDMyNjExMTgxN1oX -DTIwMDMyNTExMDMxMFowWjELMAkGA1UEBhMCTkwxHjAcBgNVBAoMFVN0YWF0IGRl -ciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5lZGVybGFuZGVuIFJv -b3QgQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMVZ5291 -qj5LnLW4rJ4L5PnZyqtdj7U5EILXr1HgO+EASGrP2uEGQxGZqhQlEq0i6ABtQ8Sp -uOUfiUtnvWFI7/3S4GCI5bkYYCjDdyutsDeqN95kWSpGV+RLufg3fNU254DBtvPU -Z5uW6M7XxgpT0GtJlvOjCwV3SPcl5XCsMBQgJeN/dVrlSPhOewMHBPqCYYdu8DvE -pMfQ9XQ+pV0aCPKbJdL2rAQmPlU6Yiile7Iwr/g3wtG61jj99O9JMDeZJiFIhQGp -5Rbn3JBV3w/oOM2ZNyFPXfUib2rFEhZgF1XyZWampzCROME4HYYEhLoaJXhena/M -UGDWE4dS7WMfbWV9whUYdMrhfmQpjHLYFhN9C0lK8SgbIHRrxT3dsKpICT0ugpTN -GmXZK4iambwYfp/ufWZ8Pr2UuIHOzZgweMFvZ9C+X+Bo7d7iscksWXiSqt8rYGPy -5V6548r6f1CGPqI0GAwJaCgRHOThuVw+R7oyPxjMW4T182t0xHJ04eOLoEq9jWYv -6q012iDTiIJh8BIitrzQ1aTsr1SIJSQ8p22xcik/Plemf1WvbibG/ufMQFxRRIEK -eN5KzlW/HdXZt1bv8Hb/C3m1r737qWmRRpdogBQ2HbN/uymYNqUg+oJgYjOk7Na6 -B6duxc8UpufWkjTYgfX8HV2qXB72o007uPc5AgMBAAGjgZcwgZQwDwYDVR0TAQH/ -BAUwAwEB/zBSBgNVHSAESzBJMEcGBFUdIAAwPzA9BggrBgEFBQcCARYxaHR0cDov -L3d3dy5wa2lvdmVyaGVpZC5ubC9wb2xpY2llcy9yb290LXBvbGljeS1HMjAOBgNV -HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJFoMocVHYnitfGsNig0jQt8YojrMA0GCSqG -SIb3DQEBCwUAA4ICAQCoQUpnKpKBglBu4dfYszk78wIVCVBR7y29JHuIhjv5tLyS -CZa59sCrI2AGeYwRTlHSeYAz+51IvuxBQ4EffkdAHOV6CMqqi3WtFMTC6GY8ggen -5ieCWxjmD27ZUD6KQhgpxrRW/FYQoAUXvQwjf/ST7ZwaUb7dRUG/kSS0H4zpX897 -IZmflZ85OkYcbPnNe5yQzSipx6lVu6xiNGI1E0sUOlWDuYaNkqbG9AclVMwWVxJK -gnjIFNkXgiYtXSAfea7+1HAWFpWD2DU5/1JddRwWxRNVz0fMdWVSSt7wsKfkCpYL -+63C4iWEst3kvX5ZbJvw8NjnyvLplzh+ib7M+zkXYT9y2zqR2GUBGR2tUKRXCnxL -vJxxcypFURmFzI79R6d0lR2o0a9OF7FpJsKqeFdbxU2n5Z4FF5TKsl+gSRiNNOkm -bEgeqmiSBeGCc1qb3AdbCG19ndeNIdn8FCCqwkXfP+cAslHkwvgFuXkajDTznlvk -N1trSt8sV4pAWja63XVECDdCcAz+3F4hoKOKwJCcaNpQ5kUQR3i2TtJlycM33+FC -Y7BXN0Ute4qcvwXqZVUz9zkQxSgqIXobisQk+T8VyJoVIPVVYpbtbZNQvOSqeK3Z -ywplh6ZmwcSBo3c6WB4L7oOLnR7SUqTMHW+wmG2UMbX4cQrcufx9MmDm66+KAQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICHjCCAaSgAwIBAgIRYFlJ4CYuu1X5CneKcflK2GwwCgYIKoZIzj0EAwMwUDEk -MCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBDQSAtIFI1MRMwEQYDVQQKEwpH -bG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTEyMTExMzAwMDAwMFoX -DTM4MDExOTAzMTQwN1owUDEkMCIGA1UECxMbR2xvYmFsU2lnbiBFQ0MgUm9vdCBD -QSAtIFI1MRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWdu -MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAER0UOlvt9Xb/pOdEh+J8LttV7HpI6SFkc -8GIxLcB6KP4ap1yztsyX50XUWPrRd21DosCHZTQKH3rd6zwzocWdTaRvQZU4f8ke -hOvRnkmSh5SHDDqFSmafnVmTTZdhBoZKo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYD -VR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUPeYpSJvqB8ohREom3m7e0oPQn1kwCgYI -KoZIzj0EAwMDaAAwZQIxAOVpEslu28YxuglB4Zf4+/2a4n0Sye18ZNPLBSWLVtmg -515dTguDnFt2KaAJJiFqYgIwcdK1j1zqO+F4CYWodZI7yFz9SO8NdCKoCOJuxUnO -xwy8p2Fp8fc74SrL+SvzZpA3 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYD -VQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0 -IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3 -MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD -aGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMxNDBaFw0zODA3MzEx -MjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUgY3Vy -cmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAG -A1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAl -BgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODCCAiIwDQYJKoZI -hvcNAQEBBQADggIPADCCAgoCggIBAMDfVtPkOpt2RbQT2//BthmLN0EYlVJH6xed -KYiONWwGMi5HYvNJBL99RDaxccy9Wglz1dmFRP+RVyXfXjaOcNFccUMd2drvXNL7 -G706tcuto8xEpw2uIRU/uXpbknXYpBI4iRmKt4DS4jJvVpyR1ogQC7N0ZJJ0YPP2 -zxhPYLIj0Mc7zmFLmY/CDNBAspjcDahOo7kKrmCgrUVSY7pmvWjg+b4aqIG7HkF4 -ddPB/gBVsIdU6CeQNR1MM62X/JcumIS/LMmjv9GYERTtY/jKmIhYF5ntRQOXfjyG -HoiMvvKRhI9lNNgATH23MRdaKXoKGCQwoze1eqkBfSbW+Q6OWfH9GzO1KTsXO0G2 -Id3UwD2ln58fQ1DJu7xsepeY7s2MH/ucUa6LcL0nn3HAa6x9kGbo1106DbDVwo3V -yJ2dwW3Q0L9R5OP4wzg2rtandeavhENdk5IMagfeOx2YItaswTXbo6Al/3K1dh3e -beksZixShNBFks4c5eUzHdwHU1SjqoI7mjcv3N2gZOnm3b2u/GSFHTynyQbehP9r -6GsaPMWis0L7iwk+XwhSx2LE1AVxv8Rk5Pihg+g+EpuoHtQ2TS9x9o0o9oOpE9Jh -wZG7SMA0j0GMS0zbaRL/UJScIINZc+18ofLx/d33SdNDWKBWY8o9PeU1VlnpDsog -zCtLkykPAgMBAAGjggFqMIIBZjASBgNVHRMBAf8ECDAGAQH/AgEMMB0GA1UdDgQW -BBS5CcqcHtvTbDprru1U8VuTBjUuXjCB4QYDVR0jBIHZMIHWgBS5CcqcHtvTbDpr -ru1U8VuTBjUuXqGBsqSBrzCBrDELMAkGA1UEBhMCRVUxQzBBBgNVBAcTOk1hZHJp -ZCAoc2VlIGN1cnJlbnQgYWRkcmVzcyBhdCB3d3cuY2FtZXJmaXJtYS5jb20vYWRk -cmVzcykxEjAQBgNVBAUTCUE4Mjc0MzI4NzEbMBkGA1UEChMSQUMgQ2FtZXJmaXJt -YSBTLkEuMScwJQYDVQQDEx5HbG9iYWwgQ2hhbWJlcnNpZ24gUm9vdCAtIDIwMDiC -CQDJzdPp1X0jzjAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCow -KAYIKwYBBQUHAgEWHGh0dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZI -hvcNAQEFBQADggIBAICIf3DekijZBZRG/5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZ -UohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6ReAJ3spED8IXDneRRXoz -X1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/sdZ7LoR/x -fxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVz -a2Mg9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yyd -Yhz2rXzdpjEetrHHfoUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMd -SqlapskD7+3056huirRXhOukP9DuqqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9O -AP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETrP3iZ8ntxPjzxmKfFGBI/5rso -M0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVqc5iJWzouE4ge -v8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z -09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF3zCCA8egAwIBAgIOGTMAAQACKBqaBLzyVUUwDQYJKoZIhvcNAQEFBQAwejEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV -BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEnMCUGA1UEAxMeVEMgVHJ1 -c3RDZW50ZXIgVW5pdmVyc2FsIENBIElJMB4XDTA2MDMyMjE1NTgzNFoXDTMwMTIz -MTIyNTk1OVowejELMAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVy -IEdtYkgxJDAiBgNVBAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEnMCUG -A1UEAxMeVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBIElJMIICIjANBgkqhkiG -9w0BAQEFAAOCAg8AMIICCgKCAgEAi9R3azRs5TbYalxeOO781R15Azt7g2JEgk6I -7d6D/+7MUGIFBZWZdpj2ufJf2AaRksL2LWYXH/1TA+iojWOpbuHWG4y8mLOLO9Tk -Lsp9hUkmW3m4GotAnn+7yT9jLM/RWny6KCJBElpN+Rd3/IX9wkngKhh/6aAsnPlE -/AxoOUL1JwW+jhV6YJ3wO8c85j4WvK923mq3ouGrRkXrjGV90ZfzlxElq1nroCLZ -gt2Y7X7i+qBhCkoy3iwX921E6oFHWZdXNwM53V6CItQzuPomCba8OYgvURVOm8M7 -3xOCiN1LNPIz1pDp81PcNXzAw9l8eLPNcD+NauCjgUjkKa1juPD8KGQ7mbN9/pqd -iPaZIgiRRxaJNXhdd6HPv0nh/SSUK2k2e+gc5iqQilvVOzRZQtxtz7sPQRxVzfUN -Wy4WIibvYR6X/OJTyM9bo8ep8boOhhLLE8oVx+zkNo3aXBM9ZdIOXXB03L+PemrB -Lg/Txl4PK1lszGFs/sBhTtnmT0ayWuIZFHCE+CAA7QGnl37DvRJckiMXoKUdRRcV -I5qSCLUiiI3cKyTr4LEXaNOvYb3ZhXj2jbp4yjeNY77nrB/fpUcJucglMVRGURFV -DYlcjdrSGC1z8rjVJ/VIIjfRYvd7Dcg4i6FKsPzQ8eu3hmPn4A5zf/1yUbXpfeJV -BWR4Z38CAwEAAaNjMGEwHwYDVR0jBBgwFoAUzdeQoW6jv9sw1toyJZAM5jkegGUw -DwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFM3XkKFu -o7/bMNbaMiWQDOY5HoBlMA0GCSqGSIb3DQEBBQUAA4ICAQB+FojoEw42zG4qhQc4 -xlaJeuNHIWZMUAgxWlHQ/KZeFHXeTDvs8e3MfhEHSmHu6rOOOqQzxu2KQmZP8Tx7 -yaUFQZmx7Cxb7tyW0ohTS3g0uW7muw/FeqZ8Dhjfbw90TNGp8aHp2FRkzF6WeKJW -GsFzshXGVwXf2vdIJIqOf2qp+U3pPmrOYCx9LZAI9mOPFdAtnIz/8f38DBZQVhT7 -upeG7rRJA1TuG1l/MDoCgoYhrv7wFfLfToPmmcW6NfcgkIw47XXP4S73BDD7Ua2O -giRAyn0pXdXZ92Vk/KqfdLh9kl3ShCngE+qK99CrxK7vFcXCifJ7tjtJmGHzTnKR -N4xJkunI7Cqg90lufA0kxmts8jgvynAF5X/fxisrgIDV2m/LQLvYG/AkyRDIRAJ+ -LtOYqqIN8SvQ2vqOHP9U6OFKbt2o1ni1N6WsZNUUI8cOpevhCTjXwHxgpV2Yj4wC -1dxWqPNNWKkL1HxkdAEy8t8PSoqpAqKiHYR3wvHMl700GXRd4nQ+dSf3r7/ufA5t -VIimVuImrTESPB5BeW0X6hNeH/Vcn0lZo7Ivo0LD+qh+v6WfSMlgYmIK371F3uNC -tVGW/cT1Gpm4UqJEzS1hjBWPgdVdotSQPYxuQGHDWV3Y2eH2dEcieXR92sqjbzcV -NvAsGnE8EXbfXRo+VGN4a2V+Hw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF2TCCA8GgAwIBAgIQXAuFXAvnWUHfV8w/f52oNjANBgkqhkiG9w0BAQUFADBk -MQswCQYDVQQGEwJjaDERMA8GA1UEChMIU3dpc3Njb20xJTAjBgNVBAsTHERpZ2l0 -YWwgQ2VydGlmaWNhdGUgU2VydmljZXMxGzAZBgNVBAMTElN3aXNzY29tIFJvb3Qg -Q0EgMTAeFw0wNTA4MTgxMjA2MjBaFw0yNTA4MTgyMjA2MjBaMGQxCzAJBgNVBAYT -AmNoMREwDwYDVQQKEwhTd2lzc2NvbTElMCMGA1UECxMcRGlnaXRhbCBDZXJ0aWZp -Y2F0ZSBTZXJ2aWNlczEbMBkGA1UEAxMSU3dpc3Njb20gUm9vdCBDQSAxMIICIjAN -BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0LmwqAzZuz8h+BvVM5OAFmUgdbI9 -m2BtRsiMMW8Xw/qabFbtPMWRV8PNq5ZJkCoZSx6jbVfd8StiKHVFXqrWW/oLJdih -FvkcxC7mlSpnzNApbjyFNDhhSbEAn9Y6cV9Nbc5fuankiX9qUvrKm/LcqfmdmUc/ -TilftKaNXXsLmREDA/7n29uj/x2lzZAeAR81sH8A25Bvxn570e56eqeqDFdvpG3F -EzuwpdntMhy0XmeLVNxzh+XTF3xmUHJd1BpYwdnP2IkCb6dJtDZd0KTeByy2dbco -kdaXvij1mB7qWybJvbCXc9qukSbraMH5ORXWZ0sKbU/Lz7DkQnGMU3nn7uHbHaBu -HYwadzVcFh4rUx80i9Fs/PJnB3r1re3WmquhsUvhzDdf/X/NTa64H5xD+SpYVUNF -vJbNcA78yeNmuk6NO4HLFWR7uZToXTNShXEuT46iBhFRyePLoW4xCGQMwtI89Tbo -19AOeCMgkckkKmUpWyL3Ic6DXqTz3kvTaI9GdVyDCW4pa8RwjPWd1yAv/0bSKzjC -L3UcPX7ape8eYIVpQtPM+GP+HkM5haa2Y0EQs3MevNP6yn0WR+Kn1dCjigoIlmJW -bjTb2QK5MHXjBNLnj8KwEUAKrNVxAmKLMb7dxiNYMUJDLXT5xp6mig/p/r+D5kNX -JLrvRjSq1xIBOO0CAwEAAaOBhjCBgzAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0hBBYw -FDASBgdghXQBUwABBgdghXQBUwABMBIGA1UdEwEB/wQIMAYBAf8CAQcwHwYDVR0j -BBgwFoAUAyUv3m+CATpcLNwroWm1Z9SM0/0wHQYDVR0OBBYEFAMlL95vggE6XCzc -K6FptWfUjNP9MA0GCSqGSIb3DQEBBQUAA4ICAQA1EMvspgQNDQ/NwNurqPKIlwzf -ky9NfEBWMXrrpA9gzXrzvsMnjgM+pN0S734edAY8PzHyHHuRMSG08NBsl9Tpl7Ik -Vh5WwzW9iAUPWxAaZOHHgjD5Mq2eUCzneAXQMbFamIp1TpBcahQq4FJHgmDmHtqB -sfsUC1rxn9KVuj7QG9YVHaO+htXbD8BJZLsuUBlL0iT43R4HVtA4oJVwIHaM190e -3p9xxCPvgxNcoyQVTSlAPGrEqdi3pkSlDfTgnXceQHAm/NrZNuR55LU/vJtlvrsR -ls/bxig5OgjOR1tTWsWZ/l2p3e9M1MalrQLmjAcSHm8D0W+go/MpvRLHUKKwf4ip -mXeascClOS5cfGniLLDqN2qk4Vrh9VDlg++luyqI54zb/W1elxmofmZ1a3Hqv7HH -b6D0jqTsNFFbjCYDcKF31QESVwA12yPeDooomf2xEG9L/zgtYE4snOtnta1J7ksf -rK/7DZBaZmBwXarNeNQk7shBoJMBkpxqnvy5JMWzFYJ+vq6VK+uxwNrjAWALXmms -hFZhvnEX/h0TD/7Gh0Xp/jKgGg0TpJRVcaUWi7rKibCyx/yP2FS1k2Kdzs9Z+z0Y -zirLNRWCXf9UIltxUvu3yf5gmwBBZPCqKuy2QkPOiWaByIufOVQDJdMWNY6E0F/6 -MBr1mmz0DlP5OlvRHA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEXjCCA0agAwIBAgIQRL4Mi1AAIbQR0ypoBqmtaTANBgkqhkiG9w0BAQUFADCB -kzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xGzAZBgNVBAMTElVUTiAtIERBVEFDb3Jw -IFNHQzAeFw05OTA2MjQxODU3MjFaFw0xOTA2MjQxOTA2MzBaMIGTMQswCQYDVQQG -EwJVUzELMAkGA1UECBMCVVQxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4wHAYD -VQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxITAfBgNVBAsTGGh0dHA6Ly93d3cu -dXNlcnRydXN0LmNvbTEbMBkGA1UEAxMSVVROIC0gREFUQUNvcnAgU0dDMIIBIjAN -BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3+5YEKIrblXEjr8uRgnn4AgPLit6 -E5Qbvfa2gI5lBZMAHryv4g+OGQ0SR+ysraP6LnD43m77VkIVni5c7yPeIbkFdicZ -D0/Ww5y0vpQZY/KmEQrrU0icvvIpOxboGqBMpsn0GFlowHDyUwDAXlCCpVZvNvlK -4ESGoE1O1kduSUrLZ9emxAW5jh70/P/N5zbgnAVssjMiFdC04MwXwLLA9P4yPykq -lXvY8qdOD1R8oQ2AswkDwf9c3V6aPryuvEeKaq5xyh+xKrhfQgUL7EYw0XILyulW -bfXv33i+Ybqypa4ETLyorGkVl73v67SMvzX41MPRKA5cOp9wGDMgd8SirwIDAQAB -o4GrMIGoMAsGA1UdDwQEAwIBxjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRT -MtGzz3/64PGgXYVOktKeRR20TzA9BgNVHR8ENjA0MDKgMKAuhixodHRwOi8vY3Js -LnVzZXJ0cnVzdC5jb20vVVROLURBVEFDb3JwU0dDLmNybDAqBgNVHSUEIzAhBggr -BgEFBQcDAQYKKwYBBAGCNwoDAwYJYIZIAYb4QgQBMA0GCSqGSIb3DQEBBQUAA4IB -AQAnNZcAiosovcYzMB4p/OL31ZjUQLtgyr+rFywJNn9Q+kHcrpY6CiM+iVnJowft -Gzet/Hy+UUla3joKVAgWRcKZsYfNjGjgaQPpxE6YsjuMFrMOoAyYUJuTqXAJyCyj -j98C5OBxOvG0I3KgqgHf35g+FFCgMSa9KOlaMCZ1+XtgHI3zzVAmbQQnmt/VDUVH -KWss5nbZqSl9Mt3JNjy9rjXxEZ4du5A/EkdOjtd+D2JzHVImOBwYSf0wdJrE5SIv -2MCN7ZF6TACPcn9d2t0bi0Vr591pl6jFVkwPDPafepE39peC4N1xaf92P2BNPM/3 -mfnGV/TJVTl4uix5yaaIK/QI ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEBDCCAuygAwIBAgIIGHqpqMKWIQwwDQYJKoZIhvcNAQELBQAwYjELMAkGA1UE -BhMCVVMxEzARBgNVBAoTCkFwcGxlIEluYy4xJjAkBgNVBAsTHUFwcGxlIENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5MRYwFAYDVQQDEw1BcHBsZSBSb290IENBMB4XDTEy -MDIwMTIyMTIxNVoXDTI3MDIwMTIyMTIxNVoweTEtMCsGA1UEAwwkRGV2ZWxvcGVy -IElEIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSYwJAYDVQQLDB1BcHBsZSBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UE -BhMCVVMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCJdk8GW5pB7qUj -KwKjX9dzP8A1sIuECj8GJH+nlT/rTw6Tr7QO0Mg+5W0Ysx/oiUe/1wkI5P9WmCkV -55SduTWjCs20wOHiYPTK7Cl4RWlpYGtfipL8niPmOsIiszFPHLrytjRZQu6wqQID -GJEEtrN4LjMfgEUNRW+7Dlpbfzrn2AjXCw4ybfuGNuRsq8QRinCEJqqfRNHxuMZ7 -lBebSPcLWBa6I8WfFTl+yl3DMl8P4FJ/QOq+rAhklVvJGpzlgMofakQcbD7EsCYf -Hex7r16gaj1HqVgSMT8gdihtHRywwk4RaSaLy9bQEYLJTg/xVnTQ2QhLZniiq6yn -4tJMh1nJAgMBAAGjgaYwgaMwHQYDVR0OBBYEFFcX7aLP3HyYoRDg/L6HLSzy4xdU -MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUK9BpR5R2Cf70a40uQKb3R01/ -CF4wLgYDVR0fBCcwJTAjoCGgH4YdaHR0cDovL2NybC5hcHBsZS5jb20vcm9vdC5j -cmwwDgYDVR0PAQH/BAQDAgGGMBAGCiqGSIb3Y2QGAgYEAgUAMA0GCSqGSIb3DQEB -CwUAA4IBAQBCOXRrodzGpI83KoyzHQpEvJUsf7xZuKxh+weQkjK51L87wVA5akR0 -ouxbH3Dlqt1LbBwjcS1f0cWTvu6binBlgp0W4xoQF4ktqM39DHhYSQwofzPuAHob -tHastrW7T9+oG53IGZdKC1ZnL8I+trPEgzrwd210xC4jUe6apQNvYPSlSKcGwrta -4h8fRkV+5Jf1JxC3ICJyb3LaxlB1xT0lj12jAOmfNoxIOY+zO+qQgC6VmmD0eM70 -DgpTPqL6T9geroSVjTK8Vk2J6XgY4KyaQrp6RhuEoonOFOiI0ViL9q5WxCwFKkWv -C9lLqQIPNKyIx2FViUTJJ3MH7oLlTvVw ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEvTCCA6WgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBhTELMAkGA1UEBhMCVVMx -IDAeBgNVBAoMF1dlbGxzIEZhcmdvIFdlbGxzU2VjdXJlMRwwGgYDVQQLDBNXZWxs -cyBGYXJnbyBCYW5rIE5BMTYwNAYDVQQDDC1XZWxsc1NlY3VyZSBQdWJsaWMgUm9v -dCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDcxMjEzMTcwNzU0WhcNMjIxMjE0 -MDAwNzU0WjCBhTELMAkGA1UEBhMCVVMxIDAeBgNVBAoMF1dlbGxzIEZhcmdvIFdl -bGxzU2VjdXJlMRwwGgYDVQQLDBNXZWxscyBGYXJnbyBCYW5rIE5BMTYwNAYDVQQD -DC1XZWxsc1NlY3VyZSBQdWJsaWMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkw -ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDub7S9eeKPCCGeOARBJe+r -WxxTkqxtnt3CxC5FlAM1iGd0V+PfjLindo8796jE2yljDpFoNoqXjopxaAkH5OjU -Dk/41itMpBb570OYj7OeUt9tkTmPOL13i0Nj67eT/DBMHAGTthP796EfvyXhdDcs -HqRePGj4S78NuR4uNuip5Kf4D8uCdXw1LSLWwr8L87T8bJVhHlfXBIEyg1J55oNj -z7fLY4sR4r1e6/aN7ZVyKLSsEmLpSjPmgzKuBXWVvYSV2ypcm44uDLiBK0HmOFaf -SZtsdvqKXfcBeYF8wYNABf5x/Qw/zE5gCQ5lRxAvAcAFP4/4s0HvWkJ+We/Slwxl -AgMBAAGjggE0MIIBMDAPBgNVHRMBAf8EBTADAQH/MDkGA1UdHwQyMDAwLqAsoCqG -KGh0dHA6Ly9jcmwucGtpLndlbGxzZmFyZ28uY29tL3dzcHJjYS5jcmwwDgYDVR0P -AQH/BAQDAgHGMB0GA1UdDgQWBBQmlRkQ2eihl5H/3BnZtQQ+0nMKajCBsgYDVR0j -BIGqMIGngBQmlRkQ2eihl5H/3BnZtQQ+0nMKaqGBi6SBiDCBhTELMAkGA1UEBhMC -VVMxIDAeBgNVBAoMF1dlbGxzIEZhcmdvIFdlbGxzU2VjdXJlMRwwGgYDVQQLDBNX -ZWxscyBGYXJnbyBCYW5rIE5BMTYwNAYDVQQDDC1XZWxsc1NlY3VyZSBQdWJsaWMg -Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHmCAQEwDQYJKoZIhvcNAQEFBQADggEB -ALkVsUSRzCPIK0134/iaeycNzXK7mQDKfGYZUMbVmO2rvwNa5U3lHshPcZeG1eMd -/ZDJPHV3V3p9+N701NX3leZ0bh08rnyd2wIDBSxxSyU+B+NemvVmFymIGjifz6pB -A4SXa5M4esowRBskRDPQ5NHcKDj0E0M1NSljqHyita04pO2t/caaH/+Xc/77szWn -k4bGdpEA5qxRFsQnMlzbc9qlk1eOPm01JghZ1edE13YgY+esE2fDbbFwRnzVlhE9 -iW9dqKHrjQrawx0zbKPqZxmamX9LPYNRKh3KL4YMon4QLSvUFpULB6ouFJJJtylv -2G0xffX8oRAHh84vWdw+WNs= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICqDCCAi2gAwIBAgIQIW4zpcvTiKRvKQe0JzzE2DAKBggqhkjOPQQDAzCBlDEL -MAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYD -VQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBD -bGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0g -RzQwHhcNMTExMDA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBlDELMAkGA1UEBhMC -VVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZTeW1h -bnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAxIFB1 -YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcq -hkjOPQIBBgUrgQQAIgNiAATXZrUb266zYO5G6ohjdTsqlG3zXxL24w+etgoUU0hS -yNw6s8tIICYSTvqJhNTfkeQpfSgB2dsYQ2mhH7XThhbcx39nI9/fMTGDAzVwsUu3 -yBe7UcvclBfb6gk7dhLeqrWjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MB0GA1UdDgQWBBRlwI0l9Qy6l3eQP54u4Fr1ztXh5DAKBggqhkjOPQQD -AwNpADBmAjEApa7jRlP4mDbjIvouKEkN7jB+M/PsP3FezFWJeJmssv3cHFwzjim5 -axfIEWi13IMHAjEAnMhE2mnCNsNUGRCFAtqdR+9B52wmnQk9922Q0QVEL7C8g5No -8gxFSTm/mQQc0xCg ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID3TCCAsWgAwIBAgIOHaIAAQAC7LdggHiNtgYwDQYJKoZIhvcNAQEFBQAweTEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV -BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEmMCQGA1UEAxMdVEMgVHJ1 -c3RDZW50ZXIgVW5pdmVyc2FsIENBIEkwHhcNMDYwMzIyMTU1NDI4WhcNMjUxMjMx -MjI1OTU5WjB5MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIg -R21iSDEkMCIGA1UECxMbVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBMSYwJAYD -VQQDEx1UQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0EgSTCCASIwDQYJKoZIhvcN -AQEBBQADggEPADCCAQoCggEBAKR3I5ZEr5D0MacQ9CaHnPM42Q9e3s9B6DGtxnSR -JJZ4Hgmgm5qVSkr1YnwCqMqs+1oEdjneX/H5s7/zA1hV0qq34wQi0fiU2iIIAI3T -fCZdzHd55yx4Oagmcw6iXSVphU9VDprvxrlE4Vc93x9UIuVvZaozhDrzznq+VZeu -jRIPFDPiUHDDSYcTvFHe15gSWu86gzOSBnWLknwSaHtwag+1m7Z3W0hZneTvWq3z -wZ7U10VOylY0Ibw+F1tvdwxIAUMpsN0/lm7mlaoMwCC2/T42J5zjXM9OgdwZu5GQ -fezmlwQek8wiSdeXhrYTCjxDI3d+8NzmzSQfO4ObNDqDNOMCAwEAAaNjMGEwHwYD -VR0jBBgwFoAUkqR1LKSevoFE63n8isWVpesQdXMwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFJKkdSyknr6BROt5/IrFlaXrEHVzMA0G -CSqGSIb3DQEBBQUAA4IBAQAo0uCG1eb4e/CX3CJrO5UUVg8RMKWaTzqwOuAGy2X1 -7caXJ/4l8lfmXpWMPmRgFVp/Lw0BxbFg/UU1z/CyvwbZ71q+s2IhtNerNXxTPqYn -8aEt2hojnczd7Dwtnic0XQ/CNnm8yUpiLe1r2X1BQ3y2qsrtYbE3ghUJGooWMNjs -ydZHcnhLEEYUjl8Or+zHL6sQ17bxbuyGssLoDZJz3KL0Dzq/YSMQiZxIQG5wALPT -ujdEWBF6AmqI8Dc08BnprNRlc/ZpjGSUOnmFKbAWKwyCPwacx/0QK54PLLae4xW/ -2TYcuiUaUj0a7CIMHOCkoj3w6DnPgcB77V0fb8XQC9eY ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDtjCCAp6gAwIBAgIOBcAAAQACQdAGCk3OdRAwDQYJKoZIhvcNAQEFBQAwdjEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV -BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDQgQ0ExJTAjBgNVBAMTHFRDIFRydXN0 -Q2VudGVyIENsYXNzIDQgQ0EgSUkwHhcNMDYwMzIzMTQxMDIzWhcNMjUxMjMxMjI1 -OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i -SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgNCBDQTElMCMGA1UEAxMc -VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgNCBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBALXNTJytrlG7fEjFDSmGehSt2VA9CXIgDRS2Y8b+WJ7gIV7z -jyIZ3E6RIM1viCmis8GsKnK6i1S4QF/yqvhDhsIwXMynXX/GCEnkDjkvjhjWkd0j -FnmA22xIHbzB3ygQY9GB493fL3l1oht48pQB5hBiecugfQLANIJ7x8CtHUzXapZ2 -W78mhEj9h/aECqqSB5lIPGG8ToVYx5ct/YFKocabEvVCUNFkPologiJw3fX64yhC -L04y87OjNopq1mJcrPoBbbTgci6VaLTxkwzGioLSHVPqfOA/QrcSWrjN2qUGZ8uh -d32llvCSHmcOHUJG5vnt+0dTf1cERh9GX8eu4I8CAwEAAaNCMEAwDwYDVR0TAQH/ -BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0OBBYEFB/quz4lGwa9pd1iBX7G -TFq/6A9DMA0GCSqGSIb3DQEBBQUAA4IBAQBYpCubTPfkpJKknGWYGWIi/HIy6QRd -xMRwLVpG3kxHiiW5ot3u6hKvSI3vK2fbO8w0mCr3CEf/Iq978fTr4jgCMxh1KBue -dmWsiANy8jhHHYz1nwqIUxAUu4DlDLNdjRfuHhkcho0UZ3iMksseIUn3f9MYv5x5 -+F0IebWqak2SNmy8eesOPXmK2PajVnBd3ttPedJ60pVchidlvqDTB4FAVd0Qy+BL -iILAkH0457+W4Ze6mqtCD9Of2J4VMxHL94J59bXAQVaS4d9VA61Iz9PyLrHHLVZM -ZHQqMc7cdalUR6SnQnIJ5+ECpkeyBM1CE+FhDOB4OiIgohxgQoaH96Xm ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEGDCCAwCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSEwHwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3QwHhcNMDAwNTMw -MTAzODMxWhcNMjAwNTMwMTAzODMxWjBlMQswCQYDVQQGEwJTRTEUMBIGA1UEChML -QWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSEwHwYD -VQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUA -A4IBDwAwggEKAoIBAQCWltQhSWDia+hBBwzexODcEyPNwTXH+9ZOEQpnXvUGW2ul -CDtbKRY654eyNAbFvAWlA3yCyykQruGIgb3WntP+LVbBFc7jJp0VLhD7Bo8wBN6n -tGO0/7Gcrjyvd7ZWxbWroulpOj0OM3kyP3CCkplhbY0wCI9xP6ZIVxn4JdxLZlyl -dI+Yrsj5wAYi56xz36Uu+1LcsRVlIPo1Zmne3yzxbrww2ywkEtvrNTVokMsAsJch -PXQhI2U0K7t4WaPW4XY5mqRJjox0r26kmqPZm9I4XJuiGMx1I4S+6+JNM3GOGvDC -+Mcdoq0Dlyz4zyXG9rgkMbFjXZJ/Y/AlyVMuH79NAgMBAAGjgdIwgc8wHQYDVR0O -BBYEFJWxtPCUtr3H2tERCSG+wa9J/RB7MAsGA1UdDwQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MIGPBgNVHSMEgYcwgYSAFJWxtPCUtr3H2tERCSG+wa9J/RB7oWmkZzBl -MQswCQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFk -ZFRydXN0IFRUUCBOZXR3b3JrMSEwHwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENB -IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBACxtZBsfzQ3duQH6lmM0MkhHma6X -7f1yFqZzR1r0693p9db7RcwpiURdv0Y5PejuvE1Uhh4dbOMXJ0PhiVYrqW9yTkkz -43J8KiOavD7/KCrto/8cI7pDVwlnTUtiBi34/2ydYB7YHEt9tTEv2dB8Xfjea4MY -eDdXL+gzB2ffHsdrKpV2ro9Xo/D0UrSpUwjP4E/TelOL/bscVjby/rK25Xa71SJl -pz/+0WatC7xrmYbvP33zGDLKe8bjq2RGlfgmadlVg3sslgf/WSxEo8bl6ancoWOA -WiFeIc9TVPC6b4nbqKqVz4vjccweGyBECMB6tkD9xOQ14R0WHNC8K47Wcdk= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDpDCCAoygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTQW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBP -bmxpbmUgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAxMB4XDTAyMDUyODA2 -MDAwMFoXDTM3MTExOTIwNDMwMFowYzELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0Ft -ZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2EgT25saW5lIFJvb3Qg -Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAKgv6KRpBgNHw+kqmP8ZonCaxlCyfqXfaE0bfA+2l2h9LaaLl+lk -hsmj76CGv2BlnEtUiMJIxUo5vxTjWVXlGbR0yLQFOVwWpeKVBeASrlmLojNoWBym -1BW32J/X3HGrfpq/m44zDyL9Hy7nBzbvYjnF3cu6JRQj3gzGPTzOggjmZj7aUTsW -OqMFf6Dch9Wc/HKpoH145LcxVR5lu9RhsCFg7RAycsWSJR74kEoYeEfffjA3PlAb -2xzTa5qGUwew76wGePiEmf4hjUyAtgyC9mZweRrTT6PP8c9GsEsPPt2IYriMqQko -O3rHl+Ee5fSfwMCuJKDIodkP1nsmgmkyPacCAwEAAaNjMGEwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUAK3Zo/Z59m50qX8zPYEX10zPM94wHwYDVR0jBBgwFoAU -AK3Zo/Z59m50qX8zPYEX10zPM94wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEB -BQUAA4IBAQB8itEfGDeC4Liwo+1WlchiYZwFos3CYiZhzRAW18y0ZTTQEYqtqKkF -Zu90821fnZmv9ov761KyBZiibyrFVL0lvV+uyIbqRizBs73B6UlwGBaXCBOMIOAb -LjpHyx7kADCVW/RFo8AasAFOq73AI25jP4BKxQft3OJvx8Fi8eNy1gTIdGcL+oir -oQHIb/AUr9KZzVGTfu0uOMe9zkZQPXLjeSWdm4grECDdpbgyn43gKd8hdIaC2y+C -MMbHNYaz+ZZfRtsMRf3zUMNvxsNIrUam4SdHCh0Om7bCd39j8uB9Gr784N/Xx6ds -sPmuujz9dLQR6FgNgLzTqIA6me11zEZ7 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBi -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3Qg -RzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBiMQswCQYDVQQGEwJV -UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu -Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0GCSqG -SIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3y -ithZwuEppz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1If -xp4VpX6+n6lXFllVcq9ok3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDV -ySAdYyktzuxeTsiT+CFhmzTrBcZe7FsavOvJz82sNEBfsXpm7nfISKhmV1efVFiO -DCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGYQJB5w3jHtrHEtWoYOAMQ -jdjUN6QuBX2I9YI+EJFwq1WCQTLX2wRzKm6RAXwhTNS8rhsDdV14Ztk6MUSaM0C/ -CNdaSaTC5qmgZ92kJ7yhTzm1EVgX9yRcRo9k98FpiHaYdj1ZXUJ2h4mXaXpI8OCi -EhtmmnTK3kse5w5jrubU75KSOp493ADkRSWJtppEGSt+wJS00mFt6zPZxd9LBADM -fRyVw4/3IbKyEbe7f/LVjHAsQWCqsWMYRJUadmJ+9oCw++hkpjPRiQfhvbfmQ6QY -uKZ3AeEPlAwhHbJUKSWJbOUOUlFHdL4mrLZBdd56rF+NP8m800ERElvlEFDrMcXK -chYiCd98THU/Y+whX8QgUWtvsauGi0/C1kVfnSD8oR7FwI+isX4KJpn15GkvmB0t -9dmpsh3lGwIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB -hjAdBgNVHQ4EFgQU7NfjgtJxXWRM3y5nP+e6mK4cD08wDQYJKoZIhvcNAQEMBQAD -ggIBALth2X2pbL4XxJEbw6GiAI3jZGgPVs93rnD5/ZpKmbnJeFwMDF/k5hQpVgs2 -SV1EY+CtnJYYZhsjDT156W1r1lT40jzBQ0CuHVD1UvyQO7uYmWlrx8GnqGikJ9yd -+SeuMIW59mdNOj6PWTkiU0TryF0Dyu1Qen1iIQqAyHNm0aAFYF/opbSnr6j3bTWc -fFqK1qI4mfN4i/RN0iAL3gTujJtHgXINwBQy7zBZLq7gcfJW5GqXb5JQbZaNaHqa -sjYUegbyJLkJEVDXCLG4iXqEI2FCKeWjzaIgQdfRnGTZ6iahixTXTBmyUEFxPT9N -cCOGDErcgdLMMpSEDQgJlxxPwO5rIHQw0uA5NBCFIRUBCOhVMt5xSdkoF1BN5r5N -0XWs0Mr7QbhDparTwwVETyw2m+L64kW4I1NsBm9nVX9GtUw/bihaeSbSpKhil9Ie -4u1Ki7wb/UdKDd9nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mI -r/OSmbaz5mEP0oUA51Aa5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1 -/YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tKG48BtieVU+i2iW1bvGjUI+iLUaJW+fCm -gKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP82Z+ ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEuzCCA6OgAwIBAgIBAjANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQGEwJVUzET -MBEGA1UEChMKQXBwbGUgSW5jLjEmMCQGA1UECxMdQXBwbGUgQ2VydGlmaWNhdGlv -biBBdXRob3JpdHkxFjAUBgNVBAMTDUFwcGxlIFJvb3QgQ0EwHhcNMDYwNDI1MjE0 -MDM2WhcNMzUwMjA5MjE0MDM2WjBiMQswCQYDVQQGEwJVUzETMBEGA1UEChMKQXBw -bGUgSW5jLjEmMCQGA1UECxMdQXBwbGUgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx -FjAUBgNVBAMTDUFwcGxlIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw -ggEKAoIBAQDkkakJH5HbHkdQ6wXtXnmELes2oldMVeyLGYne+Uts9QerIjAC6Bg+ -+FAJ039BqJj50cpmnCRrEdCju+QbKsMflZ56DKRHi1vUFjczy8QPTc4UadHJGXL1 -XQ7Vf1+b8iUDulWPTV0N8WQ1IxVLFVkds5T39pyez1C6wVhQZ48ItCD3y6wsIG9w -tj8BMIy3Q88PnT3zK0koGsj+zrW5DtleHNbLPbU6rfQPDgCSC7EhFi501TwN22IW -q6NxkkdTVcGvL0Gz+PvjcM3mo0xFfh9Ma1CWQYnEdGILEINBhzOKgbEwWOxaBDKM -aLOPHd5lc/9nXmW8Sdh2nzMUZaF3lMktAgMBAAGjggF6MIIBdjAOBgNVHQ8BAf8E -BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUK9BpR5R2Cf70a40uQKb3 -R01/CF4wHwYDVR0jBBgwFoAUK9BpR5R2Cf70a40uQKb3R01/CF4wggERBgNVHSAE -ggEIMIIBBDCCAQAGCSqGSIb3Y2QFATCB8jAqBggrBgEFBQcCARYeaHR0cHM6Ly93 -d3cuYXBwbGUuY29tL2FwcGxlY2EvMIHDBggrBgEFBQcCAjCBthqBs1JlbGlhbmNl -IG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0 -YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBj -b25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZp -Y2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMA0GCSqGSIb3DQEBBQUAA4IBAQBc -NplMLXi37Yyb3PN3m/J20ncwT8EfhYOFG5k9RzfyqZtAjizUsZAS2L70c5vu0mQP -y3lPNNiiPvl4/2vIB+x9OYOLUyDTOMSxv5pPCmv/K/xZpwUJfBdAVhEedNO3iyM7 -R6PVbyTi69G3cN8PReEnyvFteO3ntRcXqNx+IjXKJdXZD9Zr1KIkIxH3oayPc4Fg -xhtbCS+SsvhESPBgOJ4V9T0mZyCKM2r3DYLP3uujL/lTaltkwGMzd/c6ByxW69oP -IQ7aunMZT7XZNn/Bh1XZp5m5MkL72NVxnn6hUrcbvZNCJBIqxw8dtk2cXmPIS4AX -UKqK1drk/NAJBzewdXUh ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID9zCCAt+gAwIBAgIESJ8AATANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMC -Q04xMjAwBgNVBAoMKUNoaW5hIEludGVybmV0IE5ldHdvcmsgSW5mb3JtYXRpb24g -Q2VudGVyMUcwRQYDVQQDDD5DaGluYSBJbnRlcm5ldCBOZXR3b3JrIEluZm9ybWF0 -aW9uIENlbnRlciBFViBDZXJ0aWZpY2F0ZXMgUm9vdDAeFw0xMDA4MzEwNzExMjVa -Fw0zMDA4MzEwNzExMjVaMIGKMQswCQYDVQQGEwJDTjEyMDAGA1UECgwpQ2hpbmEg -SW50ZXJuZXQgTmV0d29yayBJbmZvcm1hdGlvbiBDZW50ZXIxRzBFBgNVBAMMPkNo -aW5hIEludGVybmV0IE5ldHdvcmsgSW5mb3JtYXRpb24gQ2VudGVyIEVWIENlcnRp -ZmljYXRlcyBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm35z -7r07eKpkQ0H1UN+U8i6yjUqORlTSIRLIOTJCBumD1Z9S7eVnAztUwYyZmczpwA// -DdmEEbK40ctb3B75aDFk4Zv6dOtouSCV98YPjUesWgbdYavi7NifFy2cyjw1l1Vx -zUOFsUcW9SxTgHbP0wBkvUCZ3czY28Sf1hNfQYOL+Q2HklY0bBoQCxfVWhyXWIQ8 -hBouXJE0bhlffxdpxWXvayHG1VA6v2G5BY3vbzQ6sm8UY78WO5upKv23KzhmBsUs -4qpnHkWnjQRmQvaPK++IIGmPMowUc9orhpFjIpryp9vOiYurXccUwVswah+xt54u -gQEC7c+WXmPbqOY4twIDAQABo2MwYTAfBgNVHSMEGDAWgBR8cks5x8DbYqVPm6oY -NJKiyoOCWTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4E -FgQUfHJLOcfA22KlT5uqGDSSosqDglkwDQYJKoZIhvcNAQEFBQADggEBACrDx0M3 -j92tpLIM7twUbY8opJhJywyA6vPtI2Z1fcXTIWd50XPFtQO3WKwMVC/GVhMPMdoG -52U7HW8228gd+f2ABsqjPWYWqJ1MFn3AlUa1UeTiH9fqBk1jjZaM7+czV0I664zB -echNdn3e9rG3geCg+aF4RhcaVpjwTj2rHO3sOdwHSPdj/gauwqRcalsyiMXHM4Ws -ZkJHwlgkmeHlPuV1LI5D1l08eB6olYIpUNHRFrrvwb562bTYzB5MRuF3sTGrvSrI -zo9uoV1/A3U05K2JRVRevq4opbs/eHnrc7MKDf2+yfdWrPa37S+bISnHOLaVxATy -wy39FCqQmbkHzJ8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0x -GTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJv -b3QgQ0EgMjAeFw0wNjExMjQxODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNV -BAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMRswGQYDVQQDExJRdW9W -YWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCa -GMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6XJxg -Fyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55J -WpzmM+Yklvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bB -rrcCaoF6qUWD4gXmuVbBlDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp -+ARz8un+XJiM9XOva7R+zdRcAitMOeGylZUtQofX1bOQQ7dsE/He3fbE+Ik/0XX1 -ksOR1YqI0JDs3G3eicJlcZaLDQP9nL9bFqyS2+r+eXyt66/3FsvbzSUr5R/7mp/i -Ucw6UwxI5g69ybR2BlLmEROFcmMDBOAENisgGQLodKcftslWZvB1JdxnwQ5hYIiz -PtGo/KPaHbDRsSNU30R2be1B2MGyIrZTHN81Hdyhdyox5C315eXbyOD/5YDXC2Og -/zOhD7osFRXql7PSorW+8oyWHhqPHWykYTe5hnMz15eWniN9gqRMgeKh0bpnX5UH -oycR7hYQe7xFSkyyBNKr79X9DFHOUGoIMfmR2gyPZFwDwzqLID9ujWc9Otb+fVuI -yV77zGHcizN300QyNQliBJIWENieJ0f7OyHj+OsdWwIDAQABo4GwMIGtMA8GA1Ud -EwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1UdDgQWBBQahGK8SEwzJQTU7tD2 -A8QZRtGUazBuBgNVHSMEZzBlgBQahGK8SEwzJQTU7tD2A8QZRtGUa6FJpEcwRTEL -MAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMT -ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2f -BluornFdLwUvZ+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzn -g/iN/Ae42l9NLmeyhP3ZRPx3UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2Bl -fF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodmVjB3pjd4M1IQWK4/YY7yarHvGH5K -WWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK+JDSV6IZUaUtl0Ha -B0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrWIozc -hLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPR -TUIZ3Ph1WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWD -mbA4CD/pXvk1B+TJYm5Xf6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0Z -ohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y -4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8VCLAAVBpQ570su9t+Oza -8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIE5jCCA86gAwIBAgIEO45L/DANBgkqhkiG9w0BAQUFADBdMRgwFgYJKoZIhvcN -AQkBFglwa2lAc2suZWUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKExlBUyBTZXJ0aWZp -dHNlZXJpbWlza2Vza3VzMRAwDgYDVQQDEwdKdXVyLVNLMB4XDTAxMDgzMDE0MjMw -MVoXDTE2MDgyNjE0MjMwMVowXTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMQsw -CQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEQ -MA4GA1UEAxMHSnV1ci1TSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB -AIFxNj4zB9bjMI0TfncyRsvPGbJgMUaXhvSYRqTCZUXP00B841oiqBB4M8yIsdOB -SvZiF3tfTQou0M+LI+5PAk676w7KvRhj6IAcjeEcjT3g/1tf6mTll+g/mX8MCgkz -ABpTpyHhOEvWgxutr2TC+Rx6jGZITWYfGAriPrsfB2WThbkasLnE+w0R9vXW+RvH -LCu3GFH+4Hv2qEivbDtPL+/40UceJlfwUR0zlv/vWT3aTdEVNMfqPxZIe5EcgEMP -PbgFPtGzlc3Yyg/CQ2fbt5PgIoIuvvVoKIO5wTtpeyDaTpxt4brNj3pssAki14sL -2xzVWiZbDcDq5WDQn/413z8CAwEAAaOCAawwggGoMA8GA1UdEwEB/wQFMAMBAf8w -ggEWBgNVHSAEggENMIIBCTCCAQUGCisGAQQBzh8BAQEwgfYwgdAGCCsGAQUFBwIC -MIHDHoHAAFMAZQBlACAAcwBlAHIAdABpAGYAaQBrAGEAYQB0ACAAbwBuACAAdgDk -AGwAagBhAHMAdABhAHQAdQBkACAAQQBTAC0AaQBzACAAUwBlAHIAdABpAGYAaQB0 -AHMAZQBlAHIAaQBtAGkAcwBrAGUAcwBrAHUAcwAgAGEAbABhAG0ALQBTAEsAIABz -AGUAcgB0AGkAZgBpAGsAYQBhAHQAaQBkAGUAIABrAGkAbgBuAGkAdABhAG0AaQBz -AGUAawBzMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nwcy8wKwYDVR0f -BCQwIjAgoB6gHIYaaHR0cDovL3d3dy5zay5lZS9qdXVyL2NybC8wHQYDVR0OBBYE -FASqekej5ImvGs8KQKcYP2/v6X2+MB8GA1UdIwQYMBaAFASqekej5ImvGs8KQKcY -P2/v6X2+MA4GA1UdDwEB/wQEAwIB5jANBgkqhkiG9w0BAQUFAAOCAQEAe8EYlFOi -CfP+JmeaUOTDBS8rNXiRTHyoERF5TElZrMj3hWVcRrs7EKACr81Ptcw2Kuxd/u+g -kcm2k298gFTsxwhwDY77guwqYHhpNjbRxZyLabVAyJRld/JXIWY7zoVAtjNjGr95 -HvxcHdMdkxuLDF2FvZkwMhgJkVLpfKG6/2SSmuz+Ne6ML678IIbsSt4beDI3poHS -na9aEhbKmVv8b20OxaAehsmR0FyYgl9jDIpaq9iVpszLita/ZEuOyoqysOkhMp6q -qIWYNIE5ITuoOlIyPfZrN4YGWhWY3PARZv40ILcD9EEQfTmEeZZyY7aWAuVrua0Z -TbvGRNs2yyqcjg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICQzCCAcmgAwIBAgIILcX8iNLFS5UwCgYIKoZIzj0EAwMwZzEbMBkGA1UEAwwS -QXBwbGUgUm9vdCBDQSAtIEczMSYwJAYDVQQLDB1BcHBsZSBDZXJ0aWZpY2F0aW9u -IEF1dGhvcml0eTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwHhcN -MTQwNDMwMTgxOTA2WhcNMzkwNDMwMTgxOTA2WjBnMRswGQYDVQQDDBJBcHBsZSBS -b290IENBIC0gRzMxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9y -aXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzB2MBAGByqGSM49 -AgEGBSuBBAAiA2IABJjpLz1AcqTtkyJygRMc3RCV8cWjTnHcFBbZDuWmBSp3ZHtf -TjjTuxxEtX/1H7YyYl3J6YRbTzBPEVoA/VhYDKX1DyxNB0cTddqXl5dvMVztK517 -IDvYuVTZXpmkOlEKMaNCMEAwHQYDVR0OBBYEFLuw3qFYM4iapIqZ3r6966/ayySr -MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2gA -MGUCMQCD6cHEFl4aXTQY2e3v9GwOAEZLuN+yRhHFD/3meoyhpmvOwgPUnPWTxnS4 -at+qIxUCMG1mihDK1A3UT82NQz60imOlM27jbdoXt2QfyFMm+YhidDkLF1vLUagM -6BgD56KyKA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIExTCCA62gAwIBAgIBADANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJFVTEn -MCUGA1UEChMeQUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQL -ExpodHRwOi8vd3d3LmNoYW1iZXJzaWduLm9yZzEgMB4GA1UEAxMXR2xvYmFsIENo -YW1iZXJzaWduIFJvb3QwHhcNMDMwOTMwMTYxNDE4WhcNMzcwOTMwMTYxNDE4WjB9 -MQswCQYDVQQGEwJFVTEnMCUGA1UEChMeQUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgy -NzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1iZXJzaWduLm9yZzEgMB4G -A1UEAxMXR2xvYmFsIENoYW1iZXJzaWduIFJvb3QwggEgMA0GCSqGSIb3DQEBAQUA -A4IBDQAwggEIAoIBAQCicKLQn0KuWxfH2H3PFIP8T8mhtxOviteePgQKkotgVvq0 -Mi+ITaFgCPS3CU6gSS9J1tPfnZdan5QEcOw/Wdm3zGaLmFIoCQLfxS+EjXqXd7/s -QJ0lcqu1PzKY+7e3/HKE5TWH+VX6ox8Oby4o3Wmg2UIQxvi1RMLQQ3/bvOSiPGpV -eAp3qdjqGTK3L/5cPxvusZjsyq16aUXjlg9V9ubtdepl6DJWk0aJqCWKZQbua795 -B9Dxt6/tLE2Su8CoX6dnfQTyFQhwrJLWfQTSM/tMtgsL+xrJxI0DqX5c8lCrEqWh -z0hQpe/SyBoT+rB/sYIcd2oPX9wLlY/vQ37mRQklAgEDo4IBUDCCAUwwEgYDVR0T -AQH/BAgwBgEB/wIBDDA/BgNVHR8EODA2MDSgMqAwhi5odHRwOi8vY3JsLmNoYW1i -ZXJzaWduLm9yZy9jaGFtYmVyc2lnbnJvb3QuY3JsMB0GA1UdDgQWBBRDnDafsJ4w -TcbOX60Qq+UDpfqpFDAOBgNVHQ8BAf8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgAH -MCoGA1UdEQQjMCGBH2NoYW1iZXJzaWducm9vdEBjaGFtYmVyc2lnbi5vcmcwKgYD -VR0SBCMwIYEfY2hhbWJlcnNpZ25yb290QGNoYW1iZXJzaWduLm9yZzBbBgNVHSAE -VDBSMFAGCysGAQQBgYcuCgEBMEEwPwYIKwYBBQUHAgEWM2h0dHA6Ly9jcHMuY2hh -bWJlcnNpZ24ub3JnL2Nwcy9jaGFtYmVyc2lnbnJvb3QuaHRtbDANBgkqhkiG9w0B -AQUFAAOCAQEAPDtwkfkEVCeR4e3t/mh/YV3lQWVPMvEYBZRqHN4fcNs+ezICNLUM -bKGKfKX0j//U2K0X1S0E0T9YgOKBWYi+wONGkyT+kL0mojAt6JcmVzWJdJYY9hXi -ryQZVgICsroPFOrGimbBhkVVi76SvpykBMdJPJ7oKXqJ1/6v/2j1pReQvayZzKWG -VwlnRtvWFsJG8eSpUPWP0ZIV018+xgBJOm5YstHRJw0lyDL4IBHNfTIzSJRUTN3c -ecQwn+uOuFW114hcxWokPbLTBQNRxgfvzBRydD1ucs4YKIxKoHflCStFREest2d/ -AYoFWpO+ocH/+OcOZ6RHSXZddZAa9SaP8A== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEMzCCAxugAwIBAgIDCYPzMA0GCSqGSIb3DQEBCwUAME0xCzAJBgNVBAYTAkRF -MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBD -bGFzcyAzIENBIDIgMjAwOTAeFw0wOTExMDUwODM1NThaFw0yOTExMDUwODM1NTha -ME0xCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJzAlBgNVBAMM -HkQtVFJVU1QgUm9vdCBDbGFzcyAzIENBIDIgMjAwOTCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBANOySs96R+91myP6Oi/WUEWJNTrGa9v+2wBoqOADER03 -UAifTUpolDWzU9GUY6cgVq/eUXjsKj3zSEhQPgrfRlWLJ23DEE0NkVJD2IfgXU42 -tSHKXzlABF9bfsyjxiupQB7ZNoTWSPOSHjRGICTBpFGOShrvUD9pXRl/RcPHAY9R -ySPocq60vFYJfxLLHLGvKZAKyVXMD9O0Gu1HNVpK7ZxzBCHQqr0ME7UAyiZsxGsM -lFqVlNpQmvH/pStmMaTJOKDfHR+4CS7zp+hnUquVH+BGPtikw8paxTGA6Eian5Rp -/hnd2HN8gcqW3o7tszIFZYQ05ub9VxC1X3a/L7AQDcUCAwEAAaOCARowggEWMA8G -A1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFP3aFMSfMN4hvR5COfyrYyNJ4PGEMA4G -A1UdDwEB/wQEAwIBBjCB0wYDVR0fBIHLMIHIMIGAoH6gfIZ6bGRhcDovL2RpcmVj -dG9yeS5kLXRydXN0Lm5ldC9DTj1ELVRSVVNUJTIwUm9vdCUyMENsYXNzJTIwMyUy -MENBJTIwMiUyMDIwMDksTz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRl -cmV2b2NhdGlvbmxpc3QwQ6BBoD+GPWh0dHA6Ly93d3cuZC10cnVzdC5uZXQvY3Js -L2QtdHJ1c3Rfcm9vdF9jbGFzc18zX2NhXzJfMjAwOS5jcmwwDQYJKoZIhvcNAQEL -BQADggEBAH+X2zDI36ScfSF6gHDOFBJpiBSVYEQBrLLpME+bUMJm2H6NMLVwMeni -acfzcNsgFYbQDfC+rAF1hM5+n02/t2A7nPPKHeJeaNijnZflQGDSNiH+0LS4F9p0 -o3/U37CYAqxva2ssJSRyoWXuJVrl5jLn8t+rSfrzkGkj2wTZ51xY/GXUl77M/C4K -zCUqNQT4YJEVdT1B/yMfGchs64JTBKbkTCJNjYy6zltz7GRUUG3RnFX7acM2w4y8 -PIWmawomDeCTmGCufsYkl4phX5GOZpIJhzbNi5stPvZR1FDUWSi9g/LMKHtThm3Y -Johw1+qRzT65ysCQblrGXnRl11z+o+I= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBI -MQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x -FzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIz -MTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENv -cnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCCASIwDQYJKoZIhvcN -AQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQXOZEz -Zum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO -0gMdA+9tDWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIao -wW8xQmxSPmjL8xk037uHGFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj -7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b01k/unK8RCSc43Oz969XL0Imnal0ugBS -8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmHursCAwEAAaOBnTCBmjAT -BgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB -/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCeg -JYYjaHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGC -NxUBBAMCAQAwDQYJKoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt3 -6Z3q059c4EVlew3KW+JwULKUBRSuSceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/ -3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHfmbx8IVQr5Fiiu1cprp6poxkm -D5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZnMUFdAvnZyPS -CPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR -3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDczCCAlugAwIBAgIBBDANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJLUjEN -MAsGA1UECgwES0lTQTEuMCwGA1UECwwlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRo -b3JpdHkgQ2VudHJhbDEWMBQGA1UEAwwNS0lTQSBSb290Q0EgMTAeFw0wNTA4MjQw -ODA1NDZaFw0yNTA4MjQwODA1NDZaMGQxCzAJBgNVBAYTAktSMQ0wCwYDVQQKDARL -SVNBMS4wLAYDVQQLDCVLb3JlYSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBDZW50 -cmFsMRYwFAYDVQQDDA1LSVNBIFJvb3RDQSAxMIIBIDANBgkqhkiG9w0BAQEFAAOC -AQ0AMIIBCAKCAQEAvATk+hM58DSWIGtsaLv623f/J/es7C/n/fB/bW+MKs0lCVsk -9KFo/CjsySXirO3eyDOE9bClCTqnsUdIxcxPjHmc+QZXfd3uOPbPFLKc6tPAXXdi -8EcNuRpAU1xkcK8IWsD3z3X5bI1kKB4g/rcbGdNaZoNy4rCbvdMlFQ0yb2Q3lIVG -yHK+d9VuHygvx2nt54OJM1jT3qC/QOhDUO7cTWu8peqmyGGO9cNkrwYV3CmLP3WM -vHFE2/yttRcdbYmDz8Yzvb9Fov4Kn6MRXw+5H5wawkbMnChmn3AmPC7fqoD+jMUE -CSVPzZNHPDfqAmeS/vwiJFys0izgXAEzisEZ2wIBA6MyMDAwHQYDVR0OBBYEFL+2 -J9gDWnZlTGEBQVYx5Yt7OtnMMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEF -BQADggEBABOvUQveimpb5poKyLGQSk6hAp3MiNKrZr097LuxQpVqslxa/6FjZJap -aBV/JV6K+KRzwYCKhQoOUugy50X4TmWAkZl0Q+VFnUkq8JSV3enhMNITbslOsXfl -BM+tWh6UCVrXPAgcrnrpFDLBRa3SJkhyrKhB2vAhhzle3/xk/2F0KpzZm4tfwjeT -2KM3LzuTa7IbB6d/CVDv0zq+IWuKkDsnSlFOa56ch534eJAx7REnxqhZvvwYC/uO -fi5C4e3nCSG9uRPFVmf0JqZCQ5BEVLRxm3bkGhKsGigA35vB1fjbXKP4krG9tNT5 -UNkAAk/bg9ART6RCVmE6fhMy04Qfybo= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1Ix -RDBCBgNVBAoTO0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1 -dGlvbnMgQ2VydC4gQXV0aG9yaXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1p -YyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIFJvb3RDQSAyMDExMB4XDTExMTIw -NjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYTAkdSMUQwQgYDVQQK -EztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25zIENl -cnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJl -c2VhcmNoIEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPz -dYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI1Q+kOilENbgH9mgdVc04UfCMJDGFr4PJ -fel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa71HFK9+WXesyHgLacEns -bgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u8yBRQlqD -75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSP -FEDH3N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNV -HRMBAf8EBTADAQH/MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp -5dgTBCPuQSUwRwYDVR0eBEAwPqA8MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQu -b3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQub3JnMA0GCSqGSIb3DQEBBQUA -A4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVtXdMiKahsog2p -6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8 -TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7 -dIsXRSZMFpGD/md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8Acys -Nnq/onN694/BtZqhFLKPM58N7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXI -l7WdmplNsDz4SgCbZN2fOUvRJ9e4 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQG -EwJIVTERMA8GA1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3 -MDUGA1UECwwuVGFuw7pzw610dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNl -cnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBBcmFueSAoQ2xhc3MgR29sZCkgRsWR -dGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgxMjA2MTUwODIxWjCB -pzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxOZXRM -b2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlm -aWNhdGlvbiBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNz -IEdvbGQpIEbFkXRhbsO6c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A -MIIBCgKCAQEAxCRec75LbRTDofTjl5Bu0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrT -lF8afFttvzBPhCf2nx9JvMaZCpDyD/V/Q4Q3Y1GLeqVw/HpYzY6b7cNGbIRwXdrz -AZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/sLj916jAwJRDC7bVWaaeVtAkH3B5r9s5 -VA1lddkVQZQBr17s9o3x/61k/iCa11zr/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRG -ILdwfzzeSNuWU7c5d+Qa4scWhHaXWy+7GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2 -BJtr+UBdADTHLpl1neWIA6pN+APSQnbAGwIDAKiLo0UwQzASBgNVHRMBAf8ECDAG -AQH/AgEEMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUzPpnk/C2uNClwB7zU/2M -U9+D15YwDQYJKoZIhvcNAQELBQADggEBAKt/7hwWqZw8UQCgwBEIBaeZ5m8BiFRh -bvG5GK1Krf6BQCOUL/t1fC8oS2IkgYIL9WHxHG64YTjrgfpioTtaYtOUZcTh5m2C -+C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC -bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2F -uLjbvrW5KfnaNwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2 -XjG4Kvte9nHfRCaexOYNkbQudZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEPzCCAyegAwIBAgIBATANBgkqhkiG9w0BAQUFADB+MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDEkMCIGA1UEAwwbU2VjdXJlIENlcnRp -ZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAwMFoXDTI4MTIzMTIzNTk1OVow -fjELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G -A1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxJDAiBgNV -BAMMG1NlY3VyZSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEB -BQADggEPADCCAQoCggEBAMBxM4KK0HDrc4eCQNUd5MvJDkKQ+d40uaG6EfQlhfPM -cm3ye5drswfxdySRXyWP9nQ95IDC+DwN879A6vfIUtFyb+/Iq0G4bi4XKpVpDM3S -HpR7LZQdqnXXs5jLrLxkU0C8j6ysNstcrbvd4JQX7NFc0L/vpZXJkMWwrPsbQ996 -CF23uPJAGysnnlDOXmWCiIxe004MeuoIkbY2qitC++rCoznl2yY4rYsK7hljxxwk -3wN42ubqwUcaCwtGCd0C/N7Lh1/XMGNooa7cMqG6vv5Eq2i2pRcV/b3Vp6ea5EQz -6YiO/O1R65NxTq0B50SOqy3LqP4BSUjwwN3HaNiS/j0CAwEAAaOBxzCBxDAdBgNV -HQ4EFgQUPNiTiMLAggnMAZkGkyDpnnAJY08wDgYDVR0PAQH/BAQDAgEGMA8GA1Ud -EwEB/wQFMAMBAf8wgYEGA1UdHwR6MHgwO6A5oDeGNWh0dHA6Ly9jcmwuY29tb2Rv -Y2EuY29tL1NlY3VyZUNlcnRpZmljYXRlU2VydmljZXMuY3JsMDmgN6A1hjNodHRw -Oi8vY3JsLmNvbW9kby5uZXQvU2VjdXJlQ2VydGlmaWNhdGVTZXJ2aWNlcy5jcmww -DQYJKoZIhvcNAQEFBQADggEBAIcBbSMdflsXfcFhMs+P5/OKlFlm4J4oqF7Tt/Q0 -5qo5spcWxYJvMqTpjOev/e/C6LlLqqP05tqNZSH7uoDrJiiFGv45jN5bBAS0VPmj -Z55B+glSzAVIqMk/IQQezkhr/IXownuvf7fM+F86/TXGDe+X3EyrEeFryzHRbPtI -gKvcnDe4IRRLDXE97IMzbtFuMhbsmMcWi1mmNKsFVy2T96oTy9IT4rcuO81rUBcJ -aD61JlfutuC23bkpgHl9j6PwpCikFcSF9CfUa7/lXORlAnZUtOM3ZiTTGWHIUhDl -izeauan5Hb/qmZJhlv8BzaFfDbxxvA6sCx1HRR3B7Hzs/Sk= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF0zCCA7ugAwIBAgIVALhZFHE/V9+PMcAzPdLWGXojF7TrMA0GCSqGSIb3DQEB -DQUAMIGAMQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dp -ZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -MSQwIgYDVQQDExtDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBIDIwHhcNMTExMDA2 -MDgzOTU2WhcNNDYxMDA2MDgzOTU2WjCBgDELMAkGA1UEBhMCUEwxIjAgBgNVBAoT -GVVuaXpldG8gVGVjaG5vbG9naWVzIFMuQS4xJzAlBgNVBAsTHkNlcnR1bSBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eTEkMCIGA1UEAxMbQ2VydHVtIFRydXN0ZWQgTmV0 -d29yayBDQSAyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAvfl4+ObV -gAxknYYblmRnPyI6HnUBfe/7XGeMycxca6mR5rlC5SBLm9qbe7mZXdmbgEvXhEAr -J9PoujC7Pgkap0mV7ytAJMKXx6fumyXvqAoAl4Vaqp3cKcniNQfrcE1K1sGzVrih -QTib0fsxf4/gX+GxPw+OFklg1waNGPmqJhCrKtPQ0WeNG0a+RzDVLnLRxWPa52N5 -RH5LYySJhi40PylMUosqp8DikSiJucBb+R3Z5yet/5oCl8HGUJKbAiy9qbk0WQq/ -hEr/3/6zn+vZnuCYI+yma3cWKtvMrTscpIfcRnNeGWJoRVfkkIJCu0LW8GHgwaM9 -ZqNd9BjuiMmNF0UpmTJ1AjHuKSbIawLmtWJFfzcVWiNoidQ+3k4nsPBADLxNF8tN -orMe0AZa3faTz1d1mfX6hhpneLO/lv403L3nUlbls+V1e9dBkQXcXWnjlQ1DufyD -ljmVe2yAWk8TcsbXfSl6RLpSpCrVQUYJIP4ioLZbMI28iQzV13D4h1L92u+sUS4H -s07+0AnacO+Y+lbmbdu1V0vc5SwlFcieLnhO+NqcnoYsylfzGuXIkosagpZ6w7xQ -EmnYDlpGizrrJvojybawgb5CAKT41v4wLsfSRvbljnX98sy50IdbzAYQYLuDNbde -Z95H7JlI8aShFf6tjGKOOVVPORa5sWOd/7cCAwEAAaNCMEAwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUtqFUOQLDoD+Oirz61PgcptE6Dv0wDgYDVR0PAQH/BAQD -AgEGMA0GCSqGSIb3DQEBDQUAA4ICAQCdU8KBJdw1LK4K3VqbRjBWu9S0bEuG5gql -0pKKmo3cj7TudvQDy+ubAXirKmu1uiNOMXy1LN0taWczbmNdORgS+KAoU0SHq2rE -kpYfKqIcup3dJ/tSTbCPWujtjcNo45KgJgyHkLAD6mplKAjERnjgW7oO8DPcJ7Z+ -iD29kqSWfkGogAh71jYSvBAVmyS8q619EYkvMe340s9Tjuu0U6fnBMovpiLEEdzr -mMkiXUFq3ApSBFu8LqB9x7aSuySg8zfRK0OozPFoeBp+b2OQe590yGvZC1X2eQM9 -g8dBQJL7dgs3JRc8rz76PFwbhvlKDD+KxF4OmPGt7s/g/SE1xzNhzKI3GEN8M+mu -doKCB0VIO8lnbq2jheiWVs+8u/qry7dXJ40aL5nzIzM0jspTY9NXNFBPz0nBBbrF -qId744aP+0OiEumsUewEdkzw+o+5MRPpCLckCfmgtwc2WFfPxLt+SWaVNQS2dzW4 -qVMpX5KF+FLEWk79BmE5+33QdkeSzOwrvYRu5ptFwX1isVMtnnWg58koUNflvKiq -B3hquXS0YPOEjQPcrpHadEQNe0Kpd9YrfKHGbBNTIqkSmqX5TyhFNbCXT0ZlhcX0 -/WKiomr8NDAGft8M4HOBlslEKt4fguxscletKWSk8cYpjjVgU85r2QK+OTB14Pdc -Y2rwQMEsjQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDQzCCAiugAwIBAgIQX/h7KCtU3I1CoxW1aMmt/zANBgkqhkiG9w0BAQUFADA1 -MRYwFAYDVQQKEw1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENB -IDIwNDgwHhcNMDQwNTE0MjAxNzEyWhcNMjkwNTE0MjAyNTQyWjA1MRYwFAYDVQQK -Ew1DaXNjbyBTeXN0ZW1zMRswGQYDVQQDExJDaXNjbyBSb290IENBIDIwNDgwggEg -MA0GCSqGSIb3DQEBAQUAA4IBDQAwggEIAoIBAQCwmrmrp68Kd6ficba0ZmKUeIhH -xmJVhEAyv8CrLqUccda8bnuoqrpu0hWISEWdovyD0My5jOAmaHBKeN8hF570YQXJ -FcjPFto1YYmUQ6iEqDGYeJu5Tm8sUxJszR2tKyS7McQr/4NEb7Y9JHcJ6r8qqB9q -VvYgDxFUl4F1pyXOWWqCZe+36ufijXWLbvLdT6ZeYpzPEApk0E5tzivMW/VgpSdH -jWn0f84bcN5wGyDWbs2mAag8EtKpP6BrXruOIIt6keO1aO6g58QBdKhTCytKmg9l -Eg6CTY5j/e/rmxrbU6YTYK/CfdfHbBcl1HP7R2RQgYCUTOG/rksc35LtLgXfAgED -o1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUJ/PI -FR5umgIJFq0roIlgX9p7L6owEAYJKwYBBAGCNxUBBAMCAQAwDQYJKoZIhvcNAQEF -BQADggEBAJ2dhISjQal8dwy3U8pORFBi71R803UXHOjgxkhLtv5MOhmBVrBW7hmW -Yqpao2TB9k5UM8Z3/sUcuuVdJcr18JOagxEu5sv4dEX+5wW4q+ffy0vhN4TauYuX -cB7w4ovXsNgOnbFp1iqRe6lJT37mjpXYgyc81WhJDtSd9i7rp77rMKSsH0T8lasz -Bvt9YAretIpjsJyp8qS5UwGH0GikJ3+r/+n6yUA4iGe0OcaEb1fJU9u6ju7AQ7L4 -CYNu/2bPPu8Xs1gYJQk0XuPL1hS27PKSb3TkL4Eq1ZKR4OCXPDJoBYVL0fdX4lId -kxpUnwVwwEpxYB5DC2Ae/qPOgRnhCzU= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT -HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVs -ZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAw -MFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6 -b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQgVGVj -aG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZp -Y2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC -ggEBAL3twQP89o/8ArFvW59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMg -nLRJdzIpVv257IzdIvpy3Cdhl+72WoTsbhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1 -HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNkN3mSwOxGXn/hbVNMYq/N -Hwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7NfZTD4p7dN -dloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0 -HZbUJtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0G -CSqGSIb3DQEBCwUAA4IBAQARWfolTwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjU -sHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx4mcujJUDJi5DnUox9g61DLu3 -4jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUwF5okxBDgBPfg -8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K -pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1 -mMpYjn0q7pBZc2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDzzCCAregAwIBAgIDAWweMA0GCSqGSIb3DQEBBQUAMIGNMQswCQYDVQQGEwJB -VDFIMEYGA1UECgw/QS1UcnVzdCBHZXMuIGYuIFNpY2hlcmhlaXRzc3lzdGVtZSBp -bSBlbGVrdHIuIERhdGVudmVya2VociBHbWJIMRkwFwYDVQQLDBBBLVRydXN0LW5R -dWFsLTAzMRkwFwYDVQQDDBBBLVRydXN0LW5RdWFsLTAzMB4XDTA1MDgxNzIyMDAw -MFoXDTE1MDgxNzIyMDAwMFowgY0xCzAJBgNVBAYTAkFUMUgwRgYDVQQKDD9BLVRy -dXN0IEdlcy4gZi4gU2ljaGVyaGVpdHNzeXN0ZW1lIGltIGVsZWt0ci4gRGF0ZW52 -ZXJrZWhyIEdtYkgxGTAXBgNVBAsMEEEtVHJ1c3QtblF1YWwtMDMxGTAXBgNVBAMM -EEEtVHJ1c3QtblF1YWwtMDMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQCtPWFuA/OQO8BBC4SAzewqo51ru27CQoT3URThoKgtUaNR8t4j8DRE/5TrzAUj -lUC5B3ilJfYKvUWG6Nm9wASOhURh73+nyfrBJcyFLGM/BWBzSQXgYHiVEEvc+RFZ -znF/QJuKqiTfC0Li21a8StKlDJu3Qz7dg9MmEALP6iPESU7l0+m0iKsMrmKS1GWH -2WrX9IWf5DMiJaXlyDO6w8dB3F/GaswADm0yqLaHNgBid5seHzTLkDx4iHQF63n1 -k3Flyp3HaxgtPVxO59X4PzF9j4fsCiIvI+n+u33J4PTs63zEsMMtYrWacdaxaujs -2e3Vcuy+VwHOBVWf3tFgiBCzAgMBAAGjNjA0MA8GA1UdEwEB/wQFMAMBAf8wEQYD -VR0OBAoECERqlWdVeRFPMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOC -AQEAVdRU0VlIXLOThaq/Yy/kgM40ozRiPvbY7meIMQQDbwvUB/tOdQ/TLtPAF8fG -KOwGDREkDg6lXb+MshOWcdzUzg4NCmgybLlBMRmrsQd7TZjTXLDR8KdCoLXEjq/+ -8T/0709GAHbrAvv5ndJAlseIOrifEXnzgGWovR/TeIGgUUw3tKZdJXDRZslo+S4R -FGjxVJgIrCaSD96JntT6s3kr0qN51OyLrIdTaEJMUVF0HhsnLuP1Hyl0Te2v9+GS -mYHovjrHF1D2t8b8m7CKa9aIA5GPBnc6hQLdmNVDeD/GMBWsm2vLV7eJUYs66MmE -DNuxUCAKGkq6ahq97BvIxYSazQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCB -rjELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMf -Q2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIw -MDggdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNV -BAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMzAeFw0wODA0MDIwMDAwMDBa -Fw0zNzEyMDEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhhd3Rl -LCBJbmMuMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9u -MTgwNgYDVQQLEy8oYykgMjAwOCB0aGF3dGUsIEluYy4gLSBGb3IgYXV0aG9yaXpl -ZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAtIEcz -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr8nLPvb2FvdeHsbnndm -gcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2AtP0LMqmsywCPLLEHd5N/8 -YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC+BsUa0Lf -b1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS9 -9irY7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2S -zhkGcuYMXDhpxwTWvGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUk -OQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNV -HQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJKoZIhvcNAQELBQADggEBABpA -2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweKA3rD6z8KLFIW -oCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu -t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7c -KUGRIjxpp7sC8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fM -m7v/OeZWYdMKp8RcTGB7BXcmer/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZu -MdRAGmI0Nj81Aa6sY6A= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFHjCCBAagAwIBAgIEAKA3oDANBgkqhkiG9w0BAQsFADCBtzELMAkGA1UEBhMC -Q1oxOjA4BgNVBAMMMUkuQ0EgLSBRdWFsaWZpZWQgQ2VydGlmaWNhdGlvbiBBdXRo -b3JpdHksIDA5LzIwMDkxLTArBgNVBAoMJFBydm7DrSBjZXJ0aWZpa2HEjW7DrSBh -dXRvcml0YSwgYS5zLjE9MDsGA1UECww0SS5DQSAtIEFjY3JlZGl0ZWQgUHJvdmlk -ZXIgb2YgQ2VydGlmaWNhdGlvbiBTZXJ2aWNlczAeFw0wOTA5MDEwMDAwMDBaFw0x -OTA5MDEwMDAwMDBaMIG3MQswCQYDVQQGEwJDWjE6MDgGA1UEAwwxSS5DQSAtIFF1 -YWxpZmllZCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSwgMDkvMjAwOTEtMCsGA1UE -CgwkUHJ2bsOtIGNlcnRpZmlrYcSNbsOtIGF1dG9yaXRhLCBhLnMuMT0wOwYDVQQL -DDRJLkNBIC0gQWNjcmVkaXRlZCBQcm92aWRlciBvZiBDZXJ0aWZpY2F0aW9uIFNl -cnZpY2VzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtTaEy0KC8M9l -4lSaWHMs4+sVV1LwzyJYiIQNeCrv1HHm/YpGIdY/Z640ceankjQvIX7m23BK4OSC -6KO8kZYA3zopOz6GFCOKV2PvLukbc+c2imF6kLHEv6qNA8WxhPbR3xKwlHDwB2yh -Wzo7V3QVgDRG83sugqQntKYC3LnlTGbJpNP+Az72gpO9AHUn/IBhFk4ksc8lYS2L -9GCy9CsmdKSBP78p9w8Lx7vDLqkDgt1/zBrcUWmSSb7AE/BPEeMryQV1IdI6nlGn -BhWkXOYf6GSdayJw86btuxC7viDKNrbp44HjQRaSxnp6O3eto1x4DfiYdw/YbJFe -7EjkxSQBywIDAQABo4IBLjCCASowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8E -BAMCAQYwgecGA1UdIASB3zCB3DCB2QYEVR0gADCB0DCBzQYIKwYBBQUHAgIwgcAa -gb1UZW50byBjZXJ0aWZpa2F0IGplIHZ5ZGFuIGpha28ga3ZhbGlmaWtvdmFueSBz -eXN0ZW1vdnkgY2VydGlmaWthdCBwb2RsZSB6YWtvbmEgYy4gMjI3LzIwMDAgU2Iu -IHYgcGxhdG5lbSB6bmVuaS9UaGlzIGlzIHF1YWxpZmllZCBzeXN0ZW0gY2VydGlm -aWNhdGUgYWNjb3JkaW5nIHRvIEN6ZWNoIEFjdCBOby4gMjI3LzIwMDAgQ29sbC4w -HQYDVR0OBBYEFHnL0CPpOmdwkXRP01Hi4CD94Sj7MA0GCSqGSIb3DQEBCwUAA4IB -AQB9laU214hYaBHPZftbDS/2dIGLWdmdSbj1OZbJ8LIPBMxYjPoEMqzAR74tw96T -i6aWRa5WdOWaS6I/qibEKFZhJAVXX5mkx2ewGFLJ+0Go+eTxnjLOnhVF2V2s+57b -m8c8j6/bS6Ij6DspcHEYpfjjh64hE2r0aSpZDjGzKFM6YpqsCJN8qYe2X1qmGMLQ -wvNdjG+nPzCJOOuUEypIWt555ZDLXqS5F7ZjBjlfyDZjEfS2Es9Idok8alf563Mi -9/o+Ba46wMYOkk3P1IlU0RqCajdbliioACKDztAqubONU1guZVzV8tuMASVzbJeL -/GAB7ECTwe1RuKrLYtglMKI9 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIHyTCCBbGgAwIBAgIBATANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg -Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh -dGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0NjM2WhcNMzYwOTE3MTk0NjM2WjB9 -MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi -U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3Rh -cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUA -A4ICDwAwggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZk -pMyONvg45iPwbm2xPN1yo4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rf -OQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/C -Ji/6tRYccjV3yjxd5srhJosaNnZcAdt0FCX+7bWgiA/deMotHweXMAEtcnn6RtYT -Kqi5pquDSR3l8u/d5AGOGAqPY1MWhWKpDhk6zLVmpsJrdAfkK+F2PrRt2PZE4XNi -HzvEvqBTViVsUQn3qqvKv3b9bZvzndu/PWa8DFaqr5hIlTpL36dYUNk4dalb6kMM -Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w -+2OqqGwaVLRcJXrJosmLFqa7LH4XXgVNWG4SHQHuEhANxjJ/GP/89PrNbpHoNkm+ -Gkhpi8KWTRoSsmkXwQqQ1vp5Iki/untp+HDH+no32NgN0nZPV/+Qt+OR0t3vwmC3 -Zzrd/qqc8NSLf3Iizsafl7b4r4qgEKjZ+xjGtrVcUjyJthkqcwEKDwOzEmDyei+B -26Nu/yYwl/WL3YlXtq09s68rxbd2AvCl1iuahhQqcvbjM4xdCUsT37uMdBNSSwID -AQABo4ICUjCCAk4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAa4wHQYDVR0OBBYE -FE4L7xqkQFulF2mHMMo0aEPQQa7yMGQGA1UdHwRdMFswLKAqoCiGJmh0dHA6Ly9j -ZXJ0LnN0YXJ0Y29tLm9yZy9zZnNjYS1jcmwuY3JsMCugKaAnhiVodHRwOi8vY3Js -LnN0YXJ0Y29tLm9yZy9zZnNjYS1jcmwuY3JsMIIBXQYDVR0gBIIBVDCCAVAwggFM -BgsrBgEEAYG1NwEBATCCATswLwYIKwYBBQUHAgEWI2h0dHA6Ly9jZXJ0LnN0YXJ0 -Y29tLm9yZy9wb2xpY3kucGRmMDUGCCsGAQUFBwIBFilodHRwOi8vY2VydC5zdGFy -dGNvbS5vcmcvaW50ZXJtZWRpYXRlLnBkZjCB0AYIKwYBBQUHAgIwgcMwJxYgU3Rh -cnQgQ29tbWVyY2lhbCAoU3RhcnRDb20pIEx0ZC4wAwIBARqBl0xpbWl0ZWQgTGlh -YmlsaXR5LCByZWFkIHRoZSBzZWN0aW9uICpMZWdhbCBMaW1pdGF0aW9ucyogb2Yg -dGhlIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5IFBvbGljeSBhdmFp -bGFibGUgYXQgaHR0cDovL2NlcnQuc3RhcnRjb20ub3JnL3BvbGljeS5wZGYwEQYJ -YIZIAYb4QgEBBAQDAgAHMDgGCWCGSAGG+EIBDQQrFilTdGFydENvbSBGcmVlIFNT -TCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTANBgkqhkiG9w0BAQUFAAOCAgEAFmyZ -9GYMNPXQhV59CuzaEE44HF7fpiUFS5Eyweg78T3dRAlbB0mKKctmArexmvclmAk8 -jhvh3TaHK0u7aNM5Zj2gJsfyOZEdUauCe37Vzlrk4gNXcGmXCPleWKYK34wGmkUW -FjgKXlf2Ysd6AgXmvB618p70qSmD+LIU424oh0TDkBreOKk8rENNZEXO3SipXPJz -ewT4F+irsfMuXGRuczE6Eri8sxHkfY+BUZo7jYn0TZNmezwD7dOaHZrzZVD1oNB1 -ny+v8OqCQ5j4aZyJecRDjkZy42Q2Eq/3JR44iZB3fsNrarnDy0RLrHiQi+fHLB5L -EUTINFInzQpdn4XBidUaePKVEFMy3YCEZnXZtWgo+2EuvoSoOMCZEoalHmdkrQYu -L6lwhceWD3yJZfWOQ1QOq92lgDmUYMA0yZZwLKMS9R9Ie70cfmu3nZD0Ijuu+Pwq -yvqCUqDvr0tVk+vBtfAii6w0TiYiBKGHLHVKt+V9E9e4DGTANtLJL4YSjCMJwRuC -O3NJo2pXh5Tl1njFmUNj403gdy3hZZlyaQQaRwnmDwFWJPsfvw55qVguucQJAX6V -um0ABj6y6koQOdjQK/W/7HW/lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkySh -NOsF/5oirpt9P/FlUQqmMGqz9IgcgA38corog14= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIHhzCCBW+gAwIBAgIBLTANBgkqhkiG9w0BAQsFADB9MQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwg -Q2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNh -dGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0NjM3WhcNMzYwOTE3MTk0NjM2WjB9 -MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi -U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3Rh -cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUA -A4ICDwAwggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZk -pMyONvg45iPwbm2xPN1yo4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rf -OQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/C -Ji/6tRYccjV3yjxd5srhJosaNnZcAdt0FCX+7bWgiA/deMotHweXMAEtcnn6RtYT -Kqi5pquDSR3l8u/d5AGOGAqPY1MWhWKpDhk6zLVmpsJrdAfkK+F2PrRt2PZE4XNi -HzvEvqBTViVsUQn3qqvKv3b9bZvzndu/PWa8DFaqr5hIlTpL36dYUNk4dalb6kMM -Av+Z6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w -+2OqqGwaVLRcJXrJosmLFqa7LH4XXgVNWG4SHQHuEhANxjJ/GP/89PrNbpHoNkm+ -Gkhpi8KWTRoSsmkXwQqQ1vp5Iki/untp+HDH+no32NgN0nZPV/+Qt+OR0t3vwmC3 -Zzrd/qqc8NSLf3Iizsafl7b4r4qgEKjZ+xjGtrVcUjyJthkqcwEKDwOzEmDyei+B -26Nu/yYwl/WL3YlXtq09s68rxbd2AvCl1iuahhQqcvbjM4xdCUsT37uMdBNSSwID -AQABo4ICEDCCAgwwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYD -VR0OBBYEFE4L7xqkQFulF2mHMMo0aEPQQa7yMB8GA1UdIwQYMBaAFE4L7xqkQFul -F2mHMMo0aEPQQa7yMIIBWgYDVR0gBIIBUTCCAU0wggFJBgsrBgEEAYG1NwEBATCC -ATgwLgYIKwYBBQUHAgEWImh0dHA6Ly93d3cuc3RhcnRzc2wuY29tL3BvbGljeS5w -ZGYwNAYIKwYBBQUHAgEWKGh0dHA6Ly93d3cuc3RhcnRzc2wuY29tL2ludGVybWVk -aWF0ZS5wZGYwgc8GCCsGAQUFBwICMIHCMCcWIFN0YXJ0IENvbW1lcmNpYWwgKFN0 -YXJ0Q29tKSBMdGQuMAMCAQEagZZMaW1pdGVkIExpYWJpbGl0eSwgcmVhZCB0aGUg -c2VjdGlvbiAqTGVnYWwgTGltaXRhdGlvbnMqIG9mIHRoZSBTdGFydENvbSBDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0eSBQb2xpY3kgYXZhaWxhYmxlIGF0IGh0dHA6Ly93 -d3cuc3RhcnRzc2wuY29tL3BvbGljeS5wZGYwEQYJYIZIAYb4QgEBBAQDAgAHMDgG -CWCGSAGG+EIBDQQrFilTdGFydENvbSBGcmVlIFNTTCBDZXJ0aWZpY2F0aW9uIEF1 -dGhvcml0eTANBgkqhkiG9w0BAQsFAAOCAgEAjo/n3JR5fPGFf59Jb2vKXfuM/gTF -wWLRfUKKvFO3lANmMD+x5wqnUCBVJX92ehQN6wQOQOY+2IirByeDqXWmN3PH/UvS -Ta0XQMhGvjt/UfzDtgUx3M2FIk5xt/JxXrAaxrqTi3iSSoX4eA+D/i+tLPfkpLst -0OcNOrg+zvZ49q5HJMqjNTbOx8aHmNrs++myziebiMMEofYLWWivydsQD032ZGNc -pRJvkrKTlMeIFw6Ttn5ii5B/q06f/ON1FE8qMt9bDeD1e5MNq6HPh+GlBEXoPBKl -CcWw0bdT82AUuoVpaiF8H3VhFyAXe2w7QSlc4axa0c2Mm+tgHRns9+Ww2vl5GKVF -P0lDV9LdJNUso/2RjSe15esUBppMeyG7Oq0wBhjA2MFrLH9ZXF2RsXAiV+uKa0hK -1Q8p7MZAwC+ITGgBF3f0JBlPvfrhsiAhS90a2Cl9qrjeVOwhVYBsHvUwyKMQ5bLm -KhQxw4UtjJixhlpPiVktucf3HMiKf8CdBUrmQk9io20ppB+Fq9vlgcitKj1MXVuE -JnHEhV5xJMqlG2zYYdMa4FTbzrqpMrUi9nNBCV24F10OD5mQ1kfabwo6YigUZ4LZ -8dCAWZvLMdibD4x3TrVoivJs9iQOLWxwxXPR3hTQcY+203sC9uO41Alua551hDnm -fyWl8kgAwKQB2j8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBh -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBD -QTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAwMDAwMDBaMGExCzAJBgNVBAYTAlVT -MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j -b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsB -CSDMAZOnTjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97 -nh6Vfe63SKMI2tavegw5BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt -43C/dxC//AH2hdmoRBBYMql1GNXRor5H4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7P -T19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y7vrTC0LUq7dBMtoM1O/4 -gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQABo2MwYTAO -BgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbR -TLtm8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUw -DQYJKoZIhvcNAQEFBQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/Esr -hMAtudXH/vTBH1jLuG2cenTnmCmrEbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg -06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF -PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls -YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk -CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDkzCCAnugAwIBAgIQFBOWgxRVjOp7Y+X8NId3RDANBgkqhkiG9w0BAQUFADA0 -MRMwEQYDVQQDEwpDb21TaWduIENBMRAwDgYDVQQKEwdDb21TaWduMQswCQYDVQQG -EwJJTDAeFw0wNDAzMjQxMTMyMThaFw0yOTAzMTkxNTAyMThaMDQxEzARBgNVBAMT -CkNvbVNpZ24gQ0ExEDAOBgNVBAoTB0NvbVNpZ24xCzAJBgNVBAYTAklMMIIBIjAN -BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8ORUaSvTx49qROR+WCf4C9DklBKK -8Rs4OC8fMZwG1Cyn3gsqrhqg455qv588x26i+YtkbDqthVVRVKU4VbirgwTyP2Q2 -98CNQ0NqZtH3FyrV7zb6MBBC11PN+fozc0yz6YQgitZBJzXkOPqUm7h65HkfM/sb -2CEJKHxNGGleZIp6GZPKfuzzcuc3B1hZKKxC+cX/zT/npfo4sdAMx9lSGlPWgcxC -ejVb7Us6eva1jsz/D3zkYDaHL63woSV9/9JLEYhwVKZBqGdTUkJe5DSe5L6j7Kpi -Xd3DTKaCQeQzC6zJMw9kglcq/QytNuEMrkvF7zuZ2SOzW120V+x0cAwqTwIDAQAB -o4GgMIGdMAwGA1UdEwQFMAMBAf8wPQYDVR0fBDYwNDAyoDCgLoYsaHR0cDovL2Zl -ZGlyLmNvbXNpZ24uY28uaWwvY3JsL0NvbVNpZ25DQS5jcmwwDgYDVR0PAQH/BAQD -AgGGMB8GA1UdIwQYMBaAFEsBmz5WGmU2dst7l6qSBe4y5ygxMB0GA1UdDgQWBBRL -AZs+VhplNnbLe5eqkgXuMucoMTANBgkqhkiG9w0BAQUFAAOCAQEA0Nmlfv4pYEWd -foPPbrxHbvUanlR2QnG0PFg/LUAlQvaBnPGJEMgOqnhPOAlXsDzACPw1jvFIUY0M -cXS6hMTXcpuEfDhOZAYnKuGntewImbQKDdSFc8gS4TXt8QUxHXOZDOuWyt3T5oWq -8Ir7dcHyCTxlZWTzTNity4hp8+SDtwy9F1qWF8pb/627HOkthIDYIb6FUtnUdLlp -hbpN7Sgy6/lhSuTENh4Z3G+EER+V9YMoGKgzkkMn3V0TBEVPh9VGzT2ouvDzuFYk -Res3x+F2T3I5GN9+dHLHcy056mDmrRGiVod7w2ia/viMcKjfZTL0pECMocJEAw6U -AGegcQCCSA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEZDCCA0ygAwIBAgIQRL4Mi1AAJLQR0zYwS8AzdzANBgkqhkiG9w0BAQUFADCB -ozELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2Ug -Q2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExho -dHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xKzApBgNVBAMTIlVUTi1VU0VSRmlyc3Qt -TmV0d29yayBBcHBsaWNhdGlvbnMwHhcNOTkwNzA5MTg0ODM5WhcNMTkwNzA5MTg1 -NzQ5WjCBozELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0 -IExha2UgQ2l0eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYD -VQQLExhodHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xKzApBgNVBAMTIlVUTi1VU0VS -Rmlyc3QtTmV0d29yayBBcHBsaWNhdGlvbnMwggEiMA0GCSqGSIb3DQEBAQUAA4IB -DwAwggEKAoIBAQCz+5Gh5DZVhawGNFugmliy+LUPBXeDrjKxdpJo7CNKyXY/45y2 -N3kDuatpjQclthln5LAbGHNhSuh+zdMvZOOmfAz6F4CjDUeJT1FxL+78P/m4FoCH -iZMlIJpDgmkkdihZNaEdwH+DBmQWICzTSaSFtMBhf1EI+GgVkYDLpdXuOzr0hARe -YFmnjDRy7rh4xdE7EkpvfmUnuaRVxblvQ6TFHSyZwFKkeEwVs0CYCGtDxgGwenv1 -axwiP8vv/6jQOkt2FZ7S0cYu49tXGzKiuG/ohqY/cKvlcJKrRB5AUPuco2LkbG6g -yN7igEL66S/ozjIEj3yNtxyjNTwV3Z7DrpelAgMBAAGjgZEwgY4wCwYDVR0PBAQD -AgHGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFPqGydvguul49Uuo1hXf8NPh -ahQ8ME8GA1UdHwRIMEYwRKBCoECGPmh0dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9V -VE4tVVNFUkZpcnN0LU5ldHdvcmtBcHBsaWNhdGlvbnMuY3JsMA0GCSqGSIb3DQEB -BQUAA4IBAQCk8yXM0dSRgyLQzDKrm5ZONJFUICU0YV8qAhXhi6r/fWRRzwr/vH3Y -IWp4yy9Rb/hCHTO967V7lMPDqaAt39EpHx3+jz+7qEUqf9FuVSTiuwL7MT++6Lzs -QCv4AdRWOOTKRIK1YSAhZ2X28AvnNPilwpyjXEAfhZOVBt5P1CeptqX8Fs1zMT+4 -ZSfP1FMa8Kxun08FDAOBp4QpxFq9ZFdyrTvPNximmMatBrTcCKME1SmklpoSZ0qM -YEWd8SOasACcaLWYUNPvji6SZbFIPiG+FTAqDbUMo2s/rn9X9R+WfN9v3YIwLGUb -QErNaLly7HF27FSOH4UMAWr6pjisH8SE ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBl -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv -b3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzExMTEwMDAwMDAwWjBlMQswCQYDVQQG -EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl -cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7c -JpSIqvTO9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYP -mDI2dsze3Tyoou9q+yHyUmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+ -wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4 -VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpyoeb6pNnVFzF1roV9Iq4/ -AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whfGHdPAgMB -AAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW -BBRF66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYun -pyGd823IDzANBgkqhkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRC -dWKuh+vy1dneVrOfzM4UKLkNl2BcEkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTf -fwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38FnSbNd67IJKusm7Xi+fT8r87cm -NW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i8b5QZ7dsvfPx -H2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe -+o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDEL -MAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMp -IDIwMDcgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAi -BgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMjAeFw0wNzExMDUwMDAw -MDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhh -d3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBGb3Ig -YXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9v -dCBDQSAtIEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/ -BebfowJPDQfGAFG6DAJSLSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6 -papu+7qzcMBniKI11KOasf2twu8x+qi58/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8E -BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUmtgAMADna3+FGO6Lts6K -DPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUNG4k8VIZ3 -KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41ox -XZ3Krr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIETTCCAzWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBtMQswCQYDVQQGEwJDSDEO -MAwGA1UEChMFYWRtaW4xETAPBgNVBAsTCFNlcnZpY2VzMSIwIAYDVQQLExlDZXJ0 -aWZpY2F0aW9uIEF1dGhvcml0aWVzMRcwFQYDVQQDEw5BZG1pbkNBLUNELVQwMTAe -Fw0wNjAxMjUxMzM2MTlaFw0xNjAxMjUxMjM2MTlaMG0xCzAJBgNVBAYTAkNIMQ4w -DAYDVQQKEwVhZG1pbjERMA8GA1UECxMIU2VydmljZXMxIjAgBgNVBAsTGUNlcnRp -ZmljYXRpb24gQXV0aG9yaXRpZXMxFzAVBgNVBAMTDkFkbWluQ0EtQ0QtVDAxMIIB -IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0jQlMZmpLDhV+GNR9TAoSNle -JgQB4xAXJELQf5/ySMfoFA4MmjKqYXQkB6MGPuQKwR9XRRSPf61vqb8YPsdjRmgp -byHBcUd5t0N8RX6wRZUnPMW+bCCo2VqAU4XFbnlc2gHKaam0wdTtbBTXEkv0ieIH -fxCfFxXqSsSr60IkF/2/xbrAgV/QD5yHk6Ie8feAVWwi5UtaFqtu4LiFEh2QMyxs -Oyz1OcvKzkM2g873tyiE7jzMgZP+Ww3tibk2F9+e6ZeiB37TLOmVtvgpmrws4fiI -rFNXEYSWBVrUTbn81U47yWzOgf5fEHP07bRV5QOCzCm99qNimsbL6CG7nT78CQID -AQABo4H3MIH0MBIGA1UdEwEB/wQIMAYBAf8CAQAwga4GA1UdIASBpjCBozCBoAYI -YIV0AREDFQEwgZMwSAYIKwYBBQUHAgIwPBo6VGhpcyBpcyB0aGUgQWRtaW5DQS1D -RC1UMDEgQ2VydGlmaWNhdGUgUHJhY3RpY2UgU3RhdGVtZW50LjBHBggrBgEFBQcC -ARY7aHR0cDovL3d3dy5wa2kuYWRtaW4uY2gvcG9saWN5L0NQU18yXzE2Xzc1Nl8x -XzE3XzNfMjFfMS5wZGYwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQqxGkKocZV -xgNucM6GgbOkD6oZ2zANBgkqhkiG9w0BAQUFAAOCAQEAn356bbusjI5glGXRQ1DR -v21qQf0S4s3GHyZm7cqdOkFleM70ArBT+kOP5Nm7rlSAFyVgEkmBdOg7s9tlXClU -yeZFnp6UEYRUcijPN8D1VaNRK6PIUObpDBQT0C+kAfxG9z4v29T0SxT4sgAdC/xQ -Fyv58Fp9bPn7owuKwKcyCH1XSyi/Bp4XFELlLOaigBZO/w+dPBz4FcJSdZjU+BaJ -0E3nKAjHlShO5ouBSZnaJz3p+nkw2Wyo36s6GxCK0XbkSP45iniIG4FmwwZkonYF -ypQntHbx2oL7tUQQY0PDo8bGBMcPy/G2j+dciqZRlsnfgMy10SCzQ9MUx92xUG2V -eg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFVTCCBD2gAwIBAgIEO/OB0DANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQGEwJj -aDEOMAwGA1UEChMFYWRtaW4xETAPBgNVBAsTCFNlcnZpY2VzMSIwIAYDVQQLExlD -ZXJ0aWZpY2F0aW9uIEF1dGhvcml0aWVzMRYwFAYDVQQDEw1BZG1pbi1Sb290LUNB -MB4XDTAxMTExNTA4NTEwN1oXDTIxMTExMDA3NTEwN1owbDELMAkGA1UEBhMCY2gx -DjAMBgNVBAoTBWFkbWluMREwDwYDVQQLEwhTZXJ2aWNlczEiMCAGA1UECxMZQ2Vy -dGlmaWNhdGlvbiBBdXRob3JpdGllczEWMBQGA1UEAxMNQWRtaW4tUm9vdC1DQTCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMvgr0QUIv5qF0nyXZ3PXAJi -C4C5Wr+oVTN7oxIkXkxvO0GJToM9n7OVJjSmzBL0zJ2HXj0MDRcvhSY+KiZZc6Go -vDvr5Ua481l7ILFeQAFtumeza+vvxeL5Nd0Maga2miiacLNAKXbAcUYRa0Ov5VZB -++YcOYNNt/aisWbJqA2y8He+NsEgJzK5zNdayvYXQTZN+7tVgWOck16Da3+4FXdy -fH1NCWtZlebtMKtERtkVAaVbiWW24CjZKAiVfggjsiLo3yVMPGj3budLx5D9hEEm -vlyDOtcjebca+AcZglppWMX/iHIrx7740y0zd6cWEqiLIcZCrnpkr/KzwO135GkC -AwEAAaOCAf0wggH5MA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIASBkTCBjjCBiwYI -YIV0AREDAQAwfzArBggrBgEFBQcCAjAfGh1UaGlzIGlzIHRoZSBBZG1pbi1Sb290 -LUNBIENQUzBQBggrBgEFBQcCARZEaHR0cDovL3d3dy5pbmZvcm1hdGlrLmFkbWlu -LmNoL1BLSS9saW5rcy9DUFNfMl8xNl83NTZfMV8xN18zXzFfMC5wZGYwfwYDVR0f -BHgwdjB0oHKgcKRuMGwxFjAUBgNVBAMTDUFkbWluLVJvb3QtQ0ExIjAgBgNVBAsT -GUNlcnRpZmljYXRpb24gQXV0aG9yaXRpZXMxETAPBgNVBAsTCFNlcnZpY2VzMQ4w -DAYDVQQKEwVhZG1pbjELMAkGA1UEBhMCY2gwHQYDVR0OBBYEFIKf+iNzIPGXi7JM -Tb5CxX9mzWToMIGZBgNVHSMEgZEwgY6AFIKf+iNzIPGXi7JMTb5CxX9mzWTooXCk -bjBsMQswCQYDVQQGEwJjaDEOMAwGA1UEChMFYWRtaW4xETAPBgNVBAsTCFNlcnZp -Y2VzMSIwIAYDVQQLExlDZXJ0aWZpY2F0aW9uIEF1dGhvcml0aWVzMRYwFAYDVQQD -Ew1BZG1pbi1Sb290LUNBggQ784HQMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0B -AQUFAAOCAQEAeE96XCYRpy6umkPKXDWCRn7INo96ZrWpMggcDORuofHIwdTkgOeM -vWOxDN/yuT7CC3FAaUajbPRbDw0hRMcqKz0aC8CgwcyIyhw/rFK29mfNTG3EviP9 -QSsEbnelFnjpm1wjz4EaBiFjatwpUbI6+Zv3XbEt9QQXBn+c6DeFLe4xvC4B+MTr -a440xTk59pSYux8OHhEvqIwHCkiijGqZhTS3KmGFeBopaR+dJVBRBMoXwzk4B3Hn -0Zib1dEYFZa84vPJZyvxCbLOnPRDJgH6V2uQqbG+6DXVaf/wORVOvF/wzzv0viM/ -RWbEtJZdvo8N3sdtCULzifnxP/V0T9+4ZQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIG0TCCBbmgAwIBAgIBezANBgkqhkiG9w0BAQUFADCByTELMAkGA1UEBhMCSFUx -ETAPBgNVBAcTCEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp0 -b25zYWdpIEtmdC4xGjAYBgNVBAsTEVRhbnVzaXR2YW55a2lhZG9rMUIwQAYDVQQD -EzlOZXRMb2NrIE1pbm9zaXRldHQgS296amVneXpvaSAoQ2xhc3MgUUEpIFRhbnVz -aXR2YW55a2lhZG8xHjAcBgkqhkiG9w0BCQEWD2luZm9AbmV0bG9jay5odTAeFw0w -MzAzMzAwMTQ3MTFaFw0yMjEyMTUwMTQ3MTFaMIHJMQswCQYDVQQGEwJIVTERMA8G -A1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRvbnNh -Z2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxQjBABgNVBAMTOU5l -dExvY2sgTWlub3NpdGV0dCBLb3pqZWd5em9pIChDbGFzcyBRQSkgVGFudXNpdHZh -bnlraWFkbzEeMBwGCSqGSIb3DQEJARYPaW5mb0BuZXRsb2NrLmh1MIIBIjANBgkq -hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx1Ilstg91IRVCacbvWy5FPSKAtt2/Goq -eKvld/Bu4IwjZ9ulZJm53QE+b+8tmjwi8F3JV6BVQX/yQ15YglMxZc4e8ia6AFQe -r7C8HORSjKAyr7c3sVNnaHRnUPYtLmTeriZ539+Zhqurf4XsoPuAzPS4DB6TRWO5 -3Lhbm+1bOdRfYrCnjnxmOCyqsQhjF2d9zL2z8cM/z1A57dEZgxXbhxInlrfa6uWd -vLrqOU+L73Sa58XQ0uqGURzk/mQIKAR5BevKxXEOC++r6uwSEaEYBTJp0QwsGj0l -mT+1fMptsK6ZmfoIYOcZwvK9UdPM0wKswREMgM6r3JSda6M5UzrWhQIDAMV9o4IC -wDCCArwwEgYDVR0TAQH/BAgwBgEB/wIBBDAOBgNVHQ8BAf8EBAMCAQYwggJ1Bglg -hkgBhvhCAQ0EggJmFoICYkZJR1lFTEVNISBFemVuIHRhbnVzaXR2YW55IGEgTmV0 -TG9jayBLZnQuIE1pbm9zaXRldHQgU3pvbGdhbHRhdGFzaSBTemFiYWx5emF0YWJh -biBsZWlydCBlbGphcmFzb2sgYWxhcGphbiBrZXN6dWx0LiBBIG1pbm9zaXRldHQg -ZWxla3Ryb25pa3VzIGFsYWlyYXMgam9naGF0YXMgZXJ2ZW55ZXN1bGVzZW5laywg -dmFsYW1pbnQgZWxmb2dhZGFzYW5hayBmZWx0ZXRlbGUgYSBNaW5vc2l0ZXR0IFN6 -b2xnYWx0YXRhc2kgU3phYmFseXphdGJhbiwgYXogQWx0YWxhbm9zIFN6ZXJ6b2Rl -c2kgRmVsdGV0ZWxla2JlbiBlbG9pcnQgZWxsZW5vcnplc2kgZWxqYXJhcyBtZWd0 -ZXRlbGUuIEEgZG9rdW1lbnR1bW9rIG1lZ3RhbGFsaGF0b2sgYSBodHRwczovL3d3 -dy5uZXRsb2NrLmh1L2RvY3MvIGNpbWVuIHZhZ3kga2VyaGV0b2sgYXogaW5mb0Bu -ZXRsb2NrLm5ldCBlLW1haWwgY2ltZW4uIFdBUk5JTkchIFRoZSBpc3N1YW5jZSBh -bmQgdGhlIHVzZSBvZiB0aGlzIGNlcnRpZmljYXRlIGFyZSBzdWJqZWN0IHRvIHRo -ZSBOZXRMb2NrIFF1YWxpZmllZCBDUFMgYXZhaWxhYmxlIGF0IGh0dHBzOi8vd3d3 -Lm5ldGxvY2suaHUvZG9jcy8gb3IgYnkgZS1tYWlsIGF0IGluZm9AbmV0bG9jay5u -ZXQwHQYDVR0OBBYEFAlqYhaSsFq7VQ7LdTI6MuWyIckoMA0GCSqGSIb3DQEBBQUA -A4IBAQCRalCc23iBmz+LQuM7/KbD7kPgz/PigDVJRXYC4uMvBcXxKufAQTPGtpvQ -MznNwNuhrWw3AkxYQTvyl5LGSKjN5Yo5iWH5Upfpvfb5lHTocQ68d4bDBsxafEp+ -NFAwLvt/MpqNPfMgW/hqyobzMUwsWYACff44yTB1HLdV47yfuqhthCgFdbOLDcCR -VCHnpgu0mfVRQdzNo0ci2ccBgcTcR08m6h/t280NmPSjnLRzMkqWmf68f8glWPhY -83ZmiVSkpj7EUFy6iRiCdUgh0k8T6GB+B3bbELVR5qq5aKrN9p2QdRLqOBrKROi3 -macqaJVmlaut74nLYKkGEsaUR+ko ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICPzCCAcWgAwIBAgIQBVVWvPJepDU1w6QP1atFcjAKBggqhkjOPQQDAzBhMQsw -CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu -ZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBHMzAe -Fw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVTMRUw -EwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20x -IDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEczMHYwEAYHKoZIzj0CAQYF -K4EEACIDYgAE3afZu4q4C/sLfyHS8L6+c/MzXRq8NOrexpu80JX28MzQC7phW1FG -fp4tn+6OYwwX7Adw9c+ELkCDnOg/QW07rdOkFFk2eJ0DQ+4QE2xy3q6Ip6FrtUPO -Z9wj/wMco+I+o0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAd -BgNVHQ4EFgQUs9tIpPmhxdiuNkHMEWNpYim8S8YwCgYIKoZIzj0EAwMDaAAwZQIx -AK288mw/EkrRLTnDCgmXc/SINoyIJ7vmiI1Qhadj+Z4y3maTD/HMsQmP3Wyr+mt/ -oAIwOWZbwmSNuJ5Q3KjVSaLtx9zRSX8XAbjIho9OjIgrqJqpisXRAL34VOKa5Vt8 -sycX ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFkjCCA3qgAwIBAgIBCDANBgkqhkiG9w0BAQUFADA6MQswCQYDVQQGEwJDTjER -MA8GA1UEChMIVW5pVHJ1c3QxGDAWBgNVBAMTD1VDQSBHbG9iYWwgUm9vdDAeFw0w -ODAxMDEwMDAwMDBaFw0zNzEyMzEwMDAwMDBaMDoxCzAJBgNVBAYTAkNOMREwDwYD -VQQKEwhVbmlUcnVzdDEYMBYGA1UEAxMPVUNBIEdsb2JhbCBSb290MIICIjANBgkq -hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA2rPlBlA/9nP3xDK/RqUlYjOHsGj+p9+I -A2N9Apb964fJ7uIIu527u+RBj8cwiQ9tJMAEbBSUgU2gDXRm8/CFr/hkGd656YGT -0CiFmUdCSiw8OCdKzP/5bBnXtfPvm65bNAbXj6ITBpyKhELVs6OQaG2BkO5NhOxM -cE4t3iQ5zhkAQ5N4+QiGHUPR9HK8BcBn+sBR0smFBySuOR56zUHSNqth6iur8CBV -mTxtLRwuLnWW2HKX4AzKaXPudSsVCeCObbvaE/9GqOgADKwHLx25urnRoPeZnnRc -GQVmMc8+KlL+b5/zub35wYH1N9ouTIElXfbZlJrTNYsgKDdfUet9Ysepk9H50DTL -qScmLCiQkjtVY7cXDlRzq6987DqrcDOsIfsiJrOGrCOp139tywgg8q9A9f9ER3Hd -J90TKKHqdjn5EKCgTUCkJ7JZFStsLSS3JGN490MYeg9NEePorIdCjedYcaSrbqLA -l3y74xNLytu7awj5abQEctXDRrl36v+6++nwOgw19o8PrgaEFt2UVdTvyie3AzzF -HCYq9TyopZWbhvGKiWf4xwxmse1Bv4KmAGg6IjTuHuvlb4l0T2qqaqhXZ1LUIGHB -zlPL/SR/XybfoQhplqCe/klD4tPq2sTxiDEhbhzhzfN1DiBEFsx9c3Q1RSw7gdQg -7LYJjD5IskkCAwEAAaOBojCBnzALBgNVHQ8EBAMCAQYwDAYDVR0TBAUwAwEB/zBj -BgNVHSUEXDBaBggrBgEFBQcDAQYIKwYBBQUHAwIGCCsGAQUFBwMDBggrBgEFBQcD -BAYIKwYBBQUHAwUGCCsGAQUFBwMGBggrBgEFBQcDBwYIKwYBBQUHAwgGCCsGAQUF -BwMJMB0GA1UdDgQWBBTZw9P4gJJnzF3SOqLXcaK0xDiALTANBgkqhkiG9w0BAQUF -AAOCAgEA0Ih5ygiq9ws0oE4Jwul+NUiJcIQjL1HDKy9e21NrW3UIKlS6Mg7VxnGF -sZdJgPaE0PC6t3GUyHlrpsVE6EKirSUtVy/m1jEp+hmJVCl+t35HNmktbjK81HXa -QnO4TuWDQHOyXd/URHOmYgvbqm4FjMh/Rk85hZCdvBtUKayl1/7lWFZXbSyZoUkh -1WHGjGHhdSTBAd0tGzbDLxLMC9Z4i3WA6UG5iLHKPKkWxk4V43I29tSgQYWvimVw -TbVEEFDs7d9t5tnGwBLxSzovc+k8qe4bqi81pZufTcU0hF8mFGmzI7GJchT46U1R -IgP/SobEHOh7eQrbRyWBfvw0hKxZuFhD5D1DCVR0wtD92e9uWfdyYJl2b/Unp7uD -pEqB7CmB9HdL4UISVdSGKhK28FWbAS7d9qjjGcPORy/AeGEYWsdl/J1GW1fcfA67 -loMQfFUYCQSu0feLKj6g5lDWMDbX54s4U+xJRODPpN/xU3uLWrb2EZBL1nXz/gLz -Ka/wI3J9FO2pXd96gZ6bkiL8HvgBRUGXx2sBYb4zaPKgZYRmvOAqpGjTcezHCN6j -w8k2SjTxF+KAryAhk5Qe5hXTVGLxtTgv48y5ZwSpuuXu+RBuyy5+E6+SFP7zJ3N7 -OPxzbbm5iPZujAv1/P8JDrMtXnt145Ik4ubhWD5LKAN1axibRww= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDdjCCAl6gAwIBAgIEOhsEBTANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJE -SzEMMAoGA1UEChMDS01EMQ8wDQYDVQQLEwZLTUQtQ0ExIzAhBgNVBAMTGktNRC1D -QSBLdmFsaWZpY2VyZXQgUGVyc29uMB4XDTAwMTEyMTIzMjQ1OVoXDTE1MTEyMjIz -MjQ1OVowUTELMAkGA1UEBhMCREsxDDAKBgNVBAoTA0tNRDEPMA0GA1UECxMGS01E -LUNBMSMwIQYDVQQDExpLTUQtQ0EgS3ZhbGlmaWNlcmV0IFBlcnNvbjCCASIwDQYJ -KoZIhvcNAQEBBQADggEPADCCAQoCggEBANriF4Xd6yD7ZlBE317UBDObn+vRMVc6 -p3wNQODdEDJe2z1ncCz9NJvhoLGdOJhyg7VVPh0P2c+KZ9WI9mWOKZI2bp2WkLju -jCcxbhTrurY3Wfc6gwLBqqFV8wWgaZKmvVWizjw9Kyi25f3yX4fOho6Qq2lvVbub -tvVFXAd51GJ+/2Yed+a4Or2bz2RcqHS81B3pywsD4mgJR5xREv5jqPfwNP+V7bkc -X+pfO4kVhZ/V+8MSPdQHgcV/iB3wP2mwgWyIBNc1reBidGTiz8unnWu55hcNfsvt -LJbTs9OHhsR7naRuy+S402nDnD5vnONOFEsiHn46w+T0rtu7h6j4OvkCAwEAAaNW -MFQwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUeWLqmhI42Jxj7DifDsW+ -DlQhKD0wHwYDVR0jBBgwFoAUeWLqmhI42Jxj7DifDsW+DlQhKD0wDQYJKoZIhvcN -AQEFBQADggEBANML/P42OuJ9aUV/0fItuIyc1JhqWvSqn5bXj+9eyEegcp8bHLHY -42D1O+z0lNipdjYPSdMJ0wZOEUhr+150SdDQ1P/zQL8AUaLEBkRt7ZdzXPVH3PER -qnf9IrpYBknZKfCAoVchA6Rr9WU3Sd8bMoRfMLKg8c0M8G6EPwCTcOFriSkbtvNG -zd8r8I+WfUYIN/p8DI9JT9qfjVODnYPRMUm6KPvq27TsrGruKrqyaV94kWc8co8A -v3zFLeCtghvUiRBdx+8Q7m5t4CkuSr0WINrqjIPFW2QrM1r82y09Fd16RkqL4LOg -Lh6vB5KnTApv62rWdw7zWwYnjY6/vXYY1Aw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF4DCCA8igAwIBAgIRAPL6ZOJ0Y9ON/RAdBB92ylgwDQYJKoZIhvcNAQELBQAw -ZzELMAkGA1UEBhMCY2gxETAPBgNVBAoTCFN3aXNzY29tMSUwIwYDVQQLExxEaWdp -dGFsIENlcnRpZmljYXRlIFNlcnZpY2VzMR4wHAYDVQQDExVTd2lzc2NvbSBSb290 -IEVWIENBIDIwHhcNMTEwNjI0MDk0NTA4WhcNMzEwNjI1MDg0NTA4WjBnMQswCQYD -VQQGEwJjaDERMA8GA1UEChMIU3dpc3Njb20xJTAjBgNVBAsTHERpZ2l0YWwgQ2Vy -dGlmaWNhdGUgU2VydmljZXMxHjAcBgNVBAMTFVN3aXNzY29tIFJvb3QgRVYgQ0Eg -MjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMT3HS9X6lds93BdY7Bx -UglgRCgzo3pOCvrY6myLURYaVa5UJsTMRQdBTxB5f3HSek4/OE6zAMaVylvNwSqD -1ycfMQ4jFrclyxy0uYAyXhqdk/HoPGAsp15XGVhRXrwsVgu42O+LgrQ8uMIkqBPH -oCE2G3pXKSinLr9xJZDzRINpUKTk4RtiGZQJo/PDvO/0vezbE53PnUgJUmfANykR -HvvSEaeFGHR55E+FFOtSN+KxRdjMDUN/rhPSays/p8LiqG12W0OfvrSdsyaGOx9/ -5fLoZigWJdBLlzin5M8J0TbDC77aO0RYjb7xnglrPvMyxyuHxuxenPaHZa0zKcQv -idm5y8kDnftslFGXEBuGCxobP/YCfnvUxVFkKJ3106yDgYjTdLRZncHrYTNaRdHL -OdAGalNgHa/2+2m8atwBz735j9m9W8E6X47aD0upm50qKGsaCnw8qyIL5XctcfaC -NYGu+HuB5ur+rPQam3Rc6I8k9l2dRsQs0h4rIWqDJ2dVSqTjyDKXZpBy2uPUZC5f -46Fq9mDU5zXNysRojddxyNMkM3OxbPlq4SjbX8Y96L5V5jcb7STZDxmPX2MYWFCB -UWVv8p9+agTnNCRxunZLWB4ZvRVgRaoMEkABnRDixzgHcgplwLa7JSnaFp6LNYth -7eVxV4O1PHGf40+/fh6Bn0GXAgMBAAGjgYYwgYMwDgYDVR0PAQH/BAQDAgGGMB0G -A1UdIQQWMBQwEgYHYIV0AVMCAgYHYIV0AVMCAjASBgNVHRMBAf8ECDAGAQH/AgED -MB0GA1UdDgQWBBRF2aWBbj2ITY1x0kbBbkUe88SAnTAfBgNVHSMEGDAWgBRF2aWB -bj2ITY1x0kbBbkUe88SAnTANBgkqhkiG9w0BAQsFAAOCAgEAlDpzBp9SSzBc1P6x -XCX5145v9Ydkn+0UjrgEjihLj6p7jjm02Vj2e6E1CqGdivdj5eu9OYLU43otb98T -PLr+flaYC/NUn81ETm484T4VvwYmneTwkLbUwp4wLh/vx3rEUMfqe9pQy3omywC0 -Wqu1kx+AiYQElY2NfwmTv9SoqORjbdlk5LgpWgi/UOGED1V7XwgiG/W9mR4U9s70 -WBCCswo9GcG/W6uqmdjyMb3lOGbcWAXH7WMaLgqXfIeTK7KK4/HsGOV1timH59yL -Gn602MnTihdsfSlEvoqq9X46Lmgxk7lq2prg2+kupYTNHAq4Sgj5nPFhJpiTt3tm -7JFe3VE/23MPrQRYCd0EApUKPtN236YQHoA96M2kZNEzx5LH4k5E4wnJTsJdhw4S -nr8PyQUQ3nqjsTzyP6WqJ3mtMX0f/fwZacXduT98zca0wjAefm6S139hdlqP65VN -vBFuIXxZN5nQBrz5Bm0yFqXZaajh3DyAHmBR3NdUIR7KYndP+tiPsys6DXhyyWhB -WkdKwqPrGtcKqzwyVcgKEZzfdNbwQBUdyLmPtTbFr/giuMod89a2GQ+fYWVq6nTI -fI/DT11lgh/ZDYnadXL77/FHZxOzyNEZiCcmmpl5fx7kLD977vHeTYuWl8PVP3wb -I+2ksx0WckNLIOFZfsLorSa/ovc= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4 -MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6 -ZW5wZS5jb20wHhcNMDcxMjEzMTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYD -VQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5j -b20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ03rKDx6sp4boFmVq -scIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAKClaO -xdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6H -LmYRY2xU+zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFX -uaOKmMPsOzTFlUFpfnXCPCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQD -yCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxTOTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+ -JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbKF7jJeodWLBoBHmy+E60Q -rLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK0GqfvEyN -BjNaooXlkDWgYlwWTvDjovoDGrQscbNYLN57C9saD+veIR8GdwYDsMnvmfzAuU8L -hij+0rnq49qlw0dpEuDb8PYZi+17cNcC1u2HGCgsBCRMd+RIihrGO5rUD8r6ddIB -QFqNeb+Lz0vPqhbBleStTIo+F5HUsWLlguWABKQDfo2/2n+iD5dPDNMN+9fR5XJ+ -HMh3/1uaD7euBUbl8agW7EekFwIDAQABo4H2MIHzMIGwBgNVHREEgagwgaWBD2lu -Zm9AaXplbnBlLmNvbaSBkTCBjjFHMEUGA1UECgw+SVpFTlBFIFMuQS4gLSBDSUYg -QTAxMzM3MjYwLVJNZXJjLlZpdG9yaWEtR2FzdGVpeiBUMTA1NSBGNjIgUzgxQzBB -BgNVBAkMOkF2ZGEgZGVsIE1lZGl0ZXJyYW5lbyBFdG9yYmlkZWEgMTQgLSAwMTAx -MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC -AQYwHQYDVR0OBBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUA -A4ICAQB4pgwWSp9MiDrAyw6lFn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWb -laQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbgakEyrkgPH7UIBzg/YsfqikuFgba56 -awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8qhT/AQKM6WfxZSzwo -JNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Csg1lw -LDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCT -VyvehQP5aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGk -LhObNA5me0mrZJfQRsN5nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJb -UjWumDqtujWTI6cfSN01RpiyEGjkpTHCClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/ -QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZoQ0iy2+tzJOeRf1SktoA+ -naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1ZWrOZyGls -QyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDczCCAlugAwIBAgIQMDAwMDk3Mzc1NzM4NjAwMDANBgkqhkiG9w0BAQUFADBV -MQswCQYDVQQGEwJGUjETMBEGA1UEChMKQ2VydGlOb21pczEcMBoGA1UECxMTQUMg -UmFjaW5lIC0gUm9vdCBDQTETMBEGA1UEAxMKQ2VydGlOb21pczAeFw0wMDExMDkw -MDAwMDBaFw0xMjExMDkwMDAwMDBaMFUxCzAJBgNVBAYTAkZSMRMwEQYDVQQKEwpD -ZXJ0aU5vbWlzMRwwGgYDVQQLExNBQyBSYWNpbmUgLSBSb290IENBMRMwEQYDVQQD -EwpDZXJ0aU5vbWlzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8SWb -4mS5RXB3ENSIcfrEzCj/TRUQuT1tMCU0YUfXFSgcPdWglIzCv3kvh07QoB+8xMl+ -fQHvSSduAxnNewz0GBY9rApCPKlP6CcnJr74OSVZIiWt9wLfl4wwhNhZOiikIpZp -EdOXWqRc84P5cUlN3Lwmr1sjCWmHfTSS4cAKxfDbFLfE61etosyoFZUTQbIhb1Bf -JL5xRXAUZudQiU42n/yAoSUrN4FLUfPQNlOe1AB81pIgX8g2ojwxDjfgqSs1JmBF -uLKJ45uVLEenQBPmQCGjL3maV86IRmR3a9UGlgvKAk0NBdh8mrQyQvcUlLBIQBCm -l7wppt6maQHUNEPQSwIDAQABoz8wPTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQU+F4ho6ijFeb4tRG7/kIEXU2OgnowDQYJKoZIhvcNAQEF -BQADggEBACe9FJayK6bXkJQrilBFMh75QPdFOks9PJuo86OMUlBDZGYFTCh9Arex -N3KYCnAEzazYIALwr7eASJJDIQMu1Q+pkx/7ACde4kP47F27M2rm+v5HnGooCLz2 -s7Fe/WUycTQqgwF5lNp03m1ce/TvovgkEZeVN5wM/7+SsZLJGDigXGeq48j2g2hn -8OckX9Ciyo0U3/1IVeigNBisiaOlsHSZOEPBZQRiZULob+NVbXVPo8nM1OyP3aHI -LQex1yYcCr9m93nOiZyKkur3Uedf1yMTBe+fflnPFKGYnVqvTGXCKVdHzQBfpILA -AuaC+5ykZhSiSMf8nmL2oPMcLO7YQw4= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUx -KzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAd -BgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNl -YyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgxMDAxMTAyOTU2WhcNMzMxMDAxMjM1 -OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lzdGVtcyBFbnRlcnBy -aXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBDZW50 -ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0G -CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN -8ELg63iIVl6bmlQdTQyK9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/ -RLyTPWGrTs0NvvAgJ1gORH8EGoel15YUNpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4 -hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZFiP0Zf3WHHx+xGwpzJFu5 -ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W0eDrXltM -EnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGj -QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1 -A/d2O2GCahKqGFPrAyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOy -WL6ukK2YJ5f+AbGwUgC4TeQbIXQbfsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ -1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzTucpH9sry9uetuUg/vBa3wW30 -6gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7hP0HHRwA11fXT -91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml -e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4p -TpPDpFQUWw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4G -A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNp -Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1 -MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMjETMBEG -A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6ErPL -v4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8 -eoLrvozps6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklq -tTleiDTsvHgMCJiEbKjNS7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzd -C9XZzPnqJworc5HGnRusyMvo4KD0L5CLTfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pa -zq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6CygPCm48CAwEAAaOBnDCB -mTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUm+IH -V2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5n -bG9iYWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG -3lm0mi3f3BmGLjANBgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4Gs -J0/WwbgcQ3izDJr86iw8bmEbTUsp9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO -291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu01yiPqFbQfXf5WRDLenVOavS -ot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG79G+dwfCMNYxd -AfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7 -TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDoTCCAomgAwIBAgIQKTZHquOKrIZKI1byyrdhrzANBgkqhkiG9w0BAQUFADBO -MQswCQYDVQQGEwJ1czEYMBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQ0wCwYDVQQL -EwRGQkNBMRYwFAYDVQQDEw1Db21tb24gUG9saWN5MB4XDTA3MTAxNTE1NTgwMFoX -DTI3MTAxNTE2MDgwMFowTjELMAkGA1UEBhMCdXMxGDAWBgNVBAoTD1UuUy4gR292 -ZXJubWVudDENMAsGA1UECxMERkJDQTEWMBQGA1UEAxMNQ29tbW9uIFBvbGljeTCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJeNvTMn5K1b+3i9L0dHbsd4 -6ZOcpN7JHP0vGzk4rEcXwH53KQA7Ax9oD81Npe53uCxiazH2+nIJfTApBnznfKM9 -hBiKHa4skqgf6F5PjY7rPxr4nApnnbBnTfAu0DDew5SwoM8uCjR/VAnTNr2kSVdS -c+md/uRIeUYbW40y5KVIZPMiDZKdCBW/YDyD90ciJSKtKXG3d+8XyaK2lF7IMJCk -FEhcVlcLQUwF1CpMP64Sm1kRdXAHImktLNMxzJJ+zM2kfpRHqpwJCPZLr1LoakCR -xVW9QLHIbVeGlRfmH3O+Ry4+i0wXubklHKVSFzYIWcBCvgortFZRPBtVyYyQd+sC -AwEAAaN7MHkwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O -BBYEFC9Yl9ipBZilVh/72at17wI8NjTHMBIGCSsGAQQBgjcVAQQFAgMBAAEwIwYJ -KwYBBAGCNxUCBBYEFHa3YJbdFFYprHWF03BjwbxHhhyLMA0GCSqGSIb3DQEBBQUA -A4IBAQBgrvNIFkBypgiIybxHLCRLXaCRc+1leJDwZ5B6pb8KrbYq+Zln34PFdx80 -CTj5fp5B4Ehg/uKqXYeI6oj9XEWyyWrafaStsU+/HA2fHprA1RRzOCuKeEBuMPdi -4c2Z/FFpZ2wR3bgQo2jeJqVW/TZsN5hs++58PGxrcD/3SDcJjwtCga1GRrgLgwb0 -Gzigf0/NC++DiYeXHIowZ9z9VKEDfgHLhUyxCynDvux84T8PCVI8L6eaSP436REG -WOE2QYrEtr+O3c5Ks7wawM36GpnScZv6z7zyxFSjiDV2zBssRm8MtNHDYXaSdBHq -S4CNHIkRi+xb/xfJSPzn4AYR4oRe ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFYzCCA0ugAwIBAgIBOzANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJJTDEW -MBQGA1UEChMNU3RhcnRDb20gTHRkLjEsMCoGA1UEAxMjU3RhcnRDb20gQ2VydGlm -aWNhdGlvbiBBdXRob3JpdHkgRzIwHhcNMTAwMTAxMDEwMDAxWhcNMzkxMjMxMjM1 -OTAxWjBTMQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjEsMCoG -A1UEAxMjU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgRzIwggIiMA0G -CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC2iTZbB7cgNr2Cu+EWIAOVeq8Oo1XJ -JZlKxdBWQYeQTSFgpBSHO839sj60ZwNq7eEPS8CRhXBF4EKe3ikj1AENoBB5uNsD -vfOpL9HG4A/LnooUCri99lZi8cVytjIl2bLzvWXFDSxu1ZJvGIsAQRSCb0AgJnoo -D/Uefyf3lLE3PbfHkffiAez9lInhzG7TNtYKGXmu1zSCZf98Qru23QumNK9LYP5/ -Q0kGi4xDuFby2X8hQxfqp0iVAXV16iulQ5XqFYSdCI0mblWbq9zSOdIxHWDirMxW -RST1HFSr7obdljKF+ExP6JV2tgXdNiNnvP8V4so75qbsO+wmETRIjfaAKxojAuuK -HDp2KntWFhxyKrOq42ClAJ8Em+JvHhRYW6Vsi1g8w7pOOlz34ZYrPu8HvKTlXcxN -nw3h3Kq74W4a7I/htkxNeXJdFzULHdfBR9qWJODQcqhaX2YtENwvKhOuJv4KHBnM -0D4LnMgJLvlblnpHnOl68wVQdJVznjAJ85eCXuaPOQgeWeU1FEIT/wCc976qUM/i -UUjXuG+v+E5+M5iSFGI6dWPPe/regjupuznixL0sAA7IF6wT700ljtizkC+p2il9 -Ha90OrInwMEePnWjFqmveiJdnxMaz6eg6+OGCtP95paV1yPIN93EfKo2rJgaErHg -TuixO/XWb/Ew1wIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE -AwIBBjAdBgNVHQ4EFgQUS8W0QGutHLOlHGVuRjaJhwUMDrYwDQYJKoZIhvcNAQEL -BQADggIBAHNXPyzVlTJ+N9uWkusZXn5T50HsEbZH77Xe7XRcxfGOSeD8bpkTzZ+K -2s06Ctg6Wgk/XzTQLwPSZh0avZyQN8gMjgdalEVGKua+etqhqaRpEpKwfTbURIfX -UfEpY9Z1zRbkJ4kd+MIySP3bmdCPX1R0zKxnNBFi2QwKN4fRoxdIjtIXHfbX/dtl -6/2o1PXWT6RbdejF0mCy2wl+JYt7ulKSnj7oxXehPOBKc2thz4bcQ///If4jXSRK -9dNtD2IEBVeC2m6kMyV5Sy5UGYvMLD0w6dEG/+gyRr61M3Z3qAFdlsHB1b6uJcDJ -HgoJIIihDsnzb02CVAAgp9KP5DlUFy6NHrgbuxu9mk47EDTcnIhT76IxW1hPkWLI -wpqazRVdOKnWvvgTtZ8SafJQYqz7Fzf07rh1Z2AQ+4NQ+US1dZxAF7L+/XldblhY -XzD8AK6vM8EOTmy6p6ahfzLbOOCxchcKK5HsamMm7YnUeMx0HgX4a/6ManY5Ka5l -IxKVCCIcl85bBu4M4ru8H0ST9tg4RQUh7eStqxK2A6RCLi3ECToDZ2mEmuFZkIoo -hdVddLHRDiBYmxOlsGOm7XtH/UVVMKTumtTm4ofvmMkyghEpIrwACjFeLQ/Ajulr -so8uBtjRkcfGEvRM/TAXw8HaOFvjqermobp573PYtlNXLfbQ4ddI ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEP -MA0GA1UEChMGU29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MyIENBMB4XDTAx -MDQwNjA3Mjk0MFoXDTIxMDQwNjA3Mjk0MFowOTELMAkGA1UEBhMCRkkxDzANBgNV -BAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJhIENsYXNzMiBDQTCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAJAXSjWdyvANlsdE+hY3/Ei9vX+ALTU74W+o -Z6m/AxxNjG8yR9VBaKQTBME1DJqEQ/xcHf+Js+gXGM2RX/uJ4+q/Tl18GybTdXnt -5oTjV+WtKcT0OijnpXuENmmz/V52vaMtmdOQTiMofRhj8VQ7Jp12W5dCsv+u8E7s -3TmVToMGf+dJQMjFAbJUWmYdPfz56TwKnoG4cPABi+QjVHzIrviQHgCWctRUz2Ej -vOr7nQKV0ba5cTppCD8PtOFCx4j1P5iop7oc4HFx71hXgVB6XGt0Rg6DA5jDjqhu -8nYybieDwnPz3BjotJPqdURrBGAgcVeHnfO+oJAjPYok4doh28MCAwEAAaMzMDEw -DwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQISqCqWITTXjwwCwYDVR0PBAQDAgEG -MA0GCSqGSIb3DQEBBQUAA4IBAQBazof5FnIVV0sd2ZvnoiYw7JNn39Yt0jSv9zil -zqsWuasvfDXLrNAPtEwr/IDva4yRXzZ299uzGxnq9LIR/WFxRL8oszodv7ND6J+/ -3DEIcbCdjdY0RzKQxmUk96BKfARzjzlvF4xytb1LyHr4e4PDKE6cCepnP7JnBBvD -FNr450kkkdAdavphOe9r5yF1BgfYErQhIHBCcYHaPJo2vqZbDWpsmh+Re/n570K6 -Tk6ezAyNlNzZRZxe7EJQY670XcSxEtzKO6gunRRaBXW37Ndj4ro1tgQIkejanZz2 -ZrUYrAqmVCY0M9IbwdR/GjqOC6oybtv8TyWf2TLHllpwrN9M ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDoDCCAoigAwIBAgIBMTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJKUDEO -MAwGA1UEChMFTEdQS0kxGjAYBgNVBAsTEUFwcGxpY2F0aW9uIENBIEcyMB4XDTA2 -MDMzMTE1MDAwMFoXDTE2MDMzMTE0NTk1OVowOTELMAkGA1UEBhMCSlAxDjAMBgNV -BAoTBUxHUEtJMRowGAYDVQQLExFBcHBsaWNhdGlvbiBDQSBHMjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBALk1xhD422jbB8RATLAdHjbcw0H2z1UVbQh/ -XMZoVeXnV/GWUebhTXgPbkAVcDtl/hHf59PWWDU74Z8C/JRSRi6znmCbAp7JgtL2 -464JT4REtmKbAFFouDqt7GTRMkvplESDtA7OIYlrsDbAmMZLnMI+W2AqCTErLatM -3rGg/VhWwoMdILzEhAmHe6iVl8YljoPgPpMN0cd9c6mo/BkAQC4iuHozQfV4/Vpx -54LZSIhc7KiFhy1tgIlnGmm+EMBaju2IfT5vLDhrN85H2KIxMN5+U2Vsi4ZTQSBs -vUilfq8AWlYSWIHR3IlZ+bXu+E2a2EQpi3mn9yKq6nxctBaIIA0CAwEAAaOBsjCB -rzAdBgNVHQ4EFgQUf7hdjsQYa8Z9zC7prs405xdd4KEwDgYDVR0PAQH/BAQDAgEG -MEwGA1UdHwRFMEMwQaA/oD2kOzA5MQswCQYDVQQGEwJKUDEOMAwGA1UEChMFTEdQ -S0kxGjAYBgNVBAsTEUFwcGxpY2F0aW9uIENBIEcyMA8GA1UdEwEB/wQFMAMBAf8w -HwYDVR0jBBgwFoAUf7hdjsQYa8Z9zC7prs405xdd4KEwDQYJKoZIhvcNAQEFBQAD -ggEBADzYczZABkhKVBn1J0g5JaVuQue2zRvLOTS3m+xPKr535MqE/B3rmyJA1fT7 -aIdy/Eddag5SSuO1XUjGIpbmM21tq/bN18skWoyoRZ4+YYJ9lNUF8Bo1X3EvLlS1 -QQXvhg1S75yYG/EsTDrR84bTjD56L4ZFjoMyJlu/U8oOUVbcmsJaMBkNp57Vqpsg -OWl4IfSXbdEOEUwu0xtasPmXeFwqj1Jl7kxCJcI3MA5tKzWUgwbor0U7BGanMLv5 -4CE7Y259RF06alPvERck/VSyWmxzViHJbC2XpEKzJ2EFIWNt6ii8TxpvQtyYq1XT -HhvAkj+bweY7F1bixJhDJe62ywA= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICZzCCAdCgAwIBAgIBBDANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQGEwJVUzEY -MBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNEb0QxDDAKBgNVBAsT -A1BLSTEcMBoGA1UEAxMTRG9EIENMQVNTIDMgUm9vdCBDQTAeFw0wMDA1MTkxMzEz -MDBaFw0yMDA1MTQxMzEzMDBaMGExCzAJBgNVBAYTAlVTMRgwFgYDVQQKEw9VLlMu -IEdvdmVybm1lbnQxDDAKBgNVBAsTA0RvRDEMMAoGA1UECxMDUEtJMRwwGgYDVQQD -ExNEb0QgQ0xBU1MgMyBSb290IENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB -gQC1MP5kvurMbe2BLPd/6Rm6DmlqKOGpqcuVWB/x5pppU+CIP5HFUbljl6jmIYwT -XjY8qFf6+HAsTGrLvzCnTBbkMlz4ErBR+BZXjS+0TfouqJToKmHUVw1Hzm4sL36Y -Z8wACKu2lhY1woWR5VugCsdmUmLzYXWVF668KlYppeArUwIDAQABoy8wLTAdBgNV -HQ4EFgQUbJyl8FyPbUGNxBc7kFfCD6PNbf4wDAYDVR0TBAUwAwEB/zANBgkqhkiG -9w0BAQUFAAOBgQCvcUT5lyPMaGmMQwdBuoggsyIAQciYoFUczT9usZNcrfoYmrsc -c2/9JEKPh59Rz76Gn+nXikhPCNlplKw/5g8tlw8ok3ZPYt//oM1h+KaGDDE0INx/ -L6j7Ob6V7jhZAmLB3mwVT+DfnbvkeXMk/WNklfdKqJkfSGWVx3u/eDLneg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFUjCCBDqgAwIBAgIBAjANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJLUjEN -MAsGA1UEChMES0lTQTEuMCwGA1UECxMlS29yZWEgQ2VydGlmaWNhdGlvbiBBdXRo -b3JpdHkgQ2VudHJhbDEWMBQGA1UEAxMNS0lTQSBSb290Q0EgMzAeFw0wNDExMTkw -NjM5NTFaFw0xNDExMTkwNjM5NTFaMGQxCzAJBgNVBAYTAktSMQ0wCwYDVQQKEwRL -SVNBMS4wLAYDVQQLEyVLb3JlYSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBDZW50 -cmFsMRYwFAYDVQQDEw1LSVNBIFJvb3RDQSAzMIIBIDANBgkqhkiG9w0BAQEFAAOC -AQ0AMIIBCAKCAQEA3rrtF2Wu0b1KPazbgHLMWOHn4ZPazDB6z+8Lri2nQ6u/p0LP -CFYIpEcdffqG79gwlyY0YTyADvjU65/8IjAboW0+40zSVU4WQDfC9gdu2we1pYyW -geKbXH6UYcjOhDyx+gDmctMJhXfp3F4hT7TkTvTiF6tQrxz/oTlYdVsSspa5jfBw -YkhbVigqpYeRNrkeJPW5unu2UlFbF1pgBWycwubGjD756t08jP+J3kNwrB248XXN -OMpTDUdoasY8GMq94bS+DvTQ49IT+rBRERHUQavo9DmO4TSETwuTqmo4/OXGeEeu -dhf6oYA3BgAVCP1rI476cg2V1ktisWjC3TSbXQIBA6OCAg8wggILMB8GA1UdIwQY -MBaAFI+B8NqmzXQ8vmb0FWtGpP4GKMyqMB0GA1UdDgQWBBSPgfDaps10PL5m9BVr -RqT+BijMqjAOBgNVHQ8BAf8EBAMCAQYwggEuBgNVHSAEggElMIIBITCCAR0GBFUd -IAAwggETMDAGCCsGAQUFBwIBFiRodHRwOi8vd3d3LnJvb3RjYS5vci5rci9yY2Ev -Y3BzLmh0bWwwgd4GCCsGAQUFBwICMIHRHoHOx3QAIMd4yZ3BHLKUACCs9cd4x3jJ -ncEcx4WyyLLkACgAVABoAGkAcwAgAGMAZQByAHQAaQBmAGkAYwBhAHQAZQAgAGkA -cwAgAGEAYwBjAHIAZQBkAGkAdABlAGQAIAB1AG4AZABlAHIAIABFAGwAZQBjAHQA -cgBvAG4AaQBjACAAUwBpAGcAbgBhAHQAdQByAGUAIABBAGMAdAAgAG8AZgAgAHQA -aABlACAAUgBlAHAAdQBiAGwAaQBjACAAbwBmACAASwBvAHIAZQBhACkwMwYDVR0R -BCwwKqQoMCYxJDAiBgNVBAMMG+2VnOq1reygleuztOuztO2YuOynhO2dpeybkDAz -BgNVHRIELDAqpCgwJjEkMCIGA1UEAwwb7ZWc6rWt7KCV67O067O07Zi47KeE7Z2l -7JuQMA8GA1UdEwEB/wQFMAMBAf8wDAYDVR0kBAUwA4ABADANBgkqhkiG9w0BAQUF -AAOCAQEAz9b3Dv2wjG4FFY6oXCuyWtEeV6ZeGKqCEQj8mbdbp+PI0qLT+SQ09+Pk -rolUR9NpScmAwRHr4inH9gaLX7riXs+rw87P7pIl3J85Hg4D9N6QW6FwmVzHc07J -pHVJeyWhn4KSjU3sYcUMMqfHODiAVToqgx2cZHm5Dac1Smjvj/8F2LpOVmHY+Epw -mAiWk9hgxzrsX58dKzVPSBShmrtv7tIDhlPxEMcHVGJeNo7iHCsdF03m9VrvirqC -6HfZKBF+N4dKlArJQOk1pTr7ZD7yXxZ683bXzu4/RB1Fql8RqlMcOh9SUWJUD6OQ -Nc9Nb7rHviwJ8TX4Absk3TC8SA/u2Q== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4G -A1UECxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNp -Z24xEzARBgNVBAMTCkdsb2JhbFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4 -MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEG -A1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2lnbjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWtiHL8 -RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsT -gHeMCOFJ0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmm -KPZpO/bLyCiR5Z2KYVc3rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zd -QQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjlOCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZ -XriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2xmmFghcCAwEAAaNCMEAw -DgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFI/wS3+o -LkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZU -RUm7lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMp -jjM5RcOO5LlXbKr8EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK -6fBdRoyV3XpYKBovHd7NADdBj+1EbddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQX -mcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18YIvDQVETI53O9zJrlAGomecs -Mx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7rkpeDMdmztcpH -WD9f ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIC+TCCAoCgAwIBAgINAKaLeSkAAAAAUNCR+TAKBggqhkjOPQQDAzCBvzELMAkG -A1UEBhMCVVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xKDAmBgNVBAsTH1NlZSB3 -d3cuZW50cnVzdC5uZXQvbGVnYWwtdGVybXMxOTA3BgNVBAsTMChjKSAyMDEyIEVu -dHJ1c3QsIEluYy4gLSBmb3IgYXV0aG9yaXplZCB1c2Ugb25seTEzMDEGA1UEAxMq -RW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRUMxMB4XDTEy -MTIxODE1MjUzNloXDTM3MTIxODE1NTUzNlowgb8xCzAJBgNVBAYTAlVTMRYwFAYD -VQQKEw1FbnRydXN0LCBJbmMuMSgwJgYDVQQLEx9TZWUgd3d3LmVudHJ1c3QubmV0 -L2xlZ2FsLXRlcm1zMTkwNwYDVQQLEzAoYykgMjAxMiBFbnRydXN0LCBJbmMuIC0g -Zm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxMzAxBgNVBAMTKkVudHJ1c3QgUm9vdCBD -ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEVDMTB2MBAGByqGSM49AgEGBSuBBAAi -A2IABIQTydC6bUF74mzQ61VfZgIaJPRbiWlH47jCffHyAsWfoPZb1YsGGYZPUxBt -ByQnoaD41UcZYUx9ypMn6nQM72+WCf5j7HBdNq1nd67JnXxVRDqiY1Ef9eNi1KlH -Bz7MIKNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0O -BBYEFLdj5xrdjekIplWDpOBqUEFlEUJJMAoGCCqGSM49BAMDA2cAMGQCMGF52OVC -R98crlOZF7ZvHH3hvxGU0QOIdeSNiaSKd0bebWHvAvX7td/M/k7//qnmpwIwW5nX -hTcGtXsI/esni0qU+eH6p44mCOh8kmhtc9hvJqwhAriZtyZBWyVgrtBIGu4G ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYD -VQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0 -IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3 -MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xKTAnBgNVBAMTIENoYW1iZXJz -IG9mIENvbW1lcmNlIFJvb3QgLSAyMDA4MB4XDTA4MDgwMTEyMjk1MFoXDTM4MDcz -MTEyMjk1MFowga4xCzAJBgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNlZSBj -dXJyZW50IGFkZHJlc3MgYXQgd3d3LmNhbWVyZmlybWEuY29tL2FkZHJlc3MpMRIw -EAYDVQQFEwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENhbWVyZmlybWEgUy5BLjEp -MCcGA1UEAxMgQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdCAtIDIwMDgwggIiMA0G -CSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCvAMtwNyuAWko6bHiUfaN/Gh/2NdW9 -28sNRHI+JrKQUrpjOyhYb6WzbZSm891kDFX29ufyIiKAXuFixrYp4YFs8r/lfTJq -VKAyGVn+H4vXPWCGhSRv4xGzdz4gljUha7MI2XAuZPeEklPWDrCQiorjh40G072Q -DuKZoRuGDtqaCrsLYVAGUvGef3bsyw/QHg3PmTA9HMRFEFis1tPo1+XqxQEHd9ZR -5gN/ikilTWh1uem8nk4ZcfUyS5xtYBkL+8ydddy/Js2Pk3g5eXNeJQ7KXOt3EgfL -ZEFHcpOrUMPrCXZkNNI5t3YRCQ12RcSprj1qr7V9ZS+UWBDsXHyvfuK2GNnQm05a -Sd+pZgvMPMZ4fKecHePOjlO+Bd5gD2vlGts/4+EhySnB8esHnFIbAURRPHsl18Tl -UlRdJQfKFiC4reRB7noI/plvg6aRArBsNlVq5331lubKgdaX8ZSD6e2wsWsSaR6s -+12pxZjptFtYer49okQ6Y1nUCyXeG0+95QGezdIp1Z8XGQpvvwyQ0wlf2eOKNcx5 -Wk0ZN5K3xMGtr/R5JJqyAQuxr1yW84Ay+1w9mPGgP0revq+ULtlVmhduYJ1jbLhj -ya6BXBg14JC7vjxPNyK5fuvPnnchpj04gftI2jE9K+OJ9dC1vX7gUMQSibMjmhAx -hduub+84Mxh2EQIDAQABo4IBbDCCAWgwEgYDVR0TAQH/BAgwBgEB/wIBDDAdBgNV -HQ4EFgQU+SSsD7K1+HnA+mCIG8TZTQKeFxkwgeMGA1UdIwSB2zCB2IAU+SSsD7K1 -+HnA+mCIG8TZTQKeFxmhgbSkgbEwga4xCzAJBgNVBAYTAkVVMUMwQQYDVQQHEzpN -YWRyaWQgKHNlZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNhbWVyZmlybWEuY29t -L2FkZHJlc3MpMRIwEAYDVQQFEwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENhbWVy -ZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdCAt -IDIwMDiCCQCj2kJ+pLGu2jAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRV -HSAAMCowKAYIKwYBBQUHAgEWHGh0dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20w -DQYJKoZIhvcNAQEFBQADggIBAJASryI1wqM58C7e6bXpeHxIvj99RZJe6dqxGfwW -PJ+0W2aeaufDuV2I6A+tzyMP3iU6XsxPpcG1Lawk0lgH3qLPaYRgM+gQDROpI9CF -5Y57pp49chNyM/WqfcZjHwj0/gF/JM8rLFQJ3uIrbZLGOU8W6jx+ekbURWpGqOt1 -glanq6B8aBMz9p0w8G8nOSQjKpD9kCk18pPfNKXG9/jvjA9iSnyu0/VU+I22mlaH -FoI6M6taIgj3grrqLuBHmrS1RaMFO9ncLkVAO+rcf+g769HsJtg1pDDFOqxXnrN2 -pSB7+R5KBWIBpih1YJeSDW4+TTdDDZIVnBgizVGZoCkaPF+KMjNbMMeJL0eYD6MD -xvbxrN8y8NmBGuScvfaAFPDRLLmF9dijscilIeUcE5fuDr3fKanvNFNb0+RqE4QG -tjICxFKuItLcsiFCGtpA8CnJ7AoMXOLQusxI0zcKzBIKinmwPQN/aUv0NCB9szTq -jktk9T79syNnFQ0EuPAtwQlRPLJsFfClI9eDdOTlLsn+mCdCxqvGnrDQWzilm1De -fhiYtUU79nm06PcaewaD+9CL2rvHvRirCG88gGtAPxkZumWK5r7VXNM21+9AUiRg -OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZ -d0jQ ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV -BAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2ln -biBHb2xkIENBIC0gRzIwHhcNMDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBF -MQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dpc3NTaWduIEFHMR8wHQYDVQQDExZT -d2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC -CgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUqt2/8 -76LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+ -bbqBHH5CjCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c -6bM8K8vzARO/Ws/BtQpgvd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqE -emA8atufK+ze3gE/bk3lUIbLtK/tREDFylqM2tIrfKjuvqblCqoOpd8FUrdVxyJd -MmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvRAiTysybUa9oEVeXBCsdt -MDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuendjIj3o02y -MszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69y -FGkOpeUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPi -aG59je883WX0XaxR7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxM -gI93e2CaHt+28kgeDrpOVG2Y4OGiGqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOBrDCB -qTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUWyV7 -lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64OfPAeGZe6Drn -8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov -L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe6 -45R88a7A3hfm5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczO -UYrHUDFu4Up+GC9pWbY9ZIEr44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5 -O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOfMke6UiI0HTJ6CVanfCU2qT1L2sCC -bwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6mGu6uLftIdxf+u+yv -GPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxpmo/a -77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCC -hdiDyyJkvC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid3 -92qgQmwLOM7XdVAyksLfKzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEpp -Ld6leNcG2mqeSz53OiATIgHQv2ieY2BrNU0LbbqhPcCT4H8js1WtciVORvnSFu+w -ZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6LqjviOvrv1vA+ACOzB2+htt -Qc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNV -BAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4X -DTA3MDYyOTE1MTMwNVoXDTI3MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQ -BgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwIQ2VydGlnbmEwggEiMA0GCSqGSIb3 -DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7qXOEm7RFHYeGifBZ4 -QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyHGxny -gQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbw -zBfsV1/pogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q -130yGLMLLGq/jj8UEYkgDncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2 -JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKfIrjxwo1p3Po6WAbfAgMBAAGjgbwwgbkw -DwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQtCRZvgHyUtVF9lo53BEw -ZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJBgNVBAYT -AkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzj -AQ/JSP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG -9w0BAQUFAAOCAQEAhQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8h -bV6lUmPOEvjvKtpv6zf+EwLHyzs+ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFnc -fca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1kluPBS1xp81HlDQwY9qcEQCYsuu -HWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY1gkIl2PlwS6w -t0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw -WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDUzCCAjugAwIBAgIBAjANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEd -MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3Mg -Q2xhc3MgMyBDQSAxMB4XDTA1MDUwOTE0MTMwM1oXDTE1MDUwOTE0MTMwM1owSzEL -MAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MR0wGwYD -VQQDDBRCdXlwYXNzIENsYXNzIDMgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAKSO13TZKWTeXx+HgJHqTjnmGcZEC4DVC69TB4sSveZn8AKxifZg -isRbsELRwCGoy+Gb72RRtqfPFfV0gGgEkKBYouZ0plNTVUhjP5JW3SROjvi6K//z -NIqeKNc0n6wv1g/xpC+9UrJJhW05NfBEMJNGJPO251P7vGGvqaMU+8IXF4Rs4HyI -+MkcVyzwPX6UvCWThOiaAJpFBUJXgPROztmuOfbIUxAMZTpHe2DC1vqRycZxbL2R -hzyRhkmr8w+gbCZ2Xhysm3HljbybIR6c1jh+JIAVMYKWsUnTYjdbiAwKYjT+p0h+ -mbEwi5A3lRyoH6UsjfRVyNvdWQrCrXig9IsCAwEAAaNCMEAwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUOBTmyPCppAP0Tj4io1vy1uCtQHQwDgYDVR0PAQH/BAQD -AgEGMA0GCSqGSIb3DQEBBQUAA4IBAQABZ6OMySU9E2NdFm/soT4JXJEVKirZgCFP -Bdy7pYmrEzMqnji3jG8CcmPHc3ceCQa6Oyh7pEfJYWsICCD8igWKH7y6xsL+z27s -EzNxZy5p+qksP2bAEllNC1QCkoS72xLvg3BweMhT+t/Gxv/ciC8HwEmdMldg0/L2 -mSlf56oBzKwzqBwKu5HEA6BvtjT5htOzdlSY9EqBs1OdTUDs5XcTRa9bqh/YL0yC -e/4qxFi7T/ye/QNlGioOw6UgFpRreaaiErS7GqQjel/wroQk5PMr+4okoyeYZdow -dXb8GZHo2+ubPzK/QJcHJrrM85SFSnonk8+QQtS4Wxam58tAA915 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDqzCCApOgAwIBAgIRAMcoRwmzuGxFjB36JPU2TukwDQYJKoZIhvcNAQEFBQAw -PDEbMBkGA1UEAxMSQ29tU2lnbiBTZWN1cmVkIENBMRAwDgYDVQQKEwdDb21TaWdu -MQswCQYDVQQGEwJJTDAeFw0wNDAzMjQxMTM3MjBaFw0yOTAzMTYxNTA0NTZaMDwx -GzAZBgNVBAMTEkNvbVNpZ24gU2VjdXJlZCBDQTEQMA4GA1UEChMHQ29tU2lnbjEL -MAkGA1UEBhMCSUwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGtWhf -HZQVw6QIVS3joFd67+l0Kru5fFdJGhFeTymHDEjWaueP1H5XJLkGieQcPOqs49oh -gHMhCu95mGwfCP+hUH3ymBvJVG8+pSjsIQQPRbsHPaHA+iqYHU4Gk/v1iDurX8sW -v+bznkqH7Rnqwp9D5PGBpX8QTz7RSmKtUxvLg/8HZaWSLWapW7ha9B20IZFKF3ue -Mv5WJDmyVIRD9YTC2LxBkMyd1mja6YJQqTtoz7VdApRgFrFD2UNd3V2Hbuq7s8lr -9gOUCXDeFhF6K+h2j0kQmHe5Y1yLM5d19guMsqtb3nQgJT/j8xH5h2iGNXHDHYwt -6+UarA9z1YJZQIDTAgMBAAGjgacwgaQwDAYDVR0TBAUwAwEB/zBEBgNVHR8EPTA7 -MDmgN6A1hjNodHRwOi8vZmVkaXIuY29tc2lnbi5jby5pbC9jcmwvQ29tU2lnblNl -Y3VyZWRDQS5jcmwwDgYDVR0PAQH/BAQDAgGGMB8GA1UdIwQYMBaAFMFL7XC29z58 -ADsAj8c+DkWfHl3sMB0GA1UdDgQWBBTBS+1wtvc+fAA7AI/HPg5Fnx5d7DANBgkq -hkiG9w0BAQUFAAOCAQEAFs/ukhNQq3sUnjO2QiBq1BW9Cav8cujvR3qQrFHBZE7p -iL1DRYHjZiM/EoZNGeQFsOY3wo3aBijJD4mkU6l1P7CW+6tMM1X5eCZGbxs2mPtC -dsGCuY7e+0X5YxtiOzkGynd6qDwJz2w2PQ8KRUtpFhpFfTMDZflScZAmlaxMDPWL -kz/MdXSFmLr/YnpNH4n+rr2UAJm/EaXc4HnFFgt9AmEd6oX5AhVP51qJThRv4zdL -hfXBPGHg/QVBspJ/wx2g0K5SZGBrGMYmnNj1ZOQ2GmKfig8+/21OGVZOIJFsnzQz -OjRXUDpvgV4GxvU+fE6OK85lBi5d0ipTdF7Tbieejw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCB -mDELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsT -MChjKSAyMDA4IEdlb1RydXN0IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25s -eTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhv -cml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIzNTk1OVowgZgxCzAJ -BgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg -MjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0 -BgNVBAMTLUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkg -LSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz -+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5jK/BGvESyiaHAKAxJcCGVn2TAppMSAmUm -hsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdEc5IiaacDiGydY8hS2pgn -5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3CIShwiP/W -JmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exAL -DmKudlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZC -huOl1UcCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYw -HQYDVR0OBBYEFMR5yo6hTgMdHNxr2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IB -AQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9cr5HqQ6XErhK8WTTOd8lNNTB -zU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbEAp7aDHdlDkQN -kv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD -AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUH -SJsMC8tJP33st/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2G -spki4cErx5z481+oghLrGREt ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBe -MQswCQYDVQQGEwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0 -ZC4xKjAoBgNVBAsMIWVQS0kgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAe -Fw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMxMjdaMF4xCzAJBgNVBAYTAlRXMSMw -IQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEqMCgGA1UECwwhZVBL -SSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0BAQEF -AAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAH -SyZbCUNsIZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAh -ijHyl3SJCRImHJ7K2RKilTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3X -DZoTM1PRYfl61dd4s5oz9wCGzh1NlDivqOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1 -TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX12ruOzjjK9SXDrkb5wdJ -fzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZv3I4sjZsN/+Z0V0OWQqraffA -sgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcGlBSBVcYn5AGPF8Fqcde+S/uU -WH1+ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8iQkEeb5mKPtf5P0B6ebClAZLS -nT0IFaUQAS2zMnaolQ2zepr7BxB4EW/hj8e6DyUadCrlHJhBmd8hh+iVBmoKs2pH -dmX2Os+PYhcZewoozRrSgx4hxyy/vv9haLdnG7t4TY3OZ+XkwY63I2binZB1NJip -NiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXiZo1jDiVN1Rmy5nk3pyKdVDEC -AwEAAaNqMGgwHQYDVR0OBBYEFB4M97Zn8uGSJglFwFU5Lnc/QkqiMAwGA1UdEwQF -MAMBAf8wOQYEZyoHAAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH -ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGB -uvl2ICO1J2B01GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6Yl -PwZpVnPDimZI+ymBV3QGypzqKOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkP -JXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdVxrsStZf0X4OFunHB2WyBEXYKCrC/ -gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEPNXubrjlpC2JgQCA2 -j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+rGNm6 -5ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUB -o2M3IUxExJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS -/jQ6fbjpKdx2qcgw+BRxgMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2z -Gp1iro2C6pSe3VkQw63d4k3jMdXH7OjysP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTE -W9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmODBCEIZ43ygknQW/2xzQ+D -hNQ+IIX3Sj0rnP0qCglN6oH4EZw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEXzCCA0egAwIBAgIBATANBgkqhkiG9w0BAQUFADCB0DELMAkGA1UEBhMCRVMx -SDBGBgNVBAoTP0laRU5QRSBTLkEuIC0gQ0lGIEEtMDEzMzcyNjAtUk1lcmMuVml0 -b3JpYS1HYXN0ZWl6IFQxMDU1IEY2MiBTODFCMEAGA1UEBxM5QXZkYSBkZWwgTWVk -aXRlcnJhbmVvIEV0b3JiaWRlYSAzIC0gMDEwMTAgVml0b3JpYS1HYXN0ZWl6MRMw -EQYDVQQDEwpJemVucGUuY29tMR4wHAYJKoZIhvcNAQkBFg9JbmZvQGl6ZW5wZS5j -b20wHhcNMDMwMTMwMjMwMDAwWhcNMTgwMTMwMjMwMDAwWjCB0DELMAkGA1UEBhMC -RVMxSDBGBgNVBAoTP0laRU5QRSBTLkEuIC0gQ0lGIEEtMDEzMzcyNjAtUk1lcmMu -Vml0b3JpYS1HYXN0ZWl6IFQxMDU1IEY2MiBTODFCMEAGA1UEBxM5QXZkYSBkZWwg -TWVkaXRlcnJhbmVvIEV0b3JiaWRlYSAzIC0gMDEwMTAgVml0b3JpYS1HYXN0ZWl6 -MRMwEQYDVQQDEwpJemVucGUuY29tMR4wHAYJKoZIhvcNAQkBFg9JbmZvQGl6ZW5w -ZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC1btoCXXhp3xIW -D+Bxl8nUCxkyiazWfpt0e68t+Qt9+lZjKZSdEw2Omj4qvr+ovRmDXO3iWpWVOWDl -3JHJjAzFCe8ZEBNDH+QNYwZHmPBaMYFOYFdbAFVHWvys152C308hcFJ6xWWGmjvl -2eMiEl9P2nR2LWue368DCu+ak7j3gjAXaCOdP1a7Bfr+RW3X2SC5R4Xyp8iHlL5J -PHJD/WBkLrezwzQPdACw8m9EG7q9kUwlNpL32mROujS3ZkT6mQTzJieLiE3X04s0 -uIUqVkk5MhjcHFf7al0N5CzjtTcnXYJKN2Z9EDVskk4olAdGi46eSoZXbjUOP5gk -Ej6wVZAXAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEG -MB0GA1UdDgQWBBTqVk/sPIOhFIh4gbIrBSLAB0FbQjANBgkqhkiG9w0BAQUFAAOC -AQEAYp7mEzzhw6o5Hf5+T5kcI+t4BJyiIWy7vHlLs/G8dLYXO81aN/Mzg928eMTR -TxxYZL8dd9uwsJ50TVfX6L0R4Dyw6wikh3fHRrat9ufXi63j5K91Ysr7aXqnF38d -iAgHYkrwC3kuxHBb9C0KBz6h8Q45/KCyN7d37wWAq38yyhPDlaOvyoE6bdUuK5hT -m5EYA5JmPyrhQ1moDOyueWBAjxzMEMj+OAY1H90cLv6wszsqerxRrdTOHBdv7MjB -EIpvEEQkXUxVXAzFuuT6m2t91Lfnwfl/IvljHaVC7DlyyhRYHD6D4Rx+4QKp4tWL -vpw6LkI+gKNJ/YdMCsRZQzEEFA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBi -MQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu -MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3Jp -dHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMxMjM1OTU5WjBiMQswCQYDVQQGEwJV -UzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydO -ZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDkvH6SMG3G2I4rC7xGzuAnlt7e+foS0zwz -c7MEL7xxjOWftiJgPl9dzgn/ggwbmlFQGiaJ3dVhXRncEg8tCqJDXRfQNJIg6nPP -OCwGJgl6cvf6UDL4wpPTaaIjzkGxzOTVHzbRijr4jGPiFFlp7Q3Tf2vouAPlT2rl -mGNpSAW+Lv8ztumXWWn4Zxmuk2GWRBXTcrA/vGp97Eh/jcOrqnErU2lBUzS1sLnF -BgrEsEX1QV1uiUV7PTsmjHTC5dLRfbIR1PtYMiKagMnc/Qzpf14Dl847ABSHJ3A4 -qY5usyd2mFHgBeMhqxrVhSI8KbWaFsWAqPS7azCPL0YCorEMIuDTAgMBAAGjgZcw -gZQwHQYDVR0OBBYEFCEwyfsA106Y2oeqKtCnLrFAMadMMA4GA1UdDwEB/wQEAwIB -BjAPBgNVHRMBAf8EBTADAQH/MFIGA1UdHwRLMEkwR6BFoEOGQWh0dHA6Ly9jcmwu -bmV0c29sc3NsLmNvbS9OZXR3b3JrU29sdXRpb25zQ2VydGlmaWNhdGVBdXRob3Jp -dHkuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQC7rkvnt1frf6ott3NHhWrB5KUd5Oc8 -6fRZZXe1eltajSU24HqXLjjAV2CDmAaDn7l2em5Q4LqILPxFzBiwmZVRDuwduIj/ -h1AcgsLj4DKAv6ALR8jDMe+ZZzKATxcheQxpXN5eNK4CtSbqUN9/GGUsyfJj4akH -/nxxH2szJGoeBfcFaMBqEssuXmHLrijTfsK0ZpEmXzwuJF/LWA/rKOyvEZbz3Htv -wKeI8lN3s2Berq4o2jUsbzRF0ybh3uxbTydrFny9RAQYgrOJeRcQcT16ohZO9QHN -pGxlaKFJdlxDydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCB -vTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL -ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJp -U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MTgwNgYDVQQDEy9W -ZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAe -Fw0wODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIG9MQswCQYDVQQGEwJVUzEX -MBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0 -IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAyMDA4IFZlcmlTaWduLCBJbmMuIC0gRm9y -IGF1dGhvcml6ZWQgdXNlIG9ubHkxODA2BgNVBAMTL1ZlcmlTaWduIFVuaXZlcnNh -bCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEF -AAOCAQ8AMIIBCgKCAQEAx2E3XrEBNNti1xWb/1hajCMj1mCOkdeQmIN65lgZOIzF -9uVkhbSicfvtvbnazU0AtMgtc6XHaXGVHzk8skQHnOgO+k1KxCHfKWGPMiJhgsWH -H26MfF8WIFFE0XBPV+rjHOPMee5Y2A7Cs0WTwCznmhcrewA3ekEzeOEz4vMQGn+H -LL729fdC4uW/h2KJXwBL38Xd5HVEMkE6HnFuacsLdUYI0crSK5XQz/u5QGtkjFdN -/BMReYTtXlT2NJ8IAfMQJQYXStrxHXpma5hgZqTZ79IugvHw7wnqRMkVauIDbjPT -rJ9VAMf2CGqUuV/c4DPxhGD5WycRtPwW8rtWaoAljQIDAQABo4GyMIGvMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMG0GCCsGAQUFBwEMBGEwX6FdoFsw -WTBXMFUWCWltYWdlL2dpZjAhMB8wBwYFKw4DAhoEFI/l0xqGrI2Oa8PPgGrUSBgs -exkuMCUWI2h0dHA6Ly9sb2dvLnZlcmlzaWduLmNvbS92c2xvZ28uZ2lmMB0GA1Ud -DgQWBBS2d/ppSEefUxLVwuoHMnYH0ZcHGTANBgkqhkiG9w0BAQsFAAOCAQEASvj4 -sAPmLGd75JR3Y8xuTPl9Dg3cyLk1uXBPY/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+ -seQxIcaBlVZaDrHC1LGmWazxY8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz -4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTxP/jgdFcrGJ2BtMQo2pSXpXDrrB2+ -BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+PwGZsY6rp2aQW9IHR -lRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4mJO3 -7M2CYfE45k+XmCpajQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIECTCCAvGgAwIBAgIQDV6ZCtadt3js2AdWO4YV2TANBgkqhkiG9w0BAQUFADBb -MQswCQYDVQQGEwJVUzEgMB4GA1UEChMXRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3Qx -ETAPBgNVBAsTCERTVCBBQ0VTMRcwFQYDVQQDEw5EU1QgQUNFUyBDQSBYNjAeFw0w -MzExMjAyMTE5NThaFw0xNzExMjAyMTE5NThaMFsxCzAJBgNVBAYTAlVTMSAwHgYD -VQQKExdEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdDERMA8GA1UECxMIRFNUIEFDRVMx -FzAVBgNVBAMTDkRTVCBBQ0VTIENBIFg2MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A -MIIBCgKCAQEAuT31LMmU3HWKlV1j6IR3dma5WZFcRt2SPp/5DgO0PWGSvSMmtWPu -ktKe1jzIDZBfZIGxqAgNTNj50wUoUrQBJcWVHAx+PhCEdc/BGZFjz+iokYi5Q1K7 -gLFViYsx+tC3dr5BPTCapCIlF3PoHuLTrCq9Wzgh1SpL11V94zpVvddtawJXa+ZH -fAjIgrrep4c9oW24MFbCswKBXy314powGCi4ZtPLAZZv6opFVdbgnf9nKxcCpk4a -ahELfrd755jWjHZvwTvbUJN+5dCOHze4vbrGn2zpfDPyMjwmR/onJALJfh1biEIT -ajV8fTXpLmaRcpPVMibEdPVTo7NdmvYJywIDAQABo4HIMIHFMA8GA1UdEwEB/wQF -MAMBAf8wDgYDVR0PAQH/BAQDAgHGMB8GA1UdEQQYMBaBFHBraS1vcHNAdHJ1c3Rk -c3QuY29tMGIGA1UdIARbMFkwVwYKYIZIAWUDAgEBATBJMEcGCCsGAQUFBwIBFjto -dHRwOi8vd3d3LnRydXN0ZHN0LmNvbS9jZXJ0aWZpY2F0ZXMvcG9saWN5L0FDRVMt -aW5kZXguaHRtbDAdBgNVHQ4EFgQUCXIGThhDD+XWzMNqizF7eI+og7gwDQYJKoZI -hvcNAQEFBQADggEBAKPYjtay284F5zLNAdMEA+V25FYrnJmQ6AgwbN99Pe7lv7Uk -QIRJ4dEorsTCOlMwiPH1d25Ryvr/ma8kXxug/fKshMrfqfBfBC6tFr8hlxCBPeP/ -h40y3JTlR4peahPJlJU90u7INJXQgNStMgiAVDzgvVJT11J8smk/f3rPanTK+gQq -nExaBqXpIK1FZg9p8d2/6eMyi/rgwYZNcjwu2JN4Cir42NInPRmJX1p7ijvMDNpR -rscL9yuwNwXsvFcj4jjSm2jzVhKIT0J8uDHEtdvkyCE06UgRNe76x5JXxZ805Mf2 -9w4LTJxoeHtxMcfrHuBnQfO3oKfN5XozNmr6mis= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDljCCAn6gAwIBAgIQC5McOtY5Z+pnI7/Dr5r0SzANBgkqhkiG9w0BAQsFADBl -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJv -b3QgRzIwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQG -EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNl -cnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzIwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZ5ygvUj82ckmIkzTz+GoeMVSA -n61UQbVH35ao1K+ALbkKz3X9iaV9JPrjIgwrvJUXCzO/GU1BBpAAvQxNEP4Htecc -biJVMWWXvdMX0h5i89vqbFCMP4QMls+3ywPgym2hFEwbid3tALBSfK+RbLE4E9Hp -EgjAALAcKxHad3A2m67OeYfcgnDmCXRwVWmvo2ifv922ebPynXApVfSr/5Vh88lA -bx3RvpO704gqu52/clpWcTs/1PPRCv4o76Pu2ZmvA9OPYLfykqGxvYmJHzDNw6Yu -YjOuFgJ3RFrngQo8p0Quebg/BLxcoIfhG69Rjs3sLPr4/m3wOnyqi+RnlTGNAgMB -AAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQW -BBTOw0q5mVXyuNtgv6l+vVa1lzan1jANBgkqhkiG9w0BAQsFAAOCAQEAyqVVjOPI -QW5pJ6d1Ee88hjZv0p3GeDgdaZaikmkuOGybfQTUiaWxMTeKySHMq2zNixya1r9I -0jJmwYrA8y8678Dj1JGG0VDjA9tzd29KOVPt3ibHtX2vK0LRdWLjSisCx1BL4Gni -lmwORGYQRI+tBev4eaymG+g3NJ1TyWGqolKvSnAWhsI6yLETcDbYz+70CjTVW0z9 -B5yiutkBclzzTcHdDrEcDcRjvq30FPuJ7KJBDkzMyFdA0G4Dqs0MjomZmWzwPDCv -ON9vvKO+KSAnq3T/EyJ43pdSVR6DtVQgA+6uwE9W3jfMw3+qBCe703e4YtsXfJwo -IhNzbM8m9Yop5w== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzES -MBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFU -V0NBIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMz -WhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJVEFJV0FO -LUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlm -aWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFE -AcK0HMMxQhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HH -K3XLfJ+utdGdIzdjp9xCoi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeX -RfwZVzsrb+RH9JlF/h3x+JejiB03HFyP4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/z -rX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1ry+UPizgN7gr8/g+YnzAx -3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV -HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkq -hkiG9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeC -MErJk/9q56YAf4lCmtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdls -XebQ79NqZp4VKIV66IIArB6nCWlWQtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62D -lhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVYT0bf+215WfKEIlKuD8z7fDvn -aspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocnyYh0igzyXxfkZ -YiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIE5zCCA8+gAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjTELMAkGA1UEBhMCQ0Ex -EDAOBgNVBAgTB09udGFyaW8xEDAOBgNVBAcTB1Rvcm9udG8xHTAbBgNVBAoTFEVj -aG93b3J4IENvcnBvcmF0aW9uMR8wHQYDVQQLExZDZXJ0aWZpY2F0aW9uIFNlcnZp -Y2VzMRowGAYDVQQDExFFY2hvd29yeCBSb290IENBMjAeFw0wNTEwMDYxMDQ5MTNa -Fw0zMDEwMDcxMDQ5MTNaMIGNMQswCQYDVQQGEwJDQTEQMA4GA1UECBMHT250YXJp -bzEQMA4GA1UEBxMHVG9yb250bzEdMBsGA1UEChMURWNob3dvcnggQ29ycG9yYXRp -b24xHzAdBgNVBAsTFkNlcnRpZmljYXRpb24gU2VydmljZXMxGjAYBgNVBAMTEUVj -aG93b3J4IFJvb3QgQ0EyMIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEA -utU/5BkV15UBf+s+JQruKQxr77s3rjp/RpOtmhHILIiO5gsEWP8MMrfrVEiidjI6 -Qh6ans0KAWc2Dw0/j4qKAQzOSyAZgjcdypNTBZ7muv212DA2Pu41rXqwMrlBrVi/ -KTghfdLlNRu6JrC5y8HarrnRFSKF1Thbzz921kLDRoCi+FVs5eVuK5LvIfkhNAqA -byrTgO3T9zfZgk8upmEkANPDL1+8y7dGPB/d6lk0I5mv8PESKX02TlvwgRSIiTHR -k8++iOPLBWlGp7ZfqTEXkPUZhgrQQvxcrwCUo6mk8TqgxCDP5FgPoHFiPLef5szP -ZLBJDWp7GLyE1PmkQI6WiwIBA6OCAVAwggFMMA8GA1UdEwEB/wQFMAMBAf8wCwYD -VR0PBAQDAgEGMB0GA1UdDgQWBBQ74YEboKs/OyGC1eISrq5QqxSlEzCBugYDVR0j -BIGyMIGvgBQ74YEboKs/OyGC1eISrq5QqxSlE6GBk6SBkDCBjTELMAkGA1UEBhMC -Q0ExEDAOBgNVBAgTB09udGFyaW8xEDAOBgNVBAcTB1Rvcm9udG8xHTAbBgNVBAoT -FEVjaG93b3J4IENvcnBvcmF0aW9uMR8wHQYDVQQLExZDZXJ0aWZpY2F0aW9uIFNl -cnZpY2VzMRowGAYDVQQDExFFY2hvd29yeCBSb290IENBMoIBADBQBgNVHSAESTBH -MEUGCysGAQQB+REKAQMBMDYwNAYIKwYBBQUHAgEWKGh0dHA6Ly93d3cuZWNob3dv -cnguY29tL2NhL3Jvb3QyL2Nwcy5wZGYwDQYJKoZIhvcNAQEFBQADggEBAG+nrPi/ -0RpfEzrj02C6JGPUar4nbjIhcY6N7DWNeqBoUulBSIH/PYGNHYx7/lnJefiixPGE -7TQ5xPgElxb9bK8zoAApO7U33OubqZ7M7DlHnFeCoOoIAZnG1kuwKwD5CXKB2a74 -HzcqNnFW0IsBFCYqrVh/rQgJOzDA8POGbH0DeD0xjwBBooAolkKT+7ZItJF1Pb56 -QpDL9G+16F7GkmnKlAIYT3QTS3yFGYChnJcd+6txUPhKi9sSOOmAIaKHnkH9Scz+ -A2cSi4A3wUYXVatuVNHpRb2lygfH3SuCX9MU8Ure3zBlSU1LALtMqI4JmcQmQpIq -zIzvO2jHyu9PQqo= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEqjCCA5KgAwIBAgIOLmoAAQACH9dSISwRXDswDQYJKoZIhvcNAQEFBQAwdjEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV -BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDIgQ0ExJTAjBgNVBAMTHFRDIFRydXN0 -Q2VudGVyIENsYXNzIDIgQ0EgSUkwHhcNMDYwMTEyMTQzODQzWhcNMjUxMjMxMjI1 -OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i -SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQTElMCMGA1UEAxMc -VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBAKuAh5uO8MN8h9foJIIRszzdQ2Lu+MNF2ujhoF/RKrLqk2jf -tMjWQ+nEdVl//OEd+DFwIxuInie5e/060smp6RQvkL4DUsFJzfb95AhmC1eKokKg -uNV/aVyQMrKXDcpK3EY+AlWJU+MaWss2xgdW94zPEfRMuzBwBJWl9jmM/XOBCH2J -XjIeIqkiRUuwZi4wzJ9l/fzLganx4Duvo4bRierERXlQXa7pIXSSTYtZgo+U4+lK -8edJsBTj9WLL1XK9H7nSn6DNqPoByNkN39r8R52zyFTfSUrxIan+GE7uSNQZu+99 -5OKdy1u2bv/jzVrndIIFuoAlOMvkaZ6vQaoahPUCAwEAAaOCATQwggEwMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjq1RMgKHbVkO3 -kUrL84J6E1wIqzCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy -dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18yX2NhX0lJLmNybIaBn2xkYXA6 -Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz -JTIwMiUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb290 -Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u -TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEAjNfffu4bgBCzg/XbEeprS6iS -GNn3Bzn1LL4GdXpoUxUc6krtXvwjshOg0wn/9vYua0Fxec3ibf2uWWuFHbhOIprt -ZjluS5TmVfwLG4t3wVMTZonZKNaL80VKY7f9ewthXbhtvsPcW3nS7Yblok2+XnR8 -au0WOB9/WIFaGusyiC2y8zl3gK9etmF1KdsjTYjKUCjLhdLTEKJZbtOTVAB6okaV -hgWcqRmY5TFyDADiZ9lA4CQze28suVyrZZ0srHbqNZn1l7kPJOzHdiEoZa5X6AeI -dUpWoNIFOqTmjZKILPPy4cHGYdtBxceb9w4aUUXCYWvcZCcXjFq32nQozZfkvQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCB -gjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEk -MCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRY -UmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQxMTAxMTcx -NDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMxHjAcBgNVBAsTFXd3 -dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkgU2Vy -dmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB -dXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS6 -38eMpSe2OAtp87ZOqCwuIR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCP -KZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMxfoArtYzAQDsRhtDLooY2YKTVMIJt2W7Q -DxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FEzG+gSqmUsE3a56k0enI4 -qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqsAxcZZPRa -JSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNVi -PvryxS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0P -BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASs -jVy16bYbMDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0 -eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQEwDQYJKoZIhvcNAQEFBQAD -ggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc/Kh4ZzXxHfAR -vbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt -qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLa -IR9NmXmd4c8nnxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSy -i6mx5O+aGtA9aZnuqCij4Tyz8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQ -O+7ETPTsJ3xCwnR8gooJybQDJbw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDOzCCAiOgAwIBAgIRANAeRlAAACmMAAAAAgAAAAIwDQYJKoZIhvcNAQEFBQAw -PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD -Ew5EU1QgUm9vdCBDQSBYNDAeFw0wMDA5MTMwNjIyNTBaFw0yMDA5MTMwNjIyNTBa -MD8xJDAiBgNVBAoTG0RpZ2l0YWwgU2lnbmF0dXJlIFRydXN0IENvLjEXMBUGA1UE -AxMORFNUIFJvb3QgQ0EgWDQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQCthX3OFEYY8gSeIYur0O4ypOT68HnDrjLfIutL5PZHRwQGjzCPb9PFo/ihboJ8 -RvfGhBAqpQCo47zwYEhpWm1jB+L/OE/dBBiyn98krfU2NiBKSom2J58RBeAwHGEy -cO+lewyjVvbDDLUy4CheY059vfMjPAftCRXjqSZIolQb9FdPcAoa90mFwB7rKniE -J7vppdrUScSS0+eBrHSUPLdvwyn4RGp+lSwbWYcbg5EpSpE0GRJdchic0YDjvIoC -YHpe7Rkj93PYRTQyU4bhC88ck8tMqbvRYqMRqR+vobbkrj5LLCOQCHV5WEoxWh+0 -E2SpIFe7RkV++MmpIAc0h1tZAgMBAAGjMjAwMA8GA1UdEwEB/wQFMAMBAf8wHQYD -VR0OBBYEFPCD6nPIP1ubWzdf9UyPWvf0hki9MA0GCSqGSIb3DQEBBQUAA4IBAQCE -G85wl5eEWd7adH6XW/ikGN5salvpq/Fix6yVTzE6CrhlP5LBdkf6kx1bSPL18M45 -g0rw2zA/MWOhJ3+S6U+BE0zPGCuu8YQaZibR7snm3HiHUaZNMu5c8D0x0bcMxDjY -AVVcHCoNiL53Q4PLW27nbY6wwG0ffFKmgV3blxrYWfuUDgGpyPwHwkfVFvz9qjaV -mf12VJffL6W8omBPtgteb6UaT/k1oJ7YI0ldGf+ngpVbRhD+LC3cUtT6GO/BEPZu -8YTV/hbiDH5v3khVqMIeKT6o8IuXGG7F6a6vKwP1F1FwTXf4UC/ivhme7vdUH7B/ -Vv4AEbT8dNfEeFxrkDbh ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEQzCCAyugAwIBAgIBATANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJHQjEb -MBkGA1UECAwSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRow -GAYDVQQKDBFDb21vZG8gQ0EgTGltaXRlZDElMCMGA1UEAwwcVHJ1c3RlZCBDZXJ0 -aWZpY2F0ZSBTZXJ2aWNlczAeFw0wNDAxMDEwMDAwMDBaFw0yODEyMzEyMzU5NTla -MH8xCzAJBgNVBAYTAkdCMRswGQYDVQQIDBJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO -BgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoMEUNvbW9kbyBDQSBMaW1pdGVkMSUwIwYD -VQQDDBxUcnVzdGVkIENlcnRpZmljYXRlIFNlcnZpY2VzMIIBIjANBgkqhkiG9w0B -AQEFAAOCAQ8AMIIBCgKCAQEA33FvNlhTWvI2VFeAxHQIIO0Yfyod5jWaHiWsnOWW -fnJSoBVC21ndZHoa0Lh73TkVvFVIxO06AOoxEbrycXQaZ7jPM8yoMa+j49d/vzMt -TGo87IvDktJTdyR0nAducPy9C1t2ul/y/9c3S0pgePfw+spwtOpZqqPOSC+pw7IL -fhdyFgymBwwbOM/JYrc/oJOlh0Hyt3BAd9i+FHzjqMB6juljatEPmsbS9Is6FARW -1O24zG71++IsWL1/T2sr92AkWCTOJu80kTrV44HQsvAEAtdbtz6SrGsSivnkBbA7 -kUlcsutT6vifR4buv5XAwAaf0lteERv0xwQ1KdJVXOTt6wIDAQABo4HJMIHGMB0G -A1UdDgQWBBTFe1i97doladL3WRaoszLAeydb9DAOBgNVHQ8BAf8EBAMCAQYwDwYD -VR0TAQH/BAUwAwEB/zCBgwYDVR0fBHwwejA8oDqgOIY2aHR0cDovL2NybC5jb21v -ZG9jYS5jb20vVHJ1c3RlZENlcnRpZmljYXRlU2VydmljZXMuY3JsMDqgOKA2hjRo -dHRwOi8vY3JsLmNvbW9kby5uZXQvVHJ1c3RlZENlcnRpZmljYXRlU2VydmljZXMu -Y3JsMA0GCSqGSIb3DQEBBQUAA4IBAQDIk4E7ibSvuIQSTI3S8NtwuleGFTQQuS9/ -HrCoiWChisJ3DFBKmwCL2Iv0QeLQg4pKHBQGsKNoBXAxMKdTmw7pSqBYaWcOrp32 -pSxBvzwGa+RZzG0Q8ZZvH9/0BAKkn0U+yNj6NkZEUD+Cl5EfKNsYEYwq5GWDVxIS -jBc/lDb+XbDABHcTuPQV1T84zJQ6VdCsmPW6AF/ghhmBeC8owH7TzEIK9a5QoNE+ -xqFx7D+gIIxmOom0jtTYsU0lR+4viMi14QVFwL4Ucd56/Y57fU0IlqUSc/Atyjcn -dBInTMu2l+nZrghtWjlA3QVHdWpaIbOjGM9O9y5Xt5hwXsjEeLBi ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBK -MQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x -GTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwgQ0EwHhcNMDYxMTA3MTk0MjI4WhcNMjkx -MjMxMTk1MjA2WjBKMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3Qg -Q29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwgQ0EwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvNS7YrGxVaQZx5RNoJLNP2MwhR/jxYDiJ -iQPpvepeRlMJ3Fz1Wuj3RSoC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa -/FHtaMbQbqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJ -jnIFHovdRIWCQtBJwB1g8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnI -HmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYVHDGA76oYa8J719rO+TMg1fW9ajMtgQT7 -sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi0XPnj3pDAgMBAAGjgZ0w -gZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1UdEwEB/wQF -MAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCsw -KaAnoCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsG -AQQBgjcVAQQDAgEAMA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0L -URYD7xh8yOOvaliTFGCRsoTciE6+OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXO -H0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cnCDpOGR86p1hcF895P4vkp9Mm -I50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/53CYNv6ZHdAbY -iNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc -f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID+TCCAuGgAwIBAgIQW1fXqEywr9nTb0ugMbTW4jANBgkqhkiG9w0BAQUFADB5 -MQswCQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRl -cm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xKjAoBgNVBAMTIVZpc2EgSW5m -b3JtYXRpb24gRGVsaXZlcnkgUm9vdCBDQTAeFw0wNTA2MjcxNzQyNDJaFw0yNTA2 -MjkxNzQyNDJaMHkxCzAJBgNVBAYTAlVTMQ0wCwYDVQQKEwRWSVNBMS8wLQYDVQQL -EyZWaXNhIEludGVybmF0aW9uYWwgU2VydmljZSBBc3NvY2lhdGlvbjEqMCgGA1UE -AxMhVmlzYSBJbmZvcm1hdGlvbiBEZWxpdmVyeSBSb290IENBMIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyREA4R/QkkfpLx0cYjga/EhIPZpchH0MZsRZ -FfP6C2ITtf/Wc+MtgD4yTK0yoiXvni3d+aCtEgK3GDvkdgYrgF76ROJFZwUQjQ9l -x42gRT05DbXvWFoy7dTglCZ9z/Tt2Cnktv9oxKgmkeHY/CyfpCBg1S8xth2JlGMR -0ug/GMO5zANuegZOv438p5Lt5So+du2Gl+RMFQqEPwqN5uJSqAe0VtmB4gWdQ8on -Bj2ZAM2R73QW7UW0Igt2vA4JaSiNtaAG/Y/58VXWHGgbq7rDtNK1R30X0kJV0rGA -ib3RSwB3LpG7bOjbIucV5mQgJoVjoA1e05w6g1x/KmNTmOGRVwIDAQABo30wezAP -BgNVHRMBAf8EBTADAQH/MDkGA1UdIAQyMDAwLgYFZ4EDAgEwJTAVBggrBgEFBQcC -ARYJMS4yLjMuNC41MAwGCCsGAQUFBwICMAAwDgYDVR0PAQH/BAQDAgEGMB0GA1Ud -DgQWBBRPitp2/2d3I5qmgH1924h1hfeBejANBgkqhkiG9w0BAQUFAAOCAQEACUW1 -QdUHdDJydgDPmYt+telnG/Su+DPaf1cregzlN43bJaJosMP7NwjoJY/H2He4XLWb -5rXEkl+xH1UyUwF7mtaUoxbGxEvt8hPZSTB4da2mzXgwKvXuHyzF5Qjy1hOB0/pS -WaF9ARpVKJJ7TOJQdGKBsF2Ty4fSCLqZLgfxbqwMsd9sysXI3rDXjIhekqvbgeLz -PqZr+pfgFhwCCLSMQWl5Ll3u7Qk9wR094DZ6jj6+JCVCRUS3HyabH4OlM0Vc2K+j -INsF/64Or7GNtRf9HYEJvrPxHINxl3JVwhYj4ASeaO4KwhVbwtw94Tc/XrGcexDo -c5lC3rAi4/UZqweYCw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoT -HFN0YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVs -ZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5 -MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNVBAYTAlVTMRAwDgYD -VQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFy -ZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2Vy -dmljZXMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20p -OsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm2 -8xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4PahHQUw2eeBGg6345AWh1K -Ts9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLPLJGmpufe -hRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk -6mFBrMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAw -DwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+q -AdcwKziIorhtSpzyEZGDMA0GCSqGSIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMI -bw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPPE95Dz+I0swSdHynVv/heyNXB -ve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTyxQGjhdByPq1z -qwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd -iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn -0q23KXB56jzaYyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCN -sSi6 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzEl -MCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMp -U3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQw -NjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBoMQswCQYDVQQGEwJVUzElMCMGA1UE -ChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZp -ZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqGSIb3 -DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf -8MOh2tTYbitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN -+lq2cwQlZut3f+dZxkqZJRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0 -X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVmepsZGD3/cVE8MC5fvj13c7JdBmzDI1aa -K4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSNF4Azbl5KXZnJHoe0nRrA -1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HFMIHCMB0G -A1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fR -zt0fhvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0 -YXJmaWVsZCBUZWNobm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBD -bGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8w -DQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGsafPzWdqbAYcaT1epoXkJKtv3 -L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLMPUxA2IGvd56D -eruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl -xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynp -VSJYACPq4xJDKVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEY -WQPJIrSPnNVeKtelttQKbfi3QBFGmh95DmK/D5fs4C8fF5Q= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEqjCCA5KgAwIBAgIOSkcAAQAC5aBd1j8AUb8wDQYJKoZIhvcNAQEFBQAwdjEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNV -BAsTGVRDIFRydXN0Q2VudGVyIENsYXNzIDMgQ0ExJTAjBgNVBAMTHFRDIFRydXN0 -Q2VudGVyIENsYXNzIDMgQ0EgSUkwHhcNMDYwMTEyMTQ0MTU3WhcNMjUxMjMxMjI1 -OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1c3RDZW50ZXIgR21i -SDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQTElMCMGA1UEAxMc -VEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBALTgu1G7OVyLBMVMeRwjhjEQY0NVJz/GRcekPewJDRoeIMJW -Ht4bNwcwIi9v8Qbxq63WyKthoy9DxLCyLfzDlml7forkzMA5EpBCYMnMNWju2l+Q -Vl/NHE1bWEnrDgFPZPosPIlY2C8u4rBo6SI7dYnWRBpl8huXJh0obazovVkdKyT2 -1oQDZogkAHhg8fir/gKya/si+zXmFtGt9i4S5Po1auUZuV3bOx4a+9P/FRQI2Alq -ukWdFHlgfa9Aigdzs5OW03Q0jTo3Kd5c7PXuLjHCINy+8U9/I1LZW+Jk2ZyqBwi1 -Rb3R0DHBq1SfqdLDYmAD8bs5SpJKPQq5ncWg/jcCAwEAAaOCATQwggEwMA8GA1Ud -EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTUovyfs8PYA9NX -XAek0CSnwPIA1DCB7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRy -dXN0Y2VudGVyLmRlL2NybC92Mi90Y19jbGFzc18zX2NhX0lJLmNybIaBn2xkYXA6 -Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBUcnVzdENlbnRlciUyMENsYXNz -JTIwMyUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21iSCxPVT1yb290 -Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u -TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEANmDkcPcGIEPZIxpC8vijsrlN -irTzwppVMXzEO2eatN9NDoqTSheLG43KieHPOh6sHfGcMrSOWXaiQYUlN6AT0PV8 -TtXqluJucsG7Kv5sbviRmEb8yRtXW+rIGjs/sFGYPAfaLFkB2otE6OF0/ado3VS6 -g0bsyEa1+K+XwDsJHI/OcpY9M1ZwvJbL2NV9IJqDnxrcOfHFcqMRA/07QlIp2+gB -95tejNaNhk4Z+rwcvsUhpYeeeC422wlxo3I0+GzjBgnyXlal092Y+tTmBvTwtiBj -S+opvaqCZh77gaqnN60TGOaSw4HBM7uIHqHn4rS9MWwOUT1v+5ZWgOI2F9Hc5A== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBY -MQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMo -R2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjEx -MjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgxCzAJBgNVBAYTAlVTMRYwFAYDVQQK -Ew1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQcmltYXJ5IENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC -AQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9 -AWbK7hWNb6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjA -ZIVcFU2Ix7e64HXprQU9nceJSOC7KMgD4TCTZF5SwFlwIjVXiIrxlQqD17wxcwE0 -7e9GceBrAqg1cmuXm2bgyxx5X9gaBGgeRwLmnWDiNpcB3841kt++Z8dtd1k7j53W -kBWUvEI0EME5+bEnPn7WinXFsq+W06Lem+SYvn3h6YGttm/81w7a4DSwDRp35+MI -mO9Y+pyEtzavwt+s0vQQBnBxNQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4G -A1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULNVQQZcVi/CPNmFbSvtr2ZnJM5IwDQYJ -KoZIhvcNAQEFBQADggEBAFpwfyzdtzRP9YZRqSa+S7iq8XEN3GHHoOo0Hnp3DwQ1 -6CePbJC/kRYkRj5KTs4rFtULUh38H2eiAkUxT87z+gOneZ1TatnaYzr4gNfTmeGl -4b7UVXGYNTq+k+qurUKykG/g/CFNNWMziUnWm07Kx+dOCQD32sfvmWKZd7aVIl6K -oKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHaFloxt/m0cYASSJlyc1pZU8Fj -UjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG1riR/aYNKxoU -AT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UE -BhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWdu -IFNpbHZlciBDQSAtIEcyMB4XDTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0Nlow -RzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMY -U3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A -MIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644N0Mv -Fz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7br -YT7QbNHm+/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieF -nbAVlDLaYQ1HTWBCrpJH6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH -6ATK72oxh9TAtvmUcXtnZLi2kUpCe2UuMGoM9ZDulebyzYLs2aFK7PayS+VFheZt -eJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5hqAaEuSh6XzjZG6k4sIN/ -c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5FZGkECwJ -MoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRH -HTBsROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTf -jNFusB3hB48IHpmccelM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb6 -5i/4z3GcRm25xBWNOHkDRUjvxF3XCO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOB -rDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU -F6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRBtjpbO8tFnb0c -wpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0 -cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIB -AHPGgeAn0i0P4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShp -WJHckRE1qTodvBqlYJ7YH39FkWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9 -xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L3XWgwF15kIwb4FDm3jH+mHtwX6WQ -2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx/uNncqCxv1yL5PqZ -IseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFaDGi8 -aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2X -em1ZqSqPe97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQR -dAtq/gsD/KNVV4n+SsuuWxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/ -OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJDIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+ -hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ubDgEj8Z+7fNzcbBGXJbLy -tGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1 -MQswCQYDVQQGEwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1 -czEoMCYGA1UEAwwfRUUgQ2VydGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYG -CSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIwMTAxMDMwMTAxMDMwWhgPMjAzMDEy -MTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlBUyBTZXJ0aWZpdHNl -ZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9uIENlbnRyZSBS -b290IENBMRgwFgYJKoZIhvcNAQkBFglwa2lAc2suZWUwggEiMA0GCSqGSIb3DQEB -AQUAA4IBDwAwggEKAoIBAQDIIMDs4MVLqwd4lfNE7vsLDP90jmG7sWLqI9iroWUy -euuOF0+W2Ap7kaJjbMeMTC55v6kF/GlclY1i+blw7cNRfdCT5mzrMEvhvH2/UpvO -bntl8jixwKIy72KyaOBhU8E2lf/slLo2rpwcpzIP5Xy0xm90/XsY6KxX7QYgSzIw -WFv9zajmofxwvI6Sc9uXp3whrj3B9UiHbCe9nyV0gVWw93X2PaRka9ZP585ArQ/d -MtO8ihJTmMmJ+xAdTX7Nfh9WDSFwhfYggx/2uh8Ej+p3iDXE/+pOoYtNP2MbRMNE -1CV2yreN1x5KZmTNXMWcg+HCCIia7E6j8T4cLNlsHaFLAgMBAAGjgYowgYcwDwYD -VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBLyWj7qVhy/ -zQas8fElyalL1BSZMEUGA1UdJQQ+MDwGCCsGAQUFBwMCBggrBgEFBQcDAQYIKwYB -BQUHAwMGCCsGAQUFBwMEBggrBgEFBQcDCAYIKwYBBQUHAwkwDQYJKoZIhvcNAQEF -BQADggEBAHv25MANqhlHt01Xo/6tu7Fq1Q+e2+RjxY6hUFaTlrg4wCQiZrxTFGGV -v9DHKpY5P30osxBAIWrEr7BSdxjhlthWXePdNl4dp1BUoMUq5KqMlIpPnTX/dqQG -E5Gion0ARD9V04I8GtVbvFZMIi5GQ4okQC3zErg7cBqklrkar4dBGmoYDQZPxz5u -uSlNDUmJEYcyW+ZLBMjkXOZ0c5RdFpgTlf7727FE5TpwrDdr5rMzcijJs1eg9gIW -iAYLtqZLICjU3j2LrTcFU3T+bsy8QxdxXvnFzBqpYe73dgzzcvRyrc9yAjYHR8/v -GVCJYMzpJJUPwssd8m92kMfMdcGWxZ0= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCB -yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL -ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp -U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxW -ZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0 -aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCByjEL -MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW -ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2ln -biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJp -U2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9y -aXR5IC0gRzUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvJAgIKXo1 -nmAMqudLO07cfLw8RRy7K+D+KQL5VwijZIUVJ/XxrcgxiV0i6CqqpkKzj/i5Vbex -t0uz/o9+B1fs70PbZmIVYc9gDaTY3vjgw2IIPVQT60nKWVSFJuUrjxuf6/WhkcIz -SdhDY2pSS9KP6HBRTdGJaXvHcPaz3BJ023tdS1bTlr8Vd6Gw9KIl8q8ckmcY5fQG -BO+QueQA5N06tRn/Arr0PO7gi+s3i+z016zy9vA9r911kTMZHRxAy3QkGSGT2RT+ -rCpSx4/VBEnkjWNHiDxpg8v+R70rfk/Fla4OndTRQ8Bnc+MUCH7lP59zuDMKz10/ -NIeWiu5T6CUVAgMBAAGjgbIwga8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8E -BAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEwHzAH -BgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVy -aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKv -MzEzMA0GCSqGSIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzE -p6B4Eq1iDkVwZMXnl2YtmAl+X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y -5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKEKQsTb47bDN0lAtukixlE0kF6BWlK -WE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ -4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vEZV8N -hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDoDCCAoigAwIBAgIBMTANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJKUDEc -MBoGA1UEChMTSmFwYW5lc2UgR292ZXJubWVudDEWMBQGA1UECxMNQXBwbGljYXRp -b25DQTAeFw0wNzEyMTIxNTAwMDBaFw0xNzEyMTIxNTAwMDBaMEMxCzAJBgNVBAYT -AkpQMRwwGgYDVQQKExNKYXBhbmVzZSBHb3Zlcm5tZW50MRYwFAYDVQQLEw1BcHBs -aWNhdGlvbkNBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp23gdE6H -j6UG3mii24aZS2QNcfAKBZuOquHMLtJqO8F6tJdhjYq+xpqcBrSGUeQ3DnR4fl+K -f5Sk10cI/VBaVuRorChzoHvpfxiSQE8tnfWuREhzNgaeZCw7NCPbXCbkcXmP1G55 -IrmTwcrNwVbtiGrXoDkhBFcsovW8R0FPXjQilbUfKW1eSvNNcr5BViCH/OlQR9cw -FO5cjFW6WY2H/CPek9AEjP3vbb3QesmlOmpyM8ZKDQUXKi17safY1vC+9D/qDiht -QWEjdnjDuGWk81quzMKq2edY3rZ+nYVunyoKb58DKTCXKB28t89UKU5RMfkntigm -/qJj5kEW8DOYRwIDAQABo4GeMIGbMB0GA1UdDgQWBBRUWssmP3HMlEYNllPqa0jQ -k/5CdTAOBgNVHQ8BAf8EBAMCAQYwWQYDVR0RBFIwUKROMEwxCzAJBgNVBAYTAkpQ -MRgwFgYDVQQKDA/ml6XmnKzlm73mlL/lupwxIzAhBgNVBAsMGuOCouODl+ODquOC -seODvOOCt+ODp+ODs0NBMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD -ggEBADlqRHZ3ODrso2dGD/mLBqj7apAxzn7s2tGJfHrrLgy9mTLnsCTWw//1sogJ -hyzjVOGjprIIC8CFqMjSnHH2HZ9g/DgzE+Ge3Atf2hZQKXsvcJEPmbo0NI2VdMV+ -eKlmXb3KIXdCEKxmJj3ekav9FfBv7WxfEPjzFvYDio+nEhEMy/0/ecGc/WLuo89U -DNErXxc+4z6/wCs+CZv+iKZ+tJIX/COUgb1up8WMwusRRdv4QcmWdupwX3kSa+Sj -B1oF7ydJzyGfikwJcGapJsErEU4z0g781mzSDjJkaP+tBXhfAx2o45CsJOAPQKdL -rosot4LKGAfmt1t06SAZf7IbiVQ= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDIDCCAgigAwIBAgIBJDANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEP -MA0GA1UEChMGU29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MxIENBMB4XDTAx -MDQwNjEwNDkxM1oXDTIxMDQwNjEwNDkxM1owOTELMAkGA1UEBhMCRkkxDzANBgNV -BAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJhIENsYXNzMSBDQTCCASIwDQYJKoZI -hvcNAQEBBQADggEPADCCAQoCggEBALWJHytPZwp5/8Ue+H887dF+2rDNbS82rDTG -29lkFwhjMDMiikzujrsPDUJVyZ0upe/3p4zDq7mXy47vPxVnqIJyY1MPQYx9EJUk -oVqlBvqSV536pQHydekfvFYmUk54GWVYVQNYwBSujHxVX3BbdyMGNpfzJLWaRpXk -3w0LBUXl0fIdgrvGE+D+qnr9aTCU89JFhfzyMlsy3uhsXR/LpCJ0sICOXZT3BgBL -qdReLjVQCfOAl/QMF6452F/NM8EcyonCIvdFEu1eEpOdY6uCLrnrQkFEy0oaAIIN -nvmLVz5MxxftLItyM19yejhW1ebZrgUaHXVFsculJRwSVzb9IjcCAwEAAaMzMDEw -DwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQIR+IMi/ZTiFIwCwYDVR0PBAQDAgEG -MA0GCSqGSIb3DQEBBQUAA4IBAQCLGrLJXWG04bkruVPRsoWdd44W7hE928Jj2VuX -ZfsSZ9gqXLar5V7DtxYvyOirHYr9qxp81V9jz9yw3Xe5qObSIjiHBxTZ/75Wtf0H -DjxVyhbMp6Z3N/vbXB9OWQaHowND9Rart4S9Tu+fMTfwRvFAttEMpWT4Y14h21VO -TzF2nBBhjrZTOqMRvq9tfB69ri3iDGnHhVNoomG6xT60eVR4ngrHAr5i0RGCS2Uv -kVrCqIexVmiUefkl98HVrhq4uz2PqYo4Ffdz0Fpg0YCw8NzVUM1O7pJIae2yIx4w -zMiUyLb1O4Z/P6Yun/Y+LLWSlj7fLJOK/4GMDw9ZIRlXvVWa ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/ -MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT -DkRTVCBSb290IENBIFgzMB4XDTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVow -PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD -Ew5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB -AN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmTrE4O -rz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEq -OLl5CjH9UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9b -xiqKqy69cK3FCxolkHRyxXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw -7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40dutolucbY38EVAjqr2m7xPi71XAicPNaD -aeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV -HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQMA0GCSqG -SIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69 -ikugdB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXr -AvHRAosZy5Q6XkjEGB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZz -R8srzJmwN0jP41ZL9c8PDHIyh8bwRLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5 -JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubSfZGL+T0yjWW06XyxV3bqxbYo -Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFGTCCBAGgAwIBAgIEPki9xDANBgkqhkiG9w0BAQUFADAxMQswCQYDVQQGEwJE -SzEMMAoGA1UEChMDVERDMRQwEgYDVQQDEwtUREMgT0NFUyBDQTAeFw0wMzAyMTEw -ODM5MzBaFw0zNzAyMTEwOTA5MzBaMDExCzAJBgNVBAYTAkRLMQwwCgYDVQQKEwNU -REMxFDASBgNVBAMTC1REQyBPQ0VTIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A -MIIBCgKCAQEArGL2YSCyz8DGhdfjeebM7fI5kqSXLmSjhFuHnEz9pPPEXyG9VhDr -2y5h7JNp46PMvZnDBfwGuMo2HP6QjklMxFaaL1a8z3sM8W9Hpg1DTeLpHTk0zY0s -2RKY+ePhwUp8hjjEqcRhiNJerxomTdXkoCJHhNlktxmW/OwZ5LKXJk5KTMuPJItU -GBxIYXvViGjaXbXqzRowwYCDdlCqT9HU3Tjw7xb04QxQBr/q+3pJoSgrHPb8FTKj -dGqPqcNiKXEx5TukYBdedObaE+3pHx8b0bJoc8YQNHVGEBDjkAB2QMuLt0MJIf+r -TpPGWOmlgtt3xDqZsXKVSQTwtyv6e1mO3QIDAQABo4ICNzCCAjMwDwYDVR0TAQH/ -BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwgewGA1UdIASB5DCB4TCB3gYIKoFQgSkB -AQEwgdEwLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuY2VydGlmaWthdC5kay9yZXBv -c2l0b3J5MIGdBggrBgEFBQcCAjCBkDAKFgNUREMwAwIBARqBgUNlcnRpZmlrYXRl -ciBmcmEgZGVubmUgQ0EgdWRzdGVkZXMgdW5kZXIgT0lEIDEuMi4yMDguMTY5LjEu -MS4xLiBDZXJ0aWZpY2F0ZXMgZnJvbSB0aGlzIENBIGFyZSBpc3N1ZWQgdW5kZXIg -T0lEIDEuMi4yMDguMTY5LjEuMS4xLjARBglghkgBhvhCAQEEBAMCAAcwgYEGA1Ud -HwR6MHgwSKBGoESkQjBAMQswCQYDVQQGEwJESzEMMAoGA1UEChMDVERDMRQwEgYD -VQQDEwtUREMgT0NFUyBDQTENMAsGA1UEAxMEQ1JMMTAsoCqgKIYmaHR0cDovL2Ny -bC5vY2VzLmNlcnRpZmlrYXQuZGsvb2Nlcy5jcmwwKwYDVR0QBCQwIoAPMjAwMzAy -MTEwODM5MzBagQ8yMDM3MDIxMTA5MDkzMFowHwYDVR0jBBgwFoAUYLWF7FZkfhIZ -J2cdUBVLc647+RIwHQYDVR0OBBYEFGC1hexWZH4SGSdnHVAVS3OuO/kSMB0GCSqG -SIb2fQdBAAQQMA4bCFY2LjA6NC4wAwIEkDANBgkqhkiG9w0BAQUFAAOCAQEACrom -JkbTc6gJ82sLMJn9iuFXehHTuJTXCRBuo7E4A9G28kNBKWKnctj7fAXmMXAnVBhO -inxO5dHKjHiIzxvTkIvmI/gLDjNDfZziChmPyQE+dF10yYscA+UYyAFMP8uXBV2Y -caaYb7Z8vTd/vuGTJW1v8AqtFxjhA7wHKcitJuj4YfD9IQl+mo6paH1IYnK9AOoB -mbgGglGBTvH1tJFUuSN6AJqfXY3gPGS5GhKSKseCRHI53OI8xthV9RVOyAUO28bQ -YqbsFbS1AoLbrIyigfCbmTH1ICCoiGEKB5+U/NDXG8wuF/MEJ3Zn61SD/aSQfgY9 -BKNDLdr8C2LqL19iUw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDYTCCAkmgAwIBAgIQCgEBAQAAAnwAAAAKAAAAAjANBgkqhkiG9w0BAQUFADA6 -MRkwFwYDVQQKExBSU0EgU2VjdXJpdHkgSW5jMR0wGwYDVQQLExRSU0EgU2VjdXJp -dHkgMjA0OCBWMzAeFw0wMTAyMjIyMDM5MjNaFw0yNjAyMjIyMDM5MjNaMDoxGTAX -BgNVBAoTEFJTQSBTZWN1cml0eSBJbmMxHTAbBgNVBAsTFFJTQSBTZWN1cml0eSAy -MDQ4IFYzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt49VcdKA3Xtp -eafwGFAyPGJn9gqVB93mG/Oe2dJBVGutn3y+Gc37RqtBaB4Y6lXIL5F4iSj7Jylg -/9+PjDvJSZu1pJTOAeo+tWN7fyb9Gd3AIb2E0S1PRsNO3Ng3OTsor8udGuorryGl -wSMiuLgbWhOHV4PR8CDn6E8jQrAApX2J6elhc5SYcSa8LWrg903w8bYqODGBDSnh -AMFRD0xS+ARaqn1y07iHKrtjEAMqs6FPDVpeRrc9DvV07Jmf+T0kgYim3WBU6JU2 -PcYJk5qjEoAAVZkZR73QpXzDuvsf9/UP+Ky5tfQ3mBMY3oVbtwyCO4dvlTlYMNpu -AWgXIszACwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIB -BjAfBgNVHSMEGDAWgBQHw1EwpKrpRa41JPr/JCwz0LGdjDAdBgNVHQ4EFgQUB8NR -MKSq6UWuNST6/yQsM9CxnYwwDQYJKoZIhvcNAQEFBQADggEBAF8+hnZuuDU8TjYc -HnmYv/3VEhF5Ug7uMYm83X/50cYVIeiKAVQNOvtUudZj1LGqlk2iQk3UUx+LEN5/ -Zb5gEydxiKRz44Rj0aRV4VCT5hsOedBnvEbIvz8XDZXmxpBp3ue0L96VfdASPz0+ -f00/FGj1EVDVwfSQpQgdMWD/YIwjVAqv/qFuxdF6Kmh4zx6CCiC0H63lhbJqaHVO -rSU3lIW+vaHU6rcMSzyd6BIA8F+sDeGscGNz9395nzIlQnQFgCi/vcEkllgVsRch -6YlL2weIZ/QVrXA+L02FO8K32/6YaCOJ4XQP3vTFhGMpG8zLB8kApKnXwiJPZ9d3 -7CAFYd4= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UE -BhMCRVMxQjBABgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1h -cHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEy -MzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIwQAYDVQQDDDlBdXRvcmlkYWQgZGUg -Q2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBBNjI2MzQwNjgwggIi -MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDDUtd9 -thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQM -cas9UX4PB99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefG -L9ItWY16Ck6WaVICqjaY7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15i -NA9wBj4gGFrO93IbJWyTdBSTo3OxDqqHECNZXyAFGUftaI6SEspd/NYrspI8IM/h -X68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyIplD9amML9ZMWGxmPsu2b -m8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctXMbScyJCy -Z/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirja -EbsXLZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/T -KI8xWVvTyQKmtFLKbpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF -6NkBiDkal4ZkQdU7hwxu+g/GvUgUvzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVh -OSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1UdEwEB/wQIMAYBAf8CAQEwDgYD -VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNHDhpkLzCBpgYD -VR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp -cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBv -ACAAZABlACAAbABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBl -AGwAbwBuAGEAIAAwADgAMAAxADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF -661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx51tkljYyGOylMnfX40S2wBEqgLk9 -am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qkR71kMrv2JYSiJ0L1 -ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaPT481 -PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS -3a/DTg4fJl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5k -SeTy36LssUzAKh3ntLFlosS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF -3dvd6qJ2gHN99ZwExEWN57kci57q13XRcrHedUTnQn3iV2t93Jm8PYMo6oCTjcVM -ZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoRsaS8I8nkvof/uZS2+F0g -StRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTDKCOM/icz -Q0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQB -jLMi6Et8Vcad+qMUu2WFbm5PEn4KPJ2V ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs -IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 -MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux -FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h -bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v -dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvt -H7xsD821+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9 -uMq/NzgtHj6RQa1wVsfwTz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzX -mk6vBbOmcZSccbNQYArHE504B4YCqOmoaSYYkKtMsE8jqzpPhNjfzp/haW+710LX -a0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy2xSoRcRdKn23tNbE7qzN -E0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv77+ldU9U0 -WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYD -VR0PBAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0 -Jvf6xCZU7wO94CTLVBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRU -cnVzdCBBQjEmMCQGA1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsx -IjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3SCAQEwDQYJKoZIhvcN -AQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZlj7DYd7usQWxH -YINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5 -6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvC -Nr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX -c4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a -mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBT -ZWN1cmUgZUJ1c2luZXNzIENBLTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQw -MDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5j -LjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENBLTEwgZ8wDQYJ -KoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ1MRo -RvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBu -WqDZQu4aIZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKw -Env+j6YDAgMBAAGjZjBkMBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTAD -AQH/MB8GA1UdIwQYMBaAFEp4MlIR21kWNl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRK -eDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQFAAOBgQB1W6ibAxHm6VZM -zfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5lSE/9dR+ -WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN -/Bf+KpYrtWKmpj29f5JZzVoqgrI3eQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBM -MSIwIAYDVQQKExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5D -ZXJ0dW0gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBU -cnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIyMTIwNzM3WhcNMjkxMjMxMTIwNzM3 -WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBUZWNobm9sb2dpZXMg -Uy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSIw -IAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0B -AQEFAAOCAQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rH -UV+rpDKmYYe2bg+G0jACl/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LM -TXPb865Px1bVWqeWifrzq2jUI4ZZJ88JJ7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVU -BBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4fOQtf/WsX+sWn7Et0brM -kUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0cvW0QM8x -AcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNV -HRMBAf8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNV -HQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15y -sHhE49wcrwn9I0j6vSrEuVUEtRCjjSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfL -I9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1mS1FhIrlQgnXdAIv94nYmem8 -J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5ajZt3hrvJBW8qY -VoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI -03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMx -EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoT -EUdvRGFkZHkuY29tLCBJbmMuMTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRp -ZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIz -NTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQH -EwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8GA1UE -AxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIw -DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKD -E6bFIEMBO4Tx5oVJnyfq9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH -/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD+qK+ihVqf94Lw7YZFAXK6sOoBJQ7Rnwy -DfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutdfMh8+7ArU6SSYmlRJQVh -GkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMlNAJWJwGR -tDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEA -AaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE -FDqahQcQZyi27/a9BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmX -WWcDYfF+OwYxdS2hII5PZYe096acvNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu -9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r5N9ss4UXnT3ZJE95kTXWXwTr -gIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYVN8Gb5DKj7Tjo -2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO -LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI -4uJEvlz36hz1 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFkjCCA3qgAwIBAgIBATANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJGUjET -MBEGA1UEChMKQ2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxHTAb -BgNVBAMTFENlcnRpbm9taXMgLSBSb290IENBMB4XDTEzMTAyMTA5MTcxOFoXDTMz -MTAyMTA5MTcxOFowWjELMAkGA1UEBhMCRlIxEzARBgNVBAoTCkNlcnRpbm9taXMx -FzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMR0wGwYDVQQDExRDZXJ0aW5vbWlzIC0g -Um9vdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANTMCQosP5L2 -fxSeC5yaah1AMGT9qt8OHgZbn1CF6s2Nq0Nn3rD6foCWnoR4kkjW4znuzuRZWJfl -LieY6pOod5tK8O90gC3rMB+12ceAnGInkYjwSond3IjmFPnVAy//ldu9n+ws+hQV -WZUKxkd8aRi5pwP5ynapz8dvtF4F/u7BUrJ1Mofs7SlmO/NKFoL21prbcpjp3vDF -TKWrteoB4owuZH9kb/2jJZOLyKIOSY008B/sWEUuNKqEUL3nskoTuLAPrjhdsKkb -5nPJWqHZZkCqqU2mNAKthH6yI8H7KsZn9DS2sJVqM09xRLWtwHkziOC/7aOgFLSc -CbAK42C++PhmiM1b8XcF4LVzbsF9Ri6OSyemzTUK/eVNfaoqoynHWmgE6OXWk6Ri -wsXm9E/G+Z8ajYJJGYrKWUM66A0ywfRMEwNvbqY/kXPLynNvEiCL7sCCeN5LLsJJ -wx3tFvYk9CcbXFcx3FXuqB5vbKziRcxXV4p1VxngtViZSTYxPDMBbRZKzbgqg4SG -m/lg0h9tkQPTYKbVPZrdd5A9NaSfD171UkRpucC63M9933zZxKyGIjK8e2uR73r4 -F2iw4lNVYC2vPsKD2NkJK/DAZNuHi5HMkesE/Xa0lZrmFAYb1TQdvtj/dBxThZng -WVJKYe2InmtJiUZ+IFrZ50rlau7SZRFDAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIB -BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTvkUz1pcMw6C8I6tNxIqSSaHh0 -2TAfBgNVHSMEGDAWgBTvkUz1pcMw6C8I6tNxIqSSaHh02TANBgkqhkiG9w0BAQsF -AAOCAgEAfj1U2iJdGlg+O1QnurrMyOMaauo++RLrVl89UM7g6kgmJs95Vn6RHJk/ -0KGRHCwPT5iVWVO90CLYiF2cN/z7ZMF4jIuaYAnq1fohX9B0ZedQxb8uuQsLrbWw -F6YSjNRieOpWauwK0kDDPAUwPk2Ut59KA9N9J0u2/kTO+hkzGm2kQtHdzMjI1xZS -g081lLMSVX3l4kLr5JyTCcBMWwerx20RoFAXlCOotQqSD7J6wWAsOMwaplv/8gzj -qh8c3LigkyfeY+N/IZ865Z764BNqdeuWXGKRlI5nU7aJ+BIJy29SWwNyhlCVCNSN -h4YVH5Uk2KRvms6knZtt0rJ2BobGVgjF6wnaNsIbW0G+YSrjcOa4pvi2WsS9Iff/ -ql+hbHY5ZtbqTFXhADObE5hjyW/QASAJN1LnDE8+zbz1X5YnpyACleAu6AdBBR8V -btaw5BngDwKTACdyxYvRVB9dSsNAl35VpnzBMwQUAR1JIGkLGZOdblgi90AMRgwj -Y/M50n92Uaf0yKHxDHYiI0ZSKS3io0EHVmmY0gUJvGnHWmHNj4FgFU2A3ZDifcRQ -8ow7bkrHxuaAKzyBvBGAFhAn1/DNP3nMcyrDflOR1m749fPH0FFNjkulW+YZFzvW -gQncItzujrnEj1PhZ7szuIgVRs/taTX/dQ1G885x4cVrhkIGuUE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFujCCBKKgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBhjELMAkGA1UEBhMCVVMx -HTAbBgNVBAoTFEFwcGxlIENvbXB1dGVyLCBJbmMuMS0wKwYDVQQLEyRBcHBsZSBD -b21wdXRlciBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxKTAnBgNVBAMTIEFwcGxlIFJv -b3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MB4XDTA1MDIxMDAwMTgxNFoXDTI1MDIx -MDAwMTgxNFowgYYxCzAJBgNVBAYTAlVTMR0wGwYDVQQKExRBcHBsZSBDb21wdXRl -ciwgSW5jLjEtMCsGA1UECxMkQXBwbGUgQ29tcHV0ZXIgQ2VydGlmaWNhdGUgQXV0 -aG9yaXR5MSkwJwYDVQQDEyBBcHBsZSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0 -eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOSRqQkfkdseR1DrBe1e -eYQt6zaiV0xV7IsZid75S2z1B6siMALoGD74UAnTf0GomPnRymacJGsR0KO75Bsq -wx+VnnoMpEeLW9QWNzPLxA9NzhRp0ckZcvVdDtV/X5vyJQO6VY9NXQ3xZDUjFUsV -WR2zlPf2nJ7PULrBWFBnjwi0IPfLrCwgb3C2PwEwjLdDzw+dPfMrSSgayP7OtbkO -2V4c1ss9tTqt9A8OAJILsSEWLnTVPA3bYharo3GSR1NVwa8vQbP4++NwzeajTEV+ -H0xrUJZBicR0YgsQg0GHM4qBsTBY7FoEMoxos48d3mVz/2deZbxJ2HafMxRloXeU -yS0CAwEAAaOCAi8wggIrMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/ -MB0GA1UdDgQWBBQr0GlHlHYJ/vRrjS5ApvdHTX8IXjAfBgNVHSMEGDAWgBQr0GlH -lHYJ/vRrjS5ApvdHTX8IXjCCASkGA1UdIASCASAwggEcMIIBGAYJKoZIhvdjZAUB -MIIBCTBBBggrBgEFBQcCARY1aHR0cHM6Ly93d3cuYXBwbGUuY29tL2NlcnRpZmlj -YXRlYXV0aG9yaXR5L3Rlcm1zLmh0bWwwgcMGCCsGAQUFBwICMIG2GoGzUmVsaWFu -Y2Ugb24gdGhpcyBjZXJ0aWZpY2F0ZSBieSBhbnkgcGFydHkgYXNzdW1lcyBhY2Nl -cHRhbmNlIG9mIHRoZSB0aGVuIGFwcGxpY2FibGUgc3RhbmRhcmQgdGVybXMgYW5k -IGNvbmRpdGlvbnMgb2YgdXNlLCBjZXJ0aWZpY2F0ZSBwb2xpY3kgYW5kIGNlcnRp -ZmljYXRpb24gcHJhY3RpY2Ugc3RhdGVtZW50cy4wRAYDVR0fBD0wOzA5oDegNYYz -aHR0cHM6Ly93d3cuYXBwbGUuY29tL2NlcnRpZmljYXRlYXV0aG9yaXR5L3Jvb3Qu -Y3JsMFUGCCsGAQUFBwEBBEkwRzBFBggrBgEFBQcwAoY5aHR0cHM6Ly93d3cuYXBw -bGUuY29tL2NlcnRpZmljYXRlYXV0aG9yaXR5L2Nhc2lnbmVycy5odG1sMA0GCSqG -SIb3DQEBBQUAA4IBAQCd2i0oWC99dgS5BNM+zrdmY06PL9T+S61yvaM5xlJNBZhS -9YlRASR5vhoy9+VEi0tEBzmC1lrKtCBe2a4VXR2MHTK/ODFiSF3H4ZCx+CRA+F9Y -m1FdV53B5f88zHIhbsTp6aF31ywXJsM/65roCwO66bNKcuszCVut5mIxauivL9Wv -Hld2j383LS4CXN1jyfJxuCZA3xWNdUQ/eb3mHZnhQyw+rW++uaT+DjUZUWOxw961 -kj5ReAFziqQjyqSI8R5cH0EWLX6VCqrpiUGYGxrdyyC/R14MJsVVNU3GMIuZZxTH -CR+6R8faAQmHJEKVvRNgGQrv6n8Obs3BREM6StXj ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGZjCCBE6gAwIBAgIPB35Sk3vgFeNX8GmMy+wMMA0GCSqGSIb3DQEBBQUAMHsx -CzAJBgNVBAYTAkNPMUcwRQYDVQQKDD5Tb2NpZWRhZCBDYW1lcmFsIGRlIENlcnRp -ZmljYWNpw7NuIERpZ2l0YWwgLSBDZXJ0aWPDoW1hcmEgUy5BLjEjMCEGA1UEAwwa -QUMgUmHDrXogQ2VydGljw6FtYXJhIFMuQS4wHhcNMDYxMTI3MjA0NjI5WhcNMzAw -NDAyMjE0MjAyWjB7MQswCQYDVQQGEwJDTzFHMEUGA1UECgw+U29jaWVkYWQgQ2Ft -ZXJhbCBkZSBDZXJ0aWZpY2FjacOzbiBEaWdpdGFsIC0gQ2VydGljw6FtYXJhIFMu -QS4xIzAhBgNVBAMMGkFDIFJhw616IENlcnRpY8OhbWFyYSBTLkEuMIICIjANBgkq -hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq2uJo1PMSCMI+8PPUZYILrgIem08kBeG -qentLhM0R7LQcNzJPNCNyu5LF6vQhbCnIwTLqKL85XXbQMpiiY9QngE9JlsYhBzL -fDe3fezTf3MZsGqy2IiKLUV0qPezuMDU2s0iiXRNWhU5cxh0T7XrmafBHoi0wpOQ -Y5fzp6cSsgkiBzPZkc0OnB8OIMfuuzONj8LSWKdf/WU34ojC2I+GdV75LaeHM/J4 -Ny+LvB2GNzmxlPLYvEqcgxhaBvzz1NS6jBUJJfD5to0EfhcSM2tXSExP2yYe68yQ -54v5aHxwD6Mq0Do43zeX4lvegGHTgNiRg0JaTASJaBE8rF9ogEHMYELODVoqDA+b -MMCm8Ibbq0nXl21Ii/kDwFJnmxL3wvIumGVC2daa49AZMQyth9VXAnow6IYm+48j -ilSH5L887uvDdUhfHjlvgWJsxS3EF1QZtzeNnDeRyPYL1epjb4OsOMLzP96a++Ej -YfDIJss2yKHzMI+ko6Kh3VOz3vCaMh+DkXkwwakfU5tTohVTP92dsxA7SH2JD/zt -A/X7JWR1DhcZDY8AFmd5ekD8LVkH2ZD6mq093ICK5lw1omdMEWux+IBkAC1vImHF -rEsm5VoQgpukg3s0956JkSCXjrdCx2bD0Omk1vUgjcTDlaxECp1bczwmPS9KvqfJ -pxAe+59QafMCAwEAAaOB5jCB4zAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE -AwIBBjAdBgNVHQ4EFgQU0QnQ6dfOeXRU+Tows/RtLAMDG2gwgaAGA1UdIASBmDCB -lTCBkgYEVR0gADCBiTArBggrBgEFBQcCARYfaHR0cDovL3d3dy5jZXJ0aWNhbWFy -YS5jb20vZHBjLzBaBggrBgEFBQcCAjBOGkxMaW1pdGFjaW9uZXMgZGUgZ2FyYW50 -7WFzIGRlIGVzdGUgY2VydGlmaWNhZG8gc2UgcHVlZGVuIGVuY29udHJhciBlbiBs -YSBEUEMuMA0GCSqGSIb3DQEBBQUAA4ICAQBclLW4RZFNjmEfAygPU3zmpFmps4p6 -xbD/CHwso3EcIRNnoZUSQDWDg4902zNc8El2CoFS3UnUmjIz75uny3XlesuXEpBc -unvFm9+7OSPI/5jOCk0iAUgHforA1SBClETvv3eiiWdIG0ADBaGJ7M9i4z0ldma/ -Jre7Ir5v/zlXdLp6yQGVwZVR6Kss+LGGIOk/yzVb0hfpKv6DExdA7ohiZVvVO2Dp -ezy4ydV/NgIlqmjCMRW3MGXrfx1IebHPOeJCgBbT9ZMj/EyXyVo3bHwi2ErN0o42 -gzmRkBDI8ck1fj+404HGIGQatlDCIaR43NAvO2STdPCWkPHv+wlaNECW8DYSwaN0 -jJN+Qd53i+yG2dIPPy3RzECiiWZIHiCznCNZc6lEc7wkeZBWN7PGKX6jD/EpOe9+ -XCgycDWs2rjIdWb8m0w5R44bb5tNAlQiM+9hup4phO9OSzNHdpdqy35f/RWmnkJD -W2ZaiogN9xa5P1FlK2Zqi9E4UqLWRhH6/JocdJ6PlwsCT2TG9WjTSy3/pDceiz+/ -RL5hRqGEPQgnTIEgd4kI6mdAXmwIUV80WoyWaM3X94nCHNMyAK9Sy9NgWyo6R35r -MDOhYil/SrnhLecUIw4OGEfhefwVVdCx/CVxY3UzHCMrr1zZ7Ud3YA47Dx7SwNxk -BYn8eNZcLCZDqQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDUzCCAjugAwIBAgIBATANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEd -MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3Mg -Q2xhc3MgMiBDQSAxMB4XDTA2MTAxMzEwMjUwOVoXDTE2MTAxMzEwMjUwOVowSzEL -MAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MR0wGwYD -VQQDDBRCdXlwYXNzIENsYXNzIDIgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAIs8B0XY9t/mx8q6jUPFR42wWsE425KEHK8T1A9vNkYgxC7McXA0 -ojTTNy7Y3Tp3L8DrKehc0rWpkTSHIln+zNvnma+WwajHQN2lFYxuyHyXA8vmIPLX -l18xoS830r7uvqmtqEyeIWZDO6i88wmjONVZJMHCR3axiFyCO7srpgTXjAePzdVB -HfCuuCkslFJgNJQ72uA40Z0zPhX0kzLFANq1KWYOOngPIVJfAuWSeyXTkh4vFZ2B -5J2O6O+JzhRMVB0cgRJNcKi+EAUXfh/RuFdV7c27UsKwHnjCTTZoy1YmwVLBvXb3 -WNVyfh9EdrsAiR0WnVE1703CVu9r4Iw7DekCAwEAAaNCMEAwDwYDVR0TAQH/BAUw -AwEB/zAdBgNVHQ4EFgQUP42aWYv8e3uco684sDntkHGA1sgwDgYDVR0PAQH/BAQD -AgEGMA0GCSqGSIb3DQEBBQUAA4IBAQAVGn4TirnoB6NLJzKyQJHyIdFkhb5jatLP -gcIV1Xp+DCmsNx4cfHZSldq1fyOhKXdlyTKdqC5Wq2B2zha0jX94wNWZUYN/Xtm+ -DKhQ7SLHrQVMdvvt7h5HZPb3J31cKA9FxVxiXqaakZG3Uxcu3K1gnZZkOb1naLKu -BctN518fV4bVIJwo+28TOPX2EZL2fZleHwzoq0QkKXJAPTZSr4xYkHPB7GEseaHs -h7U/2k3ZIQAw3pDaDtMaSKk+hQsUi4y8QZ5q9w5wwDX3OaJdZtB7WZ+oRxKaJyOk -LY4ng5IgodcVf/EuGO70SH8vf/GhGLWhC5SgYiAynB321O+/TIho ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFnDCCA4SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJGUjET -MBEGA1UEChMKQ2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxJjAk -BgNVBAMMHUNlcnRpbm9taXMgLSBBdXRvcml0w6kgUmFjaW5lMB4XDTA4MDkxNzA4 -Mjg1OVoXDTI4MDkxNzA4Mjg1OVowYzELMAkGA1UEBhMCRlIxEzARBgNVBAoTCkNl -cnRpbm9taXMxFzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMSYwJAYDVQQDDB1DZXJ0 -aW5vbWlzIC0gQXV0b3JpdMOpIFJhY2luZTCCAiIwDQYJKoZIhvcNAQEBBQADggIP -ADCCAgoCggIBAJ2Fn4bT46/HsmtuM+Cet0I0VZ35gb5j2CN2DpdUzZlMGvE5x4jY -F1AMnmHawE5V3udauHpOd4cN5bjr+p5eex7Ezyh0x5P1FMYiKAT5kcOrJ3NqDi5N -8y4oH3DfVS9O7cdxbwlyLu3VMpfQ8Vh30WC8Tl7bmoT2R2FFK/ZQpn9qcSdIhDWe -rP5pqZ56XjUl+rSnSTV3lqc2W+HN3yNw2F1MpQiD8aYkOBOo7C+ooWfHpi2GR+6K -/OybDnT0K0kCe5B1jPyZOQE51kqJ5Z52qz6WKDgmi92NjMD2AR5vpTESOH2VwnHu -7XSu5DaiQ3XV8QCb4uTXzEIDS3h65X27uK4uIJPT5GHfceF2Z5c/tt9qc1pkIuVC -28+BA5PY9OMQ4HL2AHCs8MF6DwV/zzRpRbWT5BnbUhYjBYkOjUjkJW+zeL9i9Qf6 -lSTClrLooyPCXQP8w9PlfMl1I9f09bze5N/NgL+RiH2nE7Q5uiy6vdFrzPOlKO1E -nn1So2+WLhl+HPNbxxaOu2B9d2ZHVIIAEWBsMsGoOBvrbpgT1u449fCfDu/+MYHB -0iSVL1N6aaLwD4ZFjliCK0wi1F6g530mJ0jfJUaNSih8hp75mxpZuWW/Bd22Ql09 -5gBIgl4g9xGC3srYn+Y3RyYe63j3YcNBZFgCQfna4NH4+ej9Uji29YnfAgMBAAGj -WzBZMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBQN -jLZh2kS40RR9w759XkjwzspqsDAXBgNVHSAEEDAOMAwGCiqBegFWAgIAAQEwDQYJ -KoZIhvcNAQEFBQADggIBACQ+YAZ+He86PtvqrxyaLAEL9MW12Ukx9F1BjYkMTv9s -ov3/4gbIOZ/xWqndIlgVqIrTseYyCYIDbNc/CMf4uboAbbnW/FIyXaR/pDGUu7ZM -OH8oMDX/nyNTt7buFHAAQCvaR6s0fl6nVjBhK4tDrP22iCj1a7Y+YEq6QpA0Z43q -619FVDsXrIvkxmUP7tCMXWY5zjKn2BCXwH40nJ+U8/aGH88bc62UeYdocMMzpXDn -2NU4lG9jeeu/Cg4I58UvD0KgKxRA/yHgBcUn4YQRE7rWhh1BCxMjidPJC+iKunqj -o3M3NYB9Ergzd0A4wPpeMNLytqOx1qKVl4GbUu1pTP+A5FPbVFsDbVRfsbjvJL1v -nxHDx2TCDyhihWZeGnuyt++uNckZM6i4J9szVb9o4XVIRFb7zdNIu0eJOqxp9YDG -5ERQL1TEqkPFMTFYvZbF6nVsmnWxTfj3l/+WFvKXTej28xH5On2KOG4Ey+HTRRWq -pdEdnV1j6CTmNhTih60bWfVEm/vXd3wfAXBioSAaosUaKPQhA+4u2cGA6rnZgtZb -dsLLO7XSAPCjDuGtbkD326C00EauFddEwk01+dIL8hf2rGbVJLJP0RyZwG71fet0 -BLj5TXcJ17TPBzAJ8bgAVtkXFhYKK4bfjwEZGuW7gmP/vgt2Fl43N+bYdJeimUV5 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYT -AlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBD -QTAeFw0wNjA3MDQxNzIwMDRaFw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJP -MREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7IJUqOtdu0KBuqV5Do -0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHHrfAQ -UySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5d -RdY4zTW2ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQ -OA7+j0xbm0bqQfWwCHTD0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwv -JoIQ4uNllAoEwF73XVv4EOLQunpL+943AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08C -AwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAcYwHQYDVR0O -BBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IBAQA+0hyJ -LjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecY -MnQ8SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ -44gx+FkagQnIl6Z0x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6I -Jd1hJyMctTEHBDa0GpC9oHRxUIltvBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNw -i/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7NzTogVZ96edhBiIL5VaZVDADlN -9u6wWk5JRFRYX0KD ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0x -GTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJv -b3QgQ0EgMzAeFw0wNjExMjQxOTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNV -BAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMRswGQYDVQQDExJRdW9W -YWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDM -V0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNggDhoB -4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUr -H556VOijKTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd -8lyyBTNvijbO0BNO/79KDDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9Cabwv -vWhDFlaJKjdhkf2mrk7AyxRllDdLkgbvBNDInIjbC3uBr7E9KsRlOni27tyAsdLT -mZw67mtaa7ONt9XOnMK+pUsvFrGeaDsGb659n/je7Mwpp5ijJUMv7/FfJuGITfhe -btfZFG4ZM2mnO4SJk8RTVROhUXhA+LjJou57ulJCg54U7QVSWllWp5f8nT8KKdjc -T5EOE7zelaTfi5m+rJsziO+1ga8bxiJTyPbH7pcUsMV8eFLI8M5ud2CEpukqdiDt -WAEXMJPpGovgc2PZapKUSU60rUqFxKMiMPwJ7Wgic6aIDFUhWMXhOp8q3crhkODZ -c6tsgLjoC2SToJyMGf+z0gzskSaHirOi4XCPLArlzW1oUevaPwV/izLmE1xr/l9A -4iLItLRkT9a6fUg+qGkM17uGcclzuD87nSVL2v9A6wIDAQABo4IBlTCCAZEwDwYD -VR0TAQH/BAUwAwEB/zCB4QYDVR0gBIHZMIHWMIHTBgkrBgEEAb5YAAMwgcUwgZMG -CCsGAQUFBwICMIGGGoGDQW55IHVzZSBvZiB0aGlzIENlcnRpZmljYXRlIGNvbnN0 -aXR1dGVzIGFjY2VwdGFuY2Ugb2YgdGhlIFF1b1ZhZGlzIFJvb3QgQ0EgMyBDZXJ0 -aWZpY2F0ZSBQb2xpY3kgLyBDZXJ0aWZpY2F0aW9uIFByYWN0aWNlIFN0YXRlbWVu -dC4wLQYIKwYBBQUHAgEWIWh0dHA6Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2Nw -czALBgNVHQ8EBAMCAQYwHQYDVR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4G -A1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4ywLQoUmkRzBFMQswCQYDVQQGEwJC -TTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UEAxMSUXVvVmFkaXMg -Um9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZVqyM0 -7ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSem -d1o417+shvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd -+LJ2w/w4E6oM3kJpK27zPOuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B -4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadN -t54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp8kokUvd0/bpO5qgdAm6x -DYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBCbjPsMZ57 -k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6s -zHXug/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0j -Wy10QJLZYxkNc91pvGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeT -mJlglFwjz1onl14LBQaTNx47aTbrqZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK -4SVhM7JZG+Ju1zdXtg2pEto= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDVTCCAj2gAwIBAgIESTMAATANBgkqhkiG9w0BAQUFADAyMQswCQYDVQQGEwJD -TjEOMAwGA1UEChMFQ05OSUMxEzARBgNVBAMTCkNOTklDIFJPT1QwHhcNMDcwNDE2 -MDcwOTE0WhcNMjcwNDE2MDcwOTE0WjAyMQswCQYDVQQGEwJDTjEOMAwGA1UEChMF -Q05OSUMxEzARBgNVBAMTCkNOTklDIFJPT1QwggEiMA0GCSqGSIb3DQEBAQUAA4IB -DwAwggEKAoIBAQDTNfc/c3et6FtzF8LRb+1VvG7q6KR5smzDo+/hn7E7SIX1mlwh -IhAsxYLO2uOabjfhhyzcuQxauohV3/2q2x8x6gHx3zkBwRP9SFIhxFXf2tizVHa6 -dLG3fdfA6PZZxU3Iva0fFNrfWEQlMhkqx35+jq44sDB7R3IJMfAw28Mbdim7aXZO -V/kbZKKTVrdvmW7bCgScEeOAH8tjlBAKqeFkgjH5jCftppkA9nCTGPihNIaj3XrC -GHn2emU1z5DrvTOTn1OrczvmmzQgLx3vqR1jGqCA2wMv+SYahtKNu6m+UjqHZ0gN -v7Sg2Ca+I19zN38m5pIEo3/PIKe38zrKy5nLAgMBAAGjczBxMBEGCWCGSAGG+EIB -AQQEAwIABzAfBgNVHSMEGDAWgBRl8jGtKvf33VKWCscCwQ7vptU7ETAPBgNVHRMB -Af8EBTADAQH/MAsGA1UdDwQEAwIB/jAdBgNVHQ4EFgQUZfIxrSr3991SlgrHAsEO -76bVOxEwDQYJKoZIhvcNAQEFBQADggEBAEs17szkrr/Dbq2flTtLP1se31cpolnK -OOK5Gv+e5m4y3R6u6jW39ZORTtpC4cMXYFDy0VwmuYK36m3knITnA3kXr5g9lNvH -ugDnuL8BV8F3RTIMO/G0HAiw/VGgod2aHRM2mm23xzy54cXZF/qD1T0VoDy7Hgvi -yJA/qIYM/PmLXoXLT1tLYhFHxUV8BS9BsZ4QaRuZluBVeftOhpm4lNqGOGqTo+fL -buXf6iFViZx9fX+Y9QCJ7uOEwFyWtcVG6kbghVW2G8kS1sHNzYDzAgE8yGnLRUhj -2JTQ7IUOO04RZfSCjKY9ri4ilAnIXOo8gV0WKgOXFlUJ24pBgp5mmxE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVT -MRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9i -YWwgQ0EwHhcNMDIwNTIxMDQwMDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQG -EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjEbMBkGA1UEAxMSR2VvVHJ1c3Qg -R2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2swYYzD9 -9BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjoBbdq -fnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDv -iS2Aelet8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU -1XupGc1V3sjs0l44U+VcT4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+ -bw8HHa8sHo9gOeL6NlMTOdReJivbPagUvTLrGAMoUgRx5aszPeE4uwc2hGKceeoW -MPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTA -ephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVkDBF9qn1l -uMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKIn -Z57QzxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfS -tQWVYrmm3ok9Nns4d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcF -PseKUgzbFbS9bZvlxrFUaKnjaZC2mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Un -hw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6pXE0zX5IJL4hmXXeXxx12E6nV -5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvmMw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDyzCCArOgAwIBAgIDAOJIMA0GCSqGSIb3DQEBBQUAMIGLMQswCQYDVQQGEwJB -VDFIMEYGA1UECgw/QS1UcnVzdCBHZXMuIGYuIFNpY2hlcmhlaXRzc3lzdGVtZSBp -bSBlbGVrdHIuIERhdGVudmVya2VociBHbWJIMRgwFgYDVQQLDA9BLVRydXN0LVF1 -YWwtMDIxGDAWBgNVBAMMD0EtVHJ1c3QtUXVhbC0wMjAeFw0wNDEyMDIyMzAwMDBa -Fw0xNDEyMDIyMzAwMDBaMIGLMQswCQYDVQQGEwJBVDFIMEYGA1UECgw/QS1UcnVz -dCBHZXMuIGYuIFNpY2hlcmhlaXRzc3lzdGVtZSBpbSBlbGVrdHIuIERhdGVudmVy -a2VociBHbWJIMRgwFgYDVQQLDA9BLVRydXN0LVF1YWwtMDIxGDAWBgNVBAMMD0Et -VHJ1c3QtUXVhbC0wMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJaR -q9eOsFm4Ab20Hq2Z/aH86gyWa48uSUjY6eQkguHYuszr3gdcSMYZggFHQgnhfLmf -ro/27l5rqKhWiDhWs+b+yZ1PNDhRPJy+86ycHMg9XJqErveULBSyZDdgjhSwOyrN -ibUir/fkf+4sKzP5jjytTKJXD/uCxY4fAd9TjMEVpN3umpIS0ijpYhclYDHvzzGU -833z5Dwhq5D8bc9jp8YSAHFJ1xzIoO1jmn3jjyjdYPnY5harJtHQL73nDQnfbtTs -5ThT9GQLulrMgLU4WeyAWWWEMWpfVZFMJOUkmoOEer6A8e5fIAeqdxdsC+JVqpZ4 -CAKel/Arrlj1gFA//jsCAwEAAaM2MDQwDwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4E -CgQIQj0rJKbBRc4wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBG -yxFjUA2bPkXUSC2SfJ29tmrbiLKal+g6a9M8Xwd+Ejo+oYkNP6F4GfeDtAXpm7xb -9Ly8lhdbHcpRhzCUQHJ1tBCiGdLgmhSx7TXjhhanKOdDgkdsC1T+++piuuYL72TD -gUy2Sb1GHlJ1Nc6rvB4fpxSDAOHqGpUq9LWsc3tFkXqRqmQVtqtR77npKIFBioc6 -2jTBwDMPX3hDJDR1DSPc6BnZliaNw2IHdiMQ0mBoYeRnFdq+TyDKsjmJOOQPLzzL -/saaw6F891+gBjLFEFquDyR73lAPJS279R3csi8WWk4ZYUC/1V8H3Ktip/J6ac8e -qhLCbmJ81Lo92JGHz/ot ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ -RTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYD -VQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoX -DTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMCSUUxEjAQBgNVBAoTCUJhbHRpbW9y -ZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFsdGltb3JlIEN5YmVy -VHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKMEuyKr -mD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjr -IZ3AQSsBUnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeK -mpYcqWe4PwzV9/lSEy/CG9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSu -XmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9XbIGevOF6uvUA65ehD5f/xXtabz5OTZy -dc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjprl3RjM71oGDHweI12v/ye -jl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoIVDaGezq1 -BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3 -DQEBBQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT92 -9hkTI7gQCvlYpNRhcL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3Wgx -jkzSswF07r51XgdIGn9w/xZchMB5hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0 -Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsaY71k5h+3zvDyny67G7fyUIhz -ksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9HRCwBXbsdtTLS -R9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMC -VVMxFjAUBgNVBAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0 -Lm5ldC9DUFMgaXMgaW5jb3Jwb3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMW -KGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsGA1UEAxMkRW50cnVzdCBSb290IENl -cnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0MloXDTI2MTEyNzIw -NTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMuMTkw -NwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSBy -ZWZlcmVuY2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNV -BAMTJEVudHJ1c3QgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJ -KoZIhvcNAQEBBQADggEPADCCAQoCggEBALaVtkNC+sZtKm9I35RMOVcF7sN5EUFo -Nu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYszA9u3g3s+IIRe7bJWKKf4 -4LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOwwCj0Yzfv9 -KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGI -rb68j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi -94DkZfs0Nw4pgHBNrziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOB -sDCBrTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAi -gA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1MzQyWjAfBgNVHSMEGDAWgBRo -kORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DHhmak8fdLQ/uE -vW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA -A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9t -O1KzKtvn1ISMY/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6Zua -AGAT/3B+XxFNSRuzFVJ7yVTav52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP -9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTSW3iDVuycNsMm4hH2Z0kdkquM++v/ -eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0tHuu2guQOHXvgR1m -0vdXcDazv/wor3ElhVsT/h5/WrQ8 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICpzCCAi2gAwIBAgIQTHm1miicdjFk9YlE0JEC3jAKBggqhkjOPQQDAzCBlDEL -MAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYD -VQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBD -bGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0g -RzQwHhcNMTIxMDE4MDAwMDAwWhcNMzcxMjAxMjM1OTU5WjCBlDELMAkGA1UEBhMC -VVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZTeW1h -bnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAzIFB1 -YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcq -hkjOPQIBBgUrgQQAIgNiAARXz+qzOU0/oSHgbi84csaHl/OFC0fnD1HI0fSZm8pZ -Zf9M+eoLtyXV0vbsMS0yYhLXdoan+jjJZdT+c+KEOfhMSWIT3brViKBfPchPsD+P -oVAR5JNGrcNfy/GkapVW6MCjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MB0GA1UdDgQWBBQknbzScfcdwiW+IvGJpSwVOzQeXjAKBggqhkjOPQQD -AwNoADBlAjEAuWZoZdsF0Dh9DvPIdWG40CjEsUozUVj78jwQyK5HeHbKZiQXhj5Q -Vm6lLZmIuL0kAjAD6qfnqDzqnWLGX1TamPR3vU+PGJyRXEdrQE0QHbPhicoLIsga -xcX+i93B3294n5E= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j -ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL -MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 -LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug -RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm -+9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW -PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM -xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB -Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3 -hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg -EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF -MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA -FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec -nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z -eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF -hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2 -Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe -vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep -+OkuE6N36B9K ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGHDCCBASgAwIBAgIES45gAzANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEwJE -SzESMBAGA1UEChMJVFJVU1QyNDA4MSIwIAYDVQQDExlUUlVTVDI0MDggT0NFUyBQ -cmltYXJ5IENBMB4XDTEwMDMwMzEyNDEzNFoXDTM3MTIwMzEzMTEzNFowRTELMAkG -A1UEBhMCREsxEjAQBgNVBAoTCVRSVVNUMjQwODEiMCAGA1UEAxMZVFJVU1QyNDA4 -IE9DRVMgUHJpbWFyeSBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB -AJlJodr3U1Fa+v8HnyACHV81/wLevLS0KUk58VIABl6Wfs3LLNoj5soVAZv4LBi5 -gs7E8CZ9w0F2CopW8vzM8i5HLKE4eedPdnaFqHiBZ0q5aaaQArW+qKJx1rT/AaXt -alMB63/yvJcYlXS2lpexk5H/zDBUXeEQyvfmK+slAySWT6wKxIPDwVapauFY9QaG -+VBhCa5jBstWS7A5gQfEvYqn6csZ3jW472kW6OFNz6ftBcTwufomGJBMkonf4ZLr -6t0AdRi9jflBPz3MNNRGxyjIuAmFqGocYFA/OODBRjvSHB2DygqQ8k+9tlpvzMRr -kU7jq3RKL+83G1dJ3/LTjCLz4ryEMIC/OJ/gNZfE0qXddpPtzflIPtUFVffXdbFV -1t6XZFhJ+wBHQCpJobq/BjqLWUA86upsDbfwnePtmIPRCemeXkY0qabC+2Qmd2Fe -xyZphwTyMnbqy6FG1tB65dYf3mOqStmLa3RcHn9+2dwNfUkh0tjO2FXD7drWcU0O -I9DW8oAypiPhm/QCjMU6j6t+0pzqJ/S0tdAo+BeiXK5hwk6aR+sRb608QfBbRAs3 -U/q8jSPByenggac2BtTN6cl+AA1Mfcgl8iXWNFVGegzd/VS9vINClJCe3FNVoUnR -YCKkj+x0fqxvBLopOkJkmuZw/yhgMxljUi2qYYGn90OzAgMBAAGjggESMIIBDjAP -BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjARBgNVHSAECjAIMAYGBFUd -IAAwgZcGA1UdHwSBjzCBjDAsoCqgKIYmaHR0cDovL2NybC5vY2VzLnRydXN0MjQw -OC5jb20vb2Nlcy5jcmwwXKBaoFikVjBUMQswCQYDVQQGEwJESzESMBAGA1UEChMJ -VFJVU1QyNDA4MSIwIAYDVQQDExlUUlVTVDI0MDggT0NFUyBQcmltYXJ5IENBMQ0w -CwYDVQQDEwRDUkwxMB8GA1UdIwQYMBaAFPZt+LFIs0FDAduGROUYBbdezAY3MB0G -A1UdDgQWBBT2bfixSLNBQwHbhkTlGAW3XswGNzANBgkqhkiG9w0BAQsFAAOCAgEA -VPAQGrT7dIjD3/sIbQW86f9CBPu0c7JKN6oUoRUtKqgJ2KCdcB5ANhCoyznHpu3m -/dUfVUI5hc31CaPgZyY37hch1q4/c9INcELGZVE/FWfehkH+acpdNr7j8UoRZlkN -15b/0UUBfGeiiJG/ugo4llfoPrp8bUmXEGggK3wyqIPcJatPtHwlb6ympfC2b/Ld -v/0IdIOzIOm+A89Q0utx+1cOBq72OHy8gpGb6MfncVFMoL2fjP652Ypgtr8qN9Ka -/XOazktiIf+2Pzp7hLi92hRc9QMYexrV/nnFSQoWdU8TqULFUoZ3zTEC3F/g2yj+ -FhbrgXHGo5/A4O74X+lpbY2XV47aSuw+DzcPt/EhMj2of7SA55WSgbjPMbmNX0rb -oenSIte2HRFW5Tr2W+qqkc/StixgkKdyzGLoFx/xeTWdJkZKwyjqge2wJqws2upY -EiThhC497+/mTiSuXd69eVUwKyqYp9SD2rTtNmF6TCghRM/dNsJOl+osxDVGcwvt -WIVFF/Onlu5fu1NHXdqNEfzldKDUvCfii3L2iATTZyHwU9CALE+2eIA+PIaLgnM1 -1oCfUnYBkQurTrihvzz9PryCVkLxiqRmBVvUz+D4N5G/wvvKDS6t6cPCS+hqM482 -cbBsn0R9fFLO4El62S9eH1tqOzO20OAOK65yJIsOpSE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEY -MBYGA1UEChMPU0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21t -dW5pY2F0aW9uIFJvb3RDQTEwHhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5 -WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMPU0VDT00gVHJ1c3QubmV0MScwJQYD -VQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEwggEiMA0GCSqGSIb3 -DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw8yl8 -9f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJ -DKaVv0uMDPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9 -Ms+k2Y7CI9eNqPPYJayX5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/N -QV3Is00qVUarH9oe4kA92819uZKAnDfdDJZkndwi92SL32HeFZRSFaB9UslLqCHJ -xrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2JChzAgMBAAGjPzA9MB0G -A1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYwDwYDVR0T -AQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vG -kl3g0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfr -Uj94nK9NrvjVT8+amCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5 -Bw+SUEmK3TGXX8npN6o7WWWXlDLJs58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJU -JRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ6rBK+1YWc26sTfcioU+tHXot -RSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAiFL39vmwLAw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEc -MBoGA1UEChMTRXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBT -ZWN1cmUgR2xvYmFsIGVCdXNpbmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIw -MDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMxHDAaBgNVBAoTE0VxdWlmYXggU2Vj -dXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEdsb2JhbCBlQnVzaW5l -c3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRVPEnC -UdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc -58O/gGzNqfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/ -o5brhTMhHD4ePmBudpxnhcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAH -MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUvqigdHJQa0S3ySPY+6j/s1dr -aGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hsMA0GCSqGSIb3DQEBBAUA -A4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okENI7SS+RkA -Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv -8qIYNMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF5zCCA8+gAwIBAgIITK9zQhyOdAIwDQYJKoZIhvcNAQEFBQAwgYAxODA2BgNV -BAMML0VCRyBFbGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sx -c8SxMTcwNQYDVQQKDC5FQkcgQmlsacWfaW0gVGVrbm9sb2ppbGVyaSB2ZSBIaXpt -ZXRsZXJpIEEuxZ4uMQswCQYDVQQGEwJUUjAeFw0wNjA4MTcwMDIxMDlaFw0xNjA4 -MTQwMDMxMDlaMIGAMTgwNgYDVQQDDC9FQkcgRWxla3Ryb25payBTZXJ0aWZpa2Eg -SGl6bWV0IFNhxJ9sYXnEsWPEsXPEsTE3MDUGA1UECgwuRUJHIEJpbGnFn2ltIFRl -a25vbG9qaWxlcmkgdmUgSGl6bWV0bGVyaSBBLsWeLjELMAkGA1UEBhMCVFIwggIi -MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDuoIRh0DpqZhAy2DE4f6en5f2h -4fuXd7hxlugTlkaDT7byX3JWbhNgpQGR4lvFzVcfd2NR/y8927k/qqk153nQ9dAk -tiHq6yOU/im/+4mRDGSaBUorzAzu8T2bgmmkTPiab+ci2hC6X5L8GCcKqKpE+i4s -tPtGmggDg3KriORqcsnlZR9uKg+ds+g75AxuetpX/dfreYteIAbTdgtsApWjluTL -dlHRKJ2hGvxEok3MenaoDT2/F08iiFD9rrbskFBKW5+VQarKD7JK/oCZTqNGFav4 -c0JqwmZ2sQomFd2TkuzbqV9UIlKRcF0T6kjsbgNs2d1s/OsNA/+mgxKb8amTD8Um -TDGyY5lhcucqZJnSuOl14nypqZoaqsNW2xCaPINStnuWt6yHd6i58mcLlEOzrz5z -+kI2sSXFCjEmN1ZnuqMLfdb3ic1nobc6HmZP9qBVFCVMLDMNpkGMvQQxahByCp0O -Lna9XvNRiYuoP1Vzv9s6xiQFlpJIqkuNKgPlV5EQ9GooFW5Hd4RcUXSfGenmHmMW -OeMRFeNYGkS9y8RsZteEBt8w9DeiQyJ50hBs37vmExH8nYQKE3vwO9D8owrXieqW -fo1IhR5kX9tUoqzVegJ5a9KK8GfaZXINFHDk6Y54jzJ0fFfy1tb0Nokb+Clsi7n2 -l9GkLqq+CxnCRelwXQIDAJ3Zo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB -/wQEAwIBBjAdBgNVHQ4EFgQU587GT/wWZ5b6SqMHwQSny2re2kcwHwYDVR0jBBgw -FoAU587GT/wWZ5b6SqMHwQSny2re2kcwDQYJKoZIhvcNAQEFBQADggIBAJuYml2+ -8ygjdsZs93/mQJ7ANtyVDR2tFcU22NU57/IeIl6zgrRdu0waypIN30ckHrMk2pGI -6YNw3ZPX6bqz3xZaPt7gyPvT/Wwp+BVGoGgmzJNSroIBk5DKd8pNSe/iWtkqvTDO -TLKBtjDOWU/aWR1qeqRFsIImgYZ29fUQALjuswnoT4cCB64kXPBfrAowzIpAoHME -wfuJJPaaHFy3PApnNgUIMbOv2AFoKuB4j3TeuFGkjGwgPaL7s9QJ/XvCgKqTbCmY -Iai7FvOpEl90tYeY8pUm3zTvilORiF0alKM/fCL414i6poyWqD1SNGKfAB5UVUJn -xk1Gj7sURT0KlhaOEKGXmdXTMIXM3rRyt7yKPBgpaP3ccQfuJDlq+u2lrDgv+R4Q -DgZxGhBM/nV+/x5XOULK1+EVoVZVWRvRo68R2E7DpSvvkL/A7IITW43WciyTTo9q -Kd+FPNMN4KIYEsxVL0e3p5sC/kH2iExt2qkBR4NkJ2IQgtYSe14DHzSpyZH+r11t -hie3I6p1GMog57AP14kOpmciY/SDQSsGS7tY1dHXt7kQY9iJSrSq3RZj9W6+YKH4 -7ejWkE8axsWgKdOnIaj1Wjz3x0miIZpKlVIglnKaZsv30oZDfCK+lvm9AahH3eU7 -QPl1K5srRmSGjR70j/sHd9DqSaIcjVIUpgqT ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFFzCCA/+gAwIBAgIBETANBgkqhkiG9w0BAQUFADCCASsxCzAJBgNVBAYTAlRS -MRgwFgYDVQQHDA9HZWJ6ZSAtIEtvY2FlbGkxRzBFBgNVBAoMPlTDvHJraXllIEJp -bGltc2VsIHZlIFRla25vbG9qaWsgQXJhxZ90xLFybWEgS3VydW11IC0gVMOcQsSw -VEFLMUgwRgYDVQQLDD9VbHVzYWwgRWxla3Ryb25payB2ZSBLcmlwdG9sb2ppIEFy -YcWfdMSxcm1hIEVuc3RpdMO8c8O8IC0gVUVLQUUxIzAhBgNVBAsMGkthbXUgU2Vy -dGlmaWthc3lvbiBNZXJrZXppMUowSAYDVQQDDEFUw5xCxLBUQUsgVUVLQUUgS8O2 -ayBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSAtIFPDvHLDvG0gMzAe -Fw0wNzA4MjQxMTM3MDdaFw0xNzA4MjExMTM3MDdaMIIBKzELMAkGA1UEBhMCVFIx -GDAWBgNVBAcMD0dlYnplIC0gS29jYWVsaTFHMEUGA1UECgw+VMO8cmtpeWUgQmls -aW1zZWwgdmUgVGVrbm9sb2ppayBBcmHFn3TEsXJtYSBLdXJ1bXUgLSBUw5xCxLBU -QUsxSDBGBgNVBAsMP1VsdXNhbCBFbGVrdHJvbmlrIHZlIEtyaXB0b2xvamkgQXJh -xZ90xLFybWEgRW5zdGl0w7xzw7wgLSBVRUtBRTEjMCEGA1UECwwaS2FtdSBTZXJ0 -aWZpa2FzeW9uIE1lcmtlemkxSjBIBgNVBAMMQVTDnELEsFRBSyBVRUtBRSBLw7Zr -IFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIC0gU8O8csO8bSAzMIIB -IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAim1L/xCIOsP2fpTo6iBkcK4h -gb46ezzb8R1Sf1n68yJMlaCQvEhOEav7t7WNeoMojCZG2E6VQIdhn8WebYGHV2yK -O7Rm6sxA/OOqbLLLAdsyv9Lrhc+hDVXDWzhXcLh1xnnRFDDtG1hba+818qEhTsXO -fJlfbLm4IpNQp81McGq+agV/E5wrHur+R84EpW+sky58K5+eeROR6Oqeyjh1jmKw -lZMq5d/pXpduIF9fhHpEORlAHLpVK/swsoHvhOPc7Jg4OQOFCKlUAwUp8MmPi+oL -hmUZEdPpCSPeaJMDyTYcIW7OjGbxmTDY17PDHfiBLqi9ggtm/oLL4eAagsNAgQID -AQABo0IwQDAdBgNVHQ4EFgQUvYiHyY/2pAoLquvF/pEjnatKijIwDgYDVR0PAQH/ -BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAB18+kmP -NOm3JpIWmgV050vQbTlswyb2zrgxvMTfvCr4N5EY3ATIZJkrGG2AA1nJrvhY0D7t -wyOfaTyGOBye79oneNGEN3GKPEs5z35FBtYt2IpNeBLWrcLTy9LQQfMmNkqblWwM -7uXRQydmwYj3erMgbOqwaSvHIOgMA8RBBZniP+Rr+KCGgceExh/VS4ESshYhLBOh -gLJeDEoTniDYYkCrkOpkSi+sDQESeUWoL4cZaMjihccwsnX5OD+ywJO0a+IDRM5n -oN+J1q2MdqMTw5RhK2vZbMEHCiIHhWyFJEapvj+LeISCfiQMnf2BN+MlqO02TpUs -yZyQ2uypQjyttgI= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEPTCCAyWgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBvzE/MD0GA1UEAww2VMOc -UktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sx -c8SxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMV4wXAYDVQQKDFVUw5xS -S1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kg -SGl6bWV0bGVyaSBBLsWeLiAoYykgQXJhbMSxayAyMDA3MB4XDTA3MTIyNTE4Mzcx -OVoXDTE3MTIyMjE4MzcxOVowgb8xPzA9BgNVBAMMNlTDnFJLVFJVU1QgRWxla3Ry -b25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsTELMAkGA1UEBhMC -VFIxDzANBgNVBAcMBkFua2FyYTFeMFwGA1UECgxVVMOcUktUUlVTVCBCaWxnaSDE -sGxldGnFn2ltIHZlIEJpbGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7F -ni4gKGMpIEFyYWzEsWsgMjAwNzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC -ggEBAKu3PgqMyKVYFeaK7yc9SrToJdPNM8Ig3BnuiD9NYvDdE3ePYakqtdTyuTFY -KTsvP2qcb3N2Je40IIDu6rfwxArNK4aUyeNgsURSsloptJGXg9i3phQvKUmi8wUG -+7RP2qFsmmaf8EMJyupyj+sA1zU511YXRxcw9L6/P8JorzZAwan0qafoEGsIiveG -HtyaKhUG9qPw9ODHFNRRf8+0222vR5YXm3dx2KdxnSQM9pQ/hTEST7ruToK4uT6P -IzdezKKqdfcYbwnTrqdUKDT74eA7YH2gvnmJhsifLfkKS8RQouf9eRbHegsYz85M -733WB2+Y8a+xwXrXgTW4qhe04MsCAwEAAaNCMEAwHQYDVR0OBBYEFCnFkKslrxHk -Yb+j/4hhkeYO/pyBMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0G -CSqGSIb3DQEBBQUAA4IBAQAQDdr4Ouwo0RSVgrESLFF6QSU2TJ/sPx+EnWVUXKgW -AkD6bho3hO9ynYYKVZ1WKKxmLNA6VpM0ByWtCLCPyA8JWcqdmBzlVPi5RX9ql2+I -aE1KBiY3iAIOtsbWcpnOa3faYjGkVh+uX4132l32iPwa2Z61gfAyuOOI0JzzaqC5 -mxRZNTZPz/OOXl0XrRWV2N2y1RVuAE6zS89mlOTgzbUF2mNXi+WzqtvALhyQRNsa -XRik7r4EW5nVcV9VZWRi1aKbBFmGyGJ353yCRWo9F7/snXUMrqNvWtMvmDb08PUZ -qxFdyKbjKlhqQgnDvZImZjINXQhVdP+MmNAKpoRq0Tl9 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEYDCCA0igAwIBAgICATAwDQYJKoZIhvcNAQELBQAwWTELMAkGA1UEBhMCVVMx -GDAWBgNVBAoTD1UuUy4gR292ZXJubWVudDENMAsGA1UECxMERlBLSTEhMB8GA1UE -AxMYRmVkZXJhbCBDb21tb24gUG9saWN5IENBMB4XDTEwMTIwMTE2NDUyN1oXDTMw -MTIwMTE2NDUyN1owWTELMAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4gR292ZXJu -bWVudDENMAsGA1UECxMERlBLSTEhMB8GA1UEAxMYRmVkZXJhbCBDb21tb24gUG9s -aWN5IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2HX7NRY0WkG/ -Wq9cMAQUHK14RLXqJup1YcfNNnn4fNi9KVFmWSHjeavUeL6wLbCh1bI1FiPQzB6+ -Duir3MPJ1hLXp3JoGDG4FyKyPn66CG3G/dFYLGmgA/Aqo/Y/ISU937cyxY4nsyOl -4FKzXZbpsLjFxZ+7xaBugkC7xScFNknWJidpDDSPzyd6KgqjQV+NHQOGgxXgVcHF -mCye7Bpy3EjBPvmE0oSCwRvDdDa3ucc2Mnr4MrbQNq4iGDGMUHMhnv6DOzCIJOPp -wX7e7ZjHH5IQip9bYi+dpLzVhW86/clTpyBLqtsgqyFOHQ1O5piF5asRR12dP8Qj -wOMUBm7+nQIDAQABo4IBMDCCASwwDwYDVR0TAQH/BAUwAwEB/zCB6QYIKwYBBQUH -AQsEgdwwgdkwPwYIKwYBBQUHMAWGM2h0dHA6Ly9odHRwLmZwa2kuZ292L2ZjcGNh -L2NhQ2VydHNJc3N1ZWRCeWZjcGNhLnA3YzCBlQYIKwYBBQUHMAWGgYhsZGFwOi8v -bGRhcC5mcGtpLmdvdi9jbj1GZWRlcmFsJTIwQ29tbW9uJTIwUG9saWN5JTIwQ0Es -b3U9RlBLSSxvPVUuUy4lMjBHb3Zlcm5tZW50LGM9VVM/Y0FDZXJ0aWZpY2F0ZTti -aW5hcnksY3Jvc3NDZXJ0aWZpY2F0ZVBhaXI7YmluYXJ5MA4GA1UdDwEB/wQEAwIB -BjAdBgNVHQ4EFgQUrQx6dVzl85jEeZgOrCj9l/TnAvwwDQYJKoZIhvcNAQELBQAD -ggEBAI9z2uF/gLGH9uwsz9GEYx728Yi3mvIRte9UrYpuGDco71wb5O9Qt2wmGCMi -TR0mRyDpCZzicGJxqxHPkYnos/UqoEfAFMtOQsHdDA4b8Idb7OV316rgVNdF9IU+ -7LQd3nyKf1tNnJaK0KIyn9psMQz4pO9+c+iR3Ah6cFqgr2KBWfgAdKLI3VTKQVZH -venAT+0g3eOlCd+uKML80cgX2BLHb94u6b2akfI8WpQukSKAiaGMWMyDeiYZdQKl -Dn0KJnNR6obLB6jI/WNaNZvSr79PMUjBhHDbNXuaGQ/lj/RqDG8z2esccKIN47lQ -A2EC/0rskqTcLe4qNJMHtyznGI8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjEL -MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW -ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2ln -biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJp -U2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9y -aXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjELMAkG -A1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJp -U2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwg -SW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2ln -biBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8Utpkmw4tXNherJI9/gHm -GUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGzrl0Bp3ve -fLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUw -AwEB/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJ -aW1hZ2UvZ2lmMCEwHzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYj -aHR0cDovL2xvZ28udmVyaXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMW -kf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMDA2gAMGUCMGYhDBgmYFo4e1ZC -4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIxAJw9SDkjOVga -FRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID4TCCAsmgAwIBAgIOYyUAAQACFI0zFQLkbPQwDQYJKoZIhvcNAQEFBQAwezEL -MAkGA1UEBhMCREUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNV -BAsTG1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQTEoMCYGA1UEAxMfVEMgVHJ1 -c3RDZW50ZXIgVW5pdmVyc2FsIENBIElJSTAeFw0wOTA5MDkwODE1MjdaFw0yOTEy -MzEyMzU5NTlaMHsxCzAJBgNVBAYTAkRFMRwwGgYDVQQKExNUQyBUcnVzdENlbnRl -ciBHbWJIMSQwIgYDVQQLExtUQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0ExKDAm -BgNVBAMTH1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQSBJSUkwggEiMA0GCSqG -SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDC2pxisLlxErALyBpXsq6DFJmzNEubkKLF -5+cvAqBNLaT6hdqbJYUtQCggbergvbFIgyIpRJ9Og+41URNzdNW88jBmlFPAQDYv -DIRlzg9uwliT6CwLOunBjvvya8o84pxOjuT5fdMnnxvVZ3iHLX8LR7PH6MlIfK8v -zArZQe+f/prhsq75U7Xl6UafYOPfjdN/+5Z+s7Vy+EutCHnNaYlAJ/Uqwa1D7KRT -yGG299J5KmcYdkhtWyUB0SbFt1dpIxVbYYqt8Bst2a9c8SaQaanVDED1M4BDj5yj -dipFtK+/fz6HP3bFzSreIMUWWMv5G/UPyw0RUmS40nZid4PxWJ//AgMBAAGjYzBh -MB8GA1UdIwQYMBaAFFbn4VslQ4Dg9ozhcbyO5YAvxEjiMA8GA1UdEwEB/wQFMAMB -Af8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRW5+FbJUOA4PaM4XG8juWAL8RI -4jANBgkqhkiG9w0BAQUFAAOCAQEAg8ev6n9NCjw5sWi+e22JLumzCecYV42Fmhfz -dkJQEw/HkG8zrcVJYCtsSVgZ1OK+t7+rSbyUyKu+KGwWaODIl0YgoGhnYIg5IFHY -aAERzqf2EQf27OysGh+yZm5WZ2B6dF7AbZc2rrUNXWZzwCUyRdhKBgePxLcHsU0G -DeGl6/R1yrqc0L2z0zIkTO5+4nYES0lT2PLpVDP85XEfPRRclkvxOvIAu2y0+pZV -CIgJwcyRGSmwIC3/yzikQOEXvnlhgP8HA4ZMTnsGnxGGjYnuJ8Tb4rwZjgvDwxPH -LQNjO9Po5KIqwoIIlBZU8O8fJ5AluA0OKBtHd0e9HKgl8ZS0Zg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDcTCCAlmgAwIBAgIVAOYJ/nrqAGiM4CS07SAbH+9StETRMA0GCSqGSIb3DQEB -BQUAMFAxCzAJBgNVBAYTAlBMMSgwJgYDVQQKDB9LcmFqb3dhIEl6YmEgUm96bGlj -emVuaW93YSBTLkEuMRcwFQYDVQQDDA5TWkFGSVIgUk9PVCBDQTAeFw0xMTEyMDYx -MTEwNTdaFw0zMTEyMDYxMTEwNTdaMFAxCzAJBgNVBAYTAlBMMSgwJgYDVQQKDB9L -cmFqb3dhIEl6YmEgUm96bGljemVuaW93YSBTLkEuMRcwFQYDVQQDDA5TWkFGSVIg -Uk9PVCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKxHL49ZMTml -6g3wpYwrvQKkvc0Kc6oJ5sxfgmp1qZfluwbv88BdocHSiXlY8NzrVYzuWBp7J/9K -ULMAoWoTIzOQ6C9TNm4YbA9A1jdX1wYNL5Akylf8W5L/I4BXhT9KnlI6x+a7BVAm -nr/Ttl+utT/Asms2fRfEsF2vZPMxH4UFqOAhFjxTkmJWf2Cu4nvRQJHcttB+cEAo -ag/hERt/+tzo4URz6x6r19toYmxx4FjjBkUhWQw1X21re//Hof2+0YgiwYT84zLb -eqDqCOMOXxvH480yGDkh/QoazWX3U75HQExT/iJlwnu7I1V6HXztKIwCBjsxffbH -3jOshCJtywcCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC -AQYwHQYDVR0OBBYEFFOSo33/gnbwM9TrkmdHYTMbaDsqMA0GCSqGSIb3DQEBBQUA -A4IBAQA5UFWd5EL/pBviIMm1zD2JLUCpp0mJG7JkwznIOzawhGmFFaxGoxAhQBEg -haP+E0KR66oAwVC6xe32QUVSHfWqWndzbODzLB8yj7WAR0cDM45ZngSBPBuFE3Wu -GLJX9g100ETfIX+4YBR/4NR/uvTnpnd9ete7Whl0ZfY94yuu4xQqB5QFv+P7IXXV -lTOjkjuGXEcyQAjQzbFaT9vIABSbeCXWBbjvOXukJy6WgAiclzGNSYprre8Ryydd -fmjW9HIGwsIO03EldivvqEYL1Hv1w/Pur+6FUEOaL68PEIUovfgwIB2BAw+vZDuw -cH0mX548PojGyg434cDjkSXa3mHF ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEPDCCAySgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBvjE/MD0GA1UEAww2VMOc -UktUUlVTVCBFbGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sx -c8SxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMV0wWwYDVQQKDFRUw5xS -S1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kg -SGl6bWV0bGVyaSBBLsWeLiAoYykgS2FzxLFtIDIwMDUwHhcNMDUxMTA3MTAwNzU3 -WhcNMTUwOTE2MTAwNzU3WjCBvjE/MD0GA1UEAww2VMOcUktUUlVTVCBFbGVrdHJv -bmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGEwJU -UjEPMA0GA1UEBwwGQW5rYXJhMV0wWwYDVQQKDFRUw5xSS1RSVVNUIEJpbGdpIMSw -bGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWe -LiAoYykgS2FzxLFtIDIwMDUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQCpNn7DkUNMwxmYCMjHWHtPFoylzkkBH3MOrHUTpvqeLCDe2JAOCtFp0if7qnef -J1Il4std2NiDUBd9irWCPwSOtNXwSadktx4uXyCcUHVPr+G1QRT0mJKIx+XlZEdh -R3n9wFHxwZnn3M5q+6+1ATDcRhzviuyV79z/rxAc653YsKpqhRgNF8k+v/Gb0AmJ -Qv2gQrSdiVFVKc8bcLyEVK3BEx+Y9C52YItdP5qtygy/p1Zbj3e41Z55SZI/4PGX -JHpsmxcPbe9TmJEr5A++WXkHeLuXlfSfadRYhwqp48y2WBmfJiGxxFmNskF1wK1p -zpwACPI2/z7woQ8arBT9pmAPAgMBAAGjQzBBMB0GA1UdDgQWBBTZN7NOBf3Zz58S -Fq62iS/rJTqIHDAPBgNVHQ8BAf8EBQMDBwYAMA8GA1UdEwEB/wQFMAMBAf8wDQYJ -KoZIhvcNAQEFBQADggEBAHJglrfJ3NgpXiOFX7KzLXb7iNcX/nttRbj2hWyfIvwq -ECLsqrkw9qtY1jkQMZkpAL2JZkH7dN6RwRgLn7Vhy506vvWolKMiVW4XSf/SKfE4 -Jl3vpao6+XF75tpYHdN0wgH6PmlYX63LaL4ULptswLbcoCb6dxriJNoaN+BnrdFz -gw2lGh1uEpJ+hGIAF728JRhX8tepb1mIvDS3LoV4nZbcFMMsilKbloxSZj2GFotH -uFEJjOp9zYhys2AzsfAKRO8P9Qk3iCQOLGsgOqL6EfJANZxEaGM7rDNvY7wsu/LS -y3Z9fYjYHcgFHW68lKlmjHdxx/qR+i9Rnuk5UrbnBEI= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDfTCCAmWgAwIBAgIBADANBgkqhkiG9w0BAQUFADBgMQswCQYDVQQGEwJKUDEl -MCMGA1UEChMcU0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEqMCgGA1UECxMh -U2VjdXJpdHkgQ29tbXVuaWNhdGlvbiBFViBSb290Q0ExMB4XDTA3MDYwNjAyMTIz -MloXDTM3MDYwNjAyMTIzMlowYDELMAkGA1UEBhMCSlAxJTAjBgNVBAoTHFNFQ09N -IFRydXN0IFN5c3RlbXMgQ08uLExURC4xKjAoBgNVBAsTIVNlY3VyaXR5IENvbW11 -bmljYXRpb24gRVYgUm9vdENBMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC -ggEBALx/7FebJOD+nLpCeamIivqA4PUHKUPqjgo0No0c+qe1OXj/l3X3L+SqawSE -RMqm4miO/VVQYg+kcQ7OBzgtQoVQrTyWb4vVog7P3kmJPdZkLjjlHmy1V4qe70gO -zXppFodEtZDkBp2uoQSXWHnvIEqCa4wiv+wfD+mEce3xDuS4GBPMVjZd0ZoeUWs5 -bmB2iDQL87PRsJ3KYeJkHcFGB7hj3R4zZbOOCVVSPbW9/wfrrWFVGCypaZhKqkDF -MxRldAD5kd6vA0jFQFTcD4SQaCDFkpbcLuUCRarAX1T4bepJz11sS6/vmsJWXMY1 -VkJqMF/Cq/biPT+zyRGPMUzXn0kCAwEAAaNCMEAwHQYDVR0OBBYEFDVK9U2vP9eC -OKyrcWUXdYydVZPmMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0G -CSqGSIb3DQEBBQUAA4IBAQCoh+ns+EBnXcPBZsdAS5f8hxOQWsTvoMpfi7ent/HW -tWS3irO4G8za+6xmiEHO6Pzk2x6Ipu0nUBsCMCRGef4Eh3CXQHPRwMFXGZpppSeZ -q51ihPZRwSzJIxXYKLerJRO1RuGGAv8mjMSIkh1W/hln8lXkgKNrnKt34VFxDSDb -EJrbvXZ5B3eZKK2aXtqxT0QsNY6llsf9g/BYxnnWmHyojf6GPgcWkuF75x3sM3Z+ -Qi5KhfmRiWiEA4Glm5q+4zfFVKtWOxgtQaQM+ELbmaDgcm+7XeEWT1MKZPlO9L9O -VL14bIjqv5wTJMJwaaJ/D8g8rQjJsJhAoyrniIPtd490 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICqDCCAi2gAwIBAgIQNBdlEkA7t1aALYDLeVWmHjAKBggqhkjOPQQDAzCBlDEL -MAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYD -VQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBD -bGFzcyAyIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0g -RzQwHhcNMTExMDA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBlDELMAkGA1UEBhMC -VVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZTeW1h -bnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAyIFB1 -YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcq -hkjOPQIBBgUrgQQAIgNiAATR2UqOTA2ESlG6fO/TzPo6mrWnYxM9AeBJPvrBR8mS -szrX/m+c95o6D/UOCgrDP8jnEhSO1dVtmCyzcTIK6yq99tdqIAtnRZzSsr9TImYJ -XdsR8/EFM1ij4rjPfM2Cm72jQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8E -BTADAQH/MB0GA1UdDgQWBBQ9MvM6qQyQhPmijGkGYVQvh3L+BTAKBggqhkjOPQQD -AwNpADBmAjEAyKapr0F/tckRQhZoaUxcuCcYtpjxwH+QbYfTjEYX8D5P/OqwCMR6 -S7wIL8fip29lAjEA1lnehs5fDspU1cbQFQ78i5Ry1I4AWFPPfrFLDeVQhuuea9// -KabYR9mglhjb8kWz ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEd -MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3Mg -Q2xhc3MgMyBSb290IENBMB4XDTEwMTAyNjA4Mjg1OFoXDTQwMTAyNjA4Mjg1OFow -TjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MSAw -HgYDVQQDDBdCdXlwYXNzIENsYXNzIDMgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEB -BQADggIPADCCAgoCggIBAKXaCpUWUOOV8l6ddjEGMnqb8RB2uACatVI2zSRHsJ8Y -ZLya9vrVediQYkwiL944PdbgqOkcLNt4EemOaFEVcsfzM4fkoF0LXOBXByow9c3E -N3coTRiR5r/VUv1xLXA+58bEiuPwKAv0dpihi4dVsjoT/Lc+JzeOIuOoTyrvYLs9 -tznDDgFHmV0ST9tD+leh7fmdvhFHJlsTmKtdFoqwNxxXnUX/iJY2v7vKB3tvh2PX -0DJq1l1sDPGzbjniazEuOQAnFN44wOwZZoYS6J1yFhNkUsepNxz9gjDthBgd9K5c -/3ATAOux9TN6S9ZV+AWNS2mw9bMoNlwUxFFzTWsL8TQH2xc519woe2v1n/MuwU8X -KhDzzMro6/1rqy6any2CbgTUUgGTLT2G/H783+9CHaZr77kgxve9oKeV/afmiSTY -zIw0bOIjL9kSGiG5VZFvC5F5GQytQIgLcOJ60g7YaEi7ghM5EFjp2CoHxhLbWNvS -O1UQRwUVZ2J+GGOmRj8JDlQyXr8NYnon74Do29lLBlo3WiXQCBJ31G8JUJc9yB3D -34xFMFbG02SrZvPAXpacw8Tvw3xrizp5f7NJzz3iiZ+gMEuFuZyUJHmPfWupRWgP -K9Dx2hzLabjKSWJtyNBjYt1gD1iqj6G8BaVmos8bdrKEZLFMOVLAMLrwjEsCsLa3 -AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFEe4zf/lb+74suwv -Tg75JbCOPGvDMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAACAj -QTUEkMJAYmDv4jVM1z+s4jSQuKFvdvoWFqRINyzpkMLyPPgKn9iB5btb2iUspKdV -cSQy9sgL8rxq+JOssgfCX5/bzMiKqr5qb+FJEMwx14C7u8jYog5kV+qi9cKpMRXS -IGrs/CIBKM+GuIAeqcwRpTzyFrNHnfzSgCHEy9BHcEGhyoMZCCxt8l13nIoUE9Q2 -HJLw5QY33KbmkJs4j1xrG0aGQ0JfPgEHU1RdZX33inOhmlRaHylDFCfChQ+1iHsa -O5S3HWCntZznKWlXWpuTekMwGwPXYshApqr8ZORK15FTAaggiG6cX0S5y2CBNOxv -033aSF/rtJC8LakcC6wc1aJoIIAE1vyxjy+7SjENSoYc6+I2KSb12tjE8nVhz36u -dmNKekBlk4f4HoCMhuWG1o8O/FMsYOgWYRqiPkN7zTlgVGr18okmAWiDSKIz6MkE -kbIRNBE+6tBDGR8Dk5AM/1E9V/RBbuHLoL7ryWPNbczk+DaqaJ3tvV2XcEQNtg41 -3OEMXbugUZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvD -u79leNKGef9JOxqDDPDeeOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq -4/g7u9xN12TyUb7mqqta6THuBrxzvxNiCp/HuZc= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIF9jCCA96gAwIBAgIQZWNxhdNvRcaPfzH5CYeSgjANBgkqhkiG9w0BAQwFADCB -lDELMAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8w -HQYDVQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRl -YyBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -IC0gRzYwHhcNMTIxMDE4MDAwMDAwWhcNMzcxMjAxMjM1OTU5WjCBlDELMAkGA1UE -BhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZT -eW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAz -IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzYwggIi -MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQC3DrL6TbyachX7d1vb/UMPywv3 -YC6zK34Mu1PyzE5l8xm7/zUd99Opu0Attd141Kb5N+qFBXttt+YTSwZ8+3ZjjyAd -LTgrBIXy6LDRX01KIclq2JTqHgJQpqqQB6BHIepm+QSg5oPwxPVeluInTWHDs8GM -IrZmoQDRVin77cF/JMo9+lqUsITDx7pDHP1kDvEo+0dZ8ibhMblE+avd+76+LDfj -rAsY0/wBovGkCjWCR0yrvYpe3xOF/CDMSFmvr0FvyyPNypOn3dVfyGQ7/wEDoApP -LW49hL6vyDKyUymQFfewBZoKPPa5BpDJpeFdoDuw/qi2v/WJKFckOiGGceTciotB -VeweMCRZ0cBZuHivqlp03iWAMJjtMERvIXAc2xJTDtamKGaTLB/MTzwbgcW59nhv -0DI6CHLbaw5GF4WU87zvvPekXo7p6bVk5bdLRRIsTDe3YEMKTXEGAJQmNXQfu3o5 -XE475rgD4seTi4QsJUlF3X8jlGAfy+nN9quX92Hn+39igcjcCjBcGHzmzu/Hbh6H -fLPpysh7avRo/IOlDFa0urKNSgrHl5fFiDAVPRAIVBVycmczM/R8t84AJ1NlziTx -WmTnNi/yLgLCl99y6AIeoPc9tftoYAP6M6nmEm0G4amoXU48/tnnAGWsthlNe4N/ -NEfq4RhtsYsceavnnQIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/ -BAUwAwEB/zAdBgNVHQ4EFgQUOXEIAD7eyIbnkP/k/SEPziQZFvYwDQYJKoZIhvcN -AQEMBQADggIBAFBriE1gSM5a4yLOZ3yEp80c/ekMA4w2rwqHDmquV64B0Da78v25 -c8FftaiuTKL6ScsHRhY2vePIVzh+OOS/JTNgxtw3nGO7XpgeGrKC8K6mdxGAREeh -KcXwszrOmPC47NMOgAZ3IzBM/3lkYyJbd5NDS3Wz2ztuO0rd8ciutTeKlYg6EGhw -OLlbcH7VQ8n8X0/l5ns27vAg7UdXEyYQXhQGDXt2B8LGLRb0rqdsD7yID08sAraj -1yLmmUc12I2lT4ESOhF9s8wLdfMecKMbA+r6mujmLjY5zJnOOj8Mt674Q5mwk25v -qtkPajGRu5zTtCj7g0x6c4JQZ9IOrO1gxbJdNZjPh34eWR0kvFa62qRa2MzmvB4Q -jxuMjvPB27e+1LBbZY8WaPNWxSoZFk0PuGWHbSSDuGLc4EdhGoh7zk5//dzGDVqa -pPO1TPbdMaboHREhMzAEYX0c4D5PjT+1ixIAWn2poQDUg+twuxj4pNIcgS23CBHI -Jnu21OUPA0Zy1CVAHr5JXW2T8VyyO3VUaTqg7kwiuqya4gitRWMFSlI1dsQ09V4H -Mq3cfCbRW4+t5OaqG3Wf61206MCpFXxOSgdy30bJ1JGSdVaw4e43NmUoxRXIK3bM -bW8Zg/T92hXiQeczeUaDV/nxpbZt07zXU+fucW14qZen7iCcGRVyFT0E ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICRjCCAc2gAwIBAgIQC6Fa+h3foLVJRK/NJKBs7DAKBggqhkjOPQQDAzBlMQsw -CQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cu -ZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3Qg -RzMwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBlMQswCQYDVQQGEwJV -UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu -Y29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgRzMwdjAQBgcq -hkjOPQIBBgUrgQQAIgNiAAQZ57ysRGXtzbg/WPuNsVepRC0FFfLvC/8QdJ+1YlJf -Zn4f5dwbRXkLzMZTCp2NXQLZqVneAlr2lSoOjThKiknGvMYDOAdfVdp+CW7if17Q -RSAPWXYQ1qAk8C3eNvJsKTmjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/ -BAQDAgGGMB0GA1UdDgQWBBTL0L2p4ZgFUaFNN6KDec6NHSrkhDAKBggqhkjOPQQD -AwNnADBkAjAlpIFFAmsSS3V0T8gj43DydXLefInwz5FyYZ5eEJJZVrmDxxDnOOlY -JjZ91eQ0hjkCMHw2U/Aw5WJjOpnitqM7mzT6HtoQknFekROn3aRukswy1vUhZscv -6pZjamVFkpUBtA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEUzCCAzugAwIBAgIDAOJDMA0GCSqGSIb3DQEBBQUAMIHPMQswCQYDVQQGEwJB -VDGBizCBiAYDVQQKHoGAAEEALQBUAHIAdQBzAHQAIABHAGUAcwAuACAAZgD8AHIA -IABTAGkAYwBoAGUAcgBoAGUAaQB0AHMAcwB5AHMAdABlAG0AZQAgAGkAbQAgAGUA -bABlAGsAdAByAC4AIABEAGEAdABlAG4AdgBlAHIAawBlAGgAcgAgAEcAbQBiAEgx -GDAWBgNVBAsTD0EtVHJ1c3QtUXVhbC0wMTEYMBYGA1UEAxMPQS1UcnVzdC1RdWFs -LTAxMB4XDTA0MTEzMDIzMDAwMFoXDTE0MTEzMDIzMDAwMFowgc8xCzAJBgNVBAYT -AkFUMYGLMIGIBgNVBAoegYAAQQAtAFQAcgB1AHMAdAAgAEcAZQBzAC4AIABmAPwA -cgAgAFMAaQBjAGgAZQByAGgAZQBpAHQAcwBzAHkAcwB0AGUAbQBlACAAaQBtACAA -ZQBsAGUAawB0AHIALgAgAEQAYQB0AGUAbgB2AGUAcgBrAGUAaAByACAARwBtAGIA -SDEYMBYGA1UECxMPQS1UcnVzdC1RdWFsLTAxMRgwFgYDVQQDEw9BLVRydXN0LVF1 -YWwtMDEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCmhgdxIbxTGEOH -fXGiewI3NFldAWKFWfLofO+5I1UbvA5avt7IgsGXz/tI/f5HGUbascI0i7xG0tqV -lA5ctQgLRqxgxHtgTkMcqsAEYdsz3LZsCdXO1QrvEBGLTSABdxiL/gSWJ6z77CSw -x7Xg02HwxPV82cjGkSF3ENGJntuIAAnRDWn/ORHjFatNRymoMbHaOEZXSGhf7Y5F -rrHEqGyi9E6sv784De/T1aTvskn8cWeUmDzv//omiG/a/V9KQex/61XN8OthUQVn -X+u/liL2NKx74I2C/GgHX5B0WkPNqsSOgmlvJ/cKuT0PveUgVFDAA0oYBgcE1KDM -lBbN0kmPAgMBAAGjNjA0MA8GA1UdEwEB/wQFMAMBAf8wEQYDVR0OBAoECEs8jB2F -6W+tMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAIUusmJzMJRiQ -8TAHrJAOelfuWoTGcqdIv7Tys/fNl2yF2fjvHT8J01aKialFVpbVeQ2XKb1O2bHO -QYAKgsdZ2jZ/sdL2UVFRTHmidLu6PdgWCBRhJYQELQophO9QVvfhAA0TwbESYqTz -+nlI5Gr7CZe8f6HEmhJmCtUQsdQCufGglRh4T+tIGiNGcnyVEHZ93mSVepFr1VA2 -9CTRPteuGjA81jeAz9peYiFE1CXvxK9cJiv0BcALFLWmADCoRLzIRZhA+sAwYUmw -M1rqVCPA3kBQvIC95tyQvNy2dG0Vs+O6PwLaNX/suSlElQ06X2l1VwMaYb4vZKFq -N0bOhBXEVg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIJmzCCB4OgAwIBAgIBATANBgkqhkiG9w0BAQwFADCCAR4xPjA8BgNVBAMTNUF1 -dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIFJhaXogZGVsIEVzdGFkbyBWZW5lem9s -YW5vMQswCQYDVQQGEwJWRTEQMA4GA1UEBxMHQ2FyYWNhczEZMBcGA1UECBMQRGlz -dHJpdG8gQ2FwaXRhbDE2MDQGA1UEChMtU2lzdGVtYSBOYWNpb25hbCBkZSBDZXJ0 -aWZpY2FjaW9uIEVsZWN0cm9uaWNhMUMwQQYDVQQLEzpTdXBlcmludGVuZGVuY2lh -IGRlIFNlcnZpY2lvcyBkZSBDZXJ0aWZpY2FjaW9uIEVsZWN0cm9uaWNhMSUwIwYJ -KoZIhvcNAQkBFhZhY3JhaXpAc3VzY2VydGUuZ29iLnZlMB4XDTEwMTIyMjE4MDgy -MVoXDTMwMTIxNzIzNTk1OVowggEeMT4wPAYDVQQDEzVBdXRvcmlkYWQgZGUgQ2Vy -dGlmaWNhY2lvbiBSYWl6IGRlbCBFc3RhZG8gVmVuZXpvbGFubzELMAkGA1UEBhMC -VkUxEDAOBgNVBAcTB0NhcmFjYXMxGTAXBgNVBAgTEERpc3RyaXRvIENhcGl0YWwx -NjA0BgNVBAoTLVNpc3RlbWEgTmFjaW9uYWwgZGUgQ2VydGlmaWNhY2lvbiBFbGVj -dHJvbmljYTFDMEEGA1UECxM6U3VwZXJpbnRlbmRlbmNpYSBkZSBTZXJ2aWNpb3Mg -ZGUgQ2VydGlmaWNhY2lvbiBFbGVjdHJvbmljYTElMCMGCSqGSIb3DQEJARYWYWNy -YWl6QHN1c2NlcnRlLmdvYi52ZTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC -ggIBAME77xNS8ZlW47RsBeEaaRZhJoZ4rw785UAFCuPZOAVMqNS1wMYqzy95q6Gk -UO81ER/ugiQX/KMcq/4HBn83fwdYWxPZfwBfK7BP2p/JsFgzYeFP0BXOLmvoJIzl -Jb6FW+1MPwGBjuaZGFImWZsSmGUclb51mRYMZETh9/J5CLThR1exStxHQptwSzra -zNFpkQY/zmj7+YZNA9yDoroVFv6sybYOZ7OxNDo7zkSLo45I7gMwtxqWZ8VkJZkC -8+p0dX6mkhUT0QAV64Zc9HsZiH/oLhEkXjhrgZ28cF73MXIqLx1fyM4kPH1yOJi/ -R72nMwL7D+Sd6mZgI035TxuHXc2/uOwXfKrrTjaJDz8Jp6DdessOkxIgkKXRjP+F -K3ze3n4NUIRGhGRtyvEjK95/2g02t6PeYiYVGur6ruS49n0RAaSS0/LJb6XzaAAe -0mmO2evnEqxIKwy2mZRNPfAVW1l3wCnWiUwryBU6OsbFcFFrQm+00wOicXvOTHBM -aiCVAVZTb9RSLyi+LJ1llzJZO3pq3IRiiBj38Nooo+2ZNbMEciSgmig7YXaUcmud -SVQvLSL+Yw+SqawyezwZuASbp7d/0rutQ59d81zlbMt3J7yB567rT2IqIydQ8qBW -k+fmXzghX+/FidYsh/aK+zZ7Wy68kKHuzEw1Vqkat5DGs+VzAgMBAAGjggLeMIIC -2jASBgNVHRMBAf8ECDAGAQH/AgECMDcGA1UdEgQwMC6CD3N1c2NlcnRlLmdvYi52 -ZaAbBgVghl4CAqASDBBSSUYtRy0yMDAwNDAzNi0wMB0GA1UdDgQWBBStuyIdxuDS -Aaj9dlBSk+2YwU2u0zCCAVAGA1UdIwSCAUcwggFDgBStuyIdxuDSAaj9dlBSk+2Y -wU2u06GCASakggEiMIIBHjE+MDwGA1UEAxM1QXV0b3JpZGFkIGRlIENlcnRpZmlj -YWNpb24gUmFpeiBkZWwgRXN0YWRvIFZlbmV6b2xhbm8xCzAJBgNVBAYTAlZFMRAw -DgYDVQQHEwdDYXJhY2FzMRkwFwYDVQQIExBEaXN0cml0byBDYXBpdGFsMTYwNAYD -VQQKEy1TaXN0ZW1hIE5hY2lvbmFsIGRlIENlcnRpZmljYWNpb24gRWxlY3Ryb25p -Y2ExQzBBBgNVBAsTOlN1cGVyaW50ZW5kZW5jaWEgZGUgU2VydmljaW9zIGRlIENl -cnRpZmljYWNpb24gRWxlY3Ryb25pY2ExJTAjBgkqhkiG9w0BCQEWFmFjcmFpekBz -dXNjZXJ0ZS5nb2IudmWCAQEwDgYDVR0PAQH/BAQDAgEGMDcGA1UdEQQwMC6CD3N1 -c2NlcnRlLmdvYi52ZaAbBgVghl4CAqASDBBSSUYtRy0yMDAwNDAzNi0wMFQGA1Ud -HwRNMEswJKAioCCGHmhodHA6Ly93d3cuc3VzY2VydGUuZ29iLnZlL2xjcjAjoCGg -H4YdbGRhcDovL2FjcmFpei5zdXNjZXJ0ZS5nb2IudmUwNwYIKwYBBQUHAQEEKzAp -MCcGCCsGAQUFBzABhhtoaHRwOi8vb2NzcC5zdXNjZXJ0ZS5nb2IudmUwQAYDVR0g -BDkwNzA1BgVghl4BAjAsMCoGCCsGAQUFBwIBFh5odHRwOi8vd3d3LnN1c2NlcnRl -LmdvYi52ZS9kcGMwDQYJKoZIhvcNAQEMBQADggIBAK4qy/zmZ9zBwfW3yOYtLcBT -Oy4szJyPz7/RhNH3bPVH7HbDTGpi6JZ4YXdXMBeJE5qBF4a590Kgj8Rlnltt+Rbo -OFQOU1UDqKuTdBsA//Zry5899fmn8jBUkg4nh09jhHHbLlaUScdz704Zz2+UVg7i -s/r3Legxap60KzmdrmTAE9VKte1TQRgavQwVX5/2mO/J+SCas//UngI+h8SyOucq -mjudYEgBrZaodUsagUfn/+AzFNrGLy+al+5nZeHb8JnCfLHWS0M9ZyhgoeO/czyn -99+5G93VWNv4zfc4KiavHZKrkn8F9pg0ycIZh+OwPT/RE2zq4gTazBMlP3ACIe/p -olkNaOEa8KvgzW96sjBZpMW49zFmyINYkcj+uaNCJrVGsXgdBmkuRGJNWFZ9r0cG -woIaxViFBypsz045r1ESfYPlfDOavBhZ/giR/Xocm9CHkPRY2BApMMR0DUCyGETg -Ql+L3kfdTKzuDjUp2DM9FqysQmaM81YDZufWkMhlZPfHwC7KbNougoLroa5Umeos -bqAXWmk46SwIdWRPLLqbUpDTKooynZKpSYIkkotdgJoVZUUCY+RCO8jsVPEU6ece -SxztNUm5UOta1OJPMwSAKRHOo3ilVb9c6lAixDdvV8MeNbqe6asM1mpCHWbJ/0rg -5Ls9Cxx8hracyp0ev7b0 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGATCCA+mgAwIBAgIRAI9hcRW6eVgXjH0ROqzW264wDQYJKoZIhvcNAQELBQAw -RTEfMB0GA1UEAxMWQ29tU2lnbiBHbG9iYWwgUm9vdCBDQTEVMBMGA1UEChMMQ29t -U2lnbiBMdGQuMQswCQYDVQQGEwJJTDAeFw0xMTA3MTgxMDI0NTRaFw0zNjA3MTYx -MDI0NTVaMEUxHzAdBgNVBAMTFkNvbVNpZ24gR2xvYmFsIFJvb3QgQ0ExFTATBgNV -BAoTDENvbVNpZ24gTHRkLjELMAkGA1UEBhMCSUwwggIiMA0GCSqGSIb3DQEBAQUA -A4ICDwAwggIKAoICAQCyKClzKh3rm6n1nvigmV/VU1D4hSwYW2ro3VqpzpPo0Ph3 -3LguqjXd5juDwN4mpxTpD99d7Xu5X6KGTlMVtfN+bTbA4t3x7DU0Zqn0BE5XuOgs -3GLH41Vmr5wox1bShVpM+IsjcN4E/hMnDtt/Bkb5s33xCG+ohz5dlq0gA9qfr/g4 -O9lkHZXTCeYrmVzd/il4x79CqNvGkdL3um+OKYl8rg1dPtD8UsytMaDgBAopKR+W -igc16QJzCbvcinlETlrzP/Ny76BWPnAQgaYBULax/Q5thVU+N3sEOKp6uviTdD+X -O6i96gARU4H0xxPFI75PK/YdHrHjfjQevXl4J37FJfPMSHAbgPBhHC+qn/014DOx -46fEGXcdw2BFeIIIwbj2GH70VyJWmuk/xLMCHHpJ/nIF8w25BQtkPpkwESL6esaU -b1CyB4Vgjyf16/0nRiCAKAyC/DY/Yh+rDWtXK8c6QkXD2XamrVJo43DVNFqGZzbf -5bsUXqiVDOz71AxqqK+p4ek9374xPNMJ2rB5MLPAPycwI0bUuLHhLy6nAIFHLhut -TNI+6Y/soYpi5JSaEjcY7pxI8WIkUAzr2r+6UoT0vAdyOt7nt1y8844a7szo/aKf -woziHl2O1w6ZXUC30K+ptXVaOiW79pBDcbLZ9ZdbONhS7Ea3iH4HJNwktrBJLQID -AQABo4HrMIHoMA8GA1UdEwEB/wQFMAMBAf8wgYQGA1UdHwR9MHswPKA6oDiGNmh0 -dHA6Ly9mZWRpci5jb21zaWduLmNvLmlsL2NybC9jb21zaWduZ2xvYmFscm9vdGNh -LmNybDA7oDmgN4Y1aHR0cDovL2NybDEuY29tc2lnbi5jby5pbC9jcmwvY29tc2ln -bmdsb2JhbHJvb3RjYS5jcmwwDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBQCRZPY -DUhirGm6rgZbPvuqJpFQsTAfBgNVHSMEGDAWgBQCRZPYDUhirGm6rgZbPvuqJpFQ -sTANBgkqhkiG9w0BAQsFAAOCAgEAk1V5V9701xsfy4mfX+tP9Ln5e9h3N+QMwUfj -kr+k3e8iXOqADjTpUHeBkEee5tJq09ZLp/43F5tZ2eHdYq2ZEX7iWHCnOQet6Yw9 -SU1TahsrGDA6JJD9sdPFnNZooGsU1520e0zNB0dNWwxrWAmu4RsBxvEpWCJbvzQL -dOfyX85RWwli81OiVMBc5XvJ1mxsIIqli45oRynKtsWP7E+b0ISJ1n+XFLdQo/Nm -WA/5sDfT0F5YPzWdZymudMbXitimxC+n4oQE4mbQ4Zm718Iwg3pP9gMMcSc7Qc1J -kJHPH9O7gVubkKHuSYj9T3Ym6c6egL1pb4pz/uT7cT26Fiopc/jdqbe2EAfoJZkv -hlp/zdzOoXTWjiKNA5zmgWnZn943FuE9KMRyKtyi/ezJXCh8ypnqLIKxeFfZl69C -BwJsPXUTuqj8Fic0s3aZmmr7C4jXycP+Q8V+akMEIoHAxcd960b4wVWKqOcI/kZS -Q0cYqWOY1LNjznRt9lweWEfwDBL3FhrHOmD4++1N3FkkM4W+Q1b2WOL24clDMj+i -2n9Iw0lc1llHMSMvA5D0vpsXZpOgcCVahfXczQKi9wQ3oZyonJeWx4/rXdMtagAB -VBYGFuMEUEQtybI+eIbnp5peO2WAAblQI4eTy/jMVowe5tfMEXovV3sz9ULgmGb3 -DscLP1I= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICmDCCAgGgAwIBAgIBDjANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJVUzEY -MBYGA1UEChMPVS5TLiBHb3Zlcm5tZW50MQwwCgYDVQQLEwNFQ0ExFDASBgNVBAMT -C0VDQSBSb290IENBMB4XDTA0MDYxNDEwMjAwOVoXDTQwMDYxNDEwMjAwOVowSzEL -MAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4gR292ZXJubWVudDEMMAoGA1UECxMD -RUNBMRQwEgYDVQQDEwtFQ0EgUm9vdCBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAw -gYkCgYEArkr2eXIS6oAKIpDkOlcQZdMGdncoygCEIU+ktqY3of5SVVXU7/it7kJ1 -EUzR4ii2vthQtbww9aAnpQxcEmXZk8eEyiGEPy+cCQMllBY+efOtKgjbQNDZ3lB9 -19qzUJwBl2BMxslU1XsJQw9SK10lPbQm4asa8E8e5zTUknZBWnECAwEAAaOBizCB -iDAfBgNVHSMEGDAWgBT2uAQnDlYW2blj2f2hVGVBoAhILzAdBgNVHQ4EFgQU9rgE -Jw5WFtm5Y9n9oVRlQaAISC8wDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB -Af8wJQYDVR0gBB4wHDAMBgpghkgBZQMCAQwBMAwGCmCGSAFlAwIBDAIwDQYJKoZI -hvcNAQEFBQADgYEAHh0EQY2cZ209aBb5q0wW1ER0dc4OGzsLyqjHfaQ4TEaMmUwL -AJRta/c4KVWLiwbODsvgJk+CaWmSL03gRW/ciVb/qDV7qh9Pyd1cOlanZTAnPog2 -i82yL3i2fK9DCC84uoxEQbgqK2jx9bIjFTwlAqITk9fGAm5mdT84IEwq1Gw= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh -MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 -d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH -MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT -MRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j -b20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG -9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI -2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx -1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ -q2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz -tCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ -vIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP -BgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV -5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY -1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4 -NeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG -Fdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91 -8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe -pLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl -MrY= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFSzCCAzOgAwIBAgIRALZLiAfiI+7IXBKtpg4GofIwDQYJKoZIhvcNAQELBQAw -PzELMAkGA1UEBhMCVFcxMDAuBgNVBAoMJ0dvdmVybm1lbnQgUm9vdCBDZXJ0aWZp -Y2F0aW9uIEF1dGhvcml0eTAeFw0xMjA5MjgwODU4NTFaFw0zNzEyMzExNTU5NTla -MD8xCzAJBgNVBAYTAlRXMTAwLgYDVQQKDCdHb3Zlcm5tZW50IFJvb3QgQ2VydGlm -aWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC -AQC2/5c8gb4BWCQnr44BK9ZykjAyG1+bfNTUf+ihYHMwVxAA+lCWJP5Q5ow6ldFX -eYTVZ1MMKoI+GFy4MCYa1l7GLbIEUQ7v3wxjR+vEEghRK5lxXtVpe+FdyXcdIOxW -juVhYC386RyA3/pqg7sFtR4jEpyCygrzFB0g5AaPQySZn7YKk1pzGxY5vgW28Yyl -ZJKPBeRcdvc5w88tvQ7Yy6gOMZvJRg9nU0MEj8iyyIOAX7ryD6uBNaIgIZfOD4k0 -eA/PH07p+4woPN405+2f0mb1xcoxeNLOUNFggmOd4Ez3B66DNJ1JSUPUfr0t4urH -cWWACOQ2nnlwCjyHKenkkpTqBpIpJ3jmrdc96QoLXvTg1oadLXLLi2RW5vSueKWg -OTNYPNyoj420ai39iHPplVBzBN8RiD5C1gJ0+yzEb7xs1uCAb9GGpTJXA9ZN9E4K -mSJ2fkpAgvjJ5E7LUy3Hsbbi08J1J265DnGyNPy/HE7CPfg26QrMWJqhGIZO4uGq -s3NZbl6dtMIIr69c/aQCb/+4DbvVq9dunxpPkUDwH0ZVbaCSw4nNt7H/HLPLo5wK -4/7NqrwB7N1UypHdTxOHpPaY7/1J1lcqPKZc9mA3v9g+fk5oKiMyOr5u5CI9ByTP -isubXVGzMNJxbc5Gim18SjNE2hIvNkvy6fFRCW3bapcOFwIDAQABo0IwQDAPBgNV -HRMBAf8EBTADAQH/MB0GA1UdDgQWBBTVZx3gnHosnMvFmOcdByYqhux0zTAOBgNV -HQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggIBAJA75cJTQijq9TFOjj2Rnk0J -89ixUuZPrAwxIbvx6pnMg/y2KOTshAcOD06Xu29oRo8OURWV+Do7H1+CDgxxDryR -T64zLiNB9CZrTxOH+nj2LsIPkQWXqmrBap+8hJ4IKifd2ocXhuGzyl3tOKkpboTe -Rmv8JxlQpRJ6jH1i/NrnzLyfSa8GuCcn8on3Fj0Y5r3e9YwSkZ/jBI3+BxQaWqw5 -ghvxOBnhY+OvbLamURfr+kvriyL2l/4QOl+UoEtTcT9a4RD4co+WgN2NApgAYT2N -vC2xR8zaXeEgp4wxXPHj2rkKhkfIoT0Hozymc26Uke1uJDr5yTDRB6iBfSZ9fYTf -hsmL5a4NHr6JSFEVg5iWL0rrczTXdM3Jb9DCuiv2mv6Z3WAUjhv5nDk8f0OJU+jl -wqu+Iq0nOJt3KLejY2OngeepaUXrjnhWzAWEx/uttjB8YwWfLYwkf0uLkvw4Hp+g -pVezbp3YZLhwmmBScMip0P/GnO0QYV7Ngw5u6E0CQUridgR51lQ/ipgyFKDdLZzn -uoJxo4ZVKZnSKdt1OvfbQ/+2W/u3fjWAjg1srnm3Ni2XUqGwB5wH5Ss2zQOXlL0t -DjQG/MAWifw3VOTWzz0TBPKR2ck2Lj7FWtClTILD/y58Jnb38/1FoqVuVa4uzM8s -iTTa9g3nkagQ6hed8vbs ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMC -VVMxFDASBgNVBAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQ -cmVtaXVtIEVDQzAeFw0xMDAxMjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJ -BgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1UcnVzdDEgMB4GA1UEAwwXQWZmaXJt -VHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQNMF4bFZ0D -0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQN8O9 -ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0G -A1UdDgQWBBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4G -A1UdDwEB/wQEAwIBBjAKBggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/Vs -aobgxCd05DhT1wV/GzTjxi+zygk8N53X57hG8f2h4nECMEJZh0PUUd+60wkyWs6I -flc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKMeQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFWTCCA0GgAwIBAgIBAjANBgkqhkiG9w0BAQsFADBOMQswCQYDVQQGEwJOTzEd -MBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxIDAeBgNVBAMMF0J1eXBhc3Mg -Q2xhc3MgMiBSb290IENBMB4XDTEwMTAyNjA4MzgwM1oXDTQwMTAyNjA4MzgwM1ow -TjELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVMtOTgzMTYzMzI3MSAw -HgYDVQQDDBdCdXlwYXNzIENsYXNzIDIgUm9vdCBDQTCCAiIwDQYJKoZIhvcNAQEB -BQADggIPADCCAgoCggIBANfHXvfBB9R3+0Mh9PT1aeTuMgHbo4Yf5FkNuud1g1Lr -6hxhFUi7HQfKjK6w3Jad6sNgkoaCKHOcVgb/S2TwDCo3SbXlzwx87vFKu3MwZfPV -L4O2fuPn9Z6rYPnT8Z2SdIrkHJasW4DptfQxh6NR/Md+oW+OU3fUl8FVM5I+GC91 -1K2GScuVr1QGbNgGE41b/+EmGVnAJLqBcXmQRFBoJJRfuLMR8SlBYaNByyM21cHx -MlAQTn/0hpPshNOOvEu/XAFOBz3cFIqUCqTqc/sLUegTBxj6DvEr0VQVfTzh97QZ -QmdiXnfgolXsttlpF9U6r0TtSsWe5HonfOV116rLJeffawrbD02TTqigzXsu8lkB -arcNuAeBfos4GzjmCleZPe4h6KP1DBbdi+w0jpwqHAAVF41og9JwnxgIzRFo1clr -Us3ERo/ctfPYV3Me6ZQ5BL/T3jjetFPsaRyifsSP5BtwrfKi+fv3FmRmaZ9JUaLi -FRhnBkp/1Wy1TbMz4GHrXb7pmA8y1x1LPC5aAVKRCfLf6o3YBkBjqhHk/sM3nhRS -P/TizPJhk9H9Z2vXUq6/aKtAQ6BXNVN48FP4YUIHZMbXb5tMOA1jrGKvNouicwoN -9SG9dKpN6nIDSdvHXx1iY8f93ZHsM+71bbRuMGjeyNYmsHVee7QHIJihdjK4TWxP -AgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFMmAd+BikoL1Rpzz -uvdMw964o605MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQsFAAOCAgEAU18h -9bqwOlI5LJKwbADJ784g7wbylp7ppHR/ehb8t/W2+xUbP6umwHJdELFx7rxP462s -A20ucS6vxOOto70MEae0/0qyexAQH6dXQbLArvQsWdZHEIjzIVEpMMpghq9Gqx3t -OluwlN5E40EIosHsHdb9T7bWR9AUC8rmyrV7d35BH16Dx7aMOZawP5aBQW9gkOLo -+fsicdl9sz1Gv7SEr5AcD48Saq/v7h56rgJKihcrdv6sVIkkLE8/trKnToyokZf7 -KcZ7XC25y2a2t6hbElGFtQl+Ynhw/qlqYLYdDnkM/crqJIByw5c/8nerQyIKx+u2 -DISCLIBrQYoIwOula9+ZEsuK1V6ADJHgJgg2SMX6OBE1/yWDLfJ6v9r9jv6ly0Us -H8SIU653DtmadsWOLB2jutXsMq7Aqqz30XpN69QH4kj3Io6wpJ9qzo6ysmD0oyLQ -I+uUWnpp3Q+/QFesa1lQ2aOZ4W7+jQF5JyMV3pKdewlNWudLSDBaGOYKbeaP4NK7 -5t98biGCwWg5TbSYWGZizEqQXsP6JwSxeRV0mcy+rSDeJmAc61ZRpqPq5KM/p/9h -3PFaTWwyI0PurKju7koSCTxdccK+efrCh2gdC/1cacwG0Jp9VJkqyTkaGa9LKkPz -Y11aWOIv4x3kqdbQCtCev9eBCfHJxyYNrJgWVqA= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFaTCCA1GgAwIBAgIJAMMDmu5QkG4oMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNV -BAYTAlNLMRMwEQYDVQQHEwpCcmF0aXNsYXZhMRMwEQYDVQQKEwpEaXNpZyBhLnMu -MRkwFwYDVQQDExBDQSBEaXNpZyBSb290IFIxMB4XDTEyMDcxOTA5MDY1NloXDTQy -MDcxOTA5MDY1NlowUjELMAkGA1UEBhMCU0sxEzARBgNVBAcTCkJyYXRpc2xhdmEx -EzARBgNVBAoTCkRpc2lnIGEucy4xGTAXBgNVBAMTEENBIERpc2lnIFJvb3QgUjEw -ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCqw3j33Jijp1pedxiy3QRk -D2P9m5YJgNXoqqXinCaUOuiZc4yd39ffg/N4T0Dhf9Kn0uXKE5Pn7cZ3Xza1lK/o -OI7bm+V8u8yN63Vz4STN5qctGS7Y1oprFOsIYgrY3LMATcMjfF9DCCMyEtztDK3A -fQ+lekLZWnDZv6fXARz2m6uOt0qGeKAeVjGu74IKgEH3G8muqzIm1Cxr7X1r5OJe -IgpFy4QxTaz+29FHuvlglzmxZcfe+5nkCiKxLU3lSCZpq+Kq8/v8kiky6bM+TR8n -oc2OuRf7JT7JbvN32g0S9l3HuzYQ1VTW8+DiR0jm3hTaYVKvJrT1cU/J19IG32PK -/yHoWQbgCNWEFVP3Q+V8xaCJmGtzxmjOZd69fwX3se72V6FglcXM6pM6vpmumwKj -rckWtc7dXpl4fho5frLABaTAgqWjR56M6ly2vGfb5ipN0gTco65F97yLnByn1tUD -3AjLLhbKXEAz6GfDLuemROoRRRw1ZS0eRWEkG4IupZ0zXWX4Qfkuy5Q/H6MMMSRE -7cderVC6xkGbrPAXZcD4XW9boAo0PO7X6oifmPmvTiT6l7Jkdtqr9O3jw2Dv1fkC -yC2fg69naQanMVXVz0tv/wQFx1isXxYb5dKj6zHbHzMVTdDypVP1y+E9Tmgt2BLd -qvLmTZtJ5cUoobqwWsagtQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1Ud -DwEB/wQEAwIBBjAdBgNVHQ4EFgQUiQq0OJMa5qvum5EY+fU8PjXQ04IwDQYJKoZI -hvcNAQEFBQADggIBADKL9p1Kyb4U5YysOMo6CdQbzoaz3evUuii+Eq5FLAR0rBNR -xVgYZk2C2tXck8An4b58n1KeElb21Zyp9HWc+jcSjxyT7Ff+Bw+r1RL3D65hXlaA -SfX8MPWbTx9BLxyE04nH4toCdu0Jz2zBuByDHBb6lM19oMgY0sidbvW9adRtPTXo -HqJPYNcHKfyyo6SdbhWSVhlMCrDpfNIZTUJG7L399ldb3Zh+pE3McgODWF3vkzpB -emOqfDqo9ayk0d2iLbYq/J8BjuIQscTK5GfbVSUZP/3oNn6z4eGBrxEWi1CXYBmC -AMBrTXO40RMHPuq2MU/wQppt4hF05ZSsjYSVPCGvxdpHyN85YmLLW1AL14FABZyb -7bq2ix4Eb5YgOe2kfSnbSM6C3NQCjR0EMVrHS/BsYVLXtFHCgWzN4funodKSds+x -DzdYpPJScWc/DIh4gInByLUfkmO+p3qKViwaqKactV2zY9ATIKHrkWzQjX2v3wvk -F7mGnjixlAxYjOBVqjtjbZqJYLhkKpLGN/R+Q0O3c+gB53+XD9fyexn9GtePyfqF -a3qdnom2piiZk4hA9z7NUaPK6u95RyG1/jLix8NRb76AdPCkwzryT+lf3xkK8jsT -Q6wxpLPn6/wY1gGp8yqPNg7rtLG8t0zJa7+h89n07eLw4+1knj0vllJPgFOL ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID9jCCAt6gAwIBAgIQJDJ18h0v0gkz97RqytDzmDANBgkqhkiG9w0BAQsFADCB -lDELMAkGA1UEBhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8w -HQYDVQQLExZTeW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRl -YyBDbGFzcyAxIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -IC0gRzYwHhcNMTExMDE4MDAwMDAwWhcNMzcxMjAxMjM1OTU5WjCBlDELMAkGA1UE -BhMCVVMxHTAbBgNVBAoTFFN5bWFudGVjIENvcnBvcmF0aW9uMR8wHQYDVQQLExZT -eW1hbnRlYyBUcnVzdCBOZXR3b3JrMUUwQwYDVQQDEzxTeW1hbnRlYyBDbGFzcyAx -IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzYwggEi -MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHOddJZKmZgiJM6kXZBxbje/SD -6Jlz+muxNuCad6BAwoGNAcfMjL2Pffd543pMA03Z+/2HOCgs3ZqLVAjbZ/sbjP4o -ki++t7JIp4Gh2F6Iw8w5QEFa0dzl2hCfL9oBTf0uRnz5LicKaTfukaMbasxEvxvH -w9QRslBglwm9LiL1QYRmn81ApqkAgMEflZKf3vNI79sdd2H8f9/ulqRy0LY+/3gn -r8uSFWkI22MQ4uaXrG7crPaizh5HmbmJtxLmodTNWRFnw2+F2EJOKL5ZVVkElauP -N4C/DfD8HzpkMViBeNfiNfYgPym4jxZuPkjctUwH4fIa6n4KedaovetdhitNAgMB -AAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQW -BBQzQejIORIVk0jyljIuWvXalF9TYDANBgkqhkiG9w0BAQsFAAOCAQEAFeNzV7EX -tl9JaUSm9l56Z6zS3nVJq/4lVcc6yUQVEG6/MWvL2QeTfxyFYwDjMhLgzMv7OWyP -4lPiPEAz2aSMR+atWPuJr+PehilWNCxFuBL6RIluLRQlKCQBZdbqUqwFblYSCT3Q -dPTXvQbKqDqNVkL6jXI+dPEDct+HG14OelWWLDi3mIXNTTNEyZSPWjEwN0ujOhKz -5zbRIWhLLTjmU64cJVYIVgNnhJ3Gw84kYsdMNs+wBkS39V8C3dlU6S+QTnrIToNA -DJqXPDe/v+z28LSFdyjBC8hnghAXOKK3Buqbvzr46SMHv3TgmDgVVXjucgBcGaP0 -0jPg/73RVDkpDw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFaTCCA1GgAwIBAgIJAJK4iNuwisFjMA0GCSqGSIb3DQEBCwUAMFIxCzAJBgNV -BAYTAlNLMRMwEQYDVQQHEwpCcmF0aXNsYXZhMRMwEQYDVQQKEwpEaXNpZyBhLnMu -MRkwFwYDVQQDExBDQSBEaXNpZyBSb290IFIyMB4XDTEyMDcxOTA5MTUzMFoXDTQy -MDcxOTA5MTUzMFowUjELMAkGA1UEBhMCU0sxEzARBgNVBAcTCkJyYXRpc2xhdmEx -EzARBgNVBAoTCkRpc2lnIGEucy4xGTAXBgNVBAMTEENBIERpc2lnIFJvb3QgUjIw -ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCio8QACdaFXS1tFPbCw3Oe -NcJxVX6B+6tGUODBfEl45qt5WDza/3wcn9iXAng+a0EE6UG9vgMsRfYvZNSrXaNH -PWSb6WiaxswbP7q+sos0Ai6YVRn8jG+qX9pMzk0DIaPY0jSTVpbLTAwAFjxfGs3I -x2ymrdMxp7zo5eFm1tL7A7RBZckQrg4FY8aAamkw/dLukO8NJ9+flXP04SXabBbe -QTg06ov80egEFGEtQX6sx3dOy1FU+16SGBsEWmjGycT6txOgmLcRK7fWV8x8nhfR -yyX+hk4kLlYMeE2eARKmK6cBZW58Yh2EhN/qwGu1pSqVg8NTEQxzHQuyRpDRQjrO -QG6Vrf/GlK1ul4SOfW+eioANSW1z4nuSHsPzwfPrLgVv2RvPN3YEyLRa5Beny912 -H9AZdugsBbPWnDTYltxhh5EF5EQIM8HauQhl1K6yNg3ruji6DOWbnuuNZt2Zz9aJ -QfYEkoopKW1rOhzndX0CcQ7zwOe9yxndnWCywmZgtrEE7snmhrmaZkCo5xHtgUUD -i/ZnWejBBhG93c+AAk9lQHhcR1DIm+YfgXvkRKhbhZri3lrVx/k6RGZL5DJUfORs -nLMOPReisjQS1n6yqEm70XooQL6iFh/f5DcfEXP7kAplQ6INfPgGAVUzfbANuPT1 -rqVCV3w2EYx7XsQDnYx5nQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1Ud -DwEB/wQEAwIBBjAdBgNVHQ4EFgQUtZn4r7CU9eMg1gqtzk5WpC5uQu0wDQYJKoZI -hvcNAQELBQADggIBACYGXnDnZTPIgm7ZnBc6G3pmsgH2eDtpXi/q/075KMOYKmFM -tCQSin1tERT3nLXK5ryeJ45MGcipvXrA1zYObYVybqjGom32+nNjf7xueQgcnYqf -GopTpti72TVVsRHFqQOzVju5hJMiXn7B9hJSi+osZ7z+Nkz1uM/Rs0mSO9MpDpkb -lvdhuDvEK7Z4bLQjb/D907JedR+Zlais9trhxTF7+9FGs9K8Z7RiVLoJ92Owk6Ka -+elSLotgEqv89WBW7xBci8QaQtyDW2QOy7W81k/BfDxujRNt+3vrMNDcTa/F1bal -TFtxyegxvug4BkihGuLq0t4SOVga/4AOgnXmt8kHbA7v/zjxmHHEt38OFdAlab0i -nSvtBfZGR6ztwPDUO+Ls7pZbkBNOHlY667DvlruWIxG68kOGdGSVyCh13x01utI3 -gzhTODY7z2zp+WsO0PsE6E9312UBeIYMej4hYvF/Y3EMyZ9E26gnonW+boE+18Dr -G5gPcFw0sorMwIUY6256s/daoQe/qUKS82Ail+QUoQebTnbAjn39pCXHR+3/H3Os -zMOl6W8KjptlwlCFtaOgUxLMVYdh84GuEEZhvUQhuMI9dM9+JDX6HAcOmz0iyu8x -L4ysEr3vQCj8KWefshNPZiTEUxnpHikV7+ZtsH8tZ/3zbBt1RqPlShfppNcL ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEh -MB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBE -YWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3 -MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkGA1UEBhMCVVMxITAfBgNVBAoTGFRo -ZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28gRGFkZHkgQ2xhc3Mg -MiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQADggEN -ADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCA -PVYYYwhv2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6w -wdhFJ2+qN1j3hybX2C32qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXi -EqITLdiOr18SPaAIBQi2XKVlOARFmR6jYGB0xUGlcmIbYsUfb18aQr4CUWWoriMY -avx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmYvLEHZ6IVDd2gWMZEewo+ -YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0OBBYEFNLE -sNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h -/t2oatTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5 -IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmlj -YXRpb24gQXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQAD -ggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wimPQoZ+YeAEW5p5JYXMP80kWNy -OO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKtI3lpjbi2Tc7P -TMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ -HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mER -dEr/VxqHD3VILs9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5Cuf -ReYNnyicsbkqWletNw+vHX/bvZ8= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEGjCCAwKgAwIBAgIDAYagMA0GCSqGSIb3DQEBBQUAMIGjMQswCQYDVQQGEwJG -STEQMA4GA1UECBMHRmlubGFuZDEhMB8GA1UEChMYVmFlc3RvcmVraXN0ZXJpa2Vz -a3VzIENBMSkwJwYDVQQLEyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBTZXJ2aWNl -czEZMBcGA1UECxMQVmFybWVubmVwYWx2ZWx1dDEZMBcGA1UEAxMQVlJLIEdvdi4g -Um9vdCBDQTAeFw0wMjEyMTgxMzUzMDBaFw0yMzEyMTgxMzUxMDhaMIGjMQswCQYD -VQQGEwJGSTEQMA4GA1UECBMHRmlubGFuZDEhMB8GA1UEChMYVmFlc3RvcmVraXN0 -ZXJpa2Vza3VzIENBMSkwJwYDVQQLEyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSBT -ZXJ2aWNlczEZMBcGA1UECxMQVmFybWVubmVwYWx2ZWx1dDEZMBcGA1UEAxMQVlJL -IEdvdi4gUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALCF -FdrIAzfQo0Y3bBseljDCWoUSZyPyu5/nioFgJ/gTqTy894aqqvTzJSm0/nWuHoGG -igWyHWWyOOi0zCia+xc28ZPVec7Bg4shT8MNrUHfeJ1I4x9CRPw8bSEga60ihCRC -jxdNwlAfZM0tOSJWiP2yY51U2kJpwMhP1xjiPshphJQ9LIDGfM6911Mf64i5psu7 -hVfvV3ZdDIvTXhJBnyHAOfQmbQj6OLOhd7HuFtjQaNq0mKWgZUZKa41+qk1guPjI -DfxxPu45h4G02fhukO4/DmHXHSto5i7hQkQmeCxY8n0Wf2HASSQqiYe2XS8pGfim -545SnkFLWg6quMJmQlMCAwEAAaNVMFMwDwYDVR0TAQH/BAUwAwEB/zARBglghkgB -hvhCAQEEBAMCAAcwDgYDVR0PAQH/BAQDAgHGMB0GA1UdDgQWBBTb6eGb0tEkC/yr -46Bn6q6cS3f0sDANBgkqhkiG9w0BAQUFAAOCAQEArX1ID1QRnljurw2bEi8hpM2b -uoRH5sklVSPj3xhYKizbXvfNVPVRJHtiZ+GxH0mvNNDrsczZog1Sf0JLiGCXzyVy -t08pLWKfT6HAVVdWDsRol5EfnGTCKTIB6dTI2riBmCguGMcs/OubUpbf9MiQGS0j -8/G7cdqehSO9Gu8u5Hp5t8OdhkktY7ktdM9lDzJmid87Ie4pbzlj2RXBbvbfgD5Q -eBmK3QOjFKU3p7UsfLYRh+cF8ry23tT/l4EohP7+bEaFEEGfTXWMB9SZZ291im/k -UJL2mdUQuMSpe/cXjUu/15WfCdxEDx4yw8DP03kN5Mc7h/CQNIghYkmSBAQfvA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDujCCAqKgAwIBAgIEAJiWijANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJO -TDEeMBwGA1UEChMVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSYwJAYDVQQDEx1TdGFh -dCBkZXIgTmVkZXJsYW5kZW4gUm9vdCBDQTAeFw0wMjEyMTcwOTIzNDlaFw0xNTEy -MTYwOTE1MzhaMFUxCzAJBgNVBAYTAk5MMR4wHAYDVQQKExVTdGFhdCBkZXIgTmVk -ZXJsYW5kZW4xJjAkBgNVBAMTHVN0YWF0IGRlciBOZWRlcmxhbmRlbiBSb290IENB -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmNK1URF6gaYUmHFtvszn -ExvWJw56s2oYHLZhWtVhCb/ekBPHZ+7d89rFDBKeNVU+LCeIQGv33N0iYfXCxw71 -9tV2U02PjLwYdjeFnejKScfST5gTCaI+Ioicf9byEGW07l8Y1Rfj+MX94p2i71MO -hXeiD+EwR+4A5zN9RGcaC1Hoi6CeUJhoNFIfLm0B8mBF8jHrqTFoKbt6QZ7GGX+U -tFE5A3+y3qcym7RHjm+0Sq7lr7HcsBthvJly3uSJt3omXdozSVtSnA71iq3DuD3o -BmrC1SoLbHuEvVYFy4ZlkuxEK7COudxwC0barbxjiDn622r+I/q85Ej0ZytqERAh -SQIDAQABo4GRMIGOMAwGA1UdEwQFMAMBAf8wTwYDVR0gBEgwRjBEBgRVHSAAMDww -OgYIKwYBBQUHAgEWLmh0dHA6Ly93d3cucGtpb3ZlcmhlaWQubmwvcG9saWNpZXMv -cm9vdC1wb2xpY3kwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSofeu8Y6R0E3QA -7Jbg0zTBLL9s+DANBgkqhkiG9w0BAQUFAAOCAQEABYSHVXQ2YcG70dTGFagTtJ+k -/rvuFbQvBgwp8qiSpGEN/KtcCFtREytNwiphyPgJWPwtArI5fZlmgb9uXJVFIGzm -eafR2Bwp/MIgJ1HI8XxdNGdphREwxgDS1/PTfLbwMVcoEoJz6TMvplW0C5GUR5z6 -u3pCMuiufi3IvKwUv9kP2Vv8wfl6leF9fpb8cbDCTMjfRTTJzg3ynGQI0DvDKcWy -7ZAEwbEpkcUwb8GpcjPM/l0WFywRaed+/sWDCN+83CI6LiBpIzlWYGeQiy52OfsR -iJf2fL1LuCAWZwWN4jvBcj+UlTfHXbme2JOhF4//DGYVwSR8MnwDHTuhWEUykw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDEl -MCMGA1UEChMcU0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMe -U2VjdXJpdHkgQ29tbXVuaWNhdGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoX -DTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMCSlAxJTAjBgNVBAoTHFNFQ09NIFRy -dXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3VyaXR5IENvbW11bmlj -YXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANAV -OVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGr -zbl+dp+++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVM -VAX3NuRFg3sUZdbcDE3R3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQ -hNBqyjoGADdH5H5XTz+L62e4iKrFvlNVspHEfbmwhRkGeC7bYRr6hfVKkaHnFtWO -ojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1KEOtOghY6rCcMU/Gt1SSw -awNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8QIH4D5cs -OPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3 -DQEBCwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpF -coJxDjrSzG+ntKEju/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXc -okgfGT+Ok+vx+hfuzU7jBBJV1uXk3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8 -t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6qtnRGEmyR7jTV7JqR50S+kDFy -1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29mvVXIwAHIRc/ -SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEHjCCAwagAwIBAgIBATANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJTRTEU -MBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3 -b3JrMSMwIQYDVQQDExpBZGRUcnVzdCBRdWFsaWZpZWQgQ0EgUm9vdDAeFw0wMDA1 -MzAxMDQ0NTBaFw0yMDA1MzAxMDQ0NTBaMGcxCzAJBgNVBAYTAlNFMRQwEgYDVQQK -EwtBZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQIE5ldHdvcmsxIzAh -BgNVBAMTGkFkZFRydXN0IFF1YWxpZmllZCBDQSBSb290MIIBIjANBgkqhkiG9w0B -AQEFAAOCAQ8AMIIBCgKCAQEA5B6a/twJWoekn0e+EV+vhDTbYjx5eLfpMLXsDBwq -xBb/4Oxx64r1EW7tTw2R0hIYLUkVAcKkIhPHEWT/IhKauY5cLwjPcWqzZwFZ8V1G -87B4pfYOQnrjfxvM0PC3KP0q6p6zsLkEqv32x7SxuCqg+1jxGaBvcCV+PmlKfw8i -2O+tCBGaKZnhqkRFmhJePp1tUvznoD1oL/BLcHwTOK28FSXx1s6rosAx1i+f4P8U -WfyEk9mHfExUE+uf0S0R+Bg6Ot4l2ffTQO2kBhLEO+GRwVY18BTcZTYJbqukB8c1 -0cIDMzZbdSZtQvESa0NvS3GU+jQd7RNuyoB/mC9suWXY6QIDAQABo4HUMIHRMB0G -A1UdDgQWBBQ5lYtii1zJ1IC6WA+XPxUIQ8yYpzALBgNVHQ8EBAMCAQYwDwYDVR0T -AQH/BAUwAwEB/zCBkQYDVR0jBIGJMIGGgBQ5lYtii1zJ1IC6WA+XPxUIQ8yYp6Fr -pGkwZzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQL -ExRBZGRUcnVzdCBUVFAgTmV0d29yazEjMCEGA1UEAxMaQWRkVHJ1c3QgUXVhbGlm -aWVkIENBIFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBABmrder4i2VhlRO6aQTv -hsoToMeqT2QbPxj2qC0sVY8FtzDqQmodwCVRLae/DLPt7wh/bDxGGuoYQ992zPlm -hpwsaPXpF/gxsxjE1kh9I0xowX67ARRvxdlu3rsEQmr49lx95dr6h+sNNVJn0J6X -dgWTP5XHAeZpVTh/EGGZyeNfpso+gmNIquIISD6q8rKFYqa0p9m9N5xotS1WfbC3 -P6CxB9bpT9zeRXEwMn8bLgn5v1Kh7sKAPgZcLlVAwRv1cEWw3F369nJad9Jjzc9Y -iQBCYz95OdBEsIJuQRno3eDBiFrRHnGTHyQwdOUeqN48Jzd/g66ed8/wMLH/S5no -xqE= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIEXDCCA0SgAwIBAgIEOGO5ZjANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChML -RW50cnVzdC5uZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBp -bmNvcnAuIGJ5IHJlZi4gKGxpbWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5 -IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNVBAMTKkVudHJ1c3QubmV0IENlcnRp -ZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQxNzUwNTFaFw0xOTEy -MjQxODIwNTFaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3d3d3 -LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxp -YWIuKTElMCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEG -A1UEAxMqRW50cnVzdC5uZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgp -MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArU1LqRKGsuqjIAcVFmQq -K0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOLGp18EzoOH1u3Hs/lJBQe -sYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSrhRSGlVuX -MlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVT -XTzWnLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/ -HoZdenoVve8AjhUiVBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH -4QIDAQABo3QwcjARBglghkgBhvhCAQEEBAMCAAcwHwYDVR0jBBgwFoAUVeSB0RGA -vtiJuQijMfmhJAkWuXAwHQYDVR0OBBYEFFXkgdERgL7YibkIozH5oSQJFrlwMB0G -CSqGSIb2fQdBAAQQMA4bCFY1LjA6NC4wAwIEkDANBgkqhkiG9w0BAQUFAAOCAQEA -WUesIYSKF8mciVMeuoCFGsY8Tj6xnLZ8xpJdGGQC49MGCBFhfGPjK50xA3B20qMo -oPS7mmNz7W3lKtvtFKkrxjYR0CvrB4ul2p5cGZ1WEvVUKcgF7bISKo30Axv/55IQ -h7A6tcOdBTcSo8f0FbnVpDkWm1M6I5HxqIKiaohowXkCIryqptau37AUX7iH0N18 -f3v/rxzP5tsHrV7bhZ3QKw0z2wTR5klAEyt2+z7pnIkPFc4YsIV4IU9rTw76NmfN -B/L/CNDi3tm/Kq+4h4YhPATKt5Rof8886ZjXOP/swNlQ8C5LWK5Gb9Auw2DaclVy -vUxFnmG6v4SBkgPR0ml8xQ== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFkjCCA3qgAwIBAgIIAeDltYNno+AwDQYJKoZIhvcNAQEMBQAwZzEbMBkGA1UE -AwwSQXBwbGUgUm9vdCBDQSAtIEcyMSYwJAYDVQQLDB1BcHBsZSBDZXJ0aWZpY2F0 -aW9uIEF1dGhvcml0eTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMw -HhcNMTQwNDMwMTgxMDA5WhcNMzkwNDMwMTgxMDA5WjBnMRswGQYDVQQDDBJBcHBs -ZSBSb290IENBIC0gRzIxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0 -aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzCCAiIwDQYJ -KoZIhvcNAQEBBQADggIPADCCAgoCggIBANgREkhI2imKScUcx+xuM23+TfvgHN6s -XuI2pyT5f1BrTM65MFQn5bPW7SXmMLYFN14UIhHF6Kob0vuy0gmVOKTvKkmMXT5x -ZgM4+xb1hYjkWpIMBDLyyED7Ul+f9sDx47pFoFDVEovy3d6RhiPw9bZyLgHaC/Yu -OQhfGaFjQQscp5TBhsRTL3b2CtcM0YM/GlMZ81fVJ3/8E7j4ko380yhDPLVoACVd -J2LT3VXdRCCQgzWTxb+4Gftr49wIQuavbfqeQMpOhYV4SbHXw8EwOTKrfl+q04tv -ny0aIWhwZ7Oj8ZhBbZF8+NfbqOdfIRqMM78xdLe40fTgIvS/cjTf94FNcX1RoeKz -8NMoFnNvzcytN31O661A4T+B/fc9Cj6i8b0xlilZ3MIZgIxbdMYs0xBTJh0UT8TU -gWY8h2czJxQI6bR3hDRSj4n4aJgXv8O7qhOTH11UL6jHfPsNFL4VPSQ08prcdUFm -IrQB1guvkJ4M6mL4m1k8COKWNORj3rw31OsMiANDC1CvoDTdUE0V+1ok2Az6DGOe -HwOx4e7hqkP0ZmUoNwIx7wHHHtHMn23KVDpA287PT0aLSmWaasZobNfMmRtHsHLD -d4/E92GcdB/O/WuhwpyUgquUoue9G7q5cDmVF8Up8zlYNPXEpMZ7YLlmQ1A/bmH8 -DvmGqmAMQ0uVAgMBAAGjQjBAMB0GA1UdDgQWBBTEmRNsGAPCe8CjoA1/coB6HHcm -jTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQwF -AAOCAgEAUabz4vS4PZO/Lc4Pu1vhVRROTtHlznldgX/+tvCHM/jvlOV+3Gp5pxy+ -8JS3ptEwnMgNCnWefZKVfhidfsJxaXwU6s+DDuQUQp50DhDNqxq6EWGBeNjxtUVA -eKuowM77fWM3aPbn+6/Gw0vsHzYmE1SGlHKy6gLti23kDKaQwFd1z4xCfVzmMX3z -ybKSaUYOiPjjLUKyOKimGY3xn83uamW8GrAlvacp/fQ+onVJv57byfenHmOZ4VxG -/5IFjPoeIPmGlFYl5bRXOJ3riGQUIUkhOb9iZqmxospvPyFgxYnURTbImHy99v6Z -SYA7LNKmp4gDBDEZt7Y6YUX6yfIjyGNzv1aJMbDZfGKnexWoiIqrOEDCzBL/FePw -N983csvMmOa/orz6JopxVtfnJBtIRD6e/J/JzBrsQzwBvDR4yGn1xuZW7AYJNpDr -FEobXsmII9oDMJELuDY++ee1KG++P+w8j2Ud5cAeh6Squpj9kuNsJnfdBrRkBof0 -Tta6SqoWqPQFZ2aWuuJVecMsXUmPgEkrihLHdoBR37q9ZV0+N0djMenl9MU/S60E -inpxLK8JQzcPqOMyT/RFtm2XNuyE9QoB6he7hY1Ck3DDUOUUi78/w0EP3SIEIwiK -um1xRKtzCTrJ+VKACd+66eYWyi4uTLLT3OUEVLLUNIAytbwPF+E= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDtDCCApygAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJKUDEc -MBoGA1UEChMTSmFwYW5lc2UgR292ZXJubWVudDEOMAwGA1UECxMFTVBIUFQxJjAk -BgNVBAsTHU1QSFBUIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTAyMDMxNDA3 -NTAyNloXDTEyMDMxMzE0NTk1OVowYzELMAkGA1UEBhMCSlAxHDAaBgNVBAoTE0ph -cGFuZXNlIEdvdmVybm1lbnQxDjAMBgNVBAsTBU1QSFBUMSYwJAYDVQQLEx1NUEhQ -VCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEP -ADCCAQoCggEBAI3GUWlK9G9FVm8DhpKu5t37oxZbj6lZcFvEZY07YrYojWO657ub -z56WE7q/PI/6Sm7i7qYE+Vp80r6thJvfmn7SS3BENrRqiapSenhooYD12jIe3iZQ -2SXqx7WgYwyBGdQwGaYTijzbRFpgc0K8o4a99fIoHhz9J8AKqXasddMCqfJRaH30 -YJ7HnOvRYGL6HBrGhJ7X4Rzijyk9a9+3VOBsYcnIlx9iODoiYhA6r0ojuIu8/JA1 -oTTZrS0MyU/SLdFdJze2O1wnqTULXQybzJz3ad6oC/F5a69c0m92akYd9nGBrPxj -EhucaQynC/QoCLs3aciLgioAnEJqy7i3EgUCAwEAAaNzMHEwHwYDVR0jBBgwFoAU -YML3pLoA0h93Yngl8Gb/UgAh73owHQYDVR0OBBYEFGDC96S6ANIfd2J4JfBm/1IA -Ie96MAwGA1UdEwQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQE -AwIABTANBgkqhkiG9w0BAQUFAAOCAQEANPR8DN66iWZBs/lSm1vOzhqRkXDLT6xL -LvJtjPLqmE469szGyFSKzsof6y+/8YgZlOoeX1inF4ox/SH1ATnwdIIsPbXuRLjt -axboXvBh5y2ffC3hmzJVvJ87tb6mVWQeL9VFUhNhAI0ib+9OIZVEYI/64MFkDk4e -iWG5ts6oqIJH1V7dVZg6pQ1Tc0Ckhn6N1m1hD30S0/zoPn/20Wq6OCF3he8VJrRG -dcW9BD/Bkesko1HKhMBDjHVrJ8cFwbnDSoo+Ki47eJWaz/cOzaSsaMVUsR5POava -/abhhgHn/eOJdXiVslyK0DYscjsdB3aBUfwZlomxYOzG6CgjQPhJdw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIID9zCCAt+gAwIBAgILMTI1MzcyODI4MjgwDQYJKoZIhvcNAQELBQAwWDELMAkG -A1UEBhMCSlAxHDAaBgNVBAoTE0phcGFuZXNlIEdvdmVybm1lbnQxDTALBgNVBAsT -BEdQS0kxHDAaBgNVBAMTE0FwcGxpY2F0aW9uQ0EyIFJvb3QwHhcNMTMwMzEyMTUw -MDAwWhcNMzMwMzEyMTUwMDAwWjBYMQswCQYDVQQGEwJKUDEcMBoGA1UEChMTSmFw -YW5lc2UgR292ZXJubWVudDENMAsGA1UECxMER1BLSTEcMBoGA1UEAxMTQXBwbGlj -YXRpb25DQTIgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKaq -rSVl1gAR1uh6dqr05rRL88zDUrSNrKZPtZJxb0a11a2LEiIXJc5F6BR6hZrkIxCo -+rFnUOVtR+BqiRPjrq418fRCxQX3TZd+PCj8sCaRHoweOBqW3FhEl2LjMsjRFUFN -dZh4vqtoqV7tR76kuo6hApfek3SZbWe0BSXulMjtqqS6MmxCEeu+yxcGkOGThchk -KM4fR8fAXWDudjbcMztR63vPctgPeKgZggiQPhqYjY60zxU2pm7dt+JNQCBT2XYq -0HisifBPizJtROouurCp64ndt295D6uBbrjmiykLWa+2SQ1RLKn9nShjZrhwlXOa -2Po7M7xCQhsyrLEy+z0CAwEAAaOBwTCBvjAdBgNVHQ4EFgQUVqesqgIdsqw9kA6g -by5Bxnbne9owDgYDVR0PAQH/BAQDAgEGMHwGA1UdEQR1MHOkcTBvMQswCQYDVQQG -EwJKUDEYMBYGA1UECgwP5pel5pys5Zu95pS/5bqcMRswGQYDVQQLDBLmlL/lupzo -qo3oqLzln7rnm6QxKTAnBgNVBAMMIOOCouODl+ODquOCseODvOOCt+ODp+ODs0NB -MiBSb290MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAH+aCXWs -B9FydC53VzDCBJzUgKaD56WgG5/+q/OAvdVKo6GPtkxgEefK4WCB10jBIFmlYTKL -nZ6X02aD2mUuWD7b5S+lzYxzplG+WCigeVxpL0PfY7KJR8q73rk0EWOgDiUX5Yf0 -HbCwpc9BqHTG6FPVQvSCLVMJEWgmcZR1E02qdog8dLHW40xPYsNJTE5t8XB+w3+m -Bcx4m+mB26jIx1ye/JKSLaaX8ji1bnOVDMA/zqaUMLX6BbfeniCq/BNkyYq6ZO/i -Y+TYmK5rtT6mVbgzPixy+ywRAPtbFi+E0hOe+gXFwctyTiLdhMpLvNIthhoEdlkf -SUJiOxMfFui61/0= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJV -UzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2Vy -dGlmaWNhdGUgQXV0aG9yaXR5MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1 -MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoTB0VxdWlmYXgxLTArBgNVBAsTJEVx -dWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCBnzANBgkqhkiG9w0B -AQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPRfM6f -BeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+A -cJkVV5MW8Q+XarfCaCMczE1ZMKxRHjuvK9buY0V7xdlfUNLjUA86iOe/FP3gx7kC -AwEAAaOCAQkwggEFMHAGA1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQ -MA4GA1UEChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlm -aWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoGA1UdEAQTMBGBDzIwMTgw -ODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvSspXXR9gj -IBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQF -MAMBAf8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUA -A4GBAFjOKer89961zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y -7qj/WsjTVbJmcVfewCHrPSqnI0kBBIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh -1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee9570+sB3c4 ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDEL -MAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChj -KSAyMDA3IEdlb1RydXN0IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2 -MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0 -eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1OVowgZgxCzAJBgNV -BAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykgMjAw -NyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNV -BAMTLUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBH -MjB2MBAGByqGSM49AgEGBSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcL -So17VDs6bl8VAsBQps8lL33KSLjHUGMcKiEIfJo22Av+0SbFWDEwKCXzXV2juLal -tJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAO -BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+EVXVMAoG -CCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGT -qQ7mndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBucz -rD6ogRLQy7rQkgu2npaqBA+K ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIFcDCCA1igAwIBAgIEAJiWjTANBgkqhkiG9w0BAQsFADBYMQswCQYDVQQGEwJO -TDEeMBwGA1UECgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSkwJwYDVQQDDCBTdGFh -dCBkZXIgTmVkZXJsYW5kZW4gRVYgUm9vdCBDQTAeFw0xMDEyMDgxMTE5MjlaFw0y -MjEyMDgxMTEwMjhaMFgxCzAJBgNVBAYTAk5MMR4wHAYDVQQKDBVTdGFhdCBkZXIg -TmVkZXJsYW5kZW4xKTAnBgNVBAMMIFN0YWF0IGRlciBOZWRlcmxhbmRlbiBFViBS -b290IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA48d+ifkkSzrS -M4M1LGns3Amk41GoJSt5uAg94JG6hIXGhaTK5skuU6TJJB79VWZxXSzFYGgEt9nC -UiY4iKTWO0Cmws0/zZiTs1QUWJZV1VD+hq2kY39ch/aO5ieSZxeSAgMs3NZmdO3d -Z//BYY1jTw+bbRcwJu+r0h8QoPnFfxZpgQNH7R5ojXKhTbImxrpsX23Wr9GxE46p -rfNeaXUmGD5BKyF/7otdBwadQ8QpCiv8Kj6GyzyDOvnJDdrFmeK8eEEzduG/L13l -pJhQDBXd4Pqcfzho0LKmeqfRMb1+ilgnQ7O6M5HTp5gVXJrm0w912fxBmJc+qiXb -j5IusHsMX/FjqTf5m3VpTCgmJdrV8hJwRVXj33NeN/UhbJCONVrJ0yPr08C+eKxC -KFhmpUZtcALXEPlLVPxdhkqHz3/KRawRWrUgUY0viEeXOcDPusBCAUCZSCELa6fS -/ZbV0b5GnUngC6agIk440ME8MLxwjyx1zNDFjFE7PZQIZCZhfbnDZY8UnCHQqv0X -cgOPvZuM5l5Tnrmd74K74bzickFbIZTTRTeU0d8JOV3nI6qaHcptqAqGhYqCvkIH -1vI4gnPah1vlPNOePqc7nvQDs/nxfRN0Av+7oeX6AHkcpmZBiFxgV6YuCcS6/ZrP -px9Aw7vMWgpVSzs4dlG4Y4uElBbmVvMCAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB -/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFP6rAJCYniT8qcwaivsnuL8wbqg7 -MA0GCSqGSIb3DQEBCwUAA4ICAQDPdyxuVr5Os7aEAJSrR8kN0nbHhp8dB9O2tLsI -eK9p0gtJ3jPFrK3CiAJ9Brc1AsFgyb/E6JTe1NOpEyVa/m6irn0F3H3zbPB+po3u -2dfOWBfoqSmuc0iH55vKbimhZF8ZE/euBhD/UcabTVUlT5OZEAFTdfETzsemQUHS -v4ilf0X8rLiltTMMgsT7B/Zq5SWEXwbKwYY5EdtYzXc7LMJMD16a4/CrPmEbUCTC -wPTxGfARKbalGAKb12NMcIxHowNDXLldRqANb/9Zjr7dn3LDWyvfjFvO5QxGbJKy -CqNMVEIYFRIYvdr8unRu/8G2oGTYqV9Vrp9canaW2HNnh/tNf1zuacpzEPuKqf2e -vTY4SUmH9A4U8OmHuD+nT3pajnnUk+S7aFKErGzp85hwVXIy+TSrK0m1zSBi5Dp6 -Z2Orltxtrpfs/J92VoguZs9btsmksNcFuuEnL5O7Jiqik7Ab846+HUCjuTaPPoIa -Gl6I6lD4WeKDRikL40Rc4ZW2aZCaFG+XroHPaO+Zmr615+F/+PoTRxZMzG0IQOeL -eG9QgkRQP2YGiqtDhFZKDyAthg710tvSeopLzaXoTvFeJiUBWSOgftL2fiFX1ye8 -FVdMpEbB4IMeDExNH08GGeL5qPQ6gqGyeUN51q1veieQA6TqJIc/2b3Z6fJfUEkc -7uzXLg== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDnzCCAoegAwIBAgIBJjANBgkqhkiG9w0BAQUFADBxMQswCQYDVQQGEwJERTEc -MBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2Vj -IFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENB -IDIwHhcNOTkwNzA5MTIxMTAwWhcNMTkwNzA5MjM1OTAwWjBxMQswCQYDVQQGEwJE -RTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxl -U2VjIFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290 -IENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCrC6M14IspFLEU -ha88EOQ5bzVdSq7d6mGNlUn0b2SjGmBmpKlAIoTZ1KXleJMOaAGtuU1cOs7TuKhC -QN/Po7qCWWqSG6wcmtoIKyUn+WkjR/Hg6yx6m/UTAtB+NHzCnjwAWav12gz1Mjwr -rFDa1sPeg5TKqAyZMg4ISFZbavva4VhYAUlfckE8FQYBjl2tqriTtM2e66foai1S -NNs671x1Udrb8zH57nGYMsRUFUQM+ZtV7a3fGAigo4aKSe5TBY8ZTNXeWHmb0moc -QqvF1afPaA+W5OFhmHZhyJF81j4A4pFQh+GdCuatl9Idxjp9y7zaAzTVjlsB9WoH -txa2bkp/AgMBAAGjQjBAMB0GA1UdDgQWBBQxw3kbuvVT1xfgiXotF2wKsyudMzAP -BgNVHRMECDAGAQH/AgEFMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOC -AQEAlGRZrTlk5ynrE/5aw4sTV8gEJPB0d8Bg42f76Ymmg7+Wgnxu1MM9756Abrsp -tJh6sTtU6zkXR34ajgv8HzFZMQSyzhfzLMdiNlXiItiJVbSYSKpk+tYcNthEeFpa -IzpXl/V6ME+un2pMSyuOoAPjPuCp1NJ70rOo4nI8rZ7/gFnkm0W09juwzTkZmDLl -6iFhkOQxIY40sfcvNUqFENrnijchvllj4PKFiDFT1FQUhXB59C4Gdyd1Lx+4ivn+ -xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU -Cm26OWMohpLzGITY+9HPBVZkVw== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIGSzCCBDOgAwIBAgIIamg+nFGby1MwDQYJKoZIhvcNAQELBQAwgbIxCzAJBgNV -BAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExQDA+BgNVBAoMN0UtVHXEn3JhIEVCRyBC -aWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhpem1ldGxlcmkgQS7Fni4xJjAkBgNV -BAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBNZXJrZXppMSgwJgYDVQQDDB9FLVR1 -Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTEzMDMwNTEyMDk0OFoXDTIz -MDMwMzEyMDk0OFowgbIxCzAJBgNVBAYTAlRSMQ8wDQYDVQQHDAZBbmthcmExQDA+ -BgNVBAoMN0UtVHXEn3JhIEVCRyBCaWxpxZ9pbSBUZWtub2xvamlsZXJpIHZlIEhp -em1ldGxlcmkgQS7Fni4xJjAkBgNVBAsMHUUtVHVncmEgU2VydGlmaWthc3lvbiBN -ZXJrZXppMSgwJgYDVQQDDB9FLVR1Z3JhIENlcnRpZmljYXRpb24gQXV0aG9yaXR5 -MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA4vU/kwVRHoViVF56C/UY -B4Oufq9899SKa6VjQzm5S/fDxmSJPZQuVIBSOTkHS0vdhQd2h8y/L5VMzH2nPbxH -D5hw+IyFHnSOkm0bQNGZDbt1bsipa5rAhDGvykPL6ys06I+XawGb1Q5KCKpbknSF -Q9OArqGIW66z6l7LFpp3RMih9lRozt6Plyu6W0ACDGQXwLWTzeHxE2bODHnv0ZEo -q1+gElIwcxmOj+GMB6LDu0rw6h8VqO4lzKRG+Bsi77MOQ7osJLjFLFzUHPhdZL3D -k14opz8n8Y4e0ypQBaNV2cvnOVPAmJ6MVGKLJrD3fY185MaeZkJVgkfnsliNZvcH -fC425lAcP9tDJMW/hkd5s3kc91r0E+xs+D/iWR+V7kI+ua2oMoVJl0b+SzGPWsut -dEcf6ZG33ygEIqDUD13ieU/qbIWGvaimzuT6w+Gzrt48Ue7LE3wBf4QOXVGUnhMM -ti6lTPk5cDZvlsouDERVxcr6XQKj39ZkjFqzAQqptQpHF//vkUAqjqFGOjGY5RH8 -zLtJVor8udBhmm9lbObDyz51Sf6Pp+KJxWfXnUYTTjF2OySznhFlhqt/7x3U+Lzn -rFpct1pHXFXOVbQicVtbC/DP3KBhZOqp12gKY6fgDT+gr9Oq0n7vUaDmUStVkhUX -U8u3Zg5mTPj5dUyQ5xJwx0UCAwEAAaNjMGEwHQYDVR0OBBYEFC7j27JJ0JxUeVz6 -Jyr+zE7S6E5UMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAULuPbsknQnFR5 -XPonKv7MTtLoTlQwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4ICAQAF -Nzr0TbdF4kV1JI+2d1LoHNgQk2Xz8lkGpD4eKexd0dCrfOAKkEh47U6YA5n+KGCR -HTAduGN8qOY1tfrTYXbm1gdLymmasoR6d5NFFxWfJNCYExL/u6Au/U5Mh/jOXKqY -GwXgAEZKgoClM4so3O0409/lPun++1ndYYRP0lSWE2ETPo+Aab6TR7U1Q9Jauz1c -77NCR807VRMGsAnb/WP2OogKmW9+4c4bU2pEZiNRCHu8W1Ki/QY3OEBhj0qWuJA3 -+GbHeJAAFS6LrVE1Uweoa2iu+U48BybNCAVwzDk/dr2l02cmAYamU9JgO3xDf1WK -vJUawSg5TB9D0pH0clmKuVb8P7Sd2nCcdlqMQ1DujjByTd//SffGqWfZbawCEeI6 -FiWnWAjLb1NBnEg4R2gz0dfHj9R0IdTDBZB6/86WiLEVKV0jq9BgoRJP3vQXzTLl -yb/IQ639Lo7xr+L0mPoSHyDYwKcMhcWQ9DstliaxLL5Mq+ux0orJ23gTDx4JnW2P -AJ8C2sH6H3p6CcRK5ogql5+Ji/03X186zjhZhkuvcQu02PJwT58yE+Owp1fl2tpD -y4Q08ijE6m30Ku/Ba3ba+367hTzSU8JNvnHhRdH9I2cNE3X7z2VnIp2usAnRCf8d -NL/+I5c30jn6PQ0GC7TbO6Orb1wdtn7os4I07QZcJA== ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDtTCCAp2gAwIBAgIIBhDCeat3PfIwDQYJKoZIhvcNAQEFBQAwdjELMAkGA1UE -BhMCQ0gxEjAQBgNVBAoTCVN3aXNzU2lnbjEyMDAGA1UEAxMpU3dpc3NTaWduIENB -IChSU0EgSUsgTWF5IDYgMTk5OSAxODowMDo1OCkxHzAdBgkqhkiG9w0BCQEWEGNh -QFN3aXNzU2lnbi5jb20wHhcNMDAxMTI2MjMyNzQxWhcNMzExMTI2MjMyNzQxWjB2 -MQswCQYDVQQGEwJDSDESMBAGA1UEChMJU3dpc3NTaWduMTIwMAYDVQQDEylTd2lz -c1NpZ24gQ0EgKFJTQSBJSyBNYXkgNiAxOTk5IDE4OjAwOjU4KTEfMB0GCSqGSIb3 -DQEJARYQY2FAU3dpc3NTaWduLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC -AQoCggEBAKw5fjnmNneLQlUCQG8jQLwwfbrOZoUwNX8cbNqhxK03/xUloFVgAt+S -Te2RxNXaCAXLBPn5ZST35TLV57aLmbHCtifv3YZqaaQGvjedltIBMJihJhZ+h3LY -SKsUb+xEJ3x5ZUf8jP+Q1g57y1s8SnBFWN/ni5NkF1Y1y31VwOi9wiOf/VISL+uu -SC4i1CP1Kbz3BDs6Hht1GpRYCbJ/K0bc9oJSpWpT5PGONsGIawqMbJuyoDghsXQ1 -pbn2e8K64BSscGZVZTNooSGgNiHmACNJBYXiWVWrwXPF4l6SddmC3Rj0aKXjgECc -FkHLDQcsM5JsK2ZLryTDUsQFbxVP2ikCAwEAAaNHMEUwCwYDVR0PBAQDAgEGMAwG -A1UdEwQFMAMBAf8wHQYDVR0OBBYEFJbXcc05KtT8iLGKq1N4ae+PR34WMAkGA1Ud -IwQCMAAwDQYJKoZIhvcNAQEFBQADggEBAKMy6W8HvZdS1fBpEUzl6Lvw50bgE1Xc -HU1JypSBG9mhdcXZo5AlPB4sCvx9Dmfwhyrdsshc0TP2V3Vh6eQqnEF5qB4lVziT -Bko9mW6Ot+pPnwsy4SHpx3rw6jCYnOqfUcZjWqqqRrq/3P1waz+Mn4cLMVEg3Xaz -qYov/khvSqS0JniwjRlo2H6f/1oVUKZvP+dUhpQepfZrOqMAWZW4otp6FolyQyeU -NN6UCRNiUKl5vTijbKwUUwfER/1Vci3M1/O1QCfttQ4vRN4Buc0xqYtGL3cd5WiO -vWzyhlTzAI6VUdNkQhhHJSAyTpj6dmXDRzrryoFGa2PjgESxz7XBaSI= ------END CERTIFICATE----- ------BEGIN CERTIFICATE----- -MIIDZzCCAk+gAwIBAgIQGx+ttiD5JNM2a/fH8YygWTANBgkqhkiG9w0BAQUFADBF -MQswCQYDVQQGEwJHQjEYMBYGA1UEChMPVHJ1c3RpcyBMaW1pdGVkMRwwGgYDVQQL -ExNUcnVzdGlzIEZQUyBSb290IENBMB4XDTAzMTIyMzEyMTQwNloXDTI0MDEyMTEx -MzY1NFowRTELMAkGA1UEBhMCR0IxGDAWBgNVBAoTD1RydXN0aXMgTGltaXRlZDEc -MBoGA1UECxMTVHJ1c3RpcyBGUFMgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQAD -ggEPADCCAQoCggEBAMVQe547NdDfxIzNjpvto8A2mfRC6qc+gIMPpqdZh8mQRUN+ -AOqGeSoDvT03mYlmt+WKVoaTnGhLaASMk5MCPjDSNzoiYYkchU59j9WvezX2fihH -iTHcDnlkH5nSW7r+f2C/revnPDgpai/lkQtV/+xvWNUtyd5MZnGPDNcE2gfmHhjj -vSkCqPoc4Vu5g6hBSLwacY3nYuUtsuvffM/bq1rKMfFMIvMFE/eC+XN5DL7XSxzA -0RU8k0Fk0ea+IxciAIleH2ulrG6nS4zto3Lmr2NNL4XSFDWaLk6M6jKYKIahkQlB -OrTh4/L68MkKokHdqeMDx4gVOxzUGpTXn2RZEm0CAwEAAaNTMFEwDwYDVR0TAQH/ -BAUwAwEB/zAfBgNVHSMEGDAWgBS6+nEleYtXQSUhhgtx67JkDoshZzAdBgNVHQ4E -FgQUuvpxJXmLV0ElIYYLceuyZA6LIWcwDQYJKoZIhvcNAQEFBQADggEBAH5Y//01 -GX2cGE+esCu8jowU/yyg2kdbw++BLa8F6nRIW/M+TgfHbcWzk88iNVy2P3UnXwmW -zaD+vkAMXBJV+JOCyinpXj9WV4s4NvdFGkwozZ5BuO1WTISkQMi4sKUraXAEasP4 -1BIy+Q7DsdwyhEQsb8tGD+pmQQ9P8Vilpg0ND2HepZ5dfWWhPBfnqFVO76DH7cZE -f1T1o+CP8HxVIo8ptoGj4W1OLBuAZ+ytIJ8MYmHVl/9D7S3B2l0pKoU/rGXuhg8F -jZBf3+6f9L/uHfuY5H+QK4R4EA5sSVPvFVtlRkpdr7r7OnIdzfYliB6XzCGcKQEN -ZetX2fNXlrtIzYE= ------END CERTIFICATE----- -` diff --git a/vendor/github.com/jackspirou/syscerts/root_linux.go b/vendor/github.com/jackspirou/syscerts/root_linux.go deleted file mode 100644 index 821da75..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_linux.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 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 syscerts - -// Possible certificate files; stop after finding one. -var certFiles = []string{ - "/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc. - "/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL - "/etc/ssl/ca-bundle.pem", // OpenSUSE - "/etc/pki/tls/cacert.pem", // OpenELEC -} diff --git a/vendor/github.com/jackspirou/syscerts/root_nacl.go b/vendor/github.com/jackspirou/syscerts/root_nacl.go deleted file mode 100644 index ae11493..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_nacl.go +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright 2015 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 syscerts - -// Possible certificate files; stop after finding one. -var certFiles = []string{} diff --git a/vendor/github.com/jackspirou/syscerts/root_plan9.go b/vendor/github.com/jackspirou/syscerts/root_plan9.go deleted file mode 100644 index 1323c7c..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_plan9.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2012 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. - -// +build plan9 - -package syscerts - -import ( - "crypto/x509" - "io/ioutil" -) - -// Possible certificate files; stop after finding one. -var certFiles = []string{ - "/sys/lib/tls/ca.pem", -} - -func initSystemRoots() { - roots := x509.NewCertPool() - for _, file := range certFiles { - data, err := ioutil.ReadFile(file) - if err == nil { - roots.AppendCertsFromPEM(data) - systemRoots = roots - return - } - } - - // All of the files failed to load. systemRoots will be nil which will - // trigger a specific error at verification time. -} diff --git a/vendor/github.com/jackspirou/syscerts/root_solaris.go b/vendor/github.com/jackspirou/syscerts/root_solaris.go deleted file mode 100644 index 1dcb313..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_solaris.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2015 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 syscerts - -// Possible certificate files; stop after finding one. -var certFiles = []string{ - "/etc/certs/ca-certificates.crt", // Solaris 11.2+ - "/etc/ssl/certs/ca-certificates.crt", // Joyent SmartOS - "/etc/ssl/cacert.pem", // OmniOS -} diff --git a/vendor/github.com/jackspirou/syscerts/root_unix.go b/vendor/github.com/jackspirou/syscerts/root_unix.go deleted file mode 100644 index 251a056..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_unix.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2011 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. - -// +build dragonfly freebsd linux nacl netbsd openbsd solaris - -package syscerts - -import ( - "crypto/x509" - "io/ioutil" -) - -// Possible directories with certificate files; stop after successfully -// reading at least one file from a directory. -var certDirectories = []string{ - "/etc/ssl/certs", // SLES10/SLES11, https://golang.org/issue/12139 - "/system/etc/security/cacerts", // Android -} - -func initSystemRoots() { - roots := x509.NewCertPool() - for _, file := range certFiles { - data, err := ioutil.ReadFile(file) - if err == nil { - roots.AppendCertsFromPEM(data) - systemRoots = roots - return - } - } - - for _, directory := range certDirectories { - fis, err := ioutil.ReadDir(directory) - if err != nil { - continue - } - rootsAdded := false - for _, fi := range fis { - data, err := ioutil.ReadFile(directory + "/" + fi.Name()) - if err == nil && roots.AppendCertsFromPEM(data) { - rootsAdded = true - } - } - if rootsAdded { - systemRoots = roots - return - } - } - - // All of the files failed to load. systemRoots will be nil which will - // trigger a specific error at verification time. -} diff --git a/vendor/github.com/jackspirou/syscerts/root_windows.go b/vendor/github.com/jackspirou/syscerts/root_windows.go deleted file mode 100644 index 0fda11f..0000000 --- a/vendor/github.com/jackspirou/syscerts/root_windows.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2012 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 syscerts - -import ( - "crypto/x509" - "errors" - "syscall" - "unsafe" -) - -// extractSimpleChain extracts the final certificate chain from a CertSimpleChain. -func extractSimpleChain(simpleChain **syscall.CertSimpleChain, count int) (chain []*x509.Certificate, err error) { - if simpleChain == nil || count == 0 { - return nil, errors.New("x509: invalid simple chain") - } - - simpleChains := (*[1 << 20]*syscall.CertSimpleChain)(unsafe.Pointer(simpleChain))[:] - lastChain := simpleChains[count-1] - elements := (*[1 << 20]*syscall.CertChainElement)(unsafe.Pointer(lastChain.Elements))[:] - for i := 0; i < int(lastChain.NumElements); i++ { - // Copy the buf, since ParseCertificate does not create its own copy. - cert := elements[i].CertContext - encodedCert := (*[1 << 20]byte)(unsafe.Pointer(cert.EncodedCert))[:] - buf := make([]byte, cert.Length) - copy(buf, encodedCert[:]) - parsedCert, err := x509.ParseCertificate(buf) - if err != nil { - return nil, err - } - chain = append(chain, parsedCert) - } - - return chain, nil -} - -func initSystemRoots() { -} diff --git a/vendor/github.com/joho/godotenv/LICENCE b/vendor/github.com/joho/godotenv/LICENCE deleted file mode 100644 index e7ddd51..0000000 --- a/vendor/github.com/joho/godotenv/LICENCE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2013 John Barton - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/vendor/github.com/joho/godotenv/autoload/autoload.go b/vendor/github.com/joho/godotenv/autoload/autoload.go deleted file mode 100644 index fbcd2bd..0000000 --- a/vendor/github.com/joho/godotenv/autoload/autoload.go +++ /dev/null @@ -1,15 +0,0 @@ -package autoload - -/* - You can just read the .env file on import just by doing - - import _ "github.com/joho/godotenv/autoload" - - And bob's your mother's brother -*/ - -import "github.com/joho/godotenv" - -func init() { - godotenv.Load() -} diff --git a/vendor/github.com/joho/godotenv/godotenv.go b/vendor/github.com/joho/godotenv/godotenv.go deleted file mode 100644 index 48ae78c..0000000 --- a/vendor/github.com/joho/godotenv/godotenv.go +++ /dev/null @@ -1,314 +0,0 @@ -// Package godotenv is a go port of the ruby dotenv library (https://github.com/bkeepers/dotenv) -// -// Examples/readme can be found on the github page at https://github.com/joho/godotenv -// -// The TL;DR is that you make a .env file that looks something like -// -// SOME_ENV_VAR=somevalue -// -// and then in your go code you can call -// -// godotenv.Load() -// -// and all the env vars declared in .env will be available through os.Getenv("SOME_ENV_VAR") -package godotenv - -import ( - "bufio" - "errors" - "fmt" - "io" - "os" - "os/exec" - "regexp" - "sort" - "strings" -) - -const doubleQuoteSpecialChars = "\\\n\r\"!$`" - -// Load will read your env file(s) and load them into ENV for this process. -// -// Call this function as close as possible to the start of your program (ideally in main) -// -// If you call Load without any args it will default to loading .env in the current path -// -// You can otherwise tell it which files to load (there can be more than one) like -// -// godotenv.Load("fileone", "filetwo") -// -// It's important to note that it WILL NOT OVERRIDE an env variable that already exists - consider the .env file to set dev vars or sensible defaults -func Load(filenames ...string) (err error) { - filenames = filenamesOrDefault(filenames) - - for _, filename := range filenames { - err = loadFile(filename, false) - if err != nil { - return // return early on a spazout - } - } - return -} - -// Overload will read your env file(s) and load them into ENV for this process. -// -// Call this function as close as possible to the start of your program (ideally in main) -// -// If you call Overload without any args it will default to loading .env in the current path -// -// You can otherwise tell it which files to load (there can be more than one) like -// -// godotenv.Overload("fileone", "filetwo") -// -// It's important to note this WILL OVERRIDE an env variable that already exists - consider the .env file to forcefilly set all vars. -func Overload(filenames ...string) (err error) { - filenames = filenamesOrDefault(filenames) - - for _, filename := range filenames { - err = loadFile(filename, true) - if err != nil { - return // return early on a spazout - } - } - return -} - -// Read all env (with same file loading semantics as Load) but return values as -// a map rather than automatically writing values into env -func Read(filenames ...string) (envMap map[string]string, err error) { - filenames = filenamesOrDefault(filenames) - envMap = make(map[string]string) - - for _, filename := range filenames { - individualEnvMap, individualErr := readFile(filename) - - if individualErr != nil { - err = individualErr - return // return early on a spazout - } - - for key, value := range individualEnvMap { - envMap[key] = value - } - } - - return -} - -// Parse reads an env file from io.Reader, returning a map of keys and values. -func Parse(r io.Reader) (envMap map[string]string, err error) { - envMap = make(map[string]string) - - var lines []string - scanner := bufio.NewScanner(r) - for scanner.Scan() { - lines = append(lines, scanner.Text()) - } - - if err = scanner.Err(); err != nil { - return - } - - for _, fullLine := range lines { - if !isIgnoredLine(fullLine) { - var key, value string - key, value, err = parseLine(fullLine) - - if err != nil { - return - } - envMap[key] = value - } - } - return -} - -//Unmarshal reads an env file from a string, returning a map of keys and values. -func Unmarshal(str string) (envMap map[string]string, err error) { - return Parse(strings.NewReader(str)) -} - -// Exec loads env vars from the specified filenames (empty map falls back to default) -// then executes the cmd specified. -// -// Simply hooks up os.Stdin/err/out to the command and calls Run() -// -// If you want more fine grained control over your command it's recommended -// that you use `Load()` or `Read()` and the `os/exec` package yourself. -func Exec(filenames []string, cmd string, cmdArgs []string) error { - Load(filenames...) - - command := exec.Command(cmd, cmdArgs...) - command.Stdin = os.Stdin - command.Stdout = os.Stdout - command.Stderr = os.Stderr - return command.Run() -} - -// Write serializes the given environment and writes it to a file -func Write(envMap map[string]string, filename string) error { - content, error := Marshal(envMap) - if error != nil { - return error - } - file, error := os.Create(filename) - if error != nil { - return error - } - _, err := file.WriteString(content) - return err -} - -// Marshal outputs the given environment as a dotenv-formatted environment file. -// Each line is in the format: KEY="VALUE" where VALUE is backslash-escaped. -func Marshal(envMap map[string]string) (string, error) { - lines := make([]string, 0, len(envMap)) - for k, v := range envMap { - lines = append(lines, fmt.Sprintf(`%s="%s"`, k, doubleQuoteEscape(v))) - } - sort.Strings(lines) - return strings.Join(lines, "\n"), nil -} - -func filenamesOrDefault(filenames []string) []string { - if len(filenames) == 0 { - return []string{".env"} - } - return filenames -} - -func loadFile(filename string, overload bool) error { - envMap, err := readFile(filename) - if err != nil { - return err - } - - currentEnv := map[string]bool{} - rawEnv := os.Environ() - for _, rawEnvLine := range rawEnv { - key := strings.Split(rawEnvLine, "=")[0] - currentEnv[key] = true - } - - for key, value := range envMap { - if !currentEnv[key] || overload { - os.Setenv(key, value) - } - } - - return nil -} - -func readFile(filename string) (envMap map[string]string, err error) { - file, err := os.Open(filename) - if err != nil { - return - } - defer file.Close() - - return Parse(file) -} - -func parseLine(line string) (key string, value string, err error) { - if len(line) == 0 { - err = errors.New("zero length string") - return - } - - // ditch the comments (but keep quoted hashes) - if strings.Contains(line, "#") { - segmentsBetweenHashes := strings.Split(line, "#") - quotesAreOpen := false - var segmentsToKeep []string - for _, segment := range segmentsBetweenHashes { - if strings.Count(segment, "\"") == 1 || strings.Count(segment, "'") == 1 { - if quotesAreOpen { - quotesAreOpen = false - segmentsToKeep = append(segmentsToKeep, segment) - } else { - quotesAreOpen = true - } - } - - if len(segmentsToKeep) == 0 || quotesAreOpen { - segmentsToKeep = append(segmentsToKeep, segment) - } - } - - line = strings.Join(segmentsToKeep, "#") - } - - firstEquals := strings.Index(line, "=") - firstColon := strings.Index(line, ":") - splitString := strings.SplitN(line, "=", 2) - if firstColon != -1 && (firstColon < firstEquals || firstEquals == -1) { - //this is a yaml-style line - splitString = strings.SplitN(line, ":", 2) - } - - if len(splitString) != 2 { - err = errors.New("Can't separate key from value") - return - } - - // Parse the key - key = splitString[0] - if strings.HasPrefix(key, "export") { - key = strings.TrimPrefix(key, "export") - } - key = strings.Trim(key, " ") - - // Parse the value - value = parseValue(splitString[1]) - return -} - -func parseValue(value string) string { - - // trim - value = strings.Trim(value, " ") - - // check if we've got quoted values or possible escapes - if len(value) > 1 { - first := string(value[0:1]) - last := string(value[len(value)-1:]) - if first == last && strings.ContainsAny(first, `"'`) { - // pull the quotes off the edges - value = value[1 : len(value)-1] - // handle escapes - escapeRegex := regexp.MustCompile(`\\.`) - value = escapeRegex.ReplaceAllStringFunc(value, func(match string) string { - c := strings.TrimPrefix(match, `\`) - switch c { - case "n": - return "\n" - case "r": - return "\r" - default: - return c - } - }) - } - } - - return value -} - -func isIgnoredLine(line string) bool { - trimmedLine := strings.Trim(line, " \n\t") - return len(trimmedLine) == 0 || strings.HasPrefix(trimmedLine, "#") -} - -func doubleQuoteEscape(line string) string { - for _, c := range doubleQuoteSpecialChars { - toReplace := "\\" + string(c) - if c == '\n' { - toReplace = `\n` - } - if c == '\r' { - toReplace = `\r` - } - line = strings.Replace(line, string(c), toReplace, -1) - } - return line -} diff --git a/vendor/github.com/mattn/go-colorable/LICENSE b/vendor/github.com/mattn/go-colorable/LICENSE deleted file mode 100644 index 91b5cef..0000000 --- a/vendor/github.com/mattn/go-colorable/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Yasuhiro Matsumoto - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/mattn/go-colorable/colorable_appengine.go b/vendor/github.com/mattn/go-colorable/colorable_appengine.go deleted file mode 100644 index 1f28d77..0000000 --- a/vendor/github.com/mattn/go-colorable/colorable_appengine.go +++ /dev/null @@ -1,29 +0,0 @@ -// +build appengine - -package colorable - -import ( - "io" - "os" - - _ "github.com/mattn/go-isatty" -) - -// NewColorable return new instance of Writer which handle escape sequence. -func NewColorable(file *os.File) io.Writer { - if file == nil { - panic("nil passed instead of *os.File to NewColorable()") - } - - return file -} - -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. -func NewColorableStdout() io.Writer { - return os.Stdout -} - -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. -func NewColorableStderr() io.Writer { - return os.Stderr -} diff --git a/vendor/github.com/mattn/go-colorable/colorable_others.go b/vendor/github.com/mattn/go-colorable/colorable_others.go deleted file mode 100644 index 887f203..0000000 --- a/vendor/github.com/mattn/go-colorable/colorable_others.go +++ /dev/null @@ -1,30 +0,0 @@ -// +build !windows -// +build !appengine - -package colorable - -import ( - "io" - "os" - - _ "github.com/mattn/go-isatty" -) - -// NewColorable return new instance of Writer which handle escape sequence. -func NewColorable(file *os.File) io.Writer { - if file == nil { - panic("nil passed instead of *os.File to NewColorable()") - } - - return file -} - -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. -func NewColorableStdout() io.Writer { - return os.Stdout -} - -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. -func NewColorableStderr() io.Writer { - return os.Stderr -} diff --git a/vendor/github.com/mattn/go-colorable/colorable_windows.go b/vendor/github.com/mattn/go-colorable/colorable_windows.go deleted file mode 100644 index e17a547..0000000 --- a/vendor/github.com/mattn/go-colorable/colorable_windows.go +++ /dev/null @@ -1,884 +0,0 @@ -// +build windows -// +build !appengine - -package colorable - -import ( - "bytes" - "io" - "math" - "os" - "strconv" - "strings" - "syscall" - "unsafe" - - "github.com/mattn/go-isatty" -) - -const ( - foregroundBlue = 0x1 - foregroundGreen = 0x2 - foregroundRed = 0x4 - foregroundIntensity = 0x8 - foregroundMask = (foregroundRed | foregroundBlue | foregroundGreen | foregroundIntensity) - backgroundBlue = 0x10 - backgroundGreen = 0x20 - backgroundRed = 0x40 - backgroundIntensity = 0x80 - backgroundMask = (backgroundRed | backgroundBlue | backgroundGreen | backgroundIntensity) -) - -type wchar uint16 -type short int16 -type dword uint32 -type word uint16 - -type coord struct { - x short - y short -} - -type smallRect struct { - left short - top short - right short - bottom short -} - -type consoleScreenBufferInfo struct { - size coord - cursorPosition coord - attributes word - window smallRect - maximumWindowSize coord -} - -type consoleCursorInfo struct { - size dword - visible int32 -} - -var ( - kernel32 = syscall.NewLazyDLL("kernel32.dll") - procGetConsoleScreenBufferInfo = kernel32.NewProc("GetConsoleScreenBufferInfo") - procSetConsoleTextAttribute = kernel32.NewProc("SetConsoleTextAttribute") - procSetConsoleCursorPosition = kernel32.NewProc("SetConsoleCursorPosition") - procFillConsoleOutputCharacter = kernel32.NewProc("FillConsoleOutputCharacterW") - procFillConsoleOutputAttribute = kernel32.NewProc("FillConsoleOutputAttribute") - procGetConsoleCursorInfo = kernel32.NewProc("GetConsoleCursorInfo") - procSetConsoleCursorInfo = kernel32.NewProc("SetConsoleCursorInfo") - procSetConsoleTitle = kernel32.NewProc("SetConsoleTitleW") -) - -// Writer provide colorable Writer to the console -type Writer struct { - out io.Writer - handle syscall.Handle - oldattr word - oldpos coord -} - -// NewColorable return new instance of Writer which handle escape sequence from File. -func NewColorable(file *os.File) io.Writer { - if file == nil { - panic("nil passed instead of *os.File to NewColorable()") - } - - if isatty.IsTerminal(file.Fd()) { - var csbi consoleScreenBufferInfo - handle := syscall.Handle(file.Fd()) - procGetConsoleScreenBufferInfo.Call(uintptr(handle), uintptr(unsafe.Pointer(&csbi))) - return &Writer{out: file, handle: handle, oldattr: csbi.attributes, oldpos: coord{0, 0}} - } - return file -} - -// NewColorableStdout return new instance of Writer which handle escape sequence for stdout. -func NewColorableStdout() io.Writer { - return NewColorable(os.Stdout) -} - -// NewColorableStderr return new instance of Writer which handle escape sequence for stderr. -func NewColorableStderr() io.Writer { - return NewColorable(os.Stderr) -} - -var color256 = map[int]int{ - 0: 0x000000, - 1: 0x800000, - 2: 0x008000, - 3: 0x808000, - 4: 0x000080, - 5: 0x800080, - 6: 0x008080, - 7: 0xc0c0c0, - 8: 0x808080, - 9: 0xff0000, - 10: 0x00ff00, - 11: 0xffff00, - 12: 0x0000ff, - 13: 0xff00ff, - 14: 0x00ffff, - 15: 0xffffff, - 16: 0x000000, - 17: 0x00005f, - 18: 0x000087, - 19: 0x0000af, - 20: 0x0000d7, - 21: 0x0000ff, - 22: 0x005f00, - 23: 0x005f5f, - 24: 0x005f87, - 25: 0x005faf, - 26: 0x005fd7, - 27: 0x005fff, - 28: 0x008700, - 29: 0x00875f, - 30: 0x008787, - 31: 0x0087af, - 32: 0x0087d7, - 33: 0x0087ff, - 34: 0x00af00, - 35: 0x00af5f, - 36: 0x00af87, - 37: 0x00afaf, - 38: 0x00afd7, - 39: 0x00afff, - 40: 0x00d700, - 41: 0x00d75f, - 42: 0x00d787, - 43: 0x00d7af, - 44: 0x00d7d7, - 45: 0x00d7ff, - 46: 0x00ff00, - 47: 0x00ff5f, - 48: 0x00ff87, - 49: 0x00ffaf, - 50: 0x00ffd7, - 51: 0x00ffff, - 52: 0x5f0000, - 53: 0x5f005f, - 54: 0x5f0087, - 55: 0x5f00af, - 56: 0x5f00d7, - 57: 0x5f00ff, - 58: 0x5f5f00, - 59: 0x5f5f5f, - 60: 0x5f5f87, - 61: 0x5f5faf, - 62: 0x5f5fd7, - 63: 0x5f5fff, - 64: 0x5f8700, - 65: 0x5f875f, - 66: 0x5f8787, - 67: 0x5f87af, - 68: 0x5f87d7, - 69: 0x5f87ff, - 70: 0x5faf00, - 71: 0x5faf5f, - 72: 0x5faf87, - 73: 0x5fafaf, - 74: 0x5fafd7, - 75: 0x5fafff, - 76: 0x5fd700, - 77: 0x5fd75f, - 78: 0x5fd787, - 79: 0x5fd7af, - 80: 0x5fd7d7, - 81: 0x5fd7ff, - 82: 0x5fff00, - 83: 0x5fff5f, - 84: 0x5fff87, - 85: 0x5fffaf, - 86: 0x5fffd7, - 87: 0x5fffff, - 88: 0x870000, - 89: 0x87005f, - 90: 0x870087, - 91: 0x8700af, - 92: 0x8700d7, - 93: 0x8700ff, - 94: 0x875f00, - 95: 0x875f5f, - 96: 0x875f87, - 97: 0x875faf, - 98: 0x875fd7, - 99: 0x875fff, - 100: 0x878700, - 101: 0x87875f, - 102: 0x878787, - 103: 0x8787af, - 104: 0x8787d7, - 105: 0x8787ff, - 106: 0x87af00, - 107: 0x87af5f, - 108: 0x87af87, - 109: 0x87afaf, - 110: 0x87afd7, - 111: 0x87afff, - 112: 0x87d700, - 113: 0x87d75f, - 114: 0x87d787, - 115: 0x87d7af, - 116: 0x87d7d7, - 117: 0x87d7ff, - 118: 0x87ff00, - 119: 0x87ff5f, - 120: 0x87ff87, - 121: 0x87ffaf, - 122: 0x87ffd7, - 123: 0x87ffff, - 124: 0xaf0000, - 125: 0xaf005f, - 126: 0xaf0087, - 127: 0xaf00af, - 128: 0xaf00d7, - 129: 0xaf00ff, - 130: 0xaf5f00, - 131: 0xaf5f5f, - 132: 0xaf5f87, - 133: 0xaf5faf, - 134: 0xaf5fd7, - 135: 0xaf5fff, - 136: 0xaf8700, - 137: 0xaf875f, - 138: 0xaf8787, - 139: 0xaf87af, - 140: 0xaf87d7, - 141: 0xaf87ff, - 142: 0xafaf00, - 143: 0xafaf5f, - 144: 0xafaf87, - 145: 0xafafaf, - 146: 0xafafd7, - 147: 0xafafff, - 148: 0xafd700, - 149: 0xafd75f, - 150: 0xafd787, - 151: 0xafd7af, - 152: 0xafd7d7, - 153: 0xafd7ff, - 154: 0xafff00, - 155: 0xafff5f, - 156: 0xafff87, - 157: 0xafffaf, - 158: 0xafffd7, - 159: 0xafffff, - 160: 0xd70000, - 161: 0xd7005f, - 162: 0xd70087, - 163: 0xd700af, - 164: 0xd700d7, - 165: 0xd700ff, - 166: 0xd75f00, - 167: 0xd75f5f, - 168: 0xd75f87, - 169: 0xd75faf, - 170: 0xd75fd7, - 171: 0xd75fff, - 172: 0xd78700, - 173: 0xd7875f, - 174: 0xd78787, - 175: 0xd787af, - 176: 0xd787d7, - 177: 0xd787ff, - 178: 0xd7af00, - 179: 0xd7af5f, - 180: 0xd7af87, - 181: 0xd7afaf, - 182: 0xd7afd7, - 183: 0xd7afff, - 184: 0xd7d700, - 185: 0xd7d75f, - 186: 0xd7d787, - 187: 0xd7d7af, - 188: 0xd7d7d7, - 189: 0xd7d7ff, - 190: 0xd7ff00, - 191: 0xd7ff5f, - 192: 0xd7ff87, - 193: 0xd7ffaf, - 194: 0xd7ffd7, - 195: 0xd7ffff, - 196: 0xff0000, - 197: 0xff005f, - 198: 0xff0087, - 199: 0xff00af, - 200: 0xff00d7, - 201: 0xff00ff, - 202: 0xff5f00, - 203: 0xff5f5f, - 204: 0xff5f87, - 205: 0xff5faf, - 206: 0xff5fd7, - 207: 0xff5fff, - 208: 0xff8700, - 209: 0xff875f, - 210: 0xff8787, - 211: 0xff87af, - 212: 0xff87d7, - 213: 0xff87ff, - 214: 0xffaf00, - 215: 0xffaf5f, - 216: 0xffaf87, - 217: 0xffafaf, - 218: 0xffafd7, - 219: 0xffafff, - 220: 0xffd700, - 221: 0xffd75f, - 222: 0xffd787, - 223: 0xffd7af, - 224: 0xffd7d7, - 225: 0xffd7ff, - 226: 0xffff00, - 227: 0xffff5f, - 228: 0xffff87, - 229: 0xffffaf, - 230: 0xffffd7, - 231: 0xffffff, - 232: 0x080808, - 233: 0x121212, - 234: 0x1c1c1c, - 235: 0x262626, - 236: 0x303030, - 237: 0x3a3a3a, - 238: 0x444444, - 239: 0x4e4e4e, - 240: 0x585858, - 241: 0x626262, - 242: 0x6c6c6c, - 243: 0x767676, - 244: 0x808080, - 245: 0x8a8a8a, - 246: 0x949494, - 247: 0x9e9e9e, - 248: 0xa8a8a8, - 249: 0xb2b2b2, - 250: 0xbcbcbc, - 251: 0xc6c6c6, - 252: 0xd0d0d0, - 253: 0xdadada, - 254: 0xe4e4e4, - 255: 0xeeeeee, -} - -// `\033]0;TITLESTR\007` -func doTitleSequence(er *bytes.Reader) error { - var c byte - var err error - - c, err = er.ReadByte() - if err != nil { - return err - } - if c != '0' && c != '2' { - return nil - } - c, err = er.ReadByte() - if err != nil { - return err - } - if c != ';' { - return nil - } - title := make([]byte, 0, 80) - for { - c, err = er.ReadByte() - if err != nil { - return err - } - if c == 0x07 || c == '\n' { - break - } - title = append(title, c) - } - if len(title) > 0 { - title8, err := syscall.UTF16PtrFromString(string(title)) - if err == nil { - procSetConsoleTitle.Call(uintptr(unsafe.Pointer(title8))) - } - } - return nil -} - -// Write write data on console -func (w *Writer) Write(data []byte) (n int, err error) { - var csbi consoleScreenBufferInfo - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - - er := bytes.NewReader(data) - var bw [1]byte -loop: - for { - c1, err := er.ReadByte() - if err != nil { - break loop - } - if c1 != 0x1b { - bw[0] = c1 - w.out.Write(bw[:]) - continue - } - c2, err := er.ReadByte() - if err != nil { - break loop - } - - if c2 == ']' { - if err := doTitleSequence(er); err != nil { - break loop - } - continue - } - if c2 != 0x5b { - continue - } - - var buf bytes.Buffer - var m byte - for { - c, err := er.ReadByte() - if err != nil { - break loop - } - if ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '@' { - m = c - break - } - buf.Write([]byte(string(c))) - } - - switch m { - case 'A': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.y -= short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'B': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.y += short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'C': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.x += short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'D': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.x -= short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'E': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.x = 0 - csbi.cursorPosition.y += short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'F': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.x = 0 - csbi.cursorPosition.y -= short(n) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'G': - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - csbi.cursorPosition.x = short(n - 1) - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'H', 'f': - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - if buf.Len() > 0 { - token := strings.Split(buf.String(), ";") - switch len(token) { - case 1: - n1, err := strconv.Atoi(token[0]) - if err != nil { - continue - } - csbi.cursorPosition.y = short(n1 - 1) - case 2: - n1, err := strconv.Atoi(token[0]) - if err != nil { - continue - } - n2, err := strconv.Atoi(token[1]) - if err != nil { - continue - } - csbi.cursorPosition.x = short(n2 - 1) - csbi.cursorPosition.y = short(n1 - 1) - } - } else { - csbi.cursorPosition.y = 0 - } - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&csbi.cursorPosition))) - case 'J': - n := 0 - if buf.Len() > 0 { - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - } - var count, written dword - var cursor coord - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - switch n { - case 0: - cursor = coord{x: csbi.cursorPosition.x, y: csbi.cursorPosition.y} - count = dword(csbi.size.x - csbi.cursorPosition.x + (csbi.size.y-csbi.cursorPosition.y)*csbi.size.x) - case 1: - cursor = coord{x: csbi.window.left, y: csbi.window.top} - count = dword(csbi.size.x - csbi.cursorPosition.x + (csbi.window.top-csbi.cursorPosition.y)*csbi.size.x) - case 2: - cursor = coord{x: csbi.window.left, y: csbi.window.top} - count = dword(csbi.size.x - csbi.cursorPosition.x + (csbi.size.y-csbi.cursorPosition.y)*csbi.size.x) - } - procFillConsoleOutputCharacter.Call(uintptr(w.handle), uintptr(' '), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) - procFillConsoleOutputAttribute.Call(uintptr(w.handle), uintptr(csbi.attributes), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) - case 'K': - n := 0 - if buf.Len() > 0 { - n, err = strconv.Atoi(buf.String()) - if err != nil { - continue - } - } - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - var cursor coord - var count, written dword - switch n { - case 0: - cursor = coord{x: csbi.cursorPosition.x + 1, y: csbi.cursorPosition.y} - count = dword(csbi.size.x - csbi.cursorPosition.x - 1) - case 1: - cursor = coord{x: csbi.window.left, y: csbi.window.top + csbi.cursorPosition.y} - count = dword(csbi.size.x - csbi.cursorPosition.x) - case 2: - cursor = coord{x: csbi.window.left, y: csbi.window.top + csbi.cursorPosition.y} - count = dword(csbi.size.x) - } - procFillConsoleOutputCharacter.Call(uintptr(w.handle), uintptr(' '), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) - procFillConsoleOutputAttribute.Call(uintptr(w.handle), uintptr(csbi.attributes), uintptr(count), *(*uintptr)(unsafe.Pointer(&cursor)), uintptr(unsafe.Pointer(&written))) - case 'm': - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - attr := csbi.attributes - cs := buf.String() - if cs == "" { - procSetConsoleTextAttribute.Call(uintptr(w.handle), uintptr(w.oldattr)) - continue - } - token := strings.Split(cs, ";") - for i := 0; i < len(token); i++ { - ns := token[i] - if n, err = strconv.Atoi(ns); err == nil { - switch { - case n == 0 || n == 100: - attr = w.oldattr - case 1 <= n && n <= 5: - attr |= foregroundIntensity - case n == 7: - attr = ((attr & foregroundMask) << 4) | ((attr & backgroundMask) >> 4) - case n == 22 || n == 25: - attr |= foregroundIntensity - case n == 27: - attr = ((attr & foregroundMask) << 4) | ((attr & backgroundMask) >> 4) - case 30 <= n && n <= 37: - attr &= backgroundMask - if (n-30)&1 != 0 { - attr |= foregroundRed - } - if (n-30)&2 != 0 { - attr |= foregroundGreen - } - if (n-30)&4 != 0 { - attr |= foregroundBlue - } - case n == 38: // set foreground color. - if i < len(token)-2 && (token[i+1] == "5" || token[i+1] == "05") { - if n256, err := strconv.Atoi(token[i+2]); err == nil { - if n256foreAttr == nil { - n256setup() - } - attr &= backgroundMask - attr |= n256foreAttr[n256] - i += 2 - } - } else { - attr = attr & (w.oldattr & backgroundMask) - } - case n == 39: // reset foreground color. - attr &= backgroundMask - attr |= w.oldattr & foregroundMask - case 40 <= n && n <= 47: - attr &= foregroundMask - if (n-40)&1 != 0 { - attr |= backgroundRed - } - if (n-40)&2 != 0 { - attr |= backgroundGreen - } - if (n-40)&4 != 0 { - attr |= backgroundBlue - } - case n == 48: // set background color. - if i < len(token)-2 && token[i+1] == "5" { - if n256, err := strconv.Atoi(token[i+2]); err == nil { - if n256backAttr == nil { - n256setup() - } - attr &= foregroundMask - attr |= n256backAttr[n256] - i += 2 - } - } else { - attr = attr & (w.oldattr & foregroundMask) - } - case n == 49: // reset foreground color. - attr &= foregroundMask - attr |= w.oldattr & backgroundMask - case 90 <= n && n <= 97: - attr = (attr & backgroundMask) - attr |= foregroundIntensity - if (n-90)&1 != 0 { - attr |= foregroundRed - } - if (n-90)&2 != 0 { - attr |= foregroundGreen - } - if (n-90)&4 != 0 { - attr |= foregroundBlue - } - case 100 <= n && n <= 107: - attr = (attr & foregroundMask) - attr |= backgroundIntensity - if (n-100)&1 != 0 { - attr |= backgroundRed - } - if (n-100)&2 != 0 { - attr |= backgroundGreen - } - if (n-100)&4 != 0 { - attr |= backgroundBlue - } - } - procSetConsoleTextAttribute.Call(uintptr(w.handle), uintptr(attr)) - } - } - case 'h': - var ci consoleCursorInfo - cs := buf.String() - if cs == "5>" { - procGetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - ci.visible = 0 - procSetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - } else if cs == "?25" { - procGetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - ci.visible = 1 - procSetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - } - case 'l': - var ci consoleCursorInfo - cs := buf.String() - if cs == "5>" { - procGetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - ci.visible = 1 - procSetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - } else if cs == "?25" { - procGetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - ci.visible = 0 - procSetConsoleCursorInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&ci))) - } - case 's': - procGetConsoleScreenBufferInfo.Call(uintptr(w.handle), uintptr(unsafe.Pointer(&csbi))) - w.oldpos = csbi.cursorPosition - case 'u': - procSetConsoleCursorPosition.Call(uintptr(w.handle), *(*uintptr)(unsafe.Pointer(&w.oldpos))) - } - } - - return len(data), nil -} - -type consoleColor struct { - rgb int - red bool - green bool - blue bool - intensity bool -} - -func (c consoleColor) foregroundAttr() (attr word) { - if c.red { - attr |= foregroundRed - } - if c.green { - attr |= foregroundGreen - } - if c.blue { - attr |= foregroundBlue - } - if c.intensity { - attr |= foregroundIntensity - } - return -} - -func (c consoleColor) backgroundAttr() (attr word) { - if c.red { - attr |= backgroundRed - } - if c.green { - attr |= backgroundGreen - } - if c.blue { - attr |= backgroundBlue - } - if c.intensity { - attr |= backgroundIntensity - } - return -} - -var color16 = []consoleColor{ - {0x000000, false, false, false, false}, - {0x000080, false, false, true, false}, - {0x008000, false, true, false, false}, - {0x008080, false, true, true, false}, - {0x800000, true, false, false, false}, - {0x800080, true, false, true, false}, - {0x808000, true, true, false, false}, - {0xc0c0c0, true, true, true, false}, - {0x808080, false, false, false, true}, - {0x0000ff, false, false, true, true}, - {0x00ff00, false, true, false, true}, - {0x00ffff, false, true, true, true}, - {0xff0000, true, false, false, true}, - {0xff00ff, true, false, true, true}, - {0xffff00, true, true, false, true}, - {0xffffff, true, true, true, true}, -} - -type hsv struct { - h, s, v float32 -} - -func (a hsv) dist(b hsv) float32 { - dh := a.h - b.h - switch { - case dh > 0.5: - dh = 1 - dh - case dh < -0.5: - dh = -1 - dh - } - ds := a.s - b.s - dv := a.v - b.v - return float32(math.Sqrt(float64(dh*dh + ds*ds + dv*dv))) -} - -func toHSV(rgb int) hsv { - r, g, b := float32((rgb&0xFF0000)>>16)/256.0, - float32((rgb&0x00FF00)>>8)/256.0, - float32(rgb&0x0000FF)/256.0 - min, max := minmax3f(r, g, b) - h := max - min - if h > 0 { - if max == r { - h = (g - b) / h - if h < 0 { - h += 6 - } - } else if max == g { - h = 2 + (b-r)/h - } else { - h = 4 + (r-g)/h - } - } - h /= 6.0 - s := max - min - if max != 0 { - s /= max - } - v := max - return hsv{h: h, s: s, v: v} -} - -type hsvTable []hsv - -func toHSVTable(rgbTable []consoleColor) hsvTable { - t := make(hsvTable, len(rgbTable)) - for i, c := range rgbTable { - t[i] = toHSV(c.rgb) - } - return t -} - -func (t hsvTable) find(rgb int) consoleColor { - hsv := toHSV(rgb) - n := 7 - l := float32(5.0) - for i, p := range t { - d := hsv.dist(p) - if d < l { - l, n = d, i - } - } - return color16[n] -} - -func minmax3f(a, b, c float32) (min, max float32) { - if a < b { - if b < c { - return a, c - } else if a < c { - return a, b - } else { - return c, b - } - } else { - if a < c { - return b, c - } else if b < c { - return b, a - } else { - return c, a - } - } -} - -var n256foreAttr []word -var n256backAttr []word - -func n256setup() { - n256foreAttr = make([]word, 256) - n256backAttr = make([]word, 256) - t := toHSVTable(color16) - for i, rgb := range color256 { - c := t.find(rgb) - n256foreAttr[i] = c.foregroundAttr() - n256backAttr[i] = c.backgroundAttr() - } -} diff --git a/vendor/github.com/mattn/go-colorable/noncolorable.go b/vendor/github.com/mattn/go-colorable/noncolorable.go deleted file mode 100644 index 9721e16..0000000 --- a/vendor/github.com/mattn/go-colorable/noncolorable.go +++ /dev/null @@ -1,55 +0,0 @@ -package colorable - -import ( - "bytes" - "io" -) - -// NonColorable hold writer but remove escape sequence. -type NonColorable struct { - out io.Writer -} - -// NewNonColorable return new instance of Writer which remove escape sequence from Writer. -func NewNonColorable(w io.Writer) io.Writer { - return &NonColorable{out: w} -} - -// Write write data on console -func (w *NonColorable) Write(data []byte) (n int, err error) { - er := bytes.NewReader(data) - var bw [1]byte -loop: - for { - c1, err := er.ReadByte() - if err != nil { - break loop - } - if c1 != 0x1b { - bw[0] = c1 - w.out.Write(bw[:]) - continue - } - c2, err := er.ReadByte() - if err != nil { - break loop - } - if c2 != 0x5b { - continue - } - - var buf bytes.Buffer - for { - c, err := er.ReadByte() - if err != nil { - break loop - } - if ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '@' { - break - } - buf.Write([]byte(string(c))) - } - } - - return len(data), nil -} diff --git a/vendor/github.com/mattn/go-isatty/LICENSE b/vendor/github.com/mattn/go-isatty/LICENSE deleted file mode 100644 index 65dc692..0000000 --- a/vendor/github.com/mattn/go-isatty/LICENSE +++ /dev/null @@ -1,9 +0,0 @@ -Copyright (c) Yasuhiro MATSUMOTO - -MIT License (Expat) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/mattn/go-isatty/doc.go b/vendor/github.com/mattn/go-isatty/doc.go deleted file mode 100644 index 17d4f90..0000000 --- a/vendor/github.com/mattn/go-isatty/doc.go +++ /dev/null @@ -1,2 +0,0 @@ -// Package isatty implements interface to isatty -package isatty diff --git a/vendor/github.com/mattn/go-isatty/isatty_appengine.go b/vendor/github.com/mattn/go-isatty/isatty_appengine.go deleted file mode 100644 index 9584a98..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_appengine.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build appengine - -package isatty - -// IsTerminal returns true if the file descriptor is terminal which -// is always false on on appengine classic which is a sandboxed PaaS. -func IsTerminal(fd uintptr) bool { - return false -} - -// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 -// terminal. This is also always false on this environment. -func IsCygwinTerminal(fd uintptr) bool { - return false -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_bsd.go b/vendor/github.com/mattn/go-isatty/isatty_bsd.go deleted file mode 100644 index 42f2514..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_bsd.go +++ /dev/null @@ -1,18 +0,0 @@ -// +build darwin freebsd openbsd netbsd dragonfly -// +build !appengine - -package isatty - -import ( - "syscall" - "unsafe" -) - -const ioctlReadTermios = syscall.TIOCGETA - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var termios syscall.Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_linux.go b/vendor/github.com/mattn/go-isatty/isatty_linux.go deleted file mode 100644 index 7384cf9..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_linux.go +++ /dev/null @@ -1,18 +0,0 @@ -// +build linux -// +build !appengine,!ppc64,!ppc64le - -package isatty - -import ( - "syscall" - "unsafe" -) - -const ioctlReadTermios = syscall.TCGETS - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var termios syscall.Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go b/vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go deleted file mode 100644 index 44e5d21..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build linux -// +build ppc64 ppc64le - -package isatty - -import ( - "unsafe" - - syscall "golang.org/x/sys/unix" -) - -const ioctlReadTermios = syscall.TCGETS - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var termios syscall.Termios - _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) - return err == 0 -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_others.go b/vendor/github.com/mattn/go-isatty/isatty_others.go deleted file mode 100644 index ff4de3d..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_others.go +++ /dev/null @@ -1,10 +0,0 @@ -// +build !windows -// +build !appengine - -package isatty - -// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 -// terminal. This is also always false on this environment. -func IsCygwinTerminal(fd uintptr) bool { - return false -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_solaris.go b/vendor/github.com/mattn/go-isatty/isatty_solaris.go deleted file mode 100644 index 1f0c6bf..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_solaris.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build solaris -// +build !appengine - -package isatty - -import ( - "golang.org/x/sys/unix" -) - -// IsTerminal returns true if the given file descriptor is a terminal. -// see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c -func IsTerminal(fd uintptr) bool { - var termio unix.Termio - err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) - return err == nil -} diff --git a/vendor/github.com/mattn/go-isatty/isatty_windows.go b/vendor/github.com/mattn/go-isatty/isatty_windows.go deleted file mode 100644 index af51cbc..0000000 --- a/vendor/github.com/mattn/go-isatty/isatty_windows.go +++ /dev/null @@ -1,94 +0,0 @@ -// +build windows -// +build !appengine - -package isatty - -import ( - "strings" - "syscall" - "unicode/utf16" - "unsafe" -) - -const ( - fileNameInfo uintptr = 2 - fileTypePipe = 3 -) - -var ( - kernel32 = syscall.NewLazyDLL("kernel32.dll") - procGetConsoleMode = kernel32.NewProc("GetConsoleMode") - procGetFileInformationByHandleEx = kernel32.NewProc("GetFileInformationByHandleEx") - procGetFileType = kernel32.NewProc("GetFileType") -) - -func init() { - // Check if GetFileInformationByHandleEx is available. - if procGetFileInformationByHandleEx.Find() != nil { - procGetFileInformationByHandleEx = nil - } -} - -// IsTerminal return true if the file descriptor is terminal. -func IsTerminal(fd uintptr) bool { - var st uint32 - r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) - return r != 0 && e == 0 -} - -// Check pipe name is used for cygwin/msys2 pty. -// Cygwin/MSYS2 PTY has a name like: -// \{cygwin,msys}-XXXXXXXXXXXXXXXX-ptyN-{from,to}-master -func isCygwinPipeName(name string) bool { - token := strings.Split(name, "-") - if len(token) < 5 { - return false - } - - if token[0] != `\msys` && token[0] != `\cygwin` { - return false - } - - if token[1] == "" { - return false - } - - if !strings.HasPrefix(token[2], "pty") { - return false - } - - if token[3] != `from` && token[3] != `to` { - return false - } - - if token[4] != "master" { - return false - } - - return true -} - -// IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 -// terminal. -func IsCygwinTerminal(fd uintptr) bool { - if procGetFileInformationByHandleEx == nil { - return false - } - - // Cygwin/msys's pty is a pipe. - ft, _, e := syscall.Syscall(procGetFileType.Addr(), 1, fd, 0, 0) - if ft != fileTypePipe || e != 0 { - return false - } - - var buf [2 + syscall.MAX_PATH]uint16 - r, _, e := syscall.Syscall6(procGetFileInformationByHandleEx.Addr(), - 4, fd, fileNameInfo, uintptr(unsafe.Pointer(&buf)), - uintptr(len(buf)*2), 0, 0) - if r == 0 || e != 0 { - return false - } - - l := *(*uint32)(unsafe.Pointer(&buf)) - return isCygwinPipeName(string(utf16.Decode(buf[2 : 2+l/2]))) -} diff --git a/vendor/github.com/opencontainers/go-digest/LICENSE.code b/vendor/github.com/opencontainers/go-digest/LICENSE.code deleted file mode 100644 index 0ea3ff8..0000000 --- a/vendor/github.com/opencontainers/go-digest/LICENSE.code +++ /dev/null @@ -1,191 +0,0 @@ - - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - Copyright 2016 Docker, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/opencontainers/go-digest/LICENSE.docs b/vendor/github.com/opencontainers/go-digest/LICENSE.docs deleted file mode 100644 index e26cd4f..0000000 --- a/vendor/github.com/opencontainers/go-digest/LICENSE.docs +++ /dev/null @@ -1,425 +0,0 @@ -Attribution-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-ShareAlike 4.0 International Public -License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-ShareAlike 4.0 International Public License ("Public -License"). To the extent this Public License may be interpreted as a -contract, You are granted the Licensed Rights in consideration of Your -acceptance of these terms and conditions, and the Licensor grants You -such rights in consideration of benefits the Licensor receives from -making the Licensed Material available under these terms and -conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - l. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - m. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part; and - - b. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - - including for purposes of Section 3(b); and - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. diff --git a/vendor/github.com/opencontainers/go-digest/algorithm.go b/vendor/github.com/opencontainers/go-digest/algorithm.go deleted file mode 100644 index 8813bd2..0000000 --- a/vendor/github.com/opencontainers/go-digest/algorithm.go +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright 2017 Docker, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package digest - -import ( - "crypto" - "fmt" - "hash" - "io" - "regexp" -) - -// Algorithm identifies and implementation of a digester by an identifier. -// Note the that this defines both the hash algorithm used and the string -// encoding. -type Algorithm string - -// supported digest types -const ( - SHA256 Algorithm = "sha256" // sha256 with hex encoding (lower case only) - SHA384 Algorithm = "sha384" // sha384 with hex encoding (lower case only) - SHA512 Algorithm = "sha512" // sha512 with hex encoding (lower case only) - - // Canonical is the primary digest algorithm used with the distribution - // project. Other digests may be used but this one is the primary storage - // digest. - Canonical = SHA256 -) - -var ( - // TODO(stevvooe): Follow the pattern of the standard crypto package for - // registration of digests. Effectively, we are a registerable set and - // common symbol access. - - // algorithms maps values to hash.Hash implementations. Other algorithms - // may be available but they cannot be calculated by the digest package. - algorithms = map[Algorithm]crypto.Hash{ - SHA256: crypto.SHA256, - SHA384: crypto.SHA384, - SHA512: crypto.SHA512, - } - - // anchoredEncodedRegexps contains anchored regular expressions for hex-encoded digests. - // Note that /A-F/ disallowed. - anchoredEncodedRegexps = map[Algorithm]*regexp.Regexp{ - SHA256: regexp.MustCompile(`^[a-f0-9]{64}$`), - SHA384: regexp.MustCompile(`^[a-f0-9]{96}$`), - SHA512: regexp.MustCompile(`^[a-f0-9]{128}$`), - } -) - -// Available returns true if the digest type is available for use. If this -// returns false, Digester and Hash will return nil. -func (a Algorithm) Available() bool { - h, ok := algorithms[a] - if !ok { - return false - } - - // check availability of the hash, as well - return h.Available() -} - -func (a Algorithm) String() string { - return string(a) -} - -// Size returns number of bytes returned by the hash. -func (a Algorithm) Size() int { - h, ok := algorithms[a] - if !ok { - return 0 - } - return h.Size() -} - -// Set implemented to allow use of Algorithm as a command line flag. -func (a *Algorithm) Set(value string) error { - if value == "" { - *a = Canonical - } else { - // just do a type conversion, support is queried with Available. - *a = Algorithm(value) - } - - if !a.Available() { - return ErrDigestUnsupported - } - - return nil -} - -// Digester returns a new digester for the specified algorithm. If the algorithm -// does not have a digester implementation, nil will be returned. This can be -// checked by calling Available before calling Digester. -func (a Algorithm) Digester() Digester { - return &digester{ - alg: a, - hash: a.Hash(), - } -} - -// Hash returns a new hash as used by the algorithm. If not available, the -// method will panic. Check Algorithm.Available() before calling. -func (a Algorithm) Hash() hash.Hash { - if !a.Available() { - // Empty algorithm string is invalid - if a == "" { - panic(fmt.Sprintf("empty digest algorithm, validate before calling Algorithm.Hash()")) - } - - // NOTE(stevvooe): A missing hash is usually a programming error that - // must be resolved at compile time. We don't import in the digest - // package to allow users to choose their hash implementation (such as - // when using stevvooe/resumable or a hardware accelerated package). - // - // Applications that may want to resolve the hash at runtime should - // call Algorithm.Available before call Algorithm.Hash(). - panic(fmt.Sprintf("%v not available (make sure it is imported)", a)) - } - - return algorithms[a].New() -} - -// Encode encodes the raw bytes of a digest, typically from a hash.Hash, into -// the encoded portion of the digest. -func (a Algorithm) Encode(d []byte) string { - // TODO(stevvooe): Currently, all algorithms use a hex encoding. When we - // add support for back registration, we can modify this accordingly. - return fmt.Sprintf("%x", d) -} - -// FromReader returns the digest of the reader using the algorithm. -func (a Algorithm) FromReader(rd io.Reader) (Digest, error) { - digester := a.Digester() - - if _, err := io.Copy(digester.Hash(), rd); err != nil { - return "", err - } - - return digester.Digest(), nil -} - -// FromBytes digests the input and returns a Digest. -func (a Algorithm) FromBytes(p []byte) Digest { - digester := a.Digester() - - if _, err := digester.Hash().Write(p); err != nil { - // Writes to a Hash should never fail. None of the existing - // hash implementations in the stdlib or hashes vendored - // here can return errors from Write. Having a panic in this - // condition instead of having FromBytes return an error value - // avoids unnecessary error handling paths in all callers. - panic("write to hash function returned error: " + err.Error()) - } - - return digester.Digest() -} - -// FromString digests the string input and returns a Digest. -func (a Algorithm) FromString(s string) Digest { - return a.FromBytes([]byte(s)) -} - -// Validate validates the encoded portion string -func (a Algorithm) Validate(encoded string) error { - r, ok := anchoredEncodedRegexps[a] - if !ok { - return ErrDigestUnsupported - } - // Digests much always be hex-encoded, ensuring that their hex portion will - // always be size*2 - if a.Size()*2 != len(encoded) { - return ErrDigestInvalidLength - } - if r.MatchString(encoded) { - return nil - } - return ErrDigestInvalidFormat -} diff --git a/vendor/github.com/opencontainers/go-digest/digest.go b/vendor/github.com/opencontainers/go-digest/digest.go deleted file mode 100644 index ad398cb..0000000 --- a/vendor/github.com/opencontainers/go-digest/digest.go +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2017 Docker, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package digest - -import ( - "fmt" - "hash" - "io" - "regexp" - "strings" -) - -// Digest allows simple protection of hex formatted digest strings, prefixed -// by their algorithm. Strings of type Digest have some guarantee of being in -// the correct format and it provides quick access to the components of a -// digest string. -// -// The following is an example of the contents of Digest types: -// -// sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc -// -// This allows to abstract the digest behind this type and work only in those -// terms. -type Digest string - -// NewDigest returns a Digest from alg and a hash.Hash object. -func NewDigest(alg Algorithm, h hash.Hash) Digest { - return NewDigestFromBytes(alg, h.Sum(nil)) -} - -// NewDigestFromBytes returns a new digest from the byte contents of p. -// Typically, this can come from hash.Hash.Sum(...) or xxx.SumXXX(...) -// functions. This is also useful for rebuilding digests from binary -// serializations. -func NewDigestFromBytes(alg Algorithm, p []byte) Digest { - return NewDigestFromEncoded(alg, alg.Encode(p)) -} - -// NewDigestFromHex is deprecated. Please use NewDigestFromEncoded. -func NewDigestFromHex(alg, hex string) Digest { - return NewDigestFromEncoded(Algorithm(alg), hex) -} - -// NewDigestFromEncoded returns a Digest from alg and the encoded digest. -func NewDigestFromEncoded(alg Algorithm, encoded string) Digest { - return Digest(fmt.Sprintf("%s:%s", alg, encoded)) -} - -// DigestRegexp matches valid digest types. -var DigestRegexp = regexp.MustCompile(`[a-z0-9]+(?:[.+_-][a-z0-9]+)*:[a-zA-Z0-9=_-]+`) - -// DigestRegexpAnchored matches valid digest types, anchored to the start and end of the match. -var DigestRegexpAnchored = regexp.MustCompile(`^` + DigestRegexp.String() + `$`) - -var ( - // ErrDigestInvalidFormat returned when digest format invalid. - ErrDigestInvalidFormat = fmt.Errorf("invalid checksum digest format") - - // ErrDigestInvalidLength returned when digest has invalid length. - ErrDigestInvalidLength = fmt.Errorf("invalid checksum digest length") - - // ErrDigestUnsupported returned when the digest algorithm is unsupported. - ErrDigestUnsupported = fmt.Errorf("unsupported digest algorithm") -) - -// Parse parses s and returns the validated digest object. An error will -// be returned if the format is invalid. -func Parse(s string) (Digest, error) { - d := Digest(s) - return d, d.Validate() -} - -// FromReader consumes the content of rd until io.EOF, returning canonical digest. -func FromReader(rd io.Reader) (Digest, error) { - return Canonical.FromReader(rd) -} - -// FromBytes digests the input and returns a Digest. -func FromBytes(p []byte) Digest { - return Canonical.FromBytes(p) -} - -// FromString digests the input and returns a Digest. -func FromString(s string) Digest { - return Canonical.FromString(s) -} - -// Validate checks that the contents of d is a valid digest, returning an -// error if not. -func (d Digest) Validate() error { - s := string(d) - i := strings.Index(s, ":") - if i <= 0 || i+1 == len(s) { - return ErrDigestInvalidFormat - } - algorithm, encoded := Algorithm(s[:i]), s[i+1:] - if !algorithm.Available() { - if !DigestRegexpAnchored.MatchString(s) { - return ErrDigestInvalidFormat - } - return ErrDigestUnsupported - } - return algorithm.Validate(encoded) -} - -// Algorithm returns the algorithm portion of the digest. This will panic if -// the underlying digest is not in a valid format. -func (d Digest) Algorithm() Algorithm { - return Algorithm(d[:d.sepIndex()]) -} - -// Verifier returns a writer object that can be used to verify a stream of -// content against the digest. If the digest is invalid, the method will panic. -func (d Digest) Verifier() Verifier { - return hashVerifier{ - hash: d.Algorithm().Hash(), - digest: d, - } -} - -// Encoded returns the encoded portion of the digest. This will panic if the -// underlying digest is not in a valid format. -func (d Digest) Encoded() string { - return string(d[d.sepIndex()+1:]) -} - -// Hex is deprecated. Please use Digest.Encoded. -func (d Digest) Hex() string { - return d.Encoded() -} - -func (d Digest) String() string { - return string(d) -} - -func (d Digest) sepIndex() int { - i := strings.Index(string(d), ":") - - if i < 0 { - panic(fmt.Sprintf("no ':' separator in digest %q", d)) - } - - return i -} diff --git a/vendor/github.com/opencontainers/go-digest/digester.go b/vendor/github.com/opencontainers/go-digest/digester.go deleted file mode 100644 index 36fa272..0000000 --- a/vendor/github.com/opencontainers/go-digest/digester.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2017 Docker, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package digest - -import "hash" - -// Digester calculates the digest of written data. Writes should go directly -// to the return value of Hash, while calling Digest will return the current -// value of the digest. -type Digester interface { - Hash() hash.Hash // provides direct access to underlying hash instance. - Digest() Digest -} - -// digester provides a simple digester definition that embeds a hasher. -type digester struct { - alg Algorithm - hash hash.Hash -} - -func (d *digester) Hash() hash.Hash { - return d.hash -} - -func (d *digester) Digest() Digest { - return NewDigest(d.alg, d.hash) -} diff --git a/vendor/github.com/opencontainers/go-digest/doc.go b/vendor/github.com/opencontainers/go-digest/doc.go deleted file mode 100644 index 491ea1e..0000000 --- a/vendor/github.com/opencontainers/go-digest/doc.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2017 Docker, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package digest provides a generalized type to opaquely represent message -// digests and their operations within the registry. The Digest type is -// designed to serve as a flexible identifier in a content-addressable system. -// More importantly, it provides tools and wrappers to work with -// hash.Hash-based digests with little effort. -// -// Basics -// -// The format of a digest is simply a string with two parts, dubbed the -// "algorithm" and the "digest", separated by a colon: -// -// : -// -// An example of a sha256 digest representation follows: -// -// sha256:7173b809ca12ec5dee4506cd86be934c4596dd234ee82c0662eac04a8c2c71dc -// -// In this case, the string "sha256" is the algorithm and the hex bytes are -// the "digest". -// -// Because the Digest type is simply a string, once a valid Digest is -// obtained, comparisons are cheap, quick and simple to express with the -// standard equality operator. -// -// Verification -// -// The main benefit of using the Digest type is simple verification against a -// given digest. The Verifier interface, modeled after the stdlib hash.Hash -// interface, provides a common write sink for digest verification. After -// writing is complete, calling the Verifier.Verified method will indicate -// whether or not the stream of bytes matches the target digest. -// -// Missing Features -// -// In addition to the above, we intend to add the following features to this -// package: -// -// 1. A Digester type that supports write sink digest calculation. -// -// 2. Suspend and resume of ongoing digest calculations to support efficient digest verification in the registry. -// -package digest diff --git a/vendor/github.com/opencontainers/go-digest/verifiers.go b/vendor/github.com/opencontainers/go-digest/verifiers.go deleted file mode 100644 index 32125e9..0000000 --- a/vendor/github.com/opencontainers/go-digest/verifiers.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2017 Docker, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package digest - -import ( - "hash" - "io" -) - -// Verifier presents a general verification interface to be used with message -// digests and other byte stream verifications. Users instantiate a Verifier -// from one of the various methods, write the data under test to it then check -// the result with the Verified method. -type Verifier interface { - io.Writer - - // Verified will return true if the content written to Verifier matches - // the digest. - Verified() bool -} - -type hashVerifier struct { - digest Digest - hash hash.Hash -} - -func (hv hashVerifier) Write(p []byte) (n int, err error) { - return hv.hash.Write(p) -} - -func (hv hashVerifier) Verified() bool { - return hv.digest == NewDigest(hv.digest.Algorithm(), hv.hash) -} diff --git a/vendor/github.com/pkg/browser/LICENSE b/vendor/github.com/pkg/browser/LICENSE deleted file mode 100644 index 65f78fb..0000000 --- a/vendor/github.com/pkg/browser/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2014, Dave Cheney -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/pkg/browser/browser.go b/vendor/github.com/pkg/browser/browser.go deleted file mode 100644 index d92c4cd..0000000 --- a/vendor/github.com/pkg/browser/browser.go +++ /dev/null @@ -1,62 +0,0 @@ -// Package browser provides helpers to open files, readers, and urls in a browser window. -// -// The choice of which browser is started is entirely client dependant. -package browser - -import ( - "fmt" - "io" - "io/ioutil" - "os" - "os/exec" - "path/filepath" -) - -// Stdout is the io.Writer to which executed commands write standard output. -var Stdout io.Writer = os.Stdout - -// Stderr is the io.Writer to which executed commands write standard error. -var Stderr io.Writer = os.Stderr - -// OpenFile opens new browser window for the file path. -func OpenFile(path string) error { - path, err := filepath.Abs(path) - if err != nil { - return err - } - return OpenURL("file://" + path) -} - -// OpenReader consumes the contents of r and presents the -// results in a new browser window. -func OpenReader(r io.Reader) error { - f, err := ioutil.TempFile("", "browser") - if err != nil { - return fmt.Errorf("browser: could not create temporary file: %v", err) - } - if _, err := io.Copy(f, r); err != nil { - f.Close() - return fmt.Errorf("browser: caching temporary file failed: %v", err) - } - if err := f.Close(); err != nil { - return fmt.Errorf("browser: caching temporary file failed: %v", err) - } - oldname := f.Name() - newname := oldname + ".html" - if err := os.Rename(oldname, newname); err != nil { - return fmt.Errorf("browser: renaming temporary file failed: %v", err) - } - return OpenFile(newname) -} - -// OpenURL opens a new browser window pointing to url. -func OpenURL(url string) error { - return openBrowser(url) -} - -func runCmd(prog string, args ...string) error { - cmd := exec.Command(prog, args...) - cmd.Stdout = Stdout - cmd.Stderr = Stderr - return cmd.Run() -} diff --git a/vendor/github.com/pkg/browser/browser_darwin.go b/vendor/github.com/pkg/browser/browser_darwin.go deleted file mode 100644 index 8507cf7..0000000 --- a/vendor/github.com/pkg/browser/browser_darwin.go +++ /dev/null @@ -1,5 +0,0 @@ -package browser - -func openBrowser(url string) error { - return runCmd("open", url) -} diff --git a/vendor/github.com/pkg/browser/browser_linux.go b/vendor/github.com/pkg/browser/browser_linux.go deleted file mode 100644 index bed47dd..0000000 --- a/vendor/github.com/pkg/browser/browser_linux.go +++ /dev/null @@ -1,5 +0,0 @@ -package browser - -func openBrowser(url string) error { - return runCmd("xdg-open", url) -} diff --git a/vendor/github.com/pkg/browser/browser_openbsd.go b/vendor/github.com/pkg/browser/browser_openbsd.go deleted file mode 100644 index 4fc7ff0..0000000 --- a/vendor/github.com/pkg/browser/browser_openbsd.go +++ /dev/null @@ -1,14 +0,0 @@ -package browser - -import ( - "errors" - "os/exec" -) - -func openBrowser(url string) error { - err := runCmd("xdg-open", url) - if e, ok := err.(*exec.Error); ok && e.Err == exec.ErrNotFound { - return errors.New("xdg-open: command not found - install xdg-utils from ports(8)") - } - return err -} diff --git a/vendor/github.com/pkg/browser/browser_unsupported.go b/vendor/github.com/pkg/browser/browser_unsupported.go deleted file mode 100644 index e29d220..0000000 --- a/vendor/github.com/pkg/browser/browser_unsupported.go +++ /dev/null @@ -1,12 +0,0 @@ -// +build !linux,!windows,!darwin,!openbsd - -package browser - -import ( - "fmt" - "runtime" -) - -func openBrowser(url string) error { - return fmt.Errorf("openBrowser: unsupported operating system: %v", runtime.GOOS) -} diff --git a/vendor/github.com/pkg/browser/browser_windows.go b/vendor/github.com/pkg/browser/browser_windows.go deleted file mode 100644 index f65e0ee..0000000 --- a/vendor/github.com/pkg/browser/browser_windows.go +++ /dev/null @@ -1,10 +0,0 @@ -package browser - -import ( - "strings" -) - -func openBrowser(url string) error { - r := strings.NewReplacer("&", "^&") - return runCmd("cmd", "/c", "start", r.Replace(url)) -} diff --git a/vendor/github.com/pkg/errors/LICENSE b/vendor/github.com/pkg/errors/LICENSE deleted file mode 100644 index 835ba3e..0000000 --- a/vendor/github.com/pkg/errors/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Copyright (c) 2015, Dave Cheney -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/pkg/errors/errors.go b/vendor/github.com/pkg/errors/errors.go deleted file mode 100644 index 842ee80..0000000 --- a/vendor/github.com/pkg/errors/errors.go +++ /dev/null @@ -1,269 +0,0 @@ -// Package errors provides simple error handling primitives. -// -// The traditional error handling idiom in Go is roughly akin to -// -// if err != nil { -// return err -// } -// -// which applied recursively up the call stack results in error reports -// without context or debugging information. The errors package allows -// programmers to add context to the failure path in their code in a way -// that does not destroy the original value of the error. -// -// Adding context to an error -// -// The errors.Wrap function returns a new error that adds context to the -// original error by recording a stack trace at the point Wrap is called, -// and the supplied message. For example -// -// _, err := ioutil.ReadAll(r) -// if err != nil { -// return errors.Wrap(err, "read failed") -// } -// -// If additional control is required the errors.WithStack and errors.WithMessage -// functions destructure errors.Wrap into its component operations of annotating -// an error with a stack trace and an a message, respectively. -// -// Retrieving the cause of an error -// -// Using errors.Wrap constructs a stack of errors, adding context to the -// preceding error. Depending on the nature of the error it may be necessary -// to reverse the operation of errors.Wrap to retrieve the original error -// for inspection. Any error value which implements this interface -// -// type causer interface { -// Cause() error -// } -// -// can be inspected by errors.Cause. errors.Cause will recursively retrieve -// the topmost error which does not implement causer, which is assumed to be -// the original cause. For example: -// -// switch err := errors.Cause(err).(type) { -// case *MyError: -// // handle specifically -// default: -// // unknown error -// } -// -// causer interface is not exported by this package, but is considered a part -// of stable public API. -// -// Formatted printing of errors -// -// All error values returned from this package implement fmt.Formatter and can -// be formatted by the fmt package. The following verbs are supported -// -// %s print the error. If the error has a Cause it will be -// printed recursively -// %v see %s -// %+v extended format. Each Frame of the error's StackTrace will -// be printed in detail. -// -// Retrieving the stack trace of an error or wrapper -// -// New, Errorf, Wrap, and Wrapf record a stack trace at the point they are -// invoked. This information can be retrieved with the following interface. -// -// type stackTracer interface { -// StackTrace() errors.StackTrace -// } -// -// Where errors.StackTrace is defined as -// -// type StackTrace []Frame -// -// The Frame type represents a call site in the stack trace. Frame supports -// the fmt.Formatter interface that can be used for printing information about -// the stack trace of this error. For example: -// -// if err, ok := err.(stackTracer); ok { -// for _, f := range err.StackTrace() { -// fmt.Printf("%+s:%d", f) -// } -// } -// -// stackTracer interface is not exported by this package, but is considered a part -// of stable public API. -// -// See the documentation for Frame.Format for more details. -package errors - -import ( - "fmt" - "io" -) - -// New returns an error with the supplied message. -// New also records the stack trace at the point it was called. -func New(message string) error { - return &fundamental{ - msg: message, - stack: callers(), - } -} - -// Errorf formats according to a format specifier and returns the string -// as a value that satisfies error. -// Errorf also records the stack trace at the point it was called. -func Errorf(format string, args ...interface{}) error { - return &fundamental{ - msg: fmt.Sprintf(format, args...), - stack: callers(), - } -} - -// fundamental is an error that has a message and a stack, but no caller. -type fundamental struct { - msg string - *stack -} - -func (f *fundamental) Error() string { return f.msg } - -func (f *fundamental) Format(s fmt.State, verb rune) { - switch verb { - case 'v': - if s.Flag('+') { - io.WriteString(s, f.msg) - f.stack.Format(s, verb) - return - } - fallthrough - case 's': - io.WriteString(s, f.msg) - case 'q': - fmt.Fprintf(s, "%q", f.msg) - } -} - -// WithStack annotates err with a stack trace at the point WithStack was called. -// If err is nil, WithStack returns nil. -func WithStack(err error) error { - if err == nil { - return nil - } - return &withStack{ - err, - callers(), - } -} - -type withStack struct { - error - *stack -} - -func (w *withStack) Cause() error { return w.error } - -func (w *withStack) Format(s fmt.State, verb rune) { - switch verb { - case 'v': - if s.Flag('+') { - fmt.Fprintf(s, "%+v", w.Cause()) - w.stack.Format(s, verb) - return - } - fallthrough - case 's': - io.WriteString(s, w.Error()) - case 'q': - fmt.Fprintf(s, "%q", w.Error()) - } -} - -// Wrap returns an error annotating err with a stack trace -// at the point Wrap is called, and the supplied message. -// If err is nil, Wrap returns nil. -func Wrap(err error, message string) error { - if err == nil { - return nil - } - err = &withMessage{ - cause: err, - msg: message, - } - return &withStack{ - err, - callers(), - } -} - -// Wrapf returns an error annotating err with a stack trace -// at the point Wrapf is call, and the format specifier. -// If err is nil, Wrapf returns nil. -func Wrapf(err error, format string, args ...interface{}) error { - if err == nil { - return nil - } - err = &withMessage{ - cause: err, - msg: fmt.Sprintf(format, args...), - } - return &withStack{ - err, - callers(), - } -} - -// WithMessage annotates err with a new message. -// If err is nil, WithMessage returns nil. -func WithMessage(err error, message string) error { - if err == nil { - return nil - } - return &withMessage{ - cause: err, - msg: message, - } -} - -type withMessage struct { - cause error - msg string -} - -func (w *withMessage) Error() string { return w.msg + ": " + w.cause.Error() } -func (w *withMessage) Cause() error { return w.cause } - -func (w *withMessage) Format(s fmt.State, verb rune) { - switch verb { - case 'v': - if s.Flag('+') { - fmt.Fprintf(s, "%+v\n", w.Cause()) - io.WriteString(s, w.msg) - return - } - fallthrough - case 's', 'q': - io.WriteString(s, w.Error()) - } -} - -// Cause returns the underlying cause of the error, if possible. -// An error value has a cause if it implements the following -// interface: -// -// type causer interface { -// Cause() error -// } -// -// If the error does not implement Cause, the original error will -// be returned. If the error is nil, nil will be returned without further -// investigation. -func Cause(err error) error { - type causer interface { - Cause() error - } - - for err != nil { - cause, ok := err.(causer) - if !ok { - break - } - err = cause.Cause() - } - return err -} diff --git a/vendor/github.com/pkg/errors/stack.go b/vendor/github.com/pkg/errors/stack.go deleted file mode 100644 index 6b1f289..0000000 --- a/vendor/github.com/pkg/errors/stack.go +++ /dev/null @@ -1,178 +0,0 @@ -package errors - -import ( - "fmt" - "io" - "path" - "runtime" - "strings" -) - -// Frame represents a program counter inside a stack frame. -type Frame uintptr - -// pc returns the program counter for this frame; -// multiple frames may have the same PC value. -func (f Frame) pc() uintptr { return uintptr(f) - 1 } - -// file returns the full path to the file that contains the -// function for this Frame's pc. -func (f Frame) file() string { - fn := runtime.FuncForPC(f.pc()) - if fn == nil { - return "unknown" - } - file, _ := fn.FileLine(f.pc()) - return file -} - -// line returns the line number of source code of the -// function for this Frame's pc. -func (f Frame) line() int { - fn := runtime.FuncForPC(f.pc()) - if fn == nil { - return 0 - } - _, line := fn.FileLine(f.pc()) - return line -} - -// Format formats the frame according to the fmt.Formatter interface. -// -// %s source file -// %d source line -// %n function name -// %v equivalent to %s:%d -// -// Format accepts flags that alter the printing of some verbs, as follows: -// -// %+s path of source file relative to the compile time GOPATH -// %+v equivalent to %+s:%d -func (f Frame) Format(s fmt.State, verb rune) { - switch verb { - case 's': - switch { - case s.Flag('+'): - pc := f.pc() - fn := runtime.FuncForPC(pc) - if fn == nil { - io.WriteString(s, "unknown") - } else { - file, _ := fn.FileLine(pc) - fmt.Fprintf(s, "%s\n\t%s", fn.Name(), file) - } - default: - io.WriteString(s, path.Base(f.file())) - } - case 'd': - fmt.Fprintf(s, "%d", f.line()) - case 'n': - name := runtime.FuncForPC(f.pc()).Name() - io.WriteString(s, funcname(name)) - case 'v': - f.Format(s, 's') - io.WriteString(s, ":") - f.Format(s, 'd') - } -} - -// StackTrace is stack of Frames from innermost (newest) to outermost (oldest). -type StackTrace []Frame - -func (st StackTrace) Format(s fmt.State, verb rune) { - switch verb { - case 'v': - switch { - case s.Flag('+'): - for _, f := range st { - fmt.Fprintf(s, "\n%+v", f) - } - case s.Flag('#'): - fmt.Fprintf(s, "%#v", []Frame(st)) - default: - fmt.Fprintf(s, "%v", []Frame(st)) - } - case 's': - fmt.Fprintf(s, "%s", []Frame(st)) - } -} - -// stack represents a stack of program counters. -type stack []uintptr - -func (s *stack) Format(st fmt.State, verb rune) { - switch verb { - case 'v': - switch { - case st.Flag('+'): - for _, pc := range *s { - f := Frame(pc) - fmt.Fprintf(st, "\n%+v", f) - } - } - } -} - -func (s *stack) StackTrace() StackTrace { - f := make([]Frame, len(*s)) - for i := 0; i < len(f); i++ { - f[i] = Frame((*s)[i]) - } - return f -} - -func callers() *stack { - const depth = 32 - var pcs [depth]uintptr - n := runtime.Callers(3, pcs[:]) - var st stack = pcs[0:n] - return &st -} - -// funcname removes the path prefix component of a function's name reported by func.Name(). -func funcname(name string) string { - i := strings.LastIndex(name, "/") - name = name[i+1:] - i = strings.Index(name, ".") - return name[i+1:] -} - -func trimGOPATH(name, file string) string { - // Here we want to get the source file path relative to the compile time - // GOPATH. As of Go 1.6.x there is no direct way to know the compiled - // GOPATH at runtime, but we can infer the number of path segments in the - // GOPATH. We note that fn.Name() returns the function name qualified by - // the import path, which does not include the GOPATH. Thus we can trim - // segments from the beginning of the file path until the number of path - // separators remaining is one more than the number of path separators in - // the function name. For example, given: - // - // GOPATH /home/user - // file /home/user/src/pkg/sub/file.go - // fn.Name() pkg/sub.Type.Method - // - // We want to produce: - // - // pkg/sub/file.go - // - // From this we can easily see that fn.Name() has one less path separator - // than our desired output. We count separators from the end of the file - // path until it finds two more than in the function name and then move - // one character forward to preserve the initial path segment without a - // leading separator. - const sep = "/" - goal := strings.Count(name, sep) + 2 - i := len(file) - for n := 0; n < goal; n++ { - i = strings.LastIndex(file[:i], sep) - if i == -1 { - // not enough separators found, set i so that the slice expression - // below leaves file unmodified - i = -len(sep) - break - } - } - // get back to 0 or trim the leading separator - file = file[i+len(sep):] - return file -} diff --git a/vendor/github.com/urfave/cli/LICENSE b/vendor/github.com/urfave/cli/LICENSE deleted file mode 100644 index 42a597e..0000000 --- a/vendor/github.com/urfave/cli/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Jeremy Saenz & Contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/urfave/cli/app.go b/vendor/github.com/urfave/cli/app.go deleted file mode 100644 index 51fc45d..0000000 --- a/vendor/github.com/urfave/cli/app.go +++ /dev/null @@ -1,497 +0,0 @@ -package cli - -import ( - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "sort" - "time" -) - -var ( - changeLogURL = "https://github.com/urfave/cli/blob/master/CHANGELOG.md" - appActionDeprecationURL = fmt.Sprintf("%s#deprecated-cli-app-action-signature", changeLogURL) - runAndExitOnErrorDeprecationURL = fmt.Sprintf("%s#deprecated-cli-app-runandexitonerror", changeLogURL) - - contactSysadmin = "This is an error in the application. Please contact the distributor of this application if this is not you." - - errInvalidActionType = NewExitError("ERROR invalid Action type. "+ - fmt.Sprintf("Must be `func(*Context`)` or `func(*Context) error). %s", contactSysadmin)+ - fmt.Sprintf("See %s", appActionDeprecationURL), 2) -) - -// App is the main structure of a cli application. It is recommended that -// an app be created with the cli.NewApp() function -type App struct { - // The name of the program. Defaults to path.Base(os.Args[0]) - Name string - // Full name of command for help, defaults to Name - HelpName string - // Description of the program. - Usage string - // Text to override the USAGE section of help - UsageText string - // Description of the program argument format. - ArgsUsage string - // Version of the program - Version string - // Description of the program - Description string - // List of commands to execute - Commands []Command - // List of flags to parse - Flags []Flag - // Boolean to enable bash completion commands - EnableBashCompletion bool - // Boolean to hide built-in help command - HideHelp bool - // Boolean to hide built-in version flag and the VERSION section of help - HideVersion bool - // Populate on app startup, only gettable through method Categories() - categories CommandCategories - // An action to execute when the bash-completion flag is set - BashComplete BashCompleteFunc - // An action to execute before any subcommands are run, but after the context is ready - // If a non-nil error is returned, no subcommands are run - Before BeforeFunc - // An action to execute after any subcommands are run, but after the subcommand has finished - // It is run even if Action() panics - After AfterFunc - - // The action to execute when no subcommands are specified - // Expects a `cli.ActionFunc` but will accept the *deprecated* signature of `func(*cli.Context) {}` - // *Note*: support for the deprecated `Action` signature will be removed in a future version - Action interface{} - - // Execute this function if the proper command cannot be found - CommandNotFound CommandNotFoundFunc - // Execute this function if an usage error occurs - OnUsageError OnUsageErrorFunc - // Compilation date - Compiled time.Time - // List of all authors who contributed - Authors []Author - // Copyright of the binary if any - Copyright string - // Name of Author (Note: Use App.Authors, this is deprecated) - Author string - // Email of Author (Note: Use App.Authors, this is deprecated) - Email string - // Writer writer to write output to - Writer io.Writer - // ErrWriter writes error output - ErrWriter io.Writer - // Other custom info - Metadata map[string]interface{} - // Carries a function which returns app specific info. - ExtraInfo func() map[string]string - // CustomAppHelpTemplate the text template for app help topic. - // cli.go uses text/template to render templates. You can - // render custom help text by setting this variable. - CustomAppHelpTemplate string - - didSetup bool -} - -// Tries to find out when this binary was compiled. -// Returns the current time if it fails to find it. -func compileTime() time.Time { - info, err := os.Stat(os.Args[0]) - if err != nil { - return time.Now() - } - return info.ModTime() -} - -// NewApp creates a new cli Application with some reasonable defaults for Name, -// Usage, Version and Action. -func NewApp() *App { - return &App{ - Name: filepath.Base(os.Args[0]), - HelpName: filepath.Base(os.Args[0]), - Usage: "A new cli application", - UsageText: "", - Version: "0.0.0", - BashComplete: DefaultAppComplete, - Action: helpCommand.Action, - Compiled: compileTime(), - Writer: os.Stdout, - } -} - -// Setup runs initialization code to ensure all data structures are ready for -// `Run` or inspection prior to `Run`. It is internally called by `Run`, but -// will return early if setup has already happened. -func (a *App) Setup() { - if a.didSetup { - return - } - - a.didSetup = true - - if a.Author != "" || a.Email != "" { - a.Authors = append(a.Authors, Author{Name: a.Author, Email: a.Email}) - } - - newCmds := []Command{} - for _, c := range a.Commands { - if c.HelpName == "" { - c.HelpName = fmt.Sprintf("%s %s", a.HelpName, c.Name) - } - newCmds = append(newCmds, c) - } - a.Commands = newCmds - - if a.Command(helpCommand.Name) == nil && !a.HideHelp { - a.Commands = append(a.Commands, helpCommand) - if (HelpFlag != BoolFlag{}) { - a.appendFlag(HelpFlag) - } - } - - if !a.HideVersion { - a.appendFlag(VersionFlag) - } - - a.categories = CommandCategories{} - for _, command := range a.Commands { - a.categories = a.categories.AddCommand(command.Category, command) - } - sort.Sort(a.categories) - - if a.Metadata == nil { - a.Metadata = make(map[string]interface{}) - } - - if a.Writer == nil { - a.Writer = os.Stdout - } -} - -// Run is the entry point to the cli app. Parses the arguments slice and routes -// to the proper flag/args combination -func (a *App) Run(arguments []string) (err error) { - a.Setup() - - // handle the completion flag separately from the flagset since - // completion could be attempted after a flag, but before its value was put - // on the command line. this causes the flagset to interpret the completion - // flag name as the value of the flag before it which is undesirable - // note that we can only do this because the shell autocomplete function - // always appends the completion flag at the end of the command - shellComplete, arguments := checkShellCompleteFlag(a, arguments) - - // parse flags - set, err := flagSet(a.Name, a.Flags) - if err != nil { - return err - } - - set.SetOutput(ioutil.Discard) - err = set.Parse(arguments[1:]) - nerr := normalizeFlags(a.Flags, set) - context := NewContext(a, set, nil) - if nerr != nil { - fmt.Fprintln(a.Writer, nerr) - ShowAppHelp(context) - return nerr - } - context.shellComplete = shellComplete - - if checkCompletions(context) { - return nil - } - - if err != nil { - if a.OnUsageError != nil { - err := a.OnUsageError(context, err, false) - HandleExitCoder(err) - return err - } - fmt.Fprintf(a.Writer, "%s %s\n\n", "Incorrect Usage.", err.Error()) - ShowAppHelp(context) - return err - } - - if !a.HideHelp && checkHelp(context) { - ShowAppHelp(context) - return nil - } - - if !a.HideVersion && checkVersion(context) { - ShowVersion(context) - return nil - } - - if a.After != nil { - defer func() { - if afterErr := a.After(context); afterErr != nil { - if err != nil { - err = NewMultiError(err, afterErr) - } else { - err = afterErr - } - } - }() - } - - if a.Before != nil { - beforeErr := a.Before(context) - if beforeErr != nil { - ShowAppHelp(context) - HandleExitCoder(beforeErr) - err = beforeErr - return err - } - } - - args := context.Args() - if args.Present() { - name := args.First() - c := a.Command(name) - if c != nil { - return c.Run(context) - } - } - - if a.Action == nil { - a.Action = helpCommand.Action - } - - // Run default Action - err = HandleAction(a.Action, context) - - HandleExitCoder(err) - return err -} - -// RunAndExitOnError calls .Run() and exits non-zero if an error was returned -// -// Deprecated: instead you should return an error that fulfills cli.ExitCoder -// to cli.App.Run. This will cause the application to exit with the given eror -// code in the cli.ExitCoder -func (a *App) RunAndExitOnError() { - if err := a.Run(os.Args); err != nil { - fmt.Fprintln(a.errWriter(), err) - OsExiter(1) - } -} - -// RunAsSubcommand invokes the subcommand given the context, parses ctx.Args() to -// generate command-specific flags -func (a *App) RunAsSubcommand(ctx *Context) (err error) { - // append help to commands - if len(a.Commands) > 0 { - if a.Command(helpCommand.Name) == nil && !a.HideHelp { - a.Commands = append(a.Commands, helpCommand) - if (HelpFlag != BoolFlag{}) { - a.appendFlag(HelpFlag) - } - } - } - - newCmds := []Command{} - for _, c := range a.Commands { - if c.HelpName == "" { - c.HelpName = fmt.Sprintf("%s %s", a.HelpName, c.Name) - } - newCmds = append(newCmds, c) - } - a.Commands = newCmds - - // parse flags - set, err := flagSet(a.Name, a.Flags) - if err != nil { - return err - } - - set.SetOutput(ioutil.Discard) - err = set.Parse(ctx.Args().Tail()) - nerr := normalizeFlags(a.Flags, set) - context := NewContext(a, set, ctx) - - if nerr != nil { - fmt.Fprintln(a.Writer, nerr) - fmt.Fprintln(a.Writer) - if len(a.Commands) > 0 { - ShowSubcommandHelp(context) - } else { - ShowCommandHelp(ctx, context.Args().First()) - } - return nerr - } - - if checkCompletions(context) { - return nil - } - - if err != nil { - if a.OnUsageError != nil { - err = a.OnUsageError(context, err, true) - HandleExitCoder(err) - return err - } - fmt.Fprintf(a.Writer, "%s %s\n\n", "Incorrect Usage.", err.Error()) - ShowSubcommandHelp(context) - return err - } - - if len(a.Commands) > 0 { - if checkSubcommandHelp(context) { - return nil - } - } else { - if checkCommandHelp(ctx, context.Args().First()) { - return nil - } - } - - if a.After != nil { - defer func() { - afterErr := a.After(context) - if afterErr != nil { - HandleExitCoder(err) - if err != nil { - err = NewMultiError(err, afterErr) - } else { - err = afterErr - } - } - }() - } - - if a.Before != nil { - beforeErr := a.Before(context) - if beforeErr != nil { - HandleExitCoder(beforeErr) - err = beforeErr - return err - } - } - - args := context.Args() - if args.Present() { - name := args.First() - c := a.Command(name) - if c != nil { - return c.Run(context) - } - } - - // Run default Action - err = HandleAction(a.Action, context) - - HandleExitCoder(err) - return err -} - -// Command returns the named command on App. Returns nil if the command does not exist -func (a *App) Command(name string) *Command { - for _, c := range a.Commands { - if c.HasName(name) { - return &c - } - } - - return nil -} - -// Categories returns a slice containing all the categories with the commands they contain -func (a *App) Categories() CommandCategories { - return a.categories -} - -// VisibleCategories returns a slice of categories and commands that are -// Hidden=false -func (a *App) VisibleCategories() []*CommandCategory { - ret := []*CommandCategory{} - for _, category := range a.categories { - if visible := func() *CommandCategory { - for _, command := range category.Commands { - if !command.Hidden { - return category - } - } - return nil - }(); visible != nil { - ret = append(ret, visible) - } - } - return ret -} - -// VisibleCommands returns a slice of the Commands with Hidden=false -func (a *App) VisibleCommands() []Command { - ret := []Command{} - for _, command := range a.Commands { - if !command.Hidden { - ret = append(ret, command) - } - } - return ret -} - -// VisibleFlags returns a slice of the Flags with Hidden=false -func (a *App) VisibleFlags() []Flag { - return visibleFlags(a.Flags) -} - -func (a *App) hasFlag(flag Flag) bool { - for _, f := range a.Flags { - if flag == f { - return true - } - } - - return false -} - -func (a *App) errWriter() io.Writer { - - // When the app ErrWriter is nil use the package level one. - if a.ErrWriter == nil { - return ErrWriter - } - - return a.ErrWriter -} - -func (a *App) appendFlag(flag Flag) { - if !a.hasFlag(flag) { - a.Flags = append(a.Flags, flag) - } -} - -// Author represents someone who has contributed to a cli project. -type Author struct { - Name string // The Authors name - Email string // The Authors email -} - -// String makes Author comply to the Stringer interface, to allow an easy print in the templating process -func (a Author) String() string { - e := "" - if a.Email != "" { - e = " <" + a.Email + ">" - } - - return fmt.Sprintf("%v%v", a.Name, e) -} - -// HandleAction attempts to figure out which Action signature was used. If -// it's an ActionFunc or a func with the legacy signature for Action, the func -// is run! -func HandleAction(action interface{}, context *Context) (err error) { - if a, ok := action.(ActionFunc); ok { - return a(context) - } else if a, ok := action.(func(*Context) error); ok { - return a(context) - } else if a, ok := action.(func(*Context)); ok { // deprecated function signature - a(context) - return nil - } else { - return errInvalidActionType - } -} diff --git a/vendor/github.com/urfave/cli/category.go b/vendor/github.com/urfave/cli/category.go deleted file mode 100644 index 1a60550..0000000 --- a/vendor/github.com/urfave/cli/category.go +++ /dev/null @@ -1,44 +0,0 @@ -package cli - -// CommandCategories is a slice of *CommandCategory. -type CommandCategories []*CommandCategory - -// CommandCategory is a category containing commands. -type CommandCategory struct { - Name string - Commands Commands -} - -func (c CommandCategories) Less(i, j int) bool { - return c[i].Name < c[j].Name -} - -func (c CommandCategories) Len() int { - return len(c) -} - -func (c CommandCategories) Swap(i, j int) { - c[i], c[j] = c[j], c[i] -} - -// AddCommand adds a command to a category. -func (c CommandCategories) AddCommand(category string, command Command) CommandCategories { - for _, commandCategory := range c { - if commandCategory.Name == category { - commandCategory.Commands = append(commandCategory.Commands, command) - return c - } - } - return append(c, &CommandCategory{Name: category, Commands: []Command{command}}) -} - -// VisibleCommands returns a slice of the Commands with Hidden=false -func (c *CommandCategory) VisibleCommands() []Command { - ret := []Command{} - for _, command := range c.Commands { - if !command.Hidden { - ret = append(ret, command) - } - } - return ret -} diff --git a/vendor/github.com/urfave/cli/cli.go b/vendor/github.com/urfave/cli/cli.go deleted file mode 100644 index 90c07eb..0000000 --- a/vendor/github.com/urfave/cli/cli.go +++ /dev/null @@ -1,22 +0,0 @@ -// Package cli provides a minimal framework for creating and organizing command line -// Go applications. cli is designed to be easy to understand and write, the most simple -// cli application can be written as follows: -// func main() { -// cli.NewApp().Run(os.Args) -// } -// -// Of course this application does not do much, so let's make this an actual application: -// func main() { -// app := cli.NewApp() -// app.Name = "greet" -// app.Usage = "say a greeting" -// app.Action = func(c *cli.Context) error { -// println("Greetings") -// return nil -// } -// -// app.Run(os.Args) -// } -package cli - -//go:generate python ./generate-flag-types cli -i flag-types.json -o flag_generated.go diff --git a/vendor/github.com/urfave/cli/command.go b/vendor/github.com/urfave/cli/command.go deleted file mode 100644 index 23de294..0000000 --- a/vendor/github.com/urfave/cli/command.go +++ /dev/null @@ -1,304 +0,0 @@ -package cli - -import ( - "fmt" - "io/ioutil" - "sort" - "strings" -) - -// Command is a subcommand for a cli.App. -type Command struct { - // The name of the command - Name string - // short name of the command. Typically one character (deprecated, use `Aliases`) - ShortName string - // A list of aliases for the command - Aliases []string - // A short description of the usage of this command - Usage string - // Custom text to show on USAGE section of help - UsageText string - // A longer explanation of how the command works - Description string - // A short description of the arguments of this command - ArgsUsage string - // The category the command is part of - Category string - // The function to call when checking for bash command completions - BashComplete BashCompleteFunc - // An action to execute before any sub-subcommands are run, but after the context is ready - // If a non-nil error is returned, no sub-subcommands are run - Before BeforeFunc - // An action to execute after any subcommands are run, but after the subcommand has finished - // It is run even if Action() panics - After AfterFunc - // The function to call when this command is invoked - Action interface{} - // TODO: replace `Action: interface{}` with `Action: ActionFunc` once some kind - // of deprecation period has passed, maybe? - - // Execute this function if a usage error occurs. - OnUsageError OnUsageErrorFunc - // List of child commands - Subcommands Commands - // List of flags to parse - Flags []Flag - // Treat all flags as normal arguments if true - SkipFlagParsing bool - // Skip argument reordering which attempts to move flags before arguments, - // but only works if all flags appear after all arguments. This behavior was - // removed n version 2 since it only works under specific conditions so we - // backport here by exposing it as an option for compatibility. - SkipArgReorder bool - // Boolean to hide built-in help command - HideHelp bool - // Boolean to hide this command from help or completion - Hidden bool - - // Full name of command for help, defaults to full command name, including parent commands. - HelpName string - commandNamePath []string - - // CustomHelpTemplate the text template for the command help topic. - // cli.go uses text/template to render templates. You can - // render custom help text by setting this variable. - CustomHelpTemplate string -} - -type CommandsByName []Command - -func (c CommandsByName) Len() int { - return len(c) -} - -func (c CommandsByName) Less(i, j int) bool { - return c[i].Name < c[j].Name -} - -func (c CommandsByName) Swap(i, j int) { - c[i], c[j] = c[j], c[i] -} - -// FullName returns the full name of the command. -// For subcommands this ensures that parent commands are part of the command path -func (c Command) FullName() string { - if c.commandNamePath == nil { - return c.Name - } - return strings.Join(c.commandNamePath, " ") -} - -// Commands is a slice of Command -type Commands []Command - -// Run invokes the command given the context, parses ctx.Args() to generate command-specific flags -func (c Command) Run(ctx *Context) (err error) { - if len(c.Subcommands) > 0 { - return c.startApp(ctx) - } - - if !c.HideHelp && (HelpFlag != BoolFlag{}) { - // append help to flags - c.Flags = append( - c.Flags, - HelpFlag, - ) - } - - set, err := flagSet(c.Name, c.Flags) - if err != nil { - return err - } - set.SetOutput(ioutil.Discard) - - if c.SkipFlagParsing { - err = set.Parse(append([]string{"--"}, ctx.Args().Tail()...)) - } else if !c.SkipArgReorder { - firstFlagIndex := -1 - terminatorIndex := -1 - for index, arg := range ctx.Args() { - if arg == "--" { - terminatorIndex = index - break - } else if arg == "-" { - // Do nothing. A dash alone is not really a flag. - continue - } else if strings.HasPrefix(arg, "-") && firstFlagIndex == -1 { - firstFlagIndex = index - } - } - - if firstFlagIndex > -1 { - args := ctx.Args() - regularArgs := make([]string, len(args[1:firstFlagIndex])) - copy(regularArgs, args[1:firstFlagIndex]) - - var flagArgs []string - if terminatorIndex > -1 { - flagArgs = args[firstFlagIndex:terminatorIndex] - regularArgs = append(regularArgs, args[terminatorIndex:]...) - } else { - flagArgs = args[firstFlagIndex:] - } - - err = set.Parse(append(flagArgs, regularArgs...)) - } else { - err = set.Parse(ctx.Args().Tail()) - } - } else { - err = set.Parse(ctx.Args().Tail()) - } - - nerr := normalizeFlags(c.Flags, set) - if nerr != nil { - fmt.Fprintln(ctx.App.Writer, nerr) - fmt.Fprintln(ctx.App.Writer) - ShowCommandHelp(ctx, c.Name) - return nerr - } - - context := NewContext(ctx.App, set, ctx) - context.Command = c - if checkCommandCompletions(context, c.Name) { - return nil - } - - if err != nil { - if c.OnUsageError != nil { - err := c.OnUsageError(context, err, false) - HandleExitCoder(err) - return err - } - fmt.Fprintln(context.App.Writer, "Incorrect Usage:", err.Error()) - fmt.Fprintln(context.App.Writer) - ShowCommandHelp(context, c.Name) - return err - } - - if checkCommandHelp(context, c.Name) { - return nil - } - - if c.After != nil { - defer func() { - afterErr := c.After(context) - if afterErr != nil { - HandleExitCoder(err) - if err != nil { - err = NewMultiError(err, afterErr) - } else { - err = afterErr - } - } - }() - } - - if c.Before != nil { - err = c.Before(context) - if err != nil { - ShowCommandHelp(context, c.Name) - HandleExitCoder(err) - return err - } - } - - if c.Action == nil { - c.Action = helpSubcommand.Action - } - - err = HandleAction(c.Action, context) - - if err != nil { - HandleExitCoder(err) - } - return err -} - -// Names returns the names including short names and aliases. -func (c Command) Names() []string { - names := []string{c.Name} - - if c.ShortName != "" { - names = append(names, c.ShortName) - } - - return append(names, c.Aliases...) -} - -// HasName returns true if Command.Name or Command.ShortName matches given name -func (c Command) HasName(name string) bool { - for _, n := range c.Names() { - if n == name { - return true - } - } - return false -} - -func (c Command) startApp(ctx *Context) error { - app := NewApp() - app.Metadata = ctx.App.Metadata - // set the name and usage - app.Name = fmt.Sprintf("%s %s", ctx.App.Name, c.Name) - if c.HelpName == "" { - app.HelpName = c.HelpName - } else { - app.HelpName = app.Name - } - - app.Usage = c.Usage - app.Description = c.Description - app.ArgsUsage = c.ArgsUsage - - // set CommandNotFound - app.CommandNotFound = ctx.App.CommandNotFound - app.CustomAppHelpTemplate = c.CustomHelpTemplate - - // set the flags and commands - app.Commands = c.Subcommands - app.Flags = c.Flags - app.HideHelp = c.HideHelp - - app.Version = ctx.App.Version - app.HideVersion = ctx.App.HideVersion - app.Compiled = ctx.App.Compiled - app.Author = ctx.App.Author - app.Email = ctx.App.Email - app.Writer = ctx.App.Writer - app.ErrWriter = ctx.App.ErrWriter - - app.categories = CommandCategories{} - for _, command := range c.Subcommands { - app.categories = app.categories.AddCommand(command.Category, command) - } - - sort.Sort(app.categories) - - // bash completion - app.EnableBashCompletion = ctx.App.EnableBashCompletion - if c.BashComplete != nil { - app.BashComplete = c.BashComplete - } - - // set the actions - app.Before = c.Before - app.After = c.After - if c.Action != nil { - app.Action = c.Action - } else { - app.Action = helpSubcommand.Action - } - app.OnUsageError = c.OnUsageError - - for index, cc := range app.Commands { - app.Commands[index].commandNamePath = []string{c.Name, cc.Name} - } - - return app.RunAsSubcommand(ctx) -} - -// VisibleFlags returns a slice of the Flags with Hidden=false -func (c Command) VisibleFlags() []Flag { - return visibleFlags(c.Flags) -} diff --git a/vendor/github.com/urfave/cli/context.go b/vendor/github.com/urfave/cli/context.go deleted file mode 100644 index db94191..0000000 --- a/vendor/github.com/urfave/cli/context.go +++ /dev/null @@ -1,278 +0,0 @@ -package cli - -import ( - "errors" - "flag" - "reflect" - "strings" - "syscall" -) - -// Context is a type that is passed through to -// each Handler action in a cli application. Context -// can be used to retrieve context-specific Args and -// parsed command-line options. -type Context struct { - App *App - Command Command - shellComplete bool - flagSet *flag.FlagSet - setFlags map[string]bool - parentContext *Context -} - -// NewContext creates a new context. For use in when invoking an App or Command action. -func NewContext(app *App, set *flag.FlagSet, parentCtx *Context) *Context { - c := &Context{App: app, flagSet: set, parentContext: parentCtx} - - if parentCtx != nil { - c.shellComplete = parentCtx.shellComplete - } - - return c -} - -// NumFlags returns the number of flags set -func (c *Context) NumFlags() int { - return c.flagSet.NFlag() -} - -// Set sets a context flag to a value. -func (c *Context) Set(name, value string) error { - c.setFlags = nil - return c.flagSet.Set(name, value) -} - -// GlobalSet sets a context flag to a value on the global flagset -func (c *Context) GlobalSet(name, value string) error { - globalContext(c).setFlags = nil - return globalContext(c).flagSet.Set(name, value) -} - -// IsSet determines if the flag was actually set -func (c *Context) IsSet(name string) bool { - if c.setFlags == nil { - c.setFlags = make(map[string]bool) - - c.flagSet.Visit(func(f *flag.Flag) { - c.setFlags[f.Name] = true - }) - - c.flagSet.VisitAll(func(f *flag.Flag) { - if _, ok := c.setFlags[f.Name]; ok { - return - } - c.setFlags[f.Name] = false - }) - - // XXX hack to support IsSet for flags with EnvVar - // - // There isn't an easy way to do this with the current implementation since - // whether a flag was set via an environment variable is very difficult to - // determine here. Instead, we intend to introduce a backwards incompatible - // change in version 2 to add `IsSet` to the Flag interface to push the - // responsibility closer to where the information required to determine - // whether a flag is set by non-standard means such as environment - // variables is avaliable. - // - // See https://github.com/urfave/cli/issues/294 for additional discussion - flags := c.Command.Flags - if c.Command.Name == "" { // cannot == Command{} since it contains slice types - if c.App != nil { - flags = c.App.Flags - } - } - for _, f := range flags { - eachName(f.GetName(), func(name string) { - if isSet, ok := c.setFlags[name]; isSet || !ok { - return - } - - val := reflect.ValueOf(f) - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - - envVarValue := val.FieldByName("EnvVar") - if !envVarValue.IsValid() { - return - } - - eachName(envVarValue.String(), func(envVar string) { - envVar = strings.TrimSpace(envVar) - if _, ok := syscall.Getenv(envVar); ok { - c.setFlags[name] = true - return - } - }) - }) - } - } - - return c.setFlags[name] -} - -// GlobalIsSet determines if the global flag was actually set -func (c *Context) GlobalIsSet(name string) bool { - ctx := c - if ctx.parentContext != nil { - ctx = ctx.parentContext - } - - for ; ctx != nil; ctx = ctx.parentContext { - if ctx.IsSet(name) { - return true - } - } - return false -} - -// FlagNames returns a slice of flag names used in this context. -func (c *Context) FlagNames() (names []string) { - for _, flag := range c.Command.Flags { - name := strings.Split(flag.GetName(), ",")[0] - if name == "help" { - continue - } - names = append(names, name) - } - return -} - -// GlobalFlagNames returns a slice of global flag names used by the app. -func (c *Context) GlobalFlagNames() (names []string) { - for _, flag := range c.App.Flags { - name := strings.Split(flag.GetName(), ",")[0] - if name == "help" || name == "version" { - continue - } - names = append(names, name) - } - return -} - -// Parent returns the parent context, if any -func (c *Context) Parent() *Context { - return c.parentContext -} - -// value returns the value of the flag coressponding to `name` -func (c *Context) value(name string) interface{} { - return c.flagSet.Lookup(name).Value.(flag.Getter).Get() -} - -// Args contains apps console arguments -type Args []string - -// Args returns the command line arguments associated with the context. -func (c *Context) Args() Args { - args := Args(c.flagSet.Args()) - return args -} - -// NArg returns the number of the command line arguments. -func (c *Context) NArg() int { - return len(c.Args()) -} - -// Get returns the nth argument, or else a blank string -func (a Args) Get(n int) string { - if len(a) > n { - return a[n] - } - return "" -} - -// First returns the first argument, or else a blank string -func (a Args) First() string { - return a.Get(0) -} - -// Tail returns the rest of the arguments (not the first one) -// or else an empty string slice -func (a Args) Tail() []string { - if len(a) >= 2 { - return []string(a)[1:] - } - return []string{} -} - -// Present checks if there are any arguments present -func (a Args) Present() bool { - return len(a) != 0 -} - -// Swap swaps arguments at the given indexes -func (a Args) Swap(from, to int) error { - if from >= len(a) || to >= len(a) { - return errors.New("index out of range") - } - a[from], a[to] = a[to], a[from] - return nil -} - -func globalContext(ctx *Context) *Context { - if ctx == nil { - return nil - } - - for { - if ctx.parentContext == nil { - return ctx - } - ctx = ctx.parentContext - } -} - -func lookupGlobalFlagSet(name string, ctx *Context) *flag.FlagSet { - if ctx.parentContext != nil { - ctx = ctx.parentContext - } - for ; ctx != nil; ctx = ctx.parentContext { - if f := ctx.flagSet.Lookup(name); f != nil { - return ctx.flagSet - } - } - return nil -} - -func copyFlag(name string, ff *flag.Flag, set *flag.FlagSet) { - switch ff.Value.(type) { - case *StringSlice: - default: - set.Set(name, ff.Value.String()) - } -} - -func normalizeFlags(flags []Flag, set *flag.FlagSet) error { - visited := make(map[string]bool) - set.Visit(func(f *flag.Flag) { - visited[f.Name] = true - }) - for _, f := range flags { - parts := strings.Split(f.GetName(), ",") - if len(parts) == 1 { - continue - } - var ff *flag.Flag - for _, name := range parts { - name = strings.Trim(name, " ") - if visited[name] { - if ff != nil { - return errors.New("Cannot use two forms of the same flag: " + name + " " + ff.Name) - } - ff = set.Lookup(name) - } - } - if ff == nil { - continue - } - for _, name := range parts { - name = strings.Trim(name, " ") - if !visited[name] { - copyFlag(name, ff, set) - } - } - } - return nil -} diff --git a/vendor/github.com/urfave/cli/errors.go b/vendor/github.com/urfave/cli/errors.go deleted file mode 100644 index 562b295..0000000 --- a/vendor/github.com/urfave/cli/errors.go +++ /dev/null @@ -1,115 +0,0 @@ -package cli - -import ( - "fmt" - "io" - "os" - "strings" -) - -// OsExiter is the function used when the app exits. If not set defaults to os.Exit. -var OsExiter = os.Exit - -// ErrWriter is used to write errors to the user. This can be anything -// implementing the io.Writer interface and defaults to os.Stderr. -var ErrWriter io.Writer = os.Stderr - -// MultiError is an error that wraps multiple errors. -type MultiError struct { - Errors []error -} - -// NewMultiError creates a new MultiError. Pass in one or more errors. -func NewMultiError(err ...error) MultiError { - return MultiError{Errors: err} -} - -// Error implements the error interface. -func (m MultiError) Error() string { - errs := make([]string, len(m.Errors)) - for i, err := range m.Errors { - errs[i] = err.Error() - } - - return strings.Join(errs, "\n") -} - -type ErrorFormatter interface { - Format(s fmt.State, verb rune) -} - -// ExitCoder is the interface checked by `App` and `Command` for a custom exit -// code -type ExitCoder interface { - error - ExitCode() int -} - -// ExitError fulfills both the builtin `error` interface and `ExitCoder` -type ExitError struct { - exitCode int - message interface{} -} - -// NewExitError makes a new *ExitError -func NewExitError(message interface{}, exitCode int) *ExitError { - return &ExitError{ - exitCode: exitCode, - message: message, - } -} - -// Error returns the string message, fulfilling the interface required by -// `error` -func (ee *ExitError) Error() string { - return fmt.Sprintf("%v", ee.message) -} - -// ExitCode returns the exit code, fulfilling the interface required by -// `ExitCoder` -func (ee *ExitError) ExitCode() int { - return ee.exitCode -} - -// HandleExitCoder checks if the error fulfills the ExitCoder interface, and if -// so prints the error to stderr (if it is non-empty) and calls OsExiter with the -// given exit code. If the given error is a MultiError, then this func is -// called on all members of the Errors slice and calls OsExiter with the last exit code. -func HandleExitCoder(err error) { - if err == nil { - return - } - - if exitErr, ok := err.(ExitCoder); ok { - if err.Error() != "" { - if _, ok := exitErr.(ErrorFormatter); ok { - fmt.Fprintf(ErrWriter, "%+v\n", err) - } else { - fmt.Fprintln(ErrWriter, err) - } - } - OsExiter(exitErr.ExitCode()) - return - } - - if multiErr, ok := err.(MultiError); ok { - code := handleMultiError(multiErr) - OsExiter(code) - return - } -} - -func handleMultiError(multiErr MultiError) int { - code := 1 - for _, merr := range multiErr.Errors { - if multiErr2, ok := merr.(MultiError); ok { - code = handleMultiError(multiErr2) - } else { - fmt.Fprintln(ErrWriter, merr) - if exitErr, ok := merr.(ExitCoder); ok { - code = exitErr.ExitCode() - } - } - } - return code -} diff --git a/vendor/github.com/urfave/cli/flag.go b/vendor/github.com/urfave/cli/flag.go deleted file mode 100644 index 877ff35..0000000 --- a/vendor/github.com/urfave/cli/flag.go +++ /dev/null @@ -1,799 +0,0 @@ -package cli - -import ( - "flag" - "fmt" - "reflect" - "runtime" - "strconv" - "strings" - "syscall" - "time" -) - -const defaultPlaceholder = "value" - -// BashCompletionFlag enables bash-completion for all commands and subcommands -var BashCompletionFlag Flag = BoolFlag{ - Name: "generate-bash-completion", - Hidden: true, -} - -// VersionFlag prints the version for the application -var VersionFlag Flag = BoolFlag{ - Name: "version, v", - Usage: "print the version", -} - -// HelpFlag prints the help for all commands and subcommands -// Set to the zero value (BoolFlag{}) to disable flag -- keeps subcommand -// unless HideHelp is set to true) -var HelpFlag Flag = BoolFlag{ - Name: "help, h", - Usage: "show help", -} - -// FlagStringer converts a flag definition to a string. This is used by help -// to display a flag. -var FlagStringer FlagStringFunc = stringifyFlag - -// FlagsByName is a slice of Flag. -type FlagsByName []Flag - -func (f FlagsByName) Len() int { - return len(f) -} - -func (f FlagsByName) Less(i, j int) bool { - return f[i].GetName() < f[j].GetName() -} - -func (f FlagsByName) Swap(i, j int) { - f[i], f[j] = f[j], f[i] -} - -// Flag is a common interface related to parsing flags in cli. -// For more advanced flag parsing techniques, it is recommended that -// this interface be implemented. -type Flag interface { - fmt.Stringer - // Apply Flag settings to the given flag set - Apply(*flag.FlagSet) - GetName() string -} - -// errorableFlag is an interface that allows us to return errors during apply -// it allows flags defined in this library to return errors in a fashion backwards compatible -// TODO remove in v2 and modify the existing Flag interface to return errors -type errorableFlag interface { - Flag - - ApplyWithError(*flag.FlagSet) error -} - -func flagSet(name string, flags []Flag) (*flag.FlagSet, error) { - set := flag.NewFlagSet(name, flag.ContinueOnError) - - for _, f := range flags { - //TODO remove in v2 when errorableFlag is removed - if ef, ok := f.(errorableFlag); ok { - if err := ef.ApplyWithError(set); err != nil { - return nil, err - } - } else { - f.Apply(set) - } - } - return set, nil -} - -func eachName(longName string, fn func(string)) { - parts := strings.Split(longName, ",") - for _, name := range parts { - name = strings.Trim(name, " ") - fn(name) - } -} - -// Generic is a generic parseable type identified by a specific flag -type Generic interface { - Set(value string) error - String() string -} - -// Apply takes the flagset and calls Set on the generic flag with the value -// provided by the user for parsing by the flag -// Ignores parsing errors -func (f GenericFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError takes the flagset and calls Set on the generic flag with the value -// provided by the user for parsing by the flag -func (f GenericFlag) ApplyWithError(set *flag.FlagSet) error { - val := f.Value - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - if err := val.Set(envVal); err != nil { - return fmt.Errorf("could not parse %s as value for flag %s: %s", envVal, f.Name, err) - } - break - } - } - } - - eachName(f.Name, func(name string) { - set.Var(f.Value, name, f.Usage) - }) - - return nil -} - -// StringSlice is an opaque type for []string to satisfy flag.Value and flag.Getter -type StringSlice []string - -// Set appends the string value to the list of values -func (f *StringSlice) Set(value string) error { - *f = append(*f, value) - return nil -} - -// String returns a readable representation of this value (for usage defaults) -func (f *StringSlice) String() string { - return fmt.Sprintf("%s", *f) -} - -// Value returns the slice of strings set by this flag -func (f *StringSlice) Value() []string { - return *f -} - -// Get returns the slice of strings set by this flag -func (f *StringSlice) Get() interface{} { - return *f -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f StringSliceFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f StringSliceFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - newVal := &StringSlice{} - for _, s := range strings.Split(envVal, ",") { - s = strings.TrimSpace(s) - if err := newVal.Set(s); err != nil { - return fmt.Errorf("could not parse %s as string value for flag %s: %s", envVal, f.Name, err) - } - } - f.Value = newVal - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Value == nil { - f.Value = &StringSlice{} - } - set.Var(f.Value, name, f.Usage) - }) - - return nil -} - -// IntSlice is an opaque type for []int to satisfy flag.Value and flag.Getter -type IntSlice []int - -// Set parses the value into an integer and appends it to the list of values -func (f *IntSlice) Set(value string) error { - tmp, err := strconv.Atoi(value) - if err != nil { - return err - } - *f = append(*f, tmp) - return nil -} - -// String returns a readable representation of this value (for usage defaults) -func (f *IntSlice) String() string { - return fmt.Sprintf("%#v", *f) -} - -// Value returns the slice of ints set by this flag -func (f *IntSlice) Value() []int { - return *f -} - -// Get returns the slice of ints set by this flag -func (f *IntSlice) Get() interface{} { - return *f -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f IntSliceFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f IntSliceFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - newVal := &IntSlice{} - for _, s := range strings.Split(envVal, ",") { - s = strings.TrimSpace(s) - if err := newVal.Set(s); err != nil { - return fmt.Errorf("could not parse %s as int slice value for flag %s: %s", envVal, f.Name, err) - } - } - f.Value = newVal - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Value == nil { - f.Value = &IntSlice{} - } - set.Var(f.Value, name, f.Usage) - }) - - return nil -} - -// Int64Slice is an opaque type for []int to satisfy flag.Value and flag.Getter -type Int64Slice []int64 - -// Set parses the value into an integer and appends it to the list of values -func (f *Int64Slice) Set(value string) error { - tmp, err := strconv.ParseInt(value, 10, 64) - if err != nil { - return err - } - *f = append(*f, tmp) - return nil -} - -// String returns a readable representation of this value (for usage defaults) -func (f *Int64Slice) String() string { - return fmt.Sprintf("%#v", *f) -} - -// Value returns the slice of ints set by this flag -func (f *Int64Slice) Value() []int64 { - return *f -} - -// Get returns the slice of ints set by this flag -func (f *Int64Slice) Get() interface{} { - return *f -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f Int64SliceFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f Int64SliceFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - newVal := &Int64Slice{} - for _, s := range strings.Split(envVal, ",") { - s = strings.TrimSpace(s) - if err := newVal.Set(s); err != nil { - return fmt.Errorf("could not parse %s as int64 slice value for flag %s: %s", envVal, f.Name, err) - } - } - f.Value = newVal - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Value == nil { - f.Value = &Int64Slice{} - } - set.Var(f.Value, name, f.Usage) - }) - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f BoolFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f BoolFlag) ApplyWithError(set *flag.FlagSet) error { - val := false - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - if envVal == "" { - val = false - break - } - - envValBool, err := strconv.ParseBool(envVal) - if err != nil { - return fmt.Errorf("could not parse %s as bool value for flag %s: %s", envVal, f.Name, err) - } - - val = envValBool - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.BoolVar(f.Destination, name, val, f.Usage) - return - } - set.Bool(name, val, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f BoolTFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f BoolTFlag) ApplyWithError(set *flag.FlagSet) error { - val := true - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - if envVal == "" { - val = false - break - } - - envValBool, err := strconv.ParseBool(envVal) - if err != nil { - return fmt.Errorf("could not parse %s as bool value for flag %s: %s", envVal, f.Name, err) - } - - val = envValBool - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.BoolVar(f.Destination, name, val, f.Usage) - return - } - set.Bool(name, val, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f StringFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f StringFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - f.Value = envVal - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.StringVar(f.Destination, name, f.Value, f.Usage) - return - } - set.String(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f IntFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f IntFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValInt, err := strconv.ParseInt(envVal, 0, 64) - if err != nil { - return fmt.Errorf("could not parse %s as int value for flag %s: %s", envVal, f.Name, err) - } - f.Value = int(envValInt) - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.IntVar(f.Destination, name, f.Value, f.Usage) - return - } - set.Int(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f Int64Flag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f Int64Flag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValInt, err := strconv.ParseInt(envVal, 0, 64) - if err != nil { - return fmt.Errorf("could not parse %s as int value for flag %s: %s", envVal, f.Name, err) - } - - f.Value = envValInt - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.Int64Var(f.Destination, name, f.Value, f.Usage) - return - } - set.Int64(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f UintFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f UintFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValInt, err := strconv.ParseUint(envVal, 0, 64) - if err != nil { - return fmt.Errorf("could not parse %s as uint value for flag %s: %s", envVal, f.Name, err) - } - - f.Value = uint(envValInt) - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.UintVar(f.Destination, name, f.Value, f.Usage) - return - } - set.Uint(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f Uint64Flag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f Uint64Flag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValInt, err := strconv.ParseUint(envVal, 0, 64) - if err != nil { - return fmt.Errorf("could not parse %s as uint64 value for flag %s: %s", envVal, f.Name, err) - } - - f.Value = uint64(envValInt) - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.Uint64Var(f.Destination, name, f.Value, f.Usage) - return - } - set.Uint64(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f DurationFlag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f DurationFlag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValDuration, err := time.ParseDuration(envVal) - if err != nil { - return fmt.Errorf("could not parse %s as duration for flag %s: %s", envVal, f.Name, err) - } - - f.Value = envValDuration - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.DurationVar(f.Destination, name, f.Value, f.Usage) - return - } - set.Duration(name, f.Value, f.Usage) - }) - - return nil -} - -// Apply populates the flag given the flag set and environment -// Ignores errors -func (f Float64Flag) Apply(set *flag.FlagSet) { - f.ApplyWithError(set) -} - -// ApplyWithError populates the flag given the flag set and environment -func (f Float64Flag) ApplyWithError(set *flag.FlagSet) error { - if f.EnvVar != "" { - for _, envVar := range strings.Split(f.EnvVar, ",") { - envVar = strings.TrimSpace(envVar) - if envVal, ok := syscall.Getenv(envVar); ok { - envValFloat, err := strconv.ParseFloat(envVal, 10) - if err != nil { - return fmt.Errorf("could not parse %s as float64 value for flag %s: %s", envVal, f.Name, err) - } - - f.Value = float64(envValFloat) - break - } - } - } - - eachName(f.Name, func(name string) { - if f.Destination != nil { - set.Float64Var(f.Destination, name, f.Value, f.Usage) - return - } - set.Float64(name, f.Value, f.Usage) - }) - - return nil -} - -func visibleFlags(fl []Flag) []Flag { - visible := []Flag{} - for _, flag := range fl { - field := flagValue(flag).FieldByName("Hidden") - if !field.IsValid() || !field.Bool() { - visible = append(visible, flag) - } - } - return visible -} - -func prefixFor(name string) (prefix string) { - if len(name) == 1 { - prefix = "-" - } else { - prefix = "--" - } - - return -} - -// Returns the placeholder, if any, and the unquoted usage string. -func unquoteUsage(usage string) (string, string) { - for i := 0; i < len(usage); i++ { - if usage[i] == '`' { - for j := i + 1; j < len(usage); j++ { - if usage[j] == '`' { - name := usage[i+1 : j] - usage = usage[:i] + name + usage[j+1:] - return name, usage - } - } - break - } - } - return "", usage -} - -func prefixedNames(fullName, placeholder string) string { - var prefixed string - parts := strings.Split(fullName, ",") - for i, name := range parts { - name = strings.Trim(name, " ") - prefixed += prefixFor(name) + name - if placeholder != "" { - prefixed += " " + placeholder - } - if i < len(parts)-1 { - prefixed += ", " - } - } - return prefixed -} - -func withEnvHint(envVar, str string) string { - envText := "" - if envVar != "" { - prefix := "$" - suffix := "" - sep := ", $" - if runtime.GOOS == "windows" { - prefix = "%" - suffix = "%" - sep = "%, %" - } - envText = fmt.Sprintf(" [%s%s%s]", prefix, strings.Join(strings.Split(envVar, ","), sep), suffix) - } - return str + envText -} - -func flagValue(f Flag) reflect.Value { - fv := reflect.ValueOf(f) - for fv.Kind() == reflect.Ptr { - fv = reflect.Indirect(fv) - } - return fv -} - -func stringifyFlag(f Flag) string { - fv := flagValue(f) - - switch f.(type) { - case IntSliceFlag: - return withEnvHint(fv.FieldByName("EnvVar").String(), - stringifyIntSliceFlag(f.(IntSliceFlag))) - case Int64SliceFlag: - return withEnvHint(fv.FieldByName("EnvVar").String(), - stringifyInt64SliceFlag(f.(Int64SliceFlag))) - case StringSliceFlag: - return withEnvHint(fv.FieldByName("EnvVar").String(), - stringifyStringSliceFlag(f.(StringSliceFlag))) - } - - placeholder, usage := unquoteUsage(fv.FieldByName("Usage").String()) - - needsPlaceholder := false - defaultValueString := "" - - if val := fv.FieldByName("Value"); val.IsValid() { - needsPlaceholder = true - defaultValueString = fmt.Sprintf(" (default: %v)", val.Interface()) - - if val.Kind() == reflect.String && val.String() != "" { - defaultValueString = fmt.Sprintf(" (default: %q)", val.String()) - } - } - - if defaultValueString == " (default: )" { - defaultValueString = "" - } - - if needsPlaceholder && placeholder == "" { - placeholder = defaultPlaceholder - } - - usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultValueString)) - - return withEnvHint(fv.FieldByName("EnvVar").String(), - fmt.Sprintf("%s\t%s", prefixedNames(fv.FieldByName("Name").String(), placeholder), usageWithDefault)) -} - -func stringifyIntSliceFlag(f IntSliceFlag) string { - defaultVals := []string{} - if f.Value != nil && len(f.Value.Value()) > 0 { - for _, i := range f.Value.Value() { - defaultVals = append(defaultVals, fmt.Sprintf("%d", i)) - } - } - - return stringifySliceFlag(f.Usage, f.Name, defaultVals) -} - -func stringifyInt64SliceFlag(f Int64SliceFlag) string { - defaultVals := []string{} - if f.Value != nil && len(f.Value.Value()) > 0 { - for _, i := range f.Value.Value() { - defaultVals = append(defaultVals, fmt.Sprintf("%d", i)) - } - } - - return stringifySliceFlag(f.Usage, f.Name, defaultVals) -} - -func stringifyStringSliceFlag(f StringSliceFlag) string { - defaultVals := []string{} - if f.Value != nil && len(f.Value.Value()) > 0 { - for _, s := range f.Value.Value() { - if len(s) > 0 { - defaultVals = append(defaultVals, fmt.Sprintf("%q", s)) - } - } - } - - return stringifySliceFlag(f.Usage, f.Name, defaultVals) -} - -func stringifySliceFlag(usage, name string, defaultVals []string) string { - placeholder, usage := unquoteUsage(usage) - if placeholder == "" { - placeholder = defaultPlaceholder - } - - defaultVal := "" - if len(defaultVals) > 0 { - defaultVal = fmt.Sprintf(" (default: %s)", strings.Join(defaultVals, ", ")) - } - - usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal)) - return fmt.Sprintf("%s\t%s", prefixedNames(name, placeholder), usageWithDefault) -} diff --git a/vendor/github.com/urfave/cli/flag_generated.go b/vendor/github.com/urfave/cli/flag_generated.go deleted file mode 100644 index 491b619..0000000 --- a/vendor/github.com/urfave/cli/flag_generated.go +++ /dev/null @@ -1,627 +0,0 @@ -package cli - -import ( - "flag" - "strconv" - "time" -) - -// WARNING: This file is generated! - -// BoolFlag is a flag with type bool -type BoolFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Destination *bool -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f BoolFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f BoolFlag) GetName() string { - return f.Name -} - -// Bool looks up the value of a local BoolFlag, returns -// false if not found -func (c *Context) Bool(name string) bool { - return lookupBool(name, c.flagSet) -} - -// GlobalBool looks up the value of a global BoolFlag, returns -// false if not found -func (c *Context) GlobalBool(name string) bool { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupBool(name, fs) - } - return false -} - -func lookupBool(name string, set *flag.FlagSet) bool { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseBool(f.Value.String()) - if err != nil { - return false - } - return parsed - } - return false -} - -// BoolTFlag is a flag with type bool that is true by default -type BoolTFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Destination *bool -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f BoolTFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f BoolTFlag) GetName() string { - return f.Name -} - -// BoolT looks up the value of a local BoolTFlag, returns -// false if not found -func (c *Context) BoolT(name string) bool { - return lookupBoolT(name, c.flagSet) -} - -// GlobalBoolT looks up the value of a global BoolTFlag, returns -// false if not found -func (c *Context) GlobalBoolT(name string) bool { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupBoolT(name, fs) - } - return false -} - -func lookupBoolT(name string, set *flag.FlagSet) bool { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseBool(f.Value.String()) - if err != nil { - return false - } - return parsed - } - return false -} - -// DurationFlag is a flag with type time.Duration (see https://golang.org/pkg/time/#ParseDuration) -type DurationFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value time.Duration - Destination *time.Duration -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f DurationFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f DurationFlag) GetName() string { - return f.Name -} - -// Duration looks up the value of a local DurationFlag, returns -// 0 if not found -func (c *Context) Duration(name string) time.Duration { - return lookupDuration(name, c.flagSet) -} - -// GlobalDuration looks up the value of a global DurationFlag, returns -// 0 if not found -func (c *Context) GlobalDuration(name string) time.Duration { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupDuration(name, fs) - } - return 0 -} - -func lookupDuration(name string, set *flag.FlagSet) time.Duration { - f := set.Lookup(name) - if f != nil { - parsed, err := time.ParseDuration(f.Value.String()) - if err != nil { - return 0 - } - return parsed - } - return 0 -} - -// Float64Flag is a flag with type float64 -type Float64Flag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value float64 - Destination *float64 -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f Float64Flag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f Float64Flag) GetName() string { - return f.Name -} - -// Float64 looks up the value of a local Float64Flag, returns -// 0 if not found -func (c *Context) Float64(name string) float64 { - return lookupFloat64(name, c.flagSet) -} - -// GlobalFloat64 looks up the value of a global Float64Flag, returns -// 0 if not found -func (c *Context) GlobalFloat64(name string) float64 { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupFloat64(name, fs) - } - return 0 -} - -func lookupFloat64(name string, set *flag.FlagSet) float64 { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseFloat(f.Value.String(), 64) - if err != nil { - return 0 - } - return parsed - } - return 0 -} - -// GenericFlag is a flag with type Generic -type GenericFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value Generic -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f GenericFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f GenericFlag) GetName() string { - return f.Name -} - -// Generic looks up the value of a local GenericFlag, returns -// nil if not found -func (c *Context) Generic(name string) interface{} { - return lookupGeneric(name, c.flagSet) -} - -// GlobalGeneric looks up the value of a global GenericFlag, returns -// nil if not found -func (c *Context) GlobalGeneric(name string) interface{} { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupGeneric(name, fs) - } - return nil -} - -func lookupGeneric(name string, set *flag.FlagSet) interface{} { - f := set.Lookup(name) - if f != nil { - parsed, err := f.Value, error(nil) - if err != nil { - return nil - } - return parsed - } - return nil -} - -// Int64Flag is a flag with type int64 -type Int64Flag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value int64 - Destination *int64 -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f Int64Flag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f Int64Flag) GetName() string { - return f.Name -} - -// Int64 looks up the value of a local Int64Flag, returns -// 0 if not found -func (c *Context) Int64(name string) int64 { - return lookupInt64(name, c.flagSet) -} - -// GlobalInt64 looks up the value of a global Int64Flag, returns -// 0 if not found -func (c *Context) GlobalInt64(name string) int64 { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupInt64(name, fs) - } - return 0 -} - -func lookupInt64(name string, set *flag.FlagSet) int64 { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseInt(f.Value.String(), 0, 64) - if err != nil { - return 0 - } - return parsed - } - return 0 -} - -// IntFlag is a flag with type int -type IntFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value int - Destination *int -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f IntFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f IntFlag) GetName() string { - return f.Name -} - -// Int looks up the value of a local IntFlag, returns -// 0 if not found -func (c *Context) Int(name string) int { - return lookupInt(name, c.flagSet) -} - -// GlobalInt looks up the value of a global IntFlag, returns -// 0 if not found -func (c *Context) GlobalInt(name string) int { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupInt(name, fs) - } - return 0 -} - -func lookupInt(name string, set *flag.FlagSet) int { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseInt(f.Value.String(), 0, 64) - if err != nil { - return 0 - } - return int(parsed) - } - return 0 -} - -// IntSliceFlag is a flag with type *IntSlice -type IntSliceFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value *IntSlice -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f IntSliceFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f IntSliceFlag) GetName() string { - return f.Name -} - -// IntSlice looks up the value of a local IntSliceFlag, returns -// nil if not found -func (c *Context) IntSlice(name string) []int { - return lookupIntSlice(name, c.flagSet) -} - -// GlobalIntSlice looks up the value of a global IntSliceFlag, returns -// nil if not found -func (c *Context) GlobalIntSlice(name string) []int { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupIntSlice(name, fs) - } - return nil -} - -func lookupIntSlice(name string, set *flag.FlagSet) []int { - f := set.Lookup(name) - if f != nil { - parsed, err := (f.Value.(*IntSlice)).Value(), error(nil) - if err != nil { - return nil - } - return parsed - } - return nil -} - -// Int64SliceFlag is a flag with type *Int64Slice -type Int64SliceFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value *Int64Slice -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f Int64SliceFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f Int64SliceFlag) GetName() string { - return f.Name -} - -// Int64Slice looks up the value of a local Int64SliceFlag, returns -// nil if not found -func (c *Context) Int64Slice(name string) []int64 { - return lookupInt64Slice(name, c.flagSet) -} - -// GlobalInt64Slice looks up the value of a global Int64SliceFlag, returns -// nil if not found -func (c *Context) GlobalInt64Slice(name string) []int64 { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupInt64Slice(name, fs) - } - return nil -} - -func lookupInt64Slice(name string, set *flag.FlagSet) []int64 { - f := set.Lookup(name) - if f != nil { - parsed, err := (f.Value.(*Int64Slice)).Value(), error(nil) - if err != nil { - return nil - } - return parsed - } - return nil -} - -// StringFlag is a flag with type string -type StringFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value string - Destination *string -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f StringFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f StringFlag) GetName() string { - return f.Name -} - -// String looks up the value of a local StringFlag, returns -// "" if not found -func (c *Context) String(name string) string { - return lookupString(name, c.flagSet) -} - -// GlobalString looks up the value of a global StringFlag, returns -// "" if not found -func (c *Context) GlobalString(name string) string { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupString(name, fs) - } - return "" -} - -func lookupString(name string, set *flag.FlagSet) string { - f := set.Lookup(name) - if f != nil { - parsed, err := f.Value.String(), error(nil) - if err != nil { - return "" - } - return parsed - } - return "" -} - -// StringSliceFlag is a flag with type *StringSlice -type StringSliceFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value *StringSlice -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f StringSliceFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f StringSliceFlag) GetName() string { - return f.Name -} - -// StringSlice looks up the value of a local StringSliceFlag, returns -// nil if not found -func (c *Context) StringSlice(name string) []string { - return lookupStringSlice(name, c.flagSet) -} - -// GlobalStringSlice looks up the value of a global StringSliceFlag, returns -// nil if not found -func (c *Context) GlobalStringSlice(name string) []string { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupStringSlice(name, fs) - } - return nil -} - -func lookupStringSlice(name string, set *flag.FlagSet) []string { - f := set.Lookup(name) - if f != nil { - parsed, err := (f.Value.(*StringSlice)).Value(), error(nil) - if err != nil { - return nil - } - return parsed - } - return nil -} - -// Uint64Flag is a flag with type uint64 -type Uint64Flag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value uint64 - Destination *uint64 -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f Uint64Flag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f Uint64Flag) GetName() string { - return f.Name -} - -// Uint64 looks up the value of a local Uint64Flag, returns -// 0 if not found -func (c *Context) Uint64(name string) uint64 { - return lookupUint64(name, c.flagSet) -} - -// GlobalUint64 looks up the value of a global Uint64Flag, returns -// 0 if not found -func (c *Context) GlobalUint64(name string) uint64 { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupUint64(name, fs) - } - return 0 -} - -func lookupUint64(name string, set *flag.FlagSet) uint64 { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseUint(f.Value.String(), 0, 64) - if err != nil { - return 0 - } - return parsed - } - return 0 -} - -// UintFlag is a flag with type uint -type UintFlag struct { - Name string - Usage string - EnvVar string - Hidden bool - Value uint - Destination *uint -} - -// String returns a readable representation of this value -// (for usage defaults) -func (f UintFlag) String() string { - return FlagStringer(f) -} - -// GetName returns the name of the flag -func (f UintFlag) GetName() string { - return f.Name -} - -// Uint looks up the value of a local UintFlag, returns -// 0 if not found -func (c *Context) Uint(name string) uint { - return lookupUint(name, c.flagSet) -} - -// GlobalUint looks up the value of a global UintFlag, returns -// 0 if not found -func (c *Context) GlobalUint(name string) uint { - if fs := lookupGlobalFlagSet(name, c); fs != nil { - return lookupUint(name, fs) - } - return 0 -} - -func lookupUint(name string, set *flag.FlagSet) uint { - f := set.Lookup(name) - if f != nil { - parsed, err := strconv.ParseUint(f.Value.String(), 0, 64) - if err != nil { - return 0 - } - return uint(parsed) - } - return 0 -} diff --git a/vendor/github.com/urfave/cli/funcs.go b/vendor/github.com/urfave/cli/funcs.go deleted file mode 100644 index cba5e6c..0000000 --- a/vendor/github.com/urfave/cli/funcs.go +++ /dev/null @@ -1,28 +0,0 @@ -package cli - -// BashCompleteFunc is an action to execute when the bash-completion flag is set -type BashCompleteFunc func(*Context) - -// BeforeFunc is an action to execute before any subcommands are run, but after -// the context is ready if a non-nil error is returned, no subcommands are run -type BeforeFunc func(*Context) error - -// AfterFunc is an action to execute after any subcommands are run, but after the -// subcommand has finished it is run even if Action() panics -type AfterFunc func(*Context) error - -// ActionFunc is the action to execute when no subcommands are specified -type ActionFunc func(*Context) error - -// CommandNotFoundFunc is executed if the proper command cannot be found -type CommandNotFoundFunc func(*Context, string) - -// OnUsageErrorFunc is executed if an usage error occurs. This is useful for displaying -// customized usage error messages. This function is able to replace the -// original error messages. If this function is not set, the "Incorrect usage" -// is displayed and the execution is interrupted. -type OnUsageErrorFunc func(context *Context, err error, isSubcommand bool) error - -// FlagStringFunc is used by the help generation to display a flag, which is -// expected to be a single line. -type FlagStringFunc func(Flag) string diff --git a/vendor/github.com/urfave/cli/help.go b/vendor/github.com/urfave/cli/help.go deleted file mode 100644 index 57ec98d..0000000 --- a/vendor/github.com/urfave/cli/help.go +++ /dev/null @@ -1,338 +0,0 @@ -package cli - -import ( - "fmt" - "io" - "os" - "strings" - "text/tabwriter" - "text/template" -) - -// AppHelpTemplate is the text template for the Default help topic. -// cli.go uses text/template to render templates. You can -// render custom help text by setting this variable. -var AppHelpTemplate = `NAME: - {{.Name}}{{if .Usage}} - {{.Usage}}{{end}} - -USAGE: - {{if .UsageText}}{{.UsageText}}{{else}}{{.HelpName}} {{if .VisibleFlags}}[global options]{{end}}{{if .Commands}} command [command options]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[arguments...]{{end}}{{end}}{{if .Version}}{{if not .HideVersion}} - -VERSION: - {{.Version}}{{end}}{{end}}{{if .Description}} - -DESCRIPTION: - {{.Description}}{{end}}{{if len .Authors}} - -AUTHOR{{with $length := len .Authors}}{{if ne 1 $length}}S{{end}}{{end}}: - {{range $index, $author := .Authors}}{{if $index}} - {{end}}{{$author}}{{end}}{{end}}{{if .VisibleCommands}} - -COMMANDS:{{range .VisibleCategories}}{{if .Name}} - {{.Name}}:{{end}}{{range .VisibleCommands}} - {{join .Names ", "}}{{"\t"}}{{.Usage}}{{end}}{{end}}{{end}}{{if .VisibleFlags}} - -GLOBAL OPTIONS: - {{range $index, $option := .VisibleFlags}}{{if $index}} - {{end}}{{$option}}{{end}}{{end}}{{if .Copyright}} - -COPYRIGHT: - {{.Copyright}}{{end}} -` - -// CommandHelpTemplate is the text template for the command help topic. -// cli.go uses text/template to render templates. You can -// render custom help text by setting this variable. -var CommandHelpTemplate = `NAME: - {{.HelpName}} - {{.Usage}} - -USAGE: - {{if .UsageText}}{{.UsageText}}{{else}}{{.HelpName}}{{if .VisibleFlags}} [command options]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[arguments...]{{end}}{{end}}{{if .Category}} - -CATEGORY: - {{.Category}}{{end}}{{if .Description}} - -DESCRIPTION: - {{.Description}}{{end}}{{if .VisibleFlags}} - -OPTIONS: - {{range .VisibleFlags}}{{.}} - {{end}}{{end}} -` - -// SubcommandHelpTemplate is the text template for the subcommand help topic. -// cli.go uses text/template to render templates. You can -// render custom help text by setting this variable. -var SubcommandHelpTemplate = `NAME: - {{.HelpName}} - {{if .Description}}{{.Description}}{{else}}{{.Usage}}{{end}} - -USAGE: - {{if .UsageText}}{{.UsageText}}{{else}}{{.HelpName}} command{{if .VisibleFlags}} [command options]{{end}} {{if .ArgsUsage}}{{.ArgsUsage}}{{else}}[arguments...]{{end}}{{end}} - -COMMANDS:{{range .VisibleCategories}}{{if .Name}} - {{.Name}}:{{end}}{{range .VisibleCommands}} - {{join .Names ", "}}{{"\t"}}{{.Usage}}{{end}} -{{end}}{{if .VisibleFlags}} -OPTIONS: - {{range .VisibleFlags}}{{.}} - {{end}}{{end}} -` - -var helpCommand = Command{ - Name: "help", - Aliases: []string{"h"}, - Usage: "Shows a list of commands or help for one command", - ArgsUsage: "[command]", - Action: func(c *Context) error { - args := c.Args() - if args.Present() { - return ShowCommandHelp(c, args.First()) - } - - ShowAppHelp(c) - return nil - }, -} - -var helpSubcommand = Command{ - Name: "help", - Aliases: []string{"h"}, - Usage: "Shows a list of commands or help for one command", - ArgsUsage: "[command]", - Action: func(c *Context) error { - args := c.Args() - if args.Present() { - return ShowCommandHelp(c, args.First()) - } - - return ShowSubcommandHelp(c) - }, -} - -// Prints help for the App or Command -type helpPrinter func(w io.Writer, templ string, data interface{}) - -// Prints help for the App or Command with custom template function. -type helpPrinterCustom func(w io.Writer, templ string, data interface{}, customFunc map[string]interface{}) - -// HelpPrinter is a function that writes the help output. If not set a default -// is used. The function signature is: -// func(w io.Writer, templ string, data interface{}) -var HelpPrinter helpPrinter = printHelp - -// HelpPrinterCustom is same as HelpPrinter but -// takes a custom function for template function map. -var HelpPrinterCustom helpPrinterCustom = printHelpCustom - -// VersionPrinter prints the version for the App -var VersionPrinter = printVersion - -// ShowAppHelpAndExit - Prints the list of subcommands for the app and exits with exit code. -func ShowAppHelpAndExit(c *Context, exitCode int) { - ShowAppHelp(c) - os.Exit(exitCode) -} - -// ShowAppHelp is an action that displays the help. -func ShowAppHelp(c *Context) (err error) { - if c.App.CustomAppHelpTemplate == "" { - HelpPrinter(c.App.Writer, AppHelpTemplate, c.App) - return - } - customAppData := func() map[string]interface{} { - if c.App.ExtraInfo == nil { - return nil - } - return map[string]interface{}{ - "ExtraInfo": c.App.ExtraInfo, - } - } - HelpPrinterCustom(c.App.Writer, c.App.CustomAppHelpTemplate, c.App, customAppData()) - return nil -} - -// DefaultAppComplete prints the list of subcommands as the default app completion method -func DefaultAppComplete(c *Context) { - for _, command := range c.App.Commands { - if command.Hidden { - continue - } - for _, name := range command.Names() { - fmt.Fprintln(c.App.Writer, name) - } - } -} - -// ShowCommandHelpAndExit - exits with code after showing help -func ShowCommandHelpAndExit(c *Context, command string, code int) { - ShowCommandHelp(c, command) - os.Exit(code) -} - -// ShowCommandHelp prints help for the given command -func ShowCommandHelp(ctx *Context, command string) error { - // show the subcommand help for a command with subcommands - if command == "" { - HelpPrinter(ctx.App.Writer, SubcommandHelpTemplate, ctx.App) - return nil - } - - for _, c := range ctx.App.Commands { - if c.HasName(command) { - if c.CustomHelpTemplate != "" { - HelpPrinterCustom(ctx.App.Writer, c.CustomHelpTemplate, c, nil) - } else { - HelpPrinter(ctx.App.Writer, CommandHelpTemplate, c) - } - return nil - } - } - - if ctx.App.CommandNotFound == nil { - return NewExitError(fmt.Sprintf("No help topic for '%v'", command), 3) - } - - ctx.App.CommandNotFound(ctx, command) - return nil -} - -// ShowSubcommandHelp prints help for the given subcommand -func ShowSubcommandHelp(c *Context) error { - return ShowCommandHelp(c, c.Command.Name) -} - -// ShowVersion prints the version number of the App -func ShowVersion(c *Context) { - VersionPrinter(c) -} - -func printVersion(c *Context) { - fmt.Fprintf(c.App.Writer, "%v version %v\n", c.App.Name, c.App.Version) -} - -// ShowCompletions prints the lists of commands within a given context -func ShowCompletions(c *Context) { - a := c.App - if a != nil && a.BashComplete != nil { - a.BashComplete(c) - } -} - -// ShowCommandCompletions prints the custom completions for a given command -func ShowCommandCompletions(ctx *Context, command string) { - c := ctx.App.Command(command) - if c != nil && c.BashComplete != nil { - c.BashComplete(ctx) - } -} - -func printHelpCustom(out io.Writer, templ string, data interface{}, customFunc map[string]interface{}) { - funcMap := template.FuncMap{ - "join": strings.Join, - } - if customFunc != nil { - for key, value := range customFunc { - funcMap[key] = value - } - } - - w := tabwriter.NewWriter(out, 1, 8, 2, ' ', 0) - t := template.Must(template.New("help").Funcs(funcMap).Parse(templ)) - err := t.Execute(w, data) - if err != nil { - // If the writer is closed, t.Execute will fail, and there's nothing - // we can do to recover. - if os.Getenv("CLI_TEMPLATE_ERROR_DEBUG") != "" { - fmt.Fprintf(ErrWriter, "CLI TEMPLATE ERROR: %#v\n", err) - } - return - } - w.Flush() -} - -func printHelp(out io.Writer, templ string, data interface{}) { - printHelpCustom(out, templ, data, nil) -} - -func checkVersion(c *Context) bool { - found := false - if VersionFlag.GetName() != "" { - eachName(VersionFlag.GetName(), func(name string) { - if c.GlobalBool(name) || c.Bool(name) { - found = true - } - }) - } - return found -} - -func checkHelp(c *Context) bool { - found := false - if HelpFlag.GetName() != "" { - eachName(HelpFlag.GetName(), func(name string) { - if c.GlobalBool(name) || c.Bool(name) { - found = true - } - }) - } - return found -} - -func checkCommandHelp(c *Context, name string) bool { - if c.Bool("h") || c.Bool("help") { - ShowCommandHelp(c, name) - return true - } - - return false -} - -func checkSubcommandHelp(c *Context) bool { - if c.Bool("h") || c.Bool("help") { - ShowSubcommandHelp(c) - return true - } - - return false -} - -func checkShellCompleteFlag(a *App, arguments []string) (bool, []string) { - if !a.EnableBashCompletion { - return false, arguments - } - - pos := len(arguments) - 1 - lastArg := arguments[pos] - - if lastArg != "--"+BashCompletionFlag.GetName() { - return false, arguments - } - - return true, arguments[:pos] -} - -func checkCompletions(c *Context) bool { - if !c.shellComplete { - return false - } - - if args := c.Args(); args.Present() { - name := args.First() - if cmd := c.App.Command(name); cmd != nil { - // let the command handle the completion - return false - } - } - - ShowCompletions(c) - return true -} - -func checkCommandCompletions(c *Context, name string) bool { - if !c.shellComplete { - return false - } - - ShowCommandCompletions(c, name) - return true -} diff --git a/vendor/golang.org/x/crypto/AUTHORS b/vendor/golang.org/x/crypto/AUTHORS deleted file mode 100644 index 2b00ddb..0000000 --- a/vendor/golang.org/x/crypto/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at https://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/crypto/CONTRIBUTORS b/vendor/golang.org/x/crypto/CONTRIBUTORS deleted file mode 100644 index 1fbd3e9..0000000 --- a/vendor/golang.org/x/crypto/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at https://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/crypto/LICENSE b/vendor/golang.org/x/crypto/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/crypto/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/crypto/PATENTS b/vendor/golang.org/x/crypto/PATENTS deleted file mode 100644 index 7330990..0000000 --- a/vendor/golang.org/x/crypto/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go b/vendor/golang.org/x/crypto/ssh/terminal/terminal.go deleted file mode 100644 index 9a88759..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/terminal.go +++ /dev/null @@ -1,951 +0,0 @@ -// Copyright 2011 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 terminal - -import ( - "bytes" - "io" - "sync" - "unicode/utf8" -) - -// EscapeCodes contains escape sequences that can be written to the terminal in -// order to achieve different styles of text. -type EscapeCodes struct { - // Foreground colors - Black, Red, Green, Yellow, Blue, Magenta, Cyan, White []byte - - // Reset all attributes - Reset []byte -} - -var vt100EscapeCodes = EscapeCodes{ - Black: []byte{keyEscape, '[', '3', '0', 'm'}, - Red: []byte{keyEscape, '[', '3', '1', 'm'}, - Green: []byte{keyEscape, '[', '3', '2', 'm'}, - Yellow: []byte{keyEscape, '[', '3', '3', 'm'}, - Blue: []byte{keyEscape, '[', '3', '4', 'm'}, - Magenta: []byte{keyEscape, '[', '3', '5', 'm'}, - Cyan: []byte{keyEscape, '[', '3', '6', 'm'}, - White: []byte{keyEscape, '[', '3', '7', 'm'}, - - Reset: []byte{keyEscape, '[', '0', 'm'}, -} - -// Terminal contains the state for running a VT100 terminal that is capable of -// reading lines of input. -type Terminal struct { - // AutoCompleteCallback, if non-null, is called for each keypress with - // the full input line and the current position of the cursor (in - // bytes, as an index into |line|). If it returns ok=false, the key - // press is processed normally. Otherwise it returns a replacement line - // and the new cursor position. - AutoCompleteCallback func(line string, pos int, key rune) (newLine string, newPos int, ok bool) - - // Escape contains a pointer to the escape codes for this terminal. - // It's always a valid pointer, although the escape codes themselves - // may be empty if the terminal doesn't support them. - Escape *EscapeCodes - - // lock protects the terminal and the state in this object from - // concurrent processing of a key press and a Write() call. - lock sync.Mutex - - c io.ReadWriter - prompt []rune - - // line is the current line being entered. - line []rune - // pos is the logical position of the cursor in line - pos int - // echo is true if local echo is enabled - echo bool - // pasteActive is true iff there is a bracketed paste operation in - // progress. - pasteActive bool - - // cursorX contains the current X value of the cursor where the left - // edge is 0. cursorY contains the row number where the first row of - // the current line is 0. - cursorX, cursorY int - // maxLine is the greatest value of cursorY so far. - maxLine int - - termWidth, termHeight int - - // outBuf contains the terminal data to be sent. - outBuf []byte - // remainder contains the remainder of any partial key sequences after - // a read. It aliases into inBuf. - remainder []byte - inBuf [256]byte - - // history contains previously entered commands so that they can be - // accessed with the up and down keys. - history stRingBuffer - // historyIndex stores the currently accessed history entry, where zero - // means the immediately previous entry. - historyIndex int - // When navigating up and down the history it's possible to return to - // the incomplete, initial line. That value is stored in - // historyPending. - historyPending string -} - -// NewTerminal runs a VT100 terminal on the given ReadWriter. If the ReadWriter is -// a local terminal, that terminal must first have been put into raw mode. -// prompt is a string that is written at the start of each input line (i.e. -// "> "). -func NewTerminal(c io.ReadWriter, prompt string) *Terminal { - return &Terminal{ - Escape: &vt100EscapeCodes, - c: c, - prompt: []rune(prompt), - termWidth: 80, - termHeight: 24, - echo: true, - historyIndex: -1, - } -} - -const ( - keyCtrlD = 4 - keyCtrlU = 21 - keyEnter = '\r' - keyEscape = 27 - keyBackspace = 127 - keyUnknown = 0xd800 /* UTF-16 surrogate area */ + iota - keyUp - keyDown - keyLeft - keyRight - keyAltLeft - keyAltRight - keyHome - keyEnd - keyDeleteWord - keyDeleteLine - keyClearScreen - keyPasteStart - keyPasteEnd -) - -var ( - crlf = []byte{'\r', '\n'} - pasteStart = []byte{keyEscape, '[', '2', '0', '0', '~'} - pasteEnd = []byte{keyEscape, '[', '2', '0', '1', '~'} -) - -// bytesToKey tries to parse a key sequence from b. If successful, it returns -// the key and the remainder of the input. Otherwise it returns utf8.RuneError. -func bytesToKey(b []byte, pasteActive bool) (rune, []byte) { - if len(b) == 0 { - return utf8.RuneError, nil - } - - if !pasteActive { - switch b[0] { - case 1: // ^A - return keyHome, b[1:] - case 5: // ^E - return keyEnd, b[1:] - case 8: // ^H - return keyBackspace, b[1:] - case 11: // ^K - return keyDeleteLine, b[1:] - case 12: // ^L - return keyClearScreen, b[1:] - case 23: // ^W - return keyDeleteWord, b[1:] - } - } - - if b[0] != keyEscape { - if !utf8.FullRune(b) { - return utf8.RuneError, b - } - r, l := utf8.DecodeRune(b) - return r, b[l:] - } - - if !pasteActive && len(b) >= 3 && b[0] == keyEscape && b[1] == '[' { - switch b[2] { - case 'A': - return keyUp, b[3:] - case 'B': - return keyDown, b[3:] - case 'C': - return keyRight, b[3:] - case 'D': - return keyLeft, b[3:] - case 'H': - return keyHome, b[3:] - case 'F': - return keyEnd, b[3:] - } - } - - if !pasteActive && len(b) >= 6 && b[0] == keyEscape && b[1] == '[' && b[2] == '1' && b[3] == ';' && b[4] == '3' { - switch b[5] { - case 'C': - return keyAltRight, b[6:] - case 'D': - return keyAltLeft, b[6:] - } - } - - if !pasteActive && len(b) >= 6 && bytes.Equal(b[:6], pasteStart) { - return keyPasteStart, b[6:] - } - - if pasteActive && len(b) >= 6 && bytes.Equal(b[:6], pasteEnd) { - return keyPasteEnd, b[6:] - } - - // If we get here then we have a key that we don't recognise, or a - // partial sequence. It's not clear how one should find the end of a - // sequence without knowing them all, but it seems that [a-zA-Z~] only - // appears at the end of a sequence. - for i, c := range b[0:] { - if c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '~' { - return keyUnknown, b[i+1:] - } - } - - return utf8.RuneError, b -} - -// queue appends data to the end of t.outBuf -func (t *Terminal) queue(data []rune) { - t.outBuf = append(t.outBuf, []byte(string(data))...) -} - -var eraseUnderCursor = []rune{' ', keyEscape, '[', 'D'} -var space = []rune{' '} - -func isPrintable(key rune) bool { - isInSurrogateArea := key >= 0xd800 && key <= 0xdbff - return key >= 32 && !isInSurrogateArea -} - -// moveCursorToPos appends data to t.outBuf which will move the cursor to the -// given, logical position in the text. -func (t *Terminal) moveCursorToPos(pos int) { - if !t.echo { - return - } - - x := visualLength(t.prompt) + pos - y := x / t.termWidth - x = x % t.termWidth - - up := 0 - if y < t.cursorY { - up = t.cursorY - y - } - - down := 0 - if y > t.cursorY { - down = y - t.cursorY - } - - left := 0 - if x < t.cursorX { - left = t.cursorX - x - } - - right := 0 - if x > t.cursorX { - right = x - t.cursorX - } - - t.cursorX = x - t.cursorY = y - t.move(up, down, left, right) -} - -func (t *Terminal) move(up, down, left, right int) { - movement := make([]rune, 3*(up+down+left+right)) - m := movement - for i := 0; i < up; i++ { - m[0] = keyEscape - m[1] = '[' - m[2] = 'A' - m = m[3:] - } - for i := 0; i < down; i++ { - m[0] = keyEscape - m[1] = '[' - m[2] = 'B' - m = m[3:] - } - for i := 0; i < left; i++ { - m[0] = keyEscape - m[1] = '[' - m[2] = 'D' - m = m[3:] - } - for i := 0; i < right; i++ { - m[0] = keyEscape - m[1] = '[' - m[2] = 'C' - m = m[3:] - } - - t.queue(movement) -} - -func (t *Terminal) clearLineToRight() { - op := []rune{keyEscape, '[', 'K'} - t.queue(op) -} - -const maxLineLength = 4096 - -func (t *Terminal) setLine(newLine []rune, newPos int) { - if t.echo { - t.moveCursorToPos(0) - t.writeLine(newLine) - for i := len(newLine); i < len(t.line); i++ { - t.writeLine(space) - } - t.moveCursorToPos(newPos) - } - t.line = newLine - t.pos = newPos -} - -func (t *Terminal) advanceCursor(places int) { - t.cursorX += places - t.cursorY += t.cursorX / t.termWidth - if t.cursorY > t.maxLine { - t.maxLine = t.cursorY - } - t.cursorX = t.cursorX % t.termWidth - - if places > 0 && t.cursorX == 0 { - // Normally terminals will advance the current position - // when writing a character. But that doesn't happen - // for the last character in a line. However, when - // writing a character (except a new line) that causes - // a line wrap, the position will be advanced two - // places. - // - // So, if we are stopping at the end of a line, we - // need to write a newline so that our cursor can be - // advanced to the next line. - t.outBuf = append(t.outBuf, '\r', '\n') - } -} - -func (t *Terminal) eraseNPreviousChars(n int) { - if n == 0 { - return - } - - if t.pos < n { - n = t.pos - } - t.pos -= n - t.moveCursorToPos(t.pos) - - copy(t.line[t.pos:], t.line[n+t.pos:]) - t.line = t.line[:len(t.line)-n] - if t.echo { - t.writeLine(t.line[t.pos:]) - for i := 0; i < n; i++ { - t.queue(space) - } - t.advanceCursor(n) - t.moveCursorToPos(t.pos) - } -} - -// countToLeftWord returns then number of characters from the cursor to the -// start of the previous word. -func (t *Terminal) countToLeftWord() int { - if t.pos == 0 { - return 0 - } - - pos := t.pos - 1 - for pos > 0 { - if t.line[pos] != ' ' { - break - } - pos-- - } - for pos > 0 { - if t.line[pos] == ' ' { - pos++ - break - } - pos-- - } - - return t.pos - pos -} - -// countToRightWord returns then number of characters from the cursor to the -// start of the next word. -func (t *Terminal) countToRightWord() int { - pos := t.pos - for pos < len(t.line) { - if t.line[pos] == ' ' { - break - } - pos++ - } - for pos < len(t.line) { - if t.line[pos] != ' ' { - break - } - pos++ - } - return pos - t.pos -} - -// visualLength returns the number of visible glyphs in s. -func visualLength(runes []rune) int { - inEscapeSeq := false - length := 0 - - for _, r := range runes { - switch { - case inEscapeSeq: - if (r >= 'a' && r <= 'z') || (r >= 'A' && r <= 'Z') { - inEscapeSeq = false - } - case r == '\x1b': - inEscapeSeq = true - default: - length++ - } - } - - return length -} - -// handleKey processes the given key and, optionally, returns a line of text -// that the user has entered. -func (t *Terminal) handleKey(key rune) (line string, ok bool) { - if t.pasteActive && key != keyEnter { - t.addKeyToLine(key) - return - } - - switch key { - case keyBackspace: - if t.pos == 0 { - return - } - t.eraseNPreviousChars(1) - case keyAltLeft: - // move left by a word. - t.pos -= t.countToLeftWord() - t.moveCursorToPos(t.pos) - case keyAltRight: - // move right by a word. - t.pos += t.countToRightWord() - t.moveCursorToPos(t.pos) - case keyLeft: - if t.pos == 0 { - return - } - t.pos-- - t.moveCursorToPos(t.pos) - case keyRight: - if t.pos == len(t.line) { - return - } - t.pos++ - t.moveCursorToPos(t.pos) - case keyHome: - if t.pos == 0 { - return - } - t.pos = 0 - t.moveCursorToPos(t.pos) - case keyEnd: - if t.pos == len(t.line) { - return - } - t.pos = len(t.line) - t.moveCursorToPos(t.pos) - case keyUp: - entry, ok := t.history.NthPreviousEntry(t.historyIndex + 1) - if !ok { - return "", false - } - if t.historyIndex == -1 { - t.historyPending = string(t.line) - } - t.historyIndex++ - runes := []rune(entry) - t.setLine(runes, len(runes)) - case keyDown: - switch t.historyIndex { - case -1: - return - case 0: - runes := []rune(t.historyPending) - t.setLine(runes, len(runes)) - t.historyIndex-- - default: - entry, ok := t.history.NthPreviousEntry(t.historyIndex - 1) - if ok { - t.historyIndex-- - runes := []rune(entry) - t.setLine(runes, len(runes)) - } - } - case keyEnter: - t.moveCursorToPos(len(t.line)) - t.queue([]rune("\r\n")) - line = string(t.line) - ok = true - t.line = t.line[:0] - t.pos = 0 - t.cursorX = 0 - t.cursorY = 0 - t.maxLine = 0 - case keyDeleteWord: - // Delete zero or more spaces and then one or more characters. - t.eraseNPreviousChars(t.countToLeftWord()) - case keyDeleteLine: - // Delete everything from the current cursor position to the - // end of line. - for i := t.pos; i < len(t.line); i++ { - t.queue(space) - t.advanceCursor(1) - } - t.line = t.line[:t.pos] - t.moveCursorToPos(t.pos) - case keyCtrlD: - // Erase the character under the current position. - // The EOF case when the line is empty is handled in - // readLine(). - if t.pos < len(t.line) { - t.pos++ - t.eraseNPreviousChars(1) - } - case keyCtrlU: - t.eraseNPreviousChars(t.pos) - case keyClearScreen: - // Erases the screen and moves the cursor to the home position. - t.queue([]rune("\x1b[2J\x1b[H")) - t.queue(t.prompt) - t.cursorX, t.cursorY = 0, 0 - t.advanceCursor(visualLength(t.prompt)) - t.setLine(t.line, t.pos) - default: - if t.AutoCompleteCallback != nil { - prefix := string(t.line[:t.pos]) - suffix := string(t.line[t.pos:]) - - t.lock.Unlock() - newLine, newPos, completeOk := t.AutoCompleteCallback(prefix+suffix, len(prefix), key) - t.lock.Lock() - - if completeOk { - t.setLine([]rune(newLine), utf8.RuneCount([]byte(newLine)[:newPos])) - return - } - } - if !isPrintable(key) { - return - } - if len(t.line) == maxLineLength { - return - } - t.addKeyToLine(key) - } - return -} - -// addKeyToLine inserts the given key at the current position in the current -// line. -func (t *Terminal) addKeyToLine(key rune) { - if len(t.line) == cap(t.line) { - newLine := make([]rune, len(t.line), 2*(1+len(t.line))) - copy(newLine, t.line) - t.line = newLine - } - t.line = t.line[:len(t.line)+1] - copy(t.line[t.pos+1:], t.line[t.pos:]) - t.line[t.pos] = key - if t.echo { - t.writeLine(t.line[t.pos:]) - } - t.pos++ - t.moveCursorToPos(t.pos) -} - -func (t *Terminal) writeLine(line []rune) { - for len(line) != 0 { - remainingOnLine := t.termWidth - t.cursorX - todo := len(line) - if todo > remainingOnLine { - todo = remainingOnLine - } - t.queue(line[:todo]) - t.advanceCursor(visualLength(line[:todo])) - line = line[todo:] - } -} - -// writeWithCRLF writes buf to w but replaces all occurrences of \n with \r\n. -func writeWithCRLF(w io.Writer, buf []byte) (n int, err error) { - for len(buf) > 0 { - i := bytes.IndexByte(buf, '\n') - todo := len(buf) - if i >= 0 { - todo = i - } - - var nn int - nn, err = w.Write(buf[:todo]) - n += nn - if err != nil { - return n, err - } - buf = buf[todo:] - - if i >= 0 { - if _, err = w.Write(crlf); err != nil { - return n, err - } - n++ - buf = buf[1:] - } - } - - return n, nil -} - -func (t *Terminal) Write(buf []byte) (n int, err error) { - t.lock.Lock() - defer t.lock.Unlock() - - if t.cursorX == 0 && t.cursorY == 0 { - // This is the easy case: there's nothing on the screen that we - // have to move out of the way. - return writeWithCRLF(t.c, buf) - } - - // We have a prompt and possibly user input on the screen. We - // have to clear it first. - t.move(0 /* up */, 0 /* down */, t.cursorX /* left */, 0 /* right */) - t.cursorX = 0 - t.clearLineToRight() - - for t.cursorY > 0 { - t.move(1 /* up */, 0, 0, 0) - t.cursorY-- - t.clearLineToRight() - } - - if _, err = t.c.Write(t.outBuf); err != nil { - return - } - t.outBuf = t.outBuf[:0] - - if n, err = writeWithCRLF(t.c, buf); err != nil { - return - } - - t.writeLine(t.prompt) - if t.echo { - t.writeLine(t.line) - } - - t.moveCursorToPos(t.pos) - - if _, err = t.c.Write(t.outBuf); err != nil { - return - } - t.outBuf = t.outBuf[:0] - return -} - -// ReadPassword temporarily changes the prompt and reads a password, without -// echo, from the terminal. -func (t *Terminal) ReadPassword(prompt string) (line string, err error) { - t.lock.Lock() - defer t.lock.Unlock() - - oldPrompt := t.prompt - t.prompt = []rune(prompt) - t.echo = false - - line, err = t.readLine() - - t.prompt = oldPrompt - t.echo = true - - return -} - -// ReadLine returns a line of input from the terminal. -func (t *Terminal) ReadLine() (line string, err error) { - t.lock.Lock() - defer t.lock.Unlock() - - return t.readLine() -} - -func (t *Terminal) readLine() (line string, err error) { - // t.lock must be held at this point - - if t.cursorX == 0 && t.cursorY == 0 { - t.writeLine(t.prompt) - t.c.Write(t.outBuf) - t.outBuf = t.outBuf[:0] - } - - lineIsPasted := t.pasteActive - - for { - rest := t.remainder - lineOk := false - for !lineOk { - var key rune - key, rest = bytesToKey(rest, t.pasteActive) - if key == utf8.RuneError { - break - } - if !t.pasteActive { - if key == keyCtrlD { - if len(t.line) == 0 { - return "", io.EOF - } - } - if key == keyPasteStart { - t.pasteActive = true - if len(t.line) == 0 { - lineIsPasted = true - } - continue - } - } else if key == keyPasteEnd { - t.pasteActive = false - continue - } - if !t.pasteActive { - lineIsPasted = false - } - line, lineOk = t.handleKey(key) - } - if len(rest) > 0 { - n := copy(t.inBuf[:], rest) - t.remainder = t.inBuf[:n] - } else { - t.remainder = nil - } - t.c.Write(t.outBuf) - t.outBuf = t.outBuf[:0] - if lineOk { - if t.echo { - t.historyIndex = -1 - t.history.Add(line) - } - if lineIsPasted { - err = ErrPasteIndicator - } - return - } - - // t.remainder is a slice at the beginning of t.inBuf - // containing a partial key sequence - readBuf := t.inBuf[len(t.remainder):] - var n int - - t.lock.Unlock() - n, err = t.c.Read(readBuf) - t.lock.Lock() - - if err != nil { - return - } - - t.remainder = t.inBuf[:n+len(t.remainder)] - } -} - -// SetPrompt sets the prompt to be used when reading subsequent lines. -func (t *Terminal) SetPrompt(prompt string) { - t.lock.Lock() - defer t.lock.Unlock() - - t.prompt = []rune(prompt) -} - -func (t *Terminal) clearAndRepaintLinePlusNPrevious(numPrevLines int) { - // Move cursor to column zero at the start of the line. - t.move(t.cursorY, 0, t.cursorX, 0) - t.cursorX, t.cursorY = 0, 0 - t.clearLineToRight() - for t.cursorY < numPrevLines { - // Move down a line - t.move(0, 1, 0, 0) - t.cursorY++ - t.clearLineToRight() - } - // Move back to beginning. - t.move(t.cursorY, 0, 0, 0) - t.cursorX, t.cursorY = 0, 0 - - t.queue(t.prompt) - t.advanceCursor(visualLength(t.prompt)) - t.writeLine(t.line) - t.moveCursorToPos(t.pos) -} - -func (t *Terminal) SetSize(width, height int) error { - t.lock.Lock() - defer t.lock.Unlock() - - if width == 0 { - width = 1 - } - - oldWidth := t.termWidth - t.termWidth, t.termHeight = width, height - - switch { - case width == oldWidth: - // If the width didn't change then nothing else needs to be - // done. - return nil - case len(t.line) == 0 && t.cursorX == 0 && t.cursorY == 0: - // If there is nothing on current line and no prompt printed, - // just do nothing - return nil - case width < oldWidth: - // Some terminals (e.g. xterm) will truncate lines that were - // too long when shinking. Others, (e.g. gnome-terminal) will - // attempt to wrap them. For the former, repainting t.maxLine - // works great, but that behaviour goes badly wrong in the case - // of the latter because they have doubled every full line. - - // We assume that we are working on a terminal that wraps lines - // and adjust the cursor position based on every previous line - // wrapping and turning into two. This causes the prompt on - // xterms to move upwards, which isn't great, but it avoids a - // huge mess with gnome-terminal. - if t.cursorX >= t.termWidth { - t.cursorX = t.termWidth - 1 - } - t.cursorY *= 2 - t.clearAndRepaintLinePlusNPrevious(t.maxLine * 2) - case width > oldWidth: - // If the terminal expands then our position calculations will - // be wrong in the future because we think the cursor is - // |t.pos| chars into the string, but there will be a gap at - // the end of any wrapped line. - // - // But the position will actually be correct until we move, so - // we can move back to the beginning and repaint everything. - t.clearAndRepaintLinePlusNPrevious(t.maxLine) - } - - _, err := t.c.Write(t.outBuf) - t.outBuf = t.outBuf[:0] - return err -} - -type pasteIndicatorError struct{} - -func (pasteIndicatorError) Error() string { - return "terminal: ErrPasteIndicator not correctly handled" -} - -// ErrPasteIndicator may be returned from ReadLine as the error, in addition -// to valid line data. It indicates that bracketed paste mode is enabled and -// that the returned line consists only of pasted data. Programs may wish to -// interpret pasted data more literally than typed data. -var ErrPasteIndicator = pasteIndicatorError{} - -// SetBracketedPasteMode requests that the terminal bracket paste operations -// with markers. Not all terminals support this but, if it is supported, then -// enabling this mode will stop any autocomplete callback from running due to -// pastes. Additionally, any lines that are completely pasted will be returned -// from ReadLine with the error set to ErrPasteIndicator. -func (t *Terminal) SetBracketedPasteMode(on bool) { - if on { - io.WriteString(t.c, "\x1b[?2004h") - } else { - io.WriteString(t.c, "\x1b[?2004l") - } -} - -// stRingBuffer is a ring buffer of strings. -type stRingBuffer struct { - // entries contains max elements. - entries []string - max int - // head contains the index of the element most recently added to the ring. - head int - // size contains the number of elements in the ring. - size int -} - -func (s *stRingBuffer) Add(a string) { - if s.entries == nil { - const defaultNumEntries = 100 - s.entries = make([]string, defaultNumEntries) - s.max = defaultNumEntries - } - - s.head = (s.head + 1) % s.max - s.entries[s.head] = a - if s.size < s.max { - s.size++ - } -} - -// NthPreviousEntry returns the value passed to the nth previous call to Add. -// If n is zero then the immediately prior value is returned, if one, then the -// next most recent, and so on. If such an element doesn't exist then ok is -// false. -func (s *stRingBuffer) NthPreviousEntry(n int) (value string, ok bool) { - if n >= s.size { - return "", false - } - index := s.head - n - if index < 0 { - index += s.max - } - return s.entries[index], true -} - -// readPasswordLine reads from reader until it finds \n or io.EOF. -// The slice returned does not include the \n. -// readPasswordLine also ignores any \r it finds. -func readPasswordLine(reader io.Reader) ([]byte, error) { - var buf [1]byte - var ret []byte - - for { - n, err := reader.Read(buf[:]) - if n > 0 { - switch buf[0] { - case '\n': - return ret, nil - case '\r': - // remove \r from passwords on Windows - default: - ret = append(ret, buf[0]) - } - continue - } - if err != nil { - if err == io.EOF && len(ret) > 0 { - return ret, nil - } - return ret, err - } - } -} diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util.go b/vendor/golang.org/x/crypto/ssh/terminal/util.go deleted file mode 100644 index 02dad48..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util.go +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2011 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. - -// +build darwin dragonfly freebsd linux,!appengine netbsd openbsd - -// Package terminal provides support functions for dealing with terminals, as -// commonly found on UNIX systems. -// -// Putting a terminal into raw mode is the most common requirement: -// -// oldState, err := terminal.MakeRaw(0) -// if err != nil { -// panic(err) -// } -// defer terminal.Restore(0, oldState) -package terminal // import "golang.org/x/crypto/ssh/terminal" - -import ( - "golang.org/x/sys/unix" -) - -// State contains the state of a terminal. -type State struct { - termios unix.Termios -} - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal(fd int) bool { - _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) - return err == nil -} - -// MakeRaw put the terminal connected to the given file descriptor into raw -// mode and returns the previous state of the terminal so that it can be -// restored. -func MakeRaw(fd int) (*State, error) { - termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios) - if err != nil { - return nil, err - } - - oldState := State{termios: *termios} - - // This attempts to replicate the behaviour documented for cfmakeraw in - // the termios(3) manpage. - termios.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON - termios.Oflag &^= unix.OPOST - termios.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN - termios.Cflag &^= unix.CSIZE | unix.PARENB - termios.Cflag |= unix.CS8 - termios.Cc[unix.VMIN] = 1 - termios.Cc[unix.VTIME] = 0 - if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, termios); err != nil { - return nil, err - } - - return &oldState, nil -} - -// GetState returns the current state of a terminal which may be useful to -// restore the terminal after a signal. -func GetState(fd int) (*State, error) { - termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios) - if err != nil { - return nil, err - } - - return &State{termios: *termios}, nil -} - -// Restore restores the terminal connected to the given file descriptor to a -// previous state. -func Restore(fd int, state *State) error { - return unix.IoctlSetTermios(fd, ioctlWriteTermios, &state.termios) -} - -// GetSize returns the dimensions of the given terminal. -func GetSize(fd int) (width, height int, err error) { - ws, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ) - if err != nil { - return -1, -1, err - } - return int(ws.Col), int(ws.Row), nil -} - -// passwordReader is an io.Reader that reads from a specific file descriptor. -type passwordReader int - -func (r passwordReader) Read(buf []byte) (int, error) { - return unix.Read(int(r), buf) -} - -// ReadPassword reads a line of input from a terminal without local echo. This -// is commonly used for inputting passwords and other sensitive data. The slice -// returned does not include the \n. -func ReadPassword(fd int) ([]byte, error) { - termios, err := unix.IoctlGetTermios(fd, ioctlReadTermios) - if err != nil { - return nil, err - } - - newState := *termios - newState.Lflag &^= unix.ECHO - newState.Lflag |= unix.ICANON | unix.ISIG - newState.Iflag |= unix.ICRNL - if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, &newState); err != nil { - return nil, err - } - - defer func() { - unix.IoctlSetTermios(fd, ioctlWriteTermios, termios) - }() - - return readPasswordLine(passwordReader(fd)) -} diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go b/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go deleted file mode 100644 index cb23a59..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util_bsd.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright 2013 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. - -// +build darwin dragonfly freebsd netbsd openbsd - -package terminal - -import "golang.org/x/sys/unix" - -const ioctlReadTermios = unix.TIOCGETA -const ioctlWriteTermios = unix.TIOCSETA diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go b/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go deleted file mode 100644 index 5fadfe8..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util_linux.go +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright 2013 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 terminal - -import "golang.org/x/sys/unix" - -const ioctlReadTermios = unix.TCGETS -const ioctlWriteTermios = unix.TCSETS diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go b/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go deleted file mode 100644 index 799f049..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util_plan9.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package terminal provides support functions for dealing with terminals, as -// commonly found on UNIX systems. -// -// Putting a terminal into raw mode is the most common requirement: -// -// oldState, err := terminal.MakeRaw(0) -// if err != nil { -// panic(err) -// } -// defer terminal.Restore(0, oldState) -package terminal - -import ( - "fmt" - "runtime" -) - -type State struct{} - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal(fd int) bool { - return false -} - -// MakeRaw put the terminal connected to the given file descriptor into raw -// mode and returns the previous state of the terminal so that it can be -// restored. -func MakeRaw(fd int) (*State, error) { - return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - -// GetState returns the current state of a terminal which may be useful to -// restore the terminal after a signal. -func GetState(fd int) (*State, error) { - return nil, fmt.Errorf("terminal: GetState not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - -// Restore restores the terminal connected to the given file descriptor to a -// previous state. -func Restore(fd int, state *State) error { - return fmt.Errorf("terminal: Restore not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - -// GetSize returns the dimensions of the given terminal. -func GetSize(fd int) (width, height int, err error) { - return 0, 0, fmt.Errorf("terminal: GetSize not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} - -// ReadPassword reads a line of input from a terminal without local echo. This -// is commonly used for inputting passwords and other sensitive data. The slice -// returned does not include the \n. -func ReadPassword(fd int) ([]byte, error) { - return nil, fmt.Errorf("terminal: ReadPassword not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) -} diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go b/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go deleted file mode 100644 index a2e1b57..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util_solaris.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2015 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. - -// +build solaris - -package terminal // import "golang.org/x/crypto/ssh/terminal" - -import ( - "golang.org/x/sys/unix" - "io" - "syscall" -) - -// State contains the state of a terminal. -type State struct { - state *unix.Termios -} - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal(fd int) bool { - _, err := unix.IoctlGetTermio(fd, unix.TCGETA) - return err == nil -} - -// ReadPassword reads a line of input from a terminal without local echo. This -// is commonly used for inputting passwords and other sensitive data. The slice -// returned does not include the \n. -func ReadPassword(fd int) ([]byte, error) { - // see also: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libast/common/uwin/getpass.c - val, err := unix.IoctlGetTermios(fd, unix.TCGETS) - if err != nil { - return nil, err - } - oldState := *val - - newState := oldState - newState.Lflag &^= syscall.ECHO - newState.Lflag |= syscall.ICANON | syscall.ISIG - newState.Iflag |= syscall.ICRNL - err = unix.IoctlSetTermios(fd, unix.TCSETS, &newState) - if err != nil { - return nil, err - } - - defer unix.IoctlSetTermios(fd, unix.TCSETS, &oldState) - - var buf [16]byte - var ret []byte - for { - n, err := syscall.Read(fd, buf[:]) - if err != nil { - return nil, err - } - if n == 0 { - if len(ret) == 0 { - return nil, io.EOF - } - break - } - if buf[n-1] == '\n' { - n-- - } - ret = append(ret, buf[:n]...) - if n < len(buf) { - break - } - } - - return ret, nil -} - -// MakeRaw puts the terminal connected to the given file descriptor into raw -// mode and returns the previous state of the terminal so that it can be -// restored. -// see http://cr.illumos.org/~webrev/andy_js/1060/ -func MakeRaw(fd int) (*State, error) { - oldTermiosPtr, err := unix.IoctlGetTermios(fd, unix.TCGETS) - if err != nil { - return nil, err - } - oldTermios := *oldTermiosPtr - - newTermios := oldTermios - newTermios.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON - newTermios.Oflag &^= syscall.OPOST - newTermios.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | syscall.ISIG | syscall.IEXTEN - newTermios.Cflag &^= syscall.CSIZE | syscall.PARENB - newTermios.Cflag |= syscall.CS8 - newTermios.Cc[unix.VMIN] = 1 - newTermios.Cc[unix.VTIME] = 0 - - if err := unix.IoctlSetTermios(fd, unix.TCSETS, &newTermios); err != nil { - return nil, err - } - - return &State{ - state: oldTermiosPtr, - }, nil -} - -// Restore restores the terminal connected to the given file descriptor to a -// previous state. -func Restore(fd int, oldState *State) error { - return unix.IoctlSetTermios(fd, unix.TCSETS, oldState.state) -} - -// GetState returns the current state of a terminal which may be useful to -// restore the terminal after a signal. -func GetState(fd int) (*State, error) { - oldTermiosPtr, err := unix.IoctlGetTermios(fd, unix.TCGETS) - if err != nil { - return nil, err - } - - return &State{ - state: oldTermiosPtr, - }, nil -} - -// GetSize returns the dimensions of the given terminal. -func GetSize(fd int) (width, height int, err error) { - ws, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ) - if err != nil { - return 0, 0, err - } - return int(ws.Col), int(ws.Row), nil -} diff --git a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go b/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go deleted file mode 100644 index 4933ac3..0000000 --- a/vendor/golang.org/x/crypto/ssh/terminal/util_windows.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2011 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. - -// +build windows - -// Package terminal provides support functions for dealing with terminals, as -// commonly found on UNIX systems. -// -// Putting a terminal into raw mode is the most common requirement: -// -// oldState, err := terminal.MakeRaw(0) -// if err != nil { -// panic(err) -// } -// defer terminal.Restore(0, oldState) -package terminal - -import ( - "os" - - "golang.org/x/sys/windows" -) - -type State struct { - mode uint32 -} - -// IsTerminal returns true if the given file descriptor is a terminal. -func IsTerminal(fd int) bool { - var st uint32 - err := windows.GetConsoleMode(windows.Handle(fd), &st) - return err == nil -} - -// MakeRaw put the terminal connected to the given file descriptor into raw -// mode and returns the previous state of the terminal so that it can be -// restored. -func MakeRaw(fd int) (*State, error) { - var st uint32 - if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil { - return nil, err - } - raw := st &^ (windows.ENABLE_ECHO_INPUT | windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT) - if err := windows.SetConsoleMode(windows.Handle(fd), raw); err != nil { - return nil, err - } - return &State{st}, nil -} - -// GetState returns the current state of a terminal which may be useful to -// restore the terminal after a signal. -func GetState(fd int) (*State, error) { - var st uint32 - if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil { - return nil, err - } - return &State{st}, nil -} - -// Restore restores the terminal connected to the given file descriptor to a -// previous state. -func Restore(fd int, state *State) error { - return windows.SetConsoleMode(windows.Handle(fd), state.mode) -} - -// GetSize returns the dimensions of the given terminal. -func GetSize(fd int) (width, height int, err error) { - var info windows.ConsoleScreenBufferInfo - if err := windows.GetConsoleScreenBufferInfo(windows.Handle(fd), &info); err != nil { - return 0, 0, err - } - return int(info.Size.X), int(info.Size.Y), nil -} - -// ReadPassword reads a line of input from a terminal without local echo. This -// is commonly used for inputting passwords and other sensitive data. The slice -// returned does not include the \n. -func ReadPassword(fd int) ([]byte, error) { - var st uint32 - if err := windows.GetConsoleMode(windows.Handle(fd), &st); err != nil { - return nil, err - } - old := st - - st &^= (windows.ENABLE_ECHO_INPUT) - st |= (windows.ENABLE_PROCESSED_INPUT | windows.ENABLE_LINE_INPUT | windows.ENABLE_PROCESSED_OUTPUT) - if err := windows.SetConsoleMode(windows.Handle(fd), st); err != nil { - return nil, err - } - - defer func() { - windows.SetConsoleMode(windows.Handle(fd), old) - }() - - var h windows.Handle - p, _ := windows.GetCurrentProcess() - if err := windows.DuplicateHandle(p, windows.Handle(fd), p, &h, 0, false, windows.DUPLICATE_SAME_ACCESS); err != nil { - return nil, err - } - - f := os.NewFile(uintptr(h), "stdin") - defer f.Close() - return readPasswordLine(f) -} diff --git a/vendor/golang.org/x/net/AUTHORS b/vendor/golang.org/x/net/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/net/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/net/CONTRIBUTORS b/vendor/golang.org/x/net/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/net/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/net/LICENSE b/vendor/golang.org/x/net/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/net/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/net/PATENTS b/vendor/golang.org/x/net/PATENTS deleted file mode 100644 index 7330990..0000000 --- a/vendor/golang.org/x/net/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/net/context/context.go b/vendor/golang.org/x/net/context/context.go deleted file mode 100644 index a3c021d..0000000 --- a/vendor/golang.org/x/net/context/context.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2014 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 context defines the Context type, which carries deadlines, -// cancelation signals, and other request-scoped values across API boundaries -// and between processes. -// As of Go 1.7 this package is available in the standard library under the -// name context. https://golang.org/pkg/context. -// -// Incoming requests to a server should create a Context, and outgoing calls to -// servers should accept a Context. The chain of function calls between must -// propagate the Context, optionally replacing it with a modified copy created -// using WithDeadline, WithTimeout, WithCancel, or WithValue. -// -// Programs that use Contexts should follow these rules to keep interfaces -// consistent across packages and enable static analysis tools to check context -// propagation: -// -// Do not store Contexts inside a struct type; instead, pass a Context -// explicitly to each function that needs it. The Context should be the first -// parameter, typically named ctx: -// -// func DoSomething(ctx context.Context, arg Arg) error { -// // ... use ctx ... -// } -// -// Do not pass a nil Context, even if a function permits it. Pass context.TODO -// if you are unsure about which Context to use. -// -// Use context Values only for request-scoped data that transits processes and -// APIs, not for passing optional parameters to functions. -// -// The same Context may be passed to functions running in different goroutines; -// Contexts are safe for simultaneous use by multiple goroutines. -// -// See http://blog.golang.org/context for example code for a server that uses -// Contexts. -package context // import "golang.org/x/net/context" - -// Background returns a non-nil, empty Context. It is never canceled, has no -// values, and has no deadline. It is typically used by the main function, -// initialization, and tests, and as the top-level Context for incoming -// requests. -func Background() Context { - return background -} - -// TODO returns a non-nil, empty Context. Code should use context.TODO when -// it's unclear which Context to use or it is not yet available (because the -// surrounding function has not yet been extended to accept a Context -// parameter). TODO is recognized by static analysis tools that determine -// whether Contexts are propagated correctly in a program. -func TODO() Context { - return todo -} diff --git a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go deleted file mode 100644 index 606cf1f..0000000 --- a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.7 - -// Package ctxhttp provides helper functions for performing context-aware HTTP requests. -package ctxhttp // import "golang.org/x/net/context/ctxhttp" - -import ( - "io" - "net/http" - "net/url" - "strings" - - "golang.org/x/net/context" -) - -// Do sends an HTTP request with the provided http.Client and returns -// an HTTP response. -// -// If the client is nil, http.DefaultClient is used. -// -// The provided ctx must be non-nil. If it is canceled or times out, -// ctx.Err() will be returned. -func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { - if client == nil { - client = http.DefaultClient - } - resp, err := client.Do(req.WithContext(ctx)) - // If we got an error, and the context has been canceled, - // the context's error is probably more useful. - if err != nil { - select { - case <-ctx.Done(): - err = ctx.Err() - default: - } - } - return resp, err -} - -// Get issues a GET request via the Do function. -func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) { - req, err := http.NewRequest("GET", url, nil) - if err != nil { - return nil, err - } - return Do(ctx, client, req) -} - -// Head issues a HEAD request via the Do function. -func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) { - req, err := http.NewRequest("HEAD", url, nil) - if err != nil { - return nil, err - } - return Do(ctx, client, req) -} - -// Post issues a POST request via the Do function. -func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) { - req, err := http.NewRequest("POST", url, body) - if err != nil { - return nil, err - } - req.Header.Set("Content-Type", bodyType) - return Do(ctx, client, req) -} - -// PostForm issues a POST request via the Do function. -func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) { - return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode())) -} diff --git a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go b/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go deleted file mode 100644 index 926870c..0000000 --- a/vendor/golang.org/x/net/context/ctxhttp/ctxhttp_pre17.go +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright 2015 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. - -// +build !go1.7 - -package ctxhttp // import "golang.org/x/net/context/ctxhttp" - -import ( - "io" - "net/http" - "net/url" - "strings" - - "golang.org/x/net/context" -) - -func nop() {} - -var ( - testHookContextDoneBeforeHeaders = nop - testHookDoReturned = nop - testHookDidBodyClose = nop -) - -// Do sends an HTTP request with the provided http.Client and returns an HTTP response. -// If the client is nil, http.DefaultClient is used. -// If the context is canceled or times out, ctx.Err() will be returned. -func Do(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error) { - if client == nil { - client = http.DefaultClient - } - - // TODO(djd): Respect any existing value of req.Cancel. - cancel := make(chan struct{}) - req.Cancel = cancel - - type responseAndError struct { - resp *http.Response - err error - } - result := make(chan responseAndError, 1) - - // Make local copies of test hooks closed over by goroutines below. - // Prevents data races in tests. - testHookDoReturned := testHookDoReturned - testHookDidBodyClose := testHookDidBodyClose - - go func() { - resp, err := client.Do(req) - testHookDoReturned() - result <- responseAndError{resp, err} - }() - - var resp *http.Response - - select { - case <-ctx.Done(): - testHookContextDoneBeforeHeaders() - close(cancel) - // Clean up after the goroutine calling client.Do: - go func() { - if r := <-result; r.resp != nil { - testHookDidBodyClose() - r.resp.Body.Close() - } - }() - return nil, ctx.Err() - case r := <-result: - var err error - resp, err = r.resp, r.err - if err != nil { - return resp, err - } - } - - c := make(chan struct{}) - go func() { - select { - case <-ctx.Done(): - close(cancel) - case <-c: - // The response's Body is closed. - } - }() - resp.Body = ¬ifyingReader{resp.Body, c} - - return resp, nil -} - -// Get issues a GET request via the Do function. -func Get(ctx context.Context, client *http.Client, url string) (*http.Response, error) { - req, err := http.NewRequest("GET", url, nil) - if err != nil { - return nil, err - } - return Do(ctx, client, req) -} - -// Head issues a HEAD request via the Do function. -func Head(ctx context.Context, client *http.Client, url string) (*http.Response, error) { - req, err := http.NewRequest("HEAD", url, nil) - if err != nil { - return nil, err - } - return Do(ctx, client, req) -} - -// Post issues a POST request via the Do function. -func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error) { - req, err := http.NewRequest("POST", url, body) - if err != nil { - return nil, err - } - req.Header.Set("Content-Type", bodyType) - return Do(ctx, client, req) -} - -// PostForm issues a POST request via the Do function. -func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error) { - return Post(ctx, client, url, "application/x-www-form-urlencoded", strings.NewReader(data.Encode())) -} - -// notifyingReader is an io.ReadCloser that closes the notify channel after -// Close is called or a Read fails on the underlying ReadCloser. -type notifyingReader struct { - io.ReadCloser - notify chan<- struct{} -} - -func (r *notifyingReader) Read(p []byte) (int, error) { - n, err := r.ReadCloser.Read(p) - if err != nil && r.notify != nil { - close(r.notify) - r.notify = nil - } - return n, err -} - -func (r *notifyingReader) Close() error { - err := r.ReadCloser.Close() - if r.notify != nil { - close(r.notify) - r.notify = nil - } - return err -} diff --git a/vendor/golang.org/x/net/context/go17.go b/vendor/golang.org/x/net/context/go17.go deleted file mode 100644 index d20f52b..0000000 --- a/vendor/golang.org/x/net/context/go17.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.7 - -package context - -import ( - "context" // standard library's context, as of Go 1.7 - "time" -) - -var ( - todo = context.TODO() - background = context.Background() -) - -// Canceled is the error returned by Context.Err when the context is canceled. -var Canceled = context.Canceled - -// DeadlineExceeded is the error returned by Context.Err when the context's -// deadline passes. -var DeadlineExceeded = context.DeadlineExceeded - -// WithCancel returns a copy of parent with a new Done channel. The returned -// context's Done channel is closed when the returned cancel function is called -// or when the parent context's Done channel is closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { - ctx, f := context.WithCancel(parent) - return ctx, CancelFunc(f) -} - -// WithDeadline returns a copy of the parent context with the deadline adjusted -// to be no later than d. If the parent's deadline is already earlier than d, -// WithDeadline(parent, d) is semantically equivalent to parent. The returned -// context's Done channel is closed when the deadline expires, when the returned -// cancel function is called, or when the parent context's Done channel is -// closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { - ctx, f := context.WithDeadline(parent, deadline) - return ctx, CancelFunc(f) -} - -// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete: -// -// func slowOperationWithTimeout(ctx context.Context) (Result, error) { -// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) -// defer cancel() // releases resources if slowOperation completes before timeout elapses -// return slowOperation(ctx) -// } -func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { - return WithDeadline(parent, time.Now().Add(timeout)) -} - -// WithValue returns a copy of parent in which the value associated with key is -// val. -// -// Use context Values only for request-scoped data that transits processes and -// APIs, not for passing optional parameters to functions. -func WithValue(parent Context, key interface{}, val interface{}) Context { - return context.WithValue(parent, key, val) -} diff --git a/vendor/golang.org/x/net/context/go19.go b/vendor/golang.org/x/net/context/go19.go deleted file mode 100644 index d88bd1d..0000000 --- a/vendor/golang.org/x/net/context/go19.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2017 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. - -// +build go1.9 - -package context - -import "context" // standard library's context, as of Go 1.7 - -// A Context carries a deadline, a cancelation signal, and other values across -// API boundaries. -// -// Context's methods may be called by multiple goroutines simultaneously. -type Context = context.Context - -// A CancelFunc tells an operation to abandon its work. -// A CancelFunc does not wait for the work to stop. -// After the first call, subsequent calls to a CancelFunc do nothing. -type CancelFunc = context.CancelFunc diff --git a/vendor/golang.org/x/net/context/pre_go17.go b/vendor/golang.org/x/net/context/pre_go17.go deleted file mode 100644 index 0f35592..0000000 --- a/vendor/golang.org/x/net/context/pre_go17.go +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright 2014 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. - -// +build !go1.7 - -package context - -import ( - "errors" - "fmt" - "sync" - "time" -) - -// An emptyCtx is never canceled, has no values, and has no deadline. It is not -// struct{}, since vars of this type must have distinct addresses. -type emptyCtx int - -func (*emptyCtx) Deadline() (deadline time.Time, ok bool) { - return -} - -func (*emptyCtx) Done() <-chan struct{} { - return nil -} - -func (*emptyCtx) Err() error { - return nil -} - -func (*emptyCtx) Value(key interface{}) interface{} { - return nil -} - -func (e *emptyCtx) String() string { - switch e { - case background: - return "context.Background" - case todo: - return "context.TODO" - } - return "unknown empty Context" -} - -var ( - background = new(emptyCtx) - todo = new(emptyCtx) -) - -// Canceled is the error returned by Context.Err when the context is canceled. -var Canceled = errors.New("context canceled") - -// DeadlineExceeded is the error returned by Context.Err when the context's -// deadline passes. -var DeadlineExceeded = errors.New("context deadline exceeded") - -// WithCancel returns a copy of parent with a new Done channel. The returned -// context's Done channel is closed when the returned cancel function is called -// or when the parent context's Done channel is closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithCancel(parent Context) (ctx Context, cancel CancelFunc) { - c := newCancelCtx(parent) - propagateCancel(parent, c) - return c, func() { c.cancel(true, Canceled) } -} - -// newCancelCtx returns an initialized cancelCtx. -func newCancelCtx(parent Context) *cancelCtx { - return &cancelCtx{ - Context: parent, - done: make(chan struct{}), - } -} - -// propagateCancel arranges for child to be canceled when parent is. -func propagateCancel(parent Context, child canceler) { - if parent.Done() == nil { - return // parent is never canceled - } - if p, ok := parentCancelCtx(parent); ok { - p.mu.Lock() - if p.err != nil { - // parent has already been canceled - child.cancel(false, p.err) - } else { - if p.children == nil { - p.children = make(map[canceler]bool) - } - p.children[child] = true - } - p.mu.Unlock() - } else { - go func() { - select { - case <-parent.Done(): - child.cancel(false, parent.Err()) - case <-child.Done(): - } - }() - } -} - -// parentCancelCtx follows a chain of parent references until it finds a -// *cancelCtx. This function understands how each of the concrete types in this -// package represents its parent. -func parentCancelCtx(parent Context) (*cancelCtx, bool) { - for { - switch c := parent.(type) { - case *cancelCtx: - return c, true - case *timerCtx: - return c.cancelCtx, true - case *valueCtx: - parent = c.Context - default: - return nil, false - } - } -} - -// removeChild removes a context from its parent. -func removeChild(parent Context, child canceler) { - p, ok := parentCancelCtx(parent) - if !ok { - return - } - p.mu.Lock() - if p.children != nil { - delete(p.children, child) - } - p.mu.Unlock() -} - -// A canceler is a context type that can be canceled directly. The -// implementations are *cancelCtx and *timerCtx. -type canceler interface { - cancel(removeFromParent bool, err error) - Done() <-chan struct{} -} - -// A cancelCtx can be canceled. When canceled, it also cancels any children -// that implement canceler. -type cancelCtx struct { - Context - - done chan struct{} // closed by the first cancel call. - - mu sync.Mutex - children map[canceler]bool // set to nil by the first cancel call - err error // set to non-nil by the first cancel call -} - -func (c *cancelCtx) Done() <-chan struct{} { - return c.done -} - -func (c *cancelCtx) Err() error { - c.mu.Lock() - defer c.mu.Unlock() - return c.err -} - -func (c *cancelCtx) String() string { - return fmt.Sprintf("%v.WithCancel", c.Context) -} - -// cancel closes c.done, cancels each of c's children, and, if -// removeFromParent is true, removes c from its parent's children. -func (c *cancelCtx) cancel(removeFromParent bool, err error) { - if err == nil { - panic("context: internal error: missing cancel error") - } - c.mu.Lock() - if c.err != nil { - c.mu.Unlock() - return // already canceled - } - c.err = err - close(c.done) - for child := range c.children { - // NOTE: acquiring the child's lock while holding parent's lock. - child.cancel(false, err) - } - c.children = nil - c.mu.Unlock() - - if removeFromParent { - removeChild(c.Context, c) - } -} - -// WithDeadline returns a copy of the parent context with the deadline adjusted -// to be no later than d. If the parent's deadline is already earlier than d, -// WithDeadline(parent, d) is semantically equivalent to parent. The returned -// context's Done channel is closed when the deadline expires, when the returned -// cancel function is called, or when the parent context's Done channel is -// closed, whichever happens first. -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete. -func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) { - if cur, ok := parent.Deadline(); ok && cur.Before(deadline) { - // The current deadline is already sooner than the new one. - return WithCancel(parent) - } - c := &timerCtx{ - cancelCtx: newCancelCtx(parent), - deadline: deadline, - } - propagateCancel(parent, c) - d := deadline.Sub(time.Now()) - if d <= 0 { - c.cancel(true, DeadlineExceeded) // deadline has already passed - return c, func() { c.cancel(true, Canceled) } - } - c.mu.Lock() - defer c.mu.Unlock() - if c.err == nil { - c.timer = time.AfterFunc(d, func() { - c.cancel(true, DeadlineExceeded) - }) - } - return c, func() { c.cancel(true, Canceled) } -} - -// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to -// implement Done and Err. It implements cancel by stopping its timer then -// delegating to cancelCtx.cancel. -type timerCtx struct { - *cancelCtx - timer *time.Timer // Under cancelCtx.mu. - - deadline time.Time -} - -func (c *timerCtx) Deadline() (deadline time.Time, ok bool) { - return c.deadline, true -} - -func (c *timerCtx) String() string { - return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now())) -} - -func (c *timerCtx) cancel(removeFromParent bool, err error) { - c.cancelCtx.cancel(false, err) - if removeFromParent { - // Remove this timerCtx from its parent cancelCtx's children. - removeChild(c.cancelCtx.Context, c) - } - c.mu.Lock() - if c.timer != nil { - c.timer.Stop() - c.timer = nil - } - c.mu.Unlock() -} - -// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). -// -// Canceling this context releases resources associated with it, so code should -// call cancel as soon as the operations running in this Context complete: -// -// func slowOperationWithTimeout(ctx context.Context) (Result, error) { -// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) -// defer cancel() // releases resources if slowOperation completes before timeout elapses -// return slowOperation(ctx) -// } -func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) { - return WithDeadline(parent, time.Now().Add(timeout)) -} - -// WithValue returns a copy of parent in which the value associated with key is -// val. -// -// Use context Values only for request-scoped data that transits processes and -// APIs, not for passing optional parameters to functions. -func WithValue(parent Context, key interface{}, val interface{}) Context { - return &valueCtx{parent, key, val} -} - -// A valueCtx carries a key-value pair. It implements Value for that key and -// delegates all other calls to the embedded Context. -type valueCtx struct { - Context - key, val interface{} -} - -func (c *valueCtx) String() string { - return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val) -} - -func (c *valueCtx) Value(key interface{}) interface{} { - if c.key == key { - return c.val - } - return c.Context.Value(key) -} diff --git a/vendor/golang.org/x/net/context/pre_go19.go b/vendor/golang.org/x/net/context/pre_go19.go deleted file mode 100644 index b105f80..0000000 --- a/vendor/golang.org/x/net/context/pre_go19.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2014 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. - -// +build !go1.9 - -package context - -import "time" - -// A Context carries a deadline, a cancelation signal, and other values across -// API boundaries. -// -// Context's methods may be called by multiple goroutines simultaneously. -type Context interface { - // Deadline returns the time when work done on behalf of this context - // should be canceled. Deadline returns ok==false when no deadline is - // set. Successive calls to Deadline return the same results. - Deadline() (deadline time.Time, ok bool) - - // Done returns a channel that's closed when work done on behalf of this - // context should be canceled. Done may return nil if this context can - // never be canceled. Successive calls to Done return the same value. - // - // WithCancel arranges for Done to be closed when cancel is called; - // WithDeadline arranges for Done to be closed when the deadline - // expires; WithTimeout arranges for Done to be closed when the timeout - // elapses. - // - // Done is provided for use in select statements: - // - // // Stream generates values with DoSomething and sends them to out - // // until DoSomething returns an error or ctx.Done is closed. - // func Stream(ctx context.Context, out chan<- Value) error { - // for { - // v, err := DoSomething(ctx) - // if err != nil { - // return err - // } - // select { - // case <-ctx.Done(): - // return ctx.Err() - // case out <- v: - // } - // } - // } - // - // See http://blog.golang.org/pipelines for more examples of how to use - // a Done channel for cancelation. - Done() <-chan struct{} - - // Err returns a non-nil error value after Done is closed. Err returns - // Canceled if the context was canceled or DeadlineExceeded if the - // context's deadline passed. No other values for Err are defined. - // After Done is closed, successive calls to Err return the same value. - Err() error - - // Value returns the value associated with this context for key, or nil - // if no value is associated with key. Successive calls to Value with - // the same key returns the same result. - // - // Use context values only for request-scoped data that transits - // processes and API boundaries, not for passing optional parameters to - // functions. - // - // A key identifies a specific value in a Context. Functions that wish - // to store values in Context typically allocate a key in a global - // variable then use that key as the argument to context.WithValue and - // Context.Value. A key can be any type that supports equality; - // packages should define keys as an unexported type to avoid - // collisions. - // - // Packages that define a Context key should provide type-safe accessors - // for the values stores using that key: - // - // // Package user defines a User type that's stored in Contexts. - // package user - // - // import "golang.org/x/net/context" - // - // // User is the type of value stored in the Contexts. - // type User struct {...} - // - // // key is an unexported type for keys defined in this package. - // // This prevents collisions with keys defined in other packages. - // type key int - // - // // userKey is the key for user.User values in Contexts. It is - // // unexported; clients use user.NewContext and user.FromContext - // // instead of using this key directly. - // var userKey key = 0 - // - // // NewContext returns a new Context that carries value u. - // func NewContext(ctx context.Context, u *User) context.Context { - // return context.WithValue(ctx, userKey, u) - // } - // - // // FromContext returns the User value stored in ctx, if any. - // func FromContext(ctx context.Context) (*User, bool) { - // u, ok := ctx.Value(userKey).(*User) - // return u, ok - // } - Value(key interface{}) interface{} -} - -// A CancelFunc tells an operation to abandon its work. -// A CancelFunc does not wait for the work to stop. -// After the first call, subsequent calls to a CancelFunc do nothing. -type CancelFunc func() diff --git a/vendor/golang.org/x/net/proxy/direct.go b/vendor/golang.org/x/net/proxy/direct.go deleted file mode 100644 index 4c5ad88..0000000 --- a/vendor/golang.org/x/net/proxy/direct.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2011 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 proxy - -import ( - "net" -) - -type direct struct{} - -// Direct is a direct proxy: one that makes network connections directly. -var Direct = direct{} - -func (direct) Dial(network, addr string) (net.Conn, error) { - return net.Dial(network, addr) -} diff --git a/vendor/golang.org/x/net/proxy/per_host.go b/vendor/golang.org/x/net/proxy/per_host.go deleted file mode 100644 index 0689bb6..0000000 --- a/vendor/golang.org/x/net/proxy/per_host.go +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2011 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 proxy - -import ( - "net" - "strings" -) - -// A PerHost directs connections to a default Dialer unless the host name -// requested matches one of a number of exceptions. -type PerHost struct { - def, bypass Dialer - - bypassNetworks []*net.IPNet - bypassIPs []net.IP - bypassZones []string - bypassHosts []string -} - -// NewPerHost returns a PerHost Dialer that directs connections to either -// defaultDialer or bypass, depending on whether the connection matches one of -// the configured rules. -func NewPerHost(defaultDialer, bypass Dialer) *PerHost { - return &PerHost{ - def: defaultDialer, - bypass: bypass, - } -} - -// Dial connects to the address addr on the given network through either -// defaultDialer or bypass. -func (p *PerHost) Dial(network, addr string) (c net.Conn, err error) { - host, _, err := net.SplitHostPort(addr) - if err != nil { - return nil, err - } - - return p.dialerForRequest(host).Dial(network, addr) -} - -func (p *PerHost) dialerForRequest(host string) Dialer { - if ip := net.ParseIP(host); ip != nil { - for _, net := range p.bypassNetworks { - if net.Contains(ip) { - return p.bypass - } - } - for _, bypassIP := range p.bypassIPs { - if bypassIP.Equal(ip) { - return p.bypass - } - } - return p.def - } - - for _, zone := range p.bypassZones { - if strings.HasSuffix(host, zone) { - return p.bypass - } - if host == zone[1:] { - // For a zone ".example.com", we match "example.com" - // too. - return p.bypass - } - } - for _, bypassHost := range p.bypassHosts { - if bypassHost == host { - return p.bypass - } - } - return p.def -} - -// AddFromString parses a string that contains comma-separated values -// specifying hosts that should use the bypass proxy. Each value is either an -// IP address, a CIDR range, a zone (*.example.com) or a host name -// (localhost). A best effort is made to parse the string and errors are -// ignored. -func (p *PerHost) AddFromString(s string) { - hosts := strings.Split(s, ",") - for _, host := range hosts { - host = strings.TrimSpace(host) - if len(host) == 0 { - continue - } - if strings.Contains(host, "/") { - // We assume that it's a CIDR address like 127.0.0.0/8 - if _, net, err := net.ParseCIDR(host); err == nil { - p.AddNetwork(net) - } - continue - } - if ip := net.ParseIP(host); ip != nil { - p.AddIP(ip) - continue - } - if strings.HasPrefix(host, "*.") { - p.AddZone(host[1:]) - continue - } - p.AddHost(host) - } -} - -// AddIP specifies an IP address that will use the bypass proxy. Note that -// this will only take effect if a literal IP address is dialed. A connection -// to a named host will never match an IP. -func (p *PerHost) AddIP(ip net.IP) { - p.bypassIPs = append(p.bypassIPs, ip) -} - -// AddNetwork specifies an IP range that will use the bypass proxy. Note that -// this will only take effect if a literal IP address is dialed. A connection -// to a named host will never match. -func (p *PerHost) AddNetwork(net *net.IPNet) { - p.bypassNetworks = append(p.bypassNetworks, net) -} - -// AddZone specifies a DNS suffix that will use the bypass proxy. A zone of -// "example.com" matches "example.com" and all of its subdomains. -func (p *PerHost) AddZone(zone string) { - if strings.HasSuffix(zone, ".") { - zone = zone[:len(zone)-1] - } - if !strings.HasPrefix(zone, ".") { - zone = "." + zone - } - p.bypassZones = append(p.bypassZones, zone) -} - -// AddHost specifies a host name that will use the bypass proxy. -func (p *PerHost) AddHost(host string) { - if strings.HasSuffix(host, ".") { - host = host[:len(host)-1] - } - p.bypassHosts = append(p.bypassHosts, host) -} diff --git a/vendor/golang.org/x/net/proxy/proxy.go b/vendor/golang.org/x/net/proxy/proxy.go deleted file mode 100644 index 553ead7..0000000 --- a/vendor/golang.org/x/net/proxy/proxy.go +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2011 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 proxy provides support for a variety of protocols to proxy network -// data. -package proxy // import "golang.org/x/net/proxy" - -import ( - "errors" - "net" - "net/url" - "os" - "sync" -) - -// A Dialer is a means to establish a connection. -type Dialer interface { - // Dial connects to the given address via the proxy. - Dial(network, addr string) (c net.Conn, err error) -} - -// Auth contains authentication parameters that specific Dialers may require. -type Auth struct { - User, Password string -} - -// FromEnvironment returns the dialer specified by the proxy related variables in -// the environment. -func FromEnvironment() Dialer { - allProxy := allProxyEnv.Get() - if len(allProxy) == 0 { - return Direct - } - - proxyURL, err := url.Parse(allProxy) - if err != nil { - return Direct - } - proxy, err := FromURL(proxyURL, Direct) - if err != nil { - return Direct - } - - noProxy := noProxyEnv.Get() - if len(noProxy) == 0 { - return proxy - } - - perHost := NewPerHost(proxy, Direct) - perHost.AddFromString(noProxy) - return perHost -} - -// proxySchemes is a map from URL schemes to a function that creates a Dialer -// from a URL with such a scheme. -var proxySchemes map[string]func(*url.URL, Dialer) (Dialer, error) - -// RegisterDialerType takes a URL scheme and a function to generate Dialers from -// a URL with that scheme and a forwarding Dialer. Registered schemes are used -// by FromURL. -func RegisterDialerType(scheme string, f func(*url.URL, Dialer) (Dialer, error)) { - if proxySchemes == nil { - proxySchemes = make(map[string]func(*url.URL, Dialer) (Dialer, error)) - } - proxySchemes[scheme] = f -} - -// FromURL returns a Dialer given a URL specification and an underlying -// Dialer for it to make network requests. -func FromURL(u *url.URL, forward Dialer) (Dialer, error) { - var auth *Auth - if u.User != nil { - auth = new(Auth) - auth.User = u.User.Username() - if p, ok := u.User.Password(); ok { - auth.Password = p - } - } - - switch u.Scheme { - case "socks5": - return SOCKS5("tcp", u.Host, auth, forward) - } - - // If the scheme doesn't match any of the built-in schemes, see if it - // was registered by another package. - if proxySchemes != nil { - if f, ok := proxySchemes[u.Scheme]; ok { - return f(u, forward) - } - } - - return nil, errors.New("proxy: unknown scheme: " + u.Scheme) -} - -var ( - allProxyEnv = &envOnce{ - names: []string{"ALL_PROXY", "all_proxy"}, - } - noProxyEnv = &envOnce{ - names: []string{"NO_PROXY", "no_proxy"}, - } -) - -// envOnce looks up an environment variable (optionally by multiple -// names) once. It mitigates expensive lookups on some platforms -// (e.g. Windows). -// (Borrowed from net/http/transport.go) -type envOnce struct { - names []string - once sync.Once - val string -} - -func (e *envOnce) Get() string { - e.once.Do(e.init) - return e.val -} - -func (e *envOnce) init() { - for _, n := range e.names { - e.val = os.Getenv(n) - if e.val != "" { - return - } - } -} - -// reset is used by tests -func (e *envOnce) reset() { - e.once = sync.Once{} - e.val = "" -} diff --git a/vendor/golang.org/x/net/proxy/socks5.go b/vendor/golang.org/x/net/proxy/socks5.go deleted file mode 100644 index 3fed38e..0000000 --- a/vendor/golang.org/x/net/proxy/socks5.go +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright 2011 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 proxy - -import ( - "errors" - "io" - "net" - "strconv" -) - -// SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address -// with an optional username and password. See RFC 1928 and RFC 1929. -func SOCKS5(network, addr string, auth *Auth, forward Dialer) (Dialer, error) { - s := &socks5{ - network: network, - addr: addr, - forward: forward, - } - if auth != nil { - s.user = auth.User - s.password = auth.Password - } - - return s, nil -} - -type socks5 struct { - user, password string - network, addr string - forward Dialer -} - -const socks5Version = 5 - -const ( - socks5AuthNone = 0 - socks5AuthPassword = 2 -) - -const socks5Connect = 1 - -const ( - socks5IP4 = 1 - socks5Domain = 3 - socks5IP6 = 4 -) - -var socks5Errors = []string{ - "", - "general failure", - "connection forbidden", - "network unreachable", - "host unreachable", - "connection refused", - "TTL expired", - "command not supported", - "address type not supported", -} - -// Dial connects to the address addr on the given network via the SOCKS5 proxy. -func (s *socks5) Dial(network, addr string) (net.Conn, error) { - switch network { - case "tcp", "tcp6", "tcp4": - default: - return nil, errors.New("proxy: no support for SOCKS5 proxy connections of type " + network) - } - - conn, err := s.forward.Dial(s.network, s.addr) - if err != nil { - return nil, err - } - if err := s.connect(conn, addr); err != nil { - conn.Close() - return nil, err - } - return conn, nil -} - -// connect takes an existing connection to a socks5 proxy server, -// and commands the server to extend that connection to target, -// which must be a canonical address with a host and port. -func (s *socks5) connect(conn net.Conn, target string) error { - host, portStr, err := net.SplitHostPort(target) - if err != nil { - return err - } - - port, err := strconv.Atoi(portStr) - if err != nil { - return errors.New("proxy: failed to parse port number: " + portStr) - } - if port < 1 || port > 0xffff { - return errors.New("proxy: port number out of range: " + portStr) - } - - // the size here is just an estimate - buf := make([]byte, 0, 6+len(host)) - - buf = append(buf, socks5Version) - if len(s.user) > 0 && len(s.user) < 256 && len(s.password) < 256 { - buf = append(buf, 2 /* num auth methods */, socks5AuthNone, socks5AuthPassword) - } else { - buf = append(buf, 1 /* num auth methods */, socks5AuthNone) - } - - if _, err := conn.Write(buf); err != nil { - return errors.New("proxy: failed to write greeting to SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - if _, err := io.ReadFull(conn, buf[:2]); err != nil { - return errors.New("proxy: failed to read greeting from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - if buf[0] != 5 { - return errors.New("proxy: SOCKS5 proxy at " + s.addr + " has unexpected version " + strconv.Itoa(int(buf[0]))) - } - if buf[1] == 0xff { - return errors.New("proxy: SOCKS5 proxy at " + s.addr + " requires authentication") - } - - // See RFC 1929 - if buf[1] == socks5AuthPassword { - buf = buf[:0] - buf = append(buf, 1 /* password protocol version */) - buf = append(buf, uint8(len(s.user))) - buf = append(buf, s.user...) - buf = append(buf, uint8(len(s.password))) - buf = append(buf, s.password...) - - if _, err := conn.Write(buf); err != nil { - return errors.New("proxy: failed to write authentication request to SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - if _, err := io.ReadFull(conn, buf[:2]); err != nil { - return errors.New("proxy: failed to read authentication reply from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - if buf[1] != 0 { - return errors.New("proxy: SOCKS5 proxy at " + s.addr + " rejected username/password") - } - } - - buf = buf[:0] - buf = append(buf, socks5Version, socks5Connect, 0 /* reserved */) - - if ip := net.ParseIP(host); ip != nil { - if ip4 := ip.To4(); ip4 != nil { - buf = append(buf, socks5IP4) - ip = ip4 - } else { - buf = append(buf, socks5IP6) - } - buf = append(buf, ip...) - } else { - if len(host) > 255 { - return errors.New("proxy: destination host name too long: " + host) - } - buf = append(buf, socks5Domain) - buf = append(buf, byte(len(host))) - buf = append(buf, host...) - } - buf = append(buf, byte(port>>8), byte(port)) - - if _, err := conn.Write(buf); err != nil { - return errors.New("proxy: failed to write connect request to SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - if _, err := io.ReadFull(conn, buf[:4]); err != nil { - return errors.New("proxy: failed to read connect reply from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - failure := "unknown error" - if int(buf[1]) < len(socks5Errors) { - failure = socks5Errors[buf[1]] - } - - if len(failure) > 0 { - return errors.New("proxy: SOCKS5 proxy at " + s.addr + " failed to connect: " + failure) - } - - bytesToDiscard := 0 - switch buf[3] { - case socks5IP4: - bytesToDiscard = net.IPv4len - case socks5IP6: - bytesToDiscard = net.IPv6len - case socks5Domain: - _, err := io.ReadFull(conn, buf[:1]) - if err != nil { - return errors.New("proxy: failed to read domain length from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - bytesToDiscard = int(buf[0]) - default: - return errors.New("proxy: got unknown address type " + strconv.Itoa(int(buf[3])) + " from SOCKS5 proxy at " + s.addr) - } - - if cap(buf) < bytesToDiscard { - buf = make([]byte, bytesToDiscard) - } else { - buf = buf[:bytesToDiscard] - } - if _, err := io.ReadFull(conn, buf); err != nil { - return errors.New("proxy: failed to read address from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - // Also need to discard the port number - if _, err := io.ReadFull(conn, buf[:2]); err != nil { - return errors.New("proxy: failed to read port from SOCKS5 proxy at " + s.addr + ": " + err.Error()) - } - - return nil -} diff --git a/vendor/golang.org/x/oauth2/AUTHORS b/vendor/golang.org/x/oauth2/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/oauth2/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/oauth2/CONTRIBUTORS b/vendor/golang.org/x/oauth2/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/oauth2/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/oauth2/LICENSE b/vendor/golang.org/x/oauth2/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/oauth2/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/oauth2/internal/client_appengine.go b/vendor/golang.org/x/oauth2/internal/client_appengine.go deleted file mode 100644 index 7434871..0000000 --- a/vendor/golang.org/x/oauth2/internal/client_appengine.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2018 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. - -// +build appengine - -package internal - -import "google.golang.org/appengine/urlfetch" - -func init() { - appengineClientHook = urlfetch.Client -} diff --git a/vendor/golang.org/x/oauth2/internal/doc.go b/vendor/golang.org/x/oauth2/internal/doc.go deleted file mode 100644 index 03265e8..0000000 --- a/vendor/golang.org/x/oauth2/internal/doc.go +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017 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 internal contains support packages for oauth2 package. -package internal diff --git a/vendor/golang.org/x/oauth2/internal/oauth2.go b/vendor/golang.org/x/oauth2/internal/oauth2.go deleted file mode 100644 index fc63fca..0000000 --- a/vendor/golang.org/x/oauth2/internal/oauth2.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2014 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 internal - -import ( - "crypto/rsa" - "crypto/x509" - "encoding/pem" - "errors" - "fmt" -) - -// ParseKey converts the binary contents of a private key file -// to an *rsa.PrivateKey. It detects whether the private key is in a -// PEM container or not. If so, it extracts the the private key -// from PEM container before conversion. It only supports PEM -// containers with no passphrase. -func ParseKey(key []byte) (*rsa.PrivateKey, error) { - block, _ := pem.Decode(key) - if block != nil { - key = block.Bytes - } - parsedKey, err := x509.ParsePKCS8PrivateKey(key) - if err != nil { - parsedKey, err = x509.ParsePKCS1PrivateKey(key) - if err != nil { - return nil, fmt.Errorf("private key should be a PEM or plain PKSC1 or PKCS8; parse error: %v", err) - } - } - parsed, ok := parsedKey.(*rsa.PrivateKey) - if !ok { - return nil, errors.New("private key is invalid") - } - return parsed, nil -} diff --git a/vendor/golang.org/x/oauth2/internal/token.go b/vendor/golang.org/x/oauth2/internal/token.go deleted file mode 100644 index 7d61117..0000000 --- a/vendor/golang.org/x/oauth2/internal/token.go +++ /dev/null @@ -1,266 +0,0 @@ -// Copyright 2014 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 internal - -import ( - "encoding/json" - "errors" - "fmt" - "io" - "io/ioutil" - "mime" - "net/http" - "net/url" - "strconv" - "strings" - "time" - - "golang.org/x/net/context" - "golang.org/x/net/context/ctxhttp" -) - -// Token represents the credentials used to authorize -// the requests to access protected resources on the OAuth 2.0 -// provider's backend. -// -// This type is a mirror of oauth2.Token and exists to break -// an otherwise-circular dependency. Other internal packages -// should convert this Token into an oauth2.Token before use. -type Token struct { - // AccessToken is the token that authorizes and authenticates - // the requests. - AccessToken string - - // TokenType is the type of token. - // The Type method returns either this or "Bearer", the default. - TokenType string - - // RefreshToken is a token that's used by the application - // (as opposed to the user) to refresh the access token - // if it expires. - RefreshToken string - - // Expiry is the optional expiration time of the access token. - // - // If zero, TokenSource implementations will reuse the same - // token forever and RefreshToken or equivalent - // mechanisms for that TokenSource will not be used. - Expiry time.Time - - // Raw optionally contains extra metadata from the server - // when updating a token. - Raw interface{} -} - -// tokenJSON is the struct representing the HTTP response from OAuth2 -// providers returning a token in JSON form. -type tokenJSON struct { - AccessToken string `json:"access_token"` - TokenType string `json:"token_type"` - RefreshToken string `json:"refresh_token"` - ExpiresIn expirationTime `json:"expires_in"` // at least PayPal returns string, while most return number - Expires expirationTime `json:"expires"` // broken Facebook spelling of expires_in -} - -func (e *tokenJSON) expiry() (t time.Time) { - if v := e.ExpiresIn; v != 0 { - return time.Now().Add(time.Duration(v) * time.Second) - } - if v := e.Expires; v != 0 { - return time.Now().Add(time.Duration(v) * time.Second) - } - return -} - -type expirationTime int32 - -func (e *expirationTime) UnmarshalJSON(b []byte) error { - var n json.Number - err := json.Unmarshal(b, &n) - if err != nil { - return err - } - i, err := n.Int64() - if err != nil { - return err - } - *e = expirationTime(i) - return nil -} - -var brokenAuthHeaderProviders = []string{ - "https://accounts.google.com/", - "https://api.codeswholesale.com/oauth/token", - "https://api.dropbox.com/", - "https://api.dropboxapi.com/", - "https://api.instagram.com/", - "https://api.netatmo.net/", - "https://api.odnoklassniki.ru/", - "https://api.pushbullet.com/", - "https://api.soundcloud.com/", - "https://api.twitch.tv/", - "https://app.box.com/", - "https://connect.stripe.com/", - "https://graph.facebook.com", // see https://github.com/golang/oauth2/issues/214 - "https://login.microsoftonline.com/", - "https://login.salesforce.com/", - "https://login.windows.net", - "https://login.live.com/", - "https://oauth.sandbox.trainingpeaks.com/", - "https://oauth.trainingpeaks.com/", - "https://oauth.vk.com/", - "https://openapi.baidu.com/", - "https://slack.com/", - "https://test-sandbox.auth.corp.google.com", - "https://test.salesforce.com/", - "https://user.gini.net/", - "https://www.douban.com/", - "https://www.googleapis.com/", - "https://www.linkedin.com/", - "https://www.strava.com/oauth/", - "https://www.wunderlist.com/oauth/", - "https://api.patreon.com/", - "https://sandbox.codeswholesale.com/oauth/token", - "https://api.sipgate.com/v1/authorization/oauth", - "https://api.medium.com/v1/tokens", - "https://log.finalsurge.com/oauth/token", -} - -// brokenAuthHeaderDomains lists broken providers that issue dynamic endpoints. -var brokenAuthHeaderDomains = []string{ - ".auth0.com", - ".force.com", - ".myshopify.com", - ".okta.com", - ".oktapreview.com", -} - -func RegisterBrokenAuthHeaderProvider(tokenURL string) { - brokenAuthHeaderProviders = append(brokenAuthHeaderProviders, tokenURL) -} - -// providerAuthHeaderWorks reports whether the OAuth2 server identified by the tokenURL -// implements the OAuth2 spec correctly -// See https://code.google.com/p/goauth2/issues/detail?id=31 for background. -// In summary: -// - Reddit only accepts client secret in the Authorization header -// - Dropbox accepts either it in URL param or Auth header, but not both. -// - Google only accepts URL param (not spec compliant?), not Auth header -// - Stripe only accepts client secret in Auth header with Bearer method, not Basic -func providerAuthHeaderWorks(tokenURL string) bool { - for _, s := range brokenAuthHeaderProviders { - if strings.HasPrefix(tokenURL, s) { - // Some sites fail to implement the OAuth2 spec fully. - return false - } - } - - if u, err := url.Parse(tokenURL); err == nil { - for _, s := range brokenAuthHeaderDomains { - if strings.HasSuffix(u.Host, s) { - return false - } - } - } - - // Assume the provider implements the spec properly - // otherwise. We can add more exceptions as they're - // discovered. We will _not_ be adding configurable hooks - // to this package to let users select server bugs. - return true -} - -func RetrieveToken(ctx context.Context, clientID, clientSecret, tokenURL string, v url.Values) (*Token, error) { - bustedAuth := !providerAuthHeaderWorks(tokenURL) - if bustedAuth { - if clientID != "" { - v.Set("client_id", clientID) - } - if clientSecret != "" { - v.Set("client_secret", clientSecret) - } - } - req, err := http.NewRequest("POST", tokenURL, strings.NewReader(v.Encode())) - if err != nil { - return nil, err - } - req.Header.Set("Content-Type", "application/x-www-form-urlencoded") - if !bustedAuth { - req.SetBasicAuth(url.QueryEscape(clientID), url.QueryEscape(clientSecret)) - } - r, err := ctxhttp.Do(ctx, ContextClient(ctx), req) - if err != nil { - return nil, err - } - defer r.Body.Close() - body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20)) - if err != nil { - return nil, fmt.Errorf("oauth2: cannot fetch token: %v", err) - } - if code := r.StatusCode; code < 200 || code > 299 { - return nil, &RetrieveError{ - Response: r, - Body: body, - } - } - - var token *Token - content, _, _ := mime.ParseMediaType(r.Header.Get("Content-Type")) - switch content { - case "application/x-www-form-urlencoded", "text/plain": - vals, err := url.ParseQuery(string(body)) - if err != nil { - return nil, err - } - token = &Token{ - AccessToken: vals.Get("access_token"), - TokenType: vals.Get("token_type"), - RefreshToken: vals.Get("refresh_token"), - Raw: vals, - } - e := vals.Get("expires_in") - if e == "" { - // TODO(jbd): Facebook's OAuth2 implementation is broken and - // returns expires_in field in expires. Remove the fallback to expires, - // when Facebook fixes their implementation. - e = vals.Get("expires") - } - expires, _ := strconv.Atoi(e) - if expires != 0 { - token.Expiry = time.Now().Add(time.Duration(expires) * time.Second) - } - default: - var tj tokenJSON - if err = json.Unmarshal(body, &tj); err != nil { - return nil, err - } - token = &Token{ - AccessToken: tj.AccessToken, - TokenType: tj.TokenType, - RefreshToken: tj.RefreshToken, - Expiry: tj.expiry(), - Raw: make(map[string]interface{}), - } - json.Unmarshal(body, &token.Raw) // no error checks for optional fields - } - // Don't overwrite `RefreshToken` with an empty value - // if this was a token refreshing request. - if token.RefreshToken == "" { - token.RefreshToken = v.Get("refresh_token") - } - if token.AccessToken == "" { - return token, errors.New("oauth2: server response missing access_token") - } - return token, nil -} - -type RetrieveError struct { - Response *http.Response - Body []byte -} - -func (r *RetrieveError) Error() string { - return fmt.Sprintf("oauth2: cannot fetch token: %v\nResponse: %s", r.Response.Status, r.Body) -} diff --git a/vendor/golang.org/x/oauth2/internal/transport.go b/vendor/golang.org/x/oauth2/internal/transport.go deleted file mode 100644 index d16f9ae..0000000 --- a/vendor/golang.org/x/oauth2/internal/transport.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2014 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 internal - -import ( - "net/http" - - "golang.org/x/net/context" -) - -// HTTPClient is the context key to use with golang.org/x/net/context's -// WithValue function to associate an *http.Client value with a context. -var HTTPClient ContextKey - -// ContextKey is just an empty struct. It exists so HTTPClient can be -// an immutable public variable with a unique type. It's immutable -// because nobody else can create a ContextKey, being unexported. -type ContextKey struct{} - -var appengineClientHook func(context.Context) *http.Client - -func ContextClient(ctx context.Context) *http.Client { - if ctx != nil { - if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok { - return hc - } - } - if appengineClientHook != nil { - return appengineClientHook(ctx) - } - return http.DefaultClient -} diff --git a/vendor/golang.org/x/oauth2/oauth2.go b/vendor/golang.org/x/oauth2/oauth2.go deleted file mode 100644 index a047a5f..0000000 --- a/vendor/golang.org/x/oauth2/oauth2.go +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright 2014 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 oauth2 provides support for making -// OAuth2 authorized and authenticated HTTP requests. -// It can additionally grant authorization with Bearer JWT. -package oauth2 // import "golang.org/x/oauth2" - -import ( - "bytes" - "errors" - "net/http" - "net/url" - "strings" - "sync" - - "golang.org/x/net/context" - "golang.org/x/oauth2/internal" -) - -// NoContext is the default context you should supply if not using -// your own context.Context (see https://golang.org/x/net/context). -// -// Deprecated: Use context.Background() or context.TODO() instead. -var NoContext = context.TODO() - -// RegisterBrokenAuthHeaderProvider registers an OAuth2 server -// identified by the tokenURL prefix as an OAuth2 implementation -// which doesn't support the HTTP Basic authentication -// scheme to authenticate with the authorization server. -// Once a server is registered, credentials (client_id and client_secret) -// will be passed as query parameters rather than being present -// in the Authorization header. -// See https://code.google.com/p/goauth2/issues/detail?id=31 for background. -func RegisterBrokenAuthHeaderProvider(tokenURL string) { - internal.RegisterBrokenAuthHeaderProvider(tokenURL) -} - -// Config describes a typical 3-legged OAuth2 flow, with both the -// client application information and the server's endpoint URLs. -// For the client credentials 2-legged OAuth2 flow, see the clientcredentials -// package (https://golang.org/x/oauth2/clientcredentials). -type Config struct { - // ClientID is the application's ID. - ClientID string - - // ClientSecret is the application's secret. - ClientSecret string - - // Endpoint contains the resource server's token endpoint - // URLs. These are constants specific to each server and are - // often available via site-specific packages, such as - // google.Endpoint or github.Endpoint. - Endpoint Endpoint - - // RedirectURL is the URL to redirect users going through - // the OAuth flow, after the resource owner's URLs. - RedirectURL string - - // Scope specifies optional requested permissions. - Scopes []string -} - -// A TokenSource is anything that can return a token. -type TokenSource interface { - // Token returns a token or an error. - // Token must be safe for concurrent use by multiple goroutines. - // The returned Token must not be modified. - Token() (*Token, error) -} - -// Endpoint contains the OAuth 2.0 provider's authorization and token -// endpoint URLs. -type Endpoint struct { - AuthURL string - TokenURL string -} - -var ( - // AccessTypeOnline and AccessTypeOffline are options passed - // to the Options.AuthCodeURL method. They modify the - // "access_type" field that gets sent in the URL returned by - // AuthCodeURL. - // - // Online is the default if neither is specified. If your - // application needs to refresh access tokens when the user - // is not present at the browser, then use offline. This will - // result in your application obtaining a refresh token the - // first time your application exchanges an authorization - // code for a user. - AccessTypeOnline AuthCodeOption = SetAuthURLParam("access_type", "online") - AccessTypeOffline AuthCodeOption = SetAuthURLParam("access_type", "offline") - - // ApprovalForce forces the users to view the consent dialog - // and confirm the permissions request at the URL returned - // from AuthCodeURL, even if they've already done so. - ApprovalForce AuthCodeOption = SetAuthURLParam("approval_prompt", "force") -) - -// An AuthCodeOption is passed to Config.AuthCodeURL. -type AuthCodeOption interface { - setValue(url.Values) -} - -type setParam struct{ k, v string } - -func (p setParam) setValue(m url.Values) { m.Set(p.k, p.v) } - -// SetAuthURLParam builds an AuthCodeOption which passes key/value parameters -// to a provider's authorization endpoint. -func SetAuthURLParam(key, value string) AuthCodeOption { - return setParam{key, value} -} - -// AuthCodeURL returns a URL to OAuth 2.0 provider's consent page -// that asks for permissions for the required scopes explicitly. -// -// State is a token to protect the user from CSRF attacks. You must -// always provide a non-empty string and validate that it matches the -// the state query parameter on your redirect callback. -// See http://tools.ietf.org/html/rfc6749#section-10.12 for more info. -// -// Opts may include AccessTypeOnline or AccessTypeOffline, as well -// as ApprovalForce. -func (c *Config) AuthCodeURL(state string, opts ...AuthCodeOption) string { - var buf bytes.Buffer - buf.WriteString(c.Endpoint.AuthURL) - v := url.Values{ - "response_type": {"code"}, - "client_id": {c.ClientID}, - } - if c.RedirectURL != "" { - v.Set("redirect_uri", c.RedirectURL) - } - if len(c.Scopes) > 0 { - v.Set("scope", strings.Join(c.Scopes, " ")) - } - if state != "" { - // TODO(light): Docs say never to omit state; don't allow empty. - v.Set("state", state) - } - for _, opt := range opts { - opt.setValue(v) - } - if strings.Contains(c.Endpoint.AuthURL, "?") { - buf.WriteByte('&') - } else { - buf.WriteByte('?') - } - buf.WriteString(v.Encode()) - return buf.String() -} - -// PasswordCredentialsToken converts a resource owner username and password -// pair into a token. -// -// Per the RFC, this grant type should only be used "when there is a high -// degree of trust between the resource owner and the client (e.g., the client -// is part of the device operating system or a highly privileged application), -// and when other authorization grant types are not available." -// See https://tools.ietf.org/html/rfc6749#section-4.3 for more info. -// -// The HTTP client to use is derived from the context. -// If nil, http.DefaultClient is used. -func (c *Config) PasswordCredentialsToken(ctx context.Context, username, password string) (*Token, error) { - v := url.Values{ - "grant_type": {"password"}, - "username": {username}, - "password": {password}, - } - if len(c.Scopes) > 0 { - v.Set("scope", strings.Join(c.Scopes, " ")) - } - return retrieveToken(ctx, c, v) -} - -// Exchange converts an authorization code into a token. -// -// It is used after a resource provider redirects the user back -// to the Redirect URI (the URL obtained from AuthCodeURL). -// -// The HTTP client to use is derived from the context. -// If a client is not provided via the context, http.DefaultClient is used. -// -// The code will be in the *http.Request.FormValue("code"). Before -// calling Exchange, be sure to validate FormValue("state"). -func (c *Config) Exchange(ctx context.Context, code string) (*Token, error) { - v := url.Values{ - "grant_type": {"authorization_code"}, - "code": {code}, - } - if c.RedirectURL != "" { - v.Set("redirect_uri", c.RedirectURL) - } - return retrieveToken(ctx, c, v) -} - -// Client returns an HTTP client using the provided token. -// The token will auto-refresh as necessary. The underlying -// HTTP transport will be obtained using the provided context. -// The returned client and its Transport should not be modified. -func (c *Config) Client(ctx context.Context, t *Token) *http.Client { - return NewClient(ctx, c.TokenSource(ctx, t)) -} - -// TokenSource returns a TokenSource that returns t until t expires, -// automatically refreshing it as necessary using the provided context. -// -// Most users will use Config.Client instead. -func (c *Config) TokenSource(ctx context.Context, t *Token) TokenSource { - tkr := &tokenRefresher{ - ctx: ctx, - conf: c, - } - if t != nil { - tkr.refreshToken = t.RefreshToken - } - return &reuseTokenSource{ - t: t, - new: tkr, - } -} - -// tokenRefresher is a TokenSource that makes "grant_type"=="refresh_token" -// HTTP requests to renew a token using a RefreshToken. -type tokenRefresher struct { - ctx context.Context // used to get HTTP requests - conf *Config - refreshToken string -} - -// WARNING: Token is not safe for concurrent access, as it -// updates the tokenRefresher's refreshToken field. -// Within this package, it is used by reuseTokenSource which -// synchronizes calls to this method with its own mutex. -func (tf *tokenRefresher) Token() (*Token, error) { - if tf.refreshToken == "" { - return nil, errors.New("oauth2: token expired and refresh token is not set") - } - - tk, err := retrieveToken(tf.ctx, tf.conf, url.Values{ - "grant_type": {"refresh_token"}, - "refresh_token": {tf.refreshToken}, - }) - - if err != nil { - return nil, err - } - if tf.refreshToken != tk.RefreshToken { - tf.refreshToken = tk.RefreshToken - } - return tk, err -} - -// reuseTokenSource is a TokenSource that holds a single token in memory -// and validates its expiry before each call to retrieve it with -// Token. If it's expired, it will be auto-refreshed using the -// new TokenSource. -type reuseTokenSource struct { - new TokenSource // called when t is expired. - - mu sync.Mutex // guards t - t *Token -} - -// Token returns the current token if it's still valid, else will -// refresh the current token (using r.Context for HTTP client -// information) and return the new one. -func (s *reuseTokenSource) Token() (*Token, error) { - s.mu.Lock() - defer s.mu.Unlock() - if s.t.Valid() { - return s.t, nil - } - t, err := s.new.Token() - if err != nil { - return nil, err - } - s.t = t - return t, nil -} - -// StaticTokenSource returns a TokenSource that always returns the same token. -// Because the provided token t is never refreshed, StaticTokenSource is only -// useful for tokens that never expire. -func StaticTokenSource(t *Token) TokenSource { - return staticTokenSource{t} -} - -// staticTokenSource is a TokenSource that always returns the same Token. -type staticTokenSource struct { - t *Token -} - -func (s staticTokenSource) Token() (*Token, error) { - return s.t, nil -} - -// HTTPClient is the context key to use with golang.org/x/net/context's -// WithValue function to associate an *http.Client value with a context. -var HTTPClient internal.ContextKey - -// NewClient creates an *http.Client from a Context and TokenSource. -// The returned client is not valid beyond the lifetime of the context. -// -// Note that if a custom *http.Client is provided via the Context it -// is used only for token acquisition and is not used to configure the -// *http.Client returned from NewClient. -// -// As a special case, if src is nil, a non-OAuth2 client is returned -// using the provided context. This exists to support related OAuth2 -// packages. -func NewClient(ctx context.Context, src TokenSource) *http.Client { - if src == nil { - return internal.ContextClient(ctx) - } - return &http.Client{ - Transport: &Transport{ - Base: internal.ContextClient(ctx).Transport, - Source: ReuseTokenSource(nil, src), - }, - } -} - -// ReuseTokenSource returns a TokenSource which repeatedly returns the -// same token as long as it's valid, starting with t. -// When its cached token is invalid, a new token is obtained from src. -// -// ReuseTokenSource is typically used to reuse tokens from a cache -// (such as a file on disk) between runs of a program, rather than -// obtaining new tokens unnecessarily. -// -// The initial token t may be nil, in which case the TokenSource is -// wrapped in a caching version if it isn't one already. This also -// means it's always safe to wrap ReuseTokenSource around any other -// TokenSource without adverse effects. -func ReuseTokenSource(t *Token, src TokenSource) TokenSource { - // Don't wrap a reuseTokenSource in itself. That would work, - // but cause an unnecessary number of mutex operations. - // Just build the equivalent one. - if rt, ok := src.(*reuseTokenSource); ok { - if t == nil { - // Just use it directly. - return rt - } - src = rt.new - } - return &reuseTokenSource{ - t: t, - new: src, - } -} diff --git a/vendor/golang.org/x/oauth2/token.go b/vendor/golang.org/x/oauth2/token.go deleted file mode 100644 index 34db8cd..0000000 --- a/vendor/golang.org/x/oauth2/token.go +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright 2014 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 oauth2 - -import ( - "fmt" - "net/http" - "net/url" - "strconv" - "strings" - "time" - - "golang.org/x/net/context" - "golang.org/x/oauth2/internal" -) - -// expiryDelta determines how earlier a token should be considered -// expired than its actual expiration time. It is used to avoid late -// expirations due to client-server time mismatches. -const expiryDelta = 10 * time.Second - -// Token represents the credentials used to authorize -// the requests to access protected resources on the OAuth 2.0 -// provider's backend. -// -// Most users of this package should not access fields of Token -// directly. They're exported mostly for use by related packages -// implementing derivative OAuth2 flows. -type Token struct { - // AccessToken is the token that authorizes and authenticates - // the requests. - AccessToken string `json:"access_token"` - - // TokenType is the type of token. - // The Type method returns either this or "Bearer", the default. - TokenType string `json:"token_type,omitempty"` - - // RefreshToken is a token that's used by the application - // (as opposed to the user) to refresh the access token - // if it expires. - RefreshToken string `json:"refresh_token,omitempty"` - - // Expiry is the optional expiration time of the access token. - // - // If zero, TokenSource implementations will reuse the same - // token forever and RefreshToken or equivalent - // mechanisms for that TokenSource will not be used. - Expiry time.Time `json:"expiry,omitempty"` - - // raw optionally contains extra metadata from the server - // when updating a token. - raw interface{} -} - -// Type returns t.TokenType if non-empty, else "Bearer". -func (t *Token) Type() string { - if strings.EqualFold(t.TokenType, "bearer") { - return "Bearer" - } - if strings.EqualFold(t.TokenType, "mac") { - return "MAC" - } - if strings.EqualFold(t.TokenType, "basic") { - return "Basic" - } - if t.TokenType != "" { - return t.TokenType - } - return "Bearer" -} - -// SetAuthHeader sets the Authorization header to r using the access -// token in t. -// -// This method is unnecessary when using Transport or an HTTP Client -// returned by this package. -func (t *Token) SetAuthHeader(r *http.Request) { - r.Header.Set("Authorization", t.Type()+" "+t.AccessToken) -} - -// WithExtra returns a new Token that's a clone of t, but using the -// provided raw extra map. This is only intended for use by packages -// implementing derivative OAuth2 flows. -func (t *Token) WithExtra(extra interface{}) *Token { - t2 := new(Token) - *t2 = *t - t2.raw = extra - return t2 -} - -// Extra returns an extra field. -// Extra fields are key-value pairs returned by the server as a -// part of the token retrieval response. -func (t *Token) Extra(key string) interface{} { - if raw, ok := t.raw.(map[string]interface{}); ok { - return raw[key] - } - - vals, ok := t.raw.(url.Values) - if !ok { - return nil - } - - v := vals.Get(key) - switch s := strings.TrimSpace(v); strings.Count(s, ".") { - case 0: // Contains no "."; try to parse as int - if i, err := strconv.ParseInt(s, 10, 64); err == nil { - return i - } - case 1: // Contains a single "."; try to parse as float - if f, err := strconv.ParseFloat(s, 64); err == nil { - return f - } - } - - return v -} - -// expired reports whether the token is expired. -// t must be non-nil. -func (t *Token) expired() bool { - if t.Expiry.IsZero() { - return false - } - return t.Expiry.Round(0).Add(-expiryDelta).Before(time.Now()) -} - -// Valid reports whether t is non-nil, has an AccessToken, and is not expired. -func (t *Token) Valid() bool { - return t != nil && t.AccessToken != "" && !t.expired() -} - -// tokenFromInternal maps an *internal.Token struct into -// a *Token struct. -func tokenFromInternal(t *internal.Token) *Token { - if t == nil { - return nil - } - return &Token{ - AccessToken: t.AccessToken, - TokenType: t.TokenType, - RefreshToken: t.RefreshToken, - Expiry: t.Expiry, - raw: t.Raw, - } -} - -// retrieveToken takes a *Config and uses that to retrieve an *internal.Token. -// This token is then mapped from *internal.Token into an *oauth2.Token which is returned along -// with an error.. -func retrieveToken(ctx context.Context, c *Config, v url.Values) (*Token, error) { - tk, err := internal.RetrieveToken(ctx, c.ClientID, c.ClientSecret, c.Endpoint.TokenURL, v) - if err != nil { - if rErr, ok := err.(*internal.RetrieveError); ok { - return nil, (*RetrieveError)(rErr) - } - return nil, err - } - return tokenFromInternal(tk), nil -} - -// RetrieveError is the error returned when the token endpoint returns a -// non-2XX HTTP status code. -type RetrieveError struct { - Response *http.Response - // Body is the body that was consumed by reading Response.Body. - // It may be truncated. - Body []byte -} - -func (r *RetrieveError) Error() string { - return fmt.Sprintf("oauth2: cannot fetch token: %v\nResponse: %s", r.Response.Status, r.Body) -} diff --git a/vendor/golang.org/x/oauth2/transport.go b/vendor/golang.org/x/oauth2/transport.go deleted file mode 100644 index 92ac7e2..0000000 --- a/vendor/golang.org/x/oauth2/transport.go +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2014 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 oauth2 - -import ( - "errors" - "io" - "net/http" - "sync" -) - -// Transport is an http.RoundTripper that makes OAuth 2.0 HTTP requests, -// wrapping a base RoundTripper and adding an Authorization header -// with a token from the supplied Sources. -// -// Transport is a low-level mechanism. Most code will use the -// higher-level Config.Client method instead. -type Transport struct { - // Source supplies the token to add to outgoing requests' - // Authorization headers. - Source TokenSource - - // Base is the base RoundTripper used to make HTTP requests. - // If nil, http.DefaultTransport is used. - Base http.RoundTripper - - mu sync.Mutex // guards modReq - modReq map[*http.Request]*http.Request // original -> modified -} - -// RoundTrip authorizes and authenticates the request with an -// access token. If no token exists or token is expired, -// tries to refresh/fetch a new token. -func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) { - if t.Source == nil { - return nil, errors.New("oauth2: Transport's Source is nil") - } - token, err := t.Source.Token() - if err != nil { - return nil, err - } - - req2 := cloneRequest(req) // per RoundTripper contract - token.SetAuthHeader(req2) - t.setModReq(req, req2) - res, err := t.base().RoundTrip(req2) - if err != nil { - t.setModReq(req, nil) - return nil, err - } - res.Body = &onEOFReader{ - rc: res.Body, - fn: func() { t.setModReq(req, nil) }, - } - return res, nil -} - -// CancelRequest cancels an in-flight request by closing its connection. -func (t *Transport) CancelRequest(req *http.Request) { - type canceler interface { - CancelRequest(*http.Request) - } - if cr, ok := t.base().(canceler); ok { - t.mu.Lock() - modReq := t.modReq[req] - delete(t.modReq, req) - t.mu.Unlock() - cr.CancelRequest(modReq) - } -} - -func (t *Transport) base() http.RoundTripper { - if t.Base != nil { - return t.Base - } - return http.DefaultTransport -} - -func (t *Transport) setModReq(orig, mod *http.Request) { - t.mu.Lock() - defer t.mu.Unlock() - if t.modReq == nil { - t.modReq = make(map[*http.Request]*http.Request) - } - if mod == nil { - delete(t.modReq, orig) - } else { - t.modReq[orig] = mod - } -} - -// cloneRequest returns a clone of the provided *http.Request. -// The clone is a shallow copy of the struct and its Header map. -func cloneRequest(r *http.Request) *http.Request { - // shallow copy of the struct - r2 := new(http.Request) - *r2 = *r - // deep copy of the Header - r2.Header = make(http.Header, len(r.Header)) - for k, s := range r.Header { - r2.Header[k] = append([]string(nil), s...) - } - return r2 -} - -type onEOFReader struct { - rc io.ReadCloser - fn func() -} - -func (r *onEOFReader) Read(p []byte) (n int, err error) { - n, err = r.rc.Read(p) - if err == io.EOF { - r.runFunc() - } - return -} - -func (r *onEOFReader) Close() error { - err := r.rc.Close() - r.runFunc() - return err -} - -func (r *onEOFReader) runFunc() { - if fn := r.fn; fn != nil { - fn() - r.fn = nil - } -} diff --git a/vendor/golang.org/x/sync/AUTHORS b/vendor/golang.org/x/sync/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/sync/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/sync/CONTRIBUTORS b/vendor/golang.org/x/sync/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/sync/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/sync/LICENSE b/vendor/golang.org/x/sync/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/sync/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/sync/PATENTS b/vendor/golang.org/x/sync/PATENTS deleted file mode 100644 index 7330990..0000000 --- a/vendor/golang.org/x/sync/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/sync/errgroup/errgroup.go b/vendor/golang.org/x/sync/errgroup/errgroup.go deleted file mode 100644 index 533438d..0000000 --- a/vendor/golang.org/x/sync/errgroup/errgroup.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package errgroup provides synchronization, error propagation, and Context -// cancelation for groups of goroutines working on subtasks of a common task. -package errgroup - -import ( - "sync" - - "golang.org/x/net/context" -) - -// A Group is a collection of goroutines working on subtasks that are part of -// the same overall task. -// -// A zero Group is valid and does not cancel on error. -type Group struct { - cancel func() - - wg sync.WaitGroup - - errOnce sync.Once - err error -} - -// WithContext returns a new Group and an associated Context derived from ctx. -// -// The derived Context is canceled the first time a function passed to Go -// returns a non-nil error or the first time Wait returns, whichever occurs -// first. -func WithContext(ctx context.Context) (*Group, context.Context) { - ctx, cancel := context.WithCancel(ctx) - return &Group{cancel: cancel}, ctx -} - -// Wait blocks until all function calls from the Go method have returned, then -// returns the first non-nil error (if any) from them. -func (g *Group) Wait() error { - g.wg.Wait() - if g.cancel != nil { - g.cancel() - } - return g.err -} - -// Go calls the given function in a new goroutine. -// -// The first call to return a non-nil error cancels the group; its error will be -// returned by Wait. -func (g *Group) Go(f func() error) { - g.wg.Add(1) - - go func() { - defer g.wg.Done() - - if err := f(); err != nil { - g.errOnce.Do(func() { - g.err = err - if g.cancel != nil { - g.cancel() - } - }) - } - }() -} diff --git a/vendor/golang.org/x/sys/AUTHORS b/vendor/golang.org/x/sys/AUTHORS deleted file mode 100644 index 15167cd..0000000 --- a/vendor/golang.org/x/sys/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code refers to The Go Authors for copyright purposes. -# The master list of authors is in the main Go distribution, -# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/sys/CONTRIBUTORS b/vendor/golang.org/x/sys/CONTRIBUTORS deleted file mode 100644 index 1c4577e..0000000 --- a/vendor/golang.org/x/sys/CONTRIBUTORS +++ /dev/null @@ -1,3 +0,0 @@ -# This source code was written by the Go contributors. -# The master list of contributors is in the main Go distribution, -# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/sys/LICENSE b/vendor/golang.org/x/sys/LICENSE deleted file mode 100644 index 6a66aea..0000000 --- a/vendor/golang.org/x/sys/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2009 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/sys/PATENTS b/vendor/golang.org/x/sys/PATENTS deleted file mode 100644 index 7330990..0000000 --- a/vendor/golang.org/x/sys/PATENTS +++ /dev/null @@ -1,22 +0,0 @@ -Additional IP Rights Grant (Patents) - -"This implementation" means the copyrightable works distributed by -Google as part of the Go project. - -Google hereby grants to You a perpetual, worldwide, non-exclusive, -no-charge, royalty-free, irrevocable (except as stated in this section) -patent license to make, have made, use, offer to sell, sell, import, -transfer and otherwise run, modify and propagate the contents of this -implementation of Go, where such license applies only to those patent -claims, both currently owned or controlled by Google and acquired in -the future, licensable by Google that are necessarily infringed by this -implementation of Go. This grant does not include claims that would be -infringed only as a consequence of further modification of this -implementation. If you or your agent or exclusive licensee institute or -order or agree to the institution of patent litigation against any -entity (including a cross-claim or counterclaim in a lawsuit) alleging -that this implementation of Go or any code incorporated within this -implementation of Go constitutes direct or contributory patent -infringement, or inducement of patent infringement, then any patent -rights granted to you under this License for this implementation of Go -shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/sys/unix/affinity_linux.go b/vendor/golang.org/x/sys/unix/affinity_linux.go deleted file mode 100644 index 72afe33..0000000 --- a/vendor/golang.org/x/sys/unix/affinity_linux.go +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2018 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. - -// CPU affinity functions - -package unix - -import ( - "unsafe" -) - -const cpuSetSize = _CPU_SETSIZE / _NCPUBITS - -// CPUSet represents a CPU affinity mask. -type CPUSet [cpuSetSize]cpuMask - -func schedAffinity(trap uintptr, pid int, set *CPUSet) error { - _, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set))) - if e != 0 { - return errnoErr(e) - } - return nil -} - -// SchedGetaffinity gets the CPU affinity mask of the thread specified by pid. -// If pid is 0 the calling thread is used. -func SchedGetaffinity(pid int, set *CPUSet) error { - return schedAffinity(SYS_SCHED_GETAFFINITY, pid, set) -} - -// SchedSetaffinity sets the CPU affinity mask of the thread specified by pid. -// If pid is 0 the calling thread is used. -func SchedSetaffinity(pid int, set *CPUSet) error { - return schedAffinity(SYS_SCHED_SETAFFINITY, pid, set) -} - -// Zero clears the set s, so that it contains no CPUs. -func (s *CPUSet) Zero() { - for i := range s { - s[i] = 0 - } -} - -func cpuBitsIndex(cpu int) int { - return cpu / _NCPUBITS -} - -func cpuBitsMask(cpu int) cpuMask { - return cpuMask(1 << (uint(cpu) % _NCPUBITS)) -} - -// Set adds cpu to the set s. -func (s *CPUSet) Set(cpu int) { - i := cpuBitsIndex(cpu) - if i < len(s) { - s[i] |= cpuBitsMask(cpu) - } -} - -// Clear removes cpu from the set s. -func (s *CPUSet) Clear(cpu int) { - i := cpuBitsIndex(cpu) - if i < len(s) { - s[i] &^= cpuBitsMask(cpu) - } -} - -// IsSet reports whether cpu is in the set s. -func (s *CPUSet) IsSet(cpu int) bool { - i := cpuBitsIndex(cpu) - if i < len(s) { - return s[i]&cpuBitsMask(cpu) != 0 - } - return false -} - -// Count returns the number of CPUs in the set s. -func (s *CPUSet) Count() int { - c := 0 - for _, b := range s { - c += onesCount64(uint64(b)) - } - return c -} - -// onesCount64 is a copy of Go 1.9's math/bits.OnesCount64. -// Once this package can require Go 1.9, we can delete this -// and update the caller to use bits.OnesCount64. -func onesCount64(x uint64) int { - const m0 = 0x5555555555555555 // 01010101 ... - const m1 = 0x3333333333333333 // 00110011 ... - const m2 = 0x0f0f0f0f0f0f0f0f // 00001111 ... - const m3 = 0x00ff00ff00ff00ff // etc. - const m4 = 0x0000ffff0000ffff - - // Implementation: Parallel summing of adjacent bits. - // See "Hacker's Delight", Chap. 5: Counting Bits. - // The following pattern shows the general approach: - // - // x = x>>1&(m0&m) + x&(m0&m) - // x = x>>2&(m1&m) + x&(m1&m) - // x = x>>4&(m2&m) + x&(m2&m) - // x = x>>8&(m3&m) + x&(m3&m) - // x = x>>16&(m4&m) + x&(m4&m) - // x = x>>32&(m5&m) + x&(m5&m) - // return int(x) - // - // Masking (& operations) can be left away when there's no - // danger that a field's sum will carry over into the next - // field: Since the result cannot be > 64, 8 bits is enough - // and we can ignore the masks for the shifts by 8 and up. - // Per "Hacker's Delight", the first line can be simplified - // more, but it saves at best one instruction, so we leave - // it alone for clarity. - const m = 1<<64 - 1 - x = x>>1&(m0&m) + x&(m0&m) - x = x>>2&(m1&m) + x&(m1&m) - x = (x>>4 + x) & (m2 & m) - x += x >> 8 - x += x >> 16 - x += x >> 32 - return int(x) & (1<<7 - 1) -} diff --git a/vendor/golang.org/x/sys/unix/asm_darwin_386.s b/vendor/golang.org/x/sys/unix/asm_darwin_386.s deleted file mode 100644 index 8a72783..0000000 --- a/vendor/golang.org/x/sys/unix/asm_darwin_386.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for 386, Darwin -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_darwin_amd64.s b/vendor/golang.org/x/sys/unix/asm_darwin_amd64.s deleted file mode 100644 index 6321421..0000000 --- a/vendor/golang.org/x/sys/unix/asm_darwin_amd64.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for AMD64, Darwin -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-104 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_darwin_arm.s b/vendor/golang.org/x/sys/unix/asm_darwin_arm.s deleted file mode 100644 index 333242d..0000000 --- a/vendor/golang.org/x/sys/unix/asm_darwin_arm.s +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2015 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. - -// +build !gccgo -// +build arm,darwin - -#include "textflag.h" - -// -// System call support for ARM, Darwin -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - B syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - B syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_darwin_arm64.s b/vendor/golang.org/x/sys/unix/asm_darwin_arm64.s deleted file mode 100644 index 97e0174..0000000 --- a/vendor/golang.org/x/sys/unix/asm_darwin_arm64.s +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2015 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. - -// +build !gccgo -// +build arm64,darwin - -#include "textflag.h" - -// -// System call support for AMD64, Darwin -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - B syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-104 - B syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s b/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s deleted file mode 100644 index d5ed672..0000000 --- a/vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for AMD64, DragonFly -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-64 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-88 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-112 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-64 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_freebsd_386.s b/vendor/golang.org/x/sys/unix/asm_freebsd_386.s deleted file mode 100644 index c9a0a26..0000000 --- a/vendor/golang.org/x/sys/unix/asm_freebsd_386.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for 386, FreeBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s deleted file mode 100644 index 3517247..0000000 --- a/vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for AMD64, FreeBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-104 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_freebsd_arm.s b/vendor/golang.org/x/sys/unix/asm_freebsd_arm.s deleted file mode 100644 index 9227c87..0000000 --- a/vendor/golang.org/x/sys/unix/asm_freebsd_arm.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2012 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for ARM, FreeBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - B syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - B syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_386.s b/vendor/golang.org/x/sys/unix/asm_linux_386.s deleted file mode 100644 index 448bebb..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_386.s +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System calls for 386, Linux -// - -// See ../runtime/sys_linux_386.s for the reason why we always use int 0x80 -// instead of the glibc-specific "CALL 0x10(GS)". -#define INVOKE_SYSCALL INT $0x80 - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 - CALL runtime·entersyscall(SB) - MOVL trap+0(FP), AX // syscall entry - MOVL a1+4(FP), BX - MOVL a2+8(FP), CX - MOVL a3+12(FP), DX - MOVL $0, SI - MOVL $0, DI - INVOKE_SYSCALL - MOVL AX, r1+16(FP) - MOVL DX, r2+20(FP) - CALL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 - MOVL trap+0(FP), AX // syscall entry - MOVL a1+4(FP), BX - MOVL a2+8(FP), CX - MOVL a3+12(FP), DX - MOVL $0, SI - MOVL $0, DI - INVOKE_SYSCALL - MOVL AX, r1+16(FP) - MOVL DX, r2+20(FP) - RET - -TEXT ·socketcall(SB),NOSPLIT,$0-36 - JMP syscall·socketcall(SB) - -TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 - JMP syscall·rawsocketcall(SB) - -TEXT ·seek(SB),NOSPLIT,$0-28 - JMP syscall·seek(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_amd64.s b/vendor/golang.org/x/sys/unix/asm_linux_amd64.s deleted file mode 100644 index c6468a9..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_amd64.s +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System calls for AMD64, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 - CALL runtime·entersyscall(SB) - MOVQ a1+8(FP), DI - MOVQ a2+16(FP), SI - MOVQ a3+24(FP), DX - MOVQ $0, R10 - MOVQ $0, R8 - MOVQ $0, R9 - MOVQ trap+0(FP), AX // syscall entry - SYSCALL - MOVQ AX, r1+32(FP) - MOVQ DX, r2+40(FP) - CALL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 - MOVQ a1+8(FP), DI - MOVQ a2+16(FP), SI - MOVQ a3+24(FP), DX - MOVQ $0, R10 - MOVQ $0, R8 - MOVQ $0, R9 - MOVQ trap+0(FP), AX // syscall entry - SYSCALL - MOVQ AX, r1+32(FP) - MOVQ DX, r2+40(FP) - RET - -TEXT ·gettimeofday(SB),NOSPLIT,$0-16 - JMP syscall·gettimeofday(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_arm.s b/vendor/golang.org/x/sys/unix/asm_linux_arm.s deleted file mode 100644 index cf0f357..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_arm.s +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System calls for arm, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - B syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 - BL runtime·entersyscall(SB) - MOVW trap+0(FP), R7 - MOVW a1+4(FP), R0 - MOVW a2+8(FP), R1 - MOVW a3+12(FP), R2 - MOVW $0, R3 - MOVW $0, R4 - MOVW $0, R5 - SWI $0 - MOVW R0, r1+16(FP) - MOVW $0, R0 - MOVW R0, r2+20(FP) - BL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - B syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 - MOVW trap+0(FP), R7 // syscall entry - MOVW a1+4(FP), R0 - MOVW a2+8(FP), R1 - MOVW a3+12(FP), R2 - SWI $0 - MOVW R0, r1+16(FP) - MOVW $0, R0 - MOVW R0, r2+20(FP) - RET - -TEXT ·seek(SB),NOSPLIT,$0-28 - B syscall·seek(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_linux_arm64.s b/vendor/golang.org/x/sys/unix/asm_linux_arm64.s deleted file mode 100644 index afe6fdf..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_arm64.s +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2015 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. - -// +build linux -// +build arm64 -// +build !gccgo - -#include "textflag.h" - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - B syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 - BL runtime·entersyscall(SB) - MOVD a1+8(FP), R0 - MOVD a2+16(FP), R1 - MOVD a3+24(FP), R2 - MOVD $0, R3 - MOVD $0, R4 - MOVD $0, R5 - MOVD trap+0(FP), R8 // syscall entry - SVC - MOVD R0, r1+32(FP) // r1 - MOVD R1, r2+40(FP) // r2 - BL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - B syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 - MOVD a1+8(FP), R0 - MOVD a2+16(FP), R1 - MOVD a3+24(FP), R2 - MOVD $0, R3 - MOVD $0, R4 - MOVD $0, R5 - MOVD trap+0(FP), R8 // syscall entry - SVC - MOVD R0, r1+32(FP) - MOVD R1, r2+40(FP) - RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s b/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s deleted file mode 100644 index ab9d638..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2015 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. - -// +build linux -// +build mips64 mips64le -// +build !gccgo - -#include "textflag.h" - -// -// System calls for mips64, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 - JAL runtime·entersyscall(SB) - MOVV a1+8(FP), R4 - MOVV a2+16(FP), R5 - MOVV a3+24(FP), R6 - MOVV R0, R7 - MOVV R0, R8 - MOVV R0, R9 - MOVV trap+0(FP), R2 // syscall entry - SYSCALL - MOVV R2, r1+32(FP) - MOVV R3, r2+40(FP) - JAL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 - MOVV a1+8(FP), R4 - MOVV a2+16(FP), R5 - MOVV a3+24(FP), R6 - MOVV R0, R7 - MOVV R0, R8 - MOVV R0, R9 - MOVV trap+0(FP), R2 // syscall entry - SYSCALL - MOVV R2, r1+32(FP) - MOVV R3, r2+40(FP) - RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s b/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s deleted file mode 100644 index 99e5399..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux -// +build mips mipsle -// +build !gccgo - -#include "textflag.h" - -// -// System calls for mips, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - JMP syscall·Syscall9(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-24 - JAL runtime·entersyscall(SB) - MOVW a1+4(FP), R4 - MOVW a2+8(FP), R5 - MOVW a3+12(FP), R6 - MOVW R0, R7 - MOVW trap+0(FP), R2 // syscall entry - SYSCALL - MOVW R2, r1+16(FP) // r1 - MOVW R3, r2+20(FP) // r2 - JAL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-24 - MOVW a1+4(FP), R4 - MOVW a2+8(FP), R5 - MOVW a3+12(FP), R6 - MOVW trap+0(FP), R2 // syscall entry - SYSCALL - MOVW R2, r1+16(FP) - MOVW R3, r2+20(FP) - RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s deleted file mode 100644 index 649e587..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2014 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. - -// +build linux -// +build ppc64 ppc64le -// +build !gccgo - -#include "textflag.h" - -// -// System calls for ppc64, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - BR syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - BR syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 - BL runtime·entersyscall(SB) - MOVD a1+8(FP), R3 - MOVD a2+16(FP), R4 - MOVD a3+24(FP), R5 - MOVD R0, R6 - MOVD R0, R7 - MOVD R0, R8 - MOVD trap+0(FP), R9 // syscall entry - SYSCALL R9 - MOVD R3, r1+32(FP) - MOVD R4, r2+40(FP) - BL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - BR syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - BR syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 - MOVD a1+8(FP), R3 - MOVD a2+16(FP), R4 - MOVD a3+24(FP), R5 - MOVD R0, R6 - MOVD R0, R7 - MOVD R0, R8 - MOVD trap+0(FP), R9 // syscall entry - SYSCALL R9 - MOVD R3, r1+32(FP) - MOVD R4, r2+40(FP) - RET diff --git a/vendor/golang.org/x/sys/unix/asm_linux_s390x.s b/vendor/golang.org/x/sys/unix/asm_linux_s390x.s deleted file mode 100644 index a5a863c..0000000 --- a/vendor/golang.org/x/sys/unix/asm_linux_s390x.s +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build s390x -// +build linux -// +build !gccgo - -#include "textflag.h" - -// -// System calls for s390x, Linux -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - BR syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - BR syscall·Syscall6(SB) - -TEXT ·SyscallNoError(SB),NOSPLIT,$0-48 - BL runtime·entersyscall(SB) - MOVD a1+8(FP), R2 - MOVD a2+16(FP), R3 - MOVD a3+24(FP), R4 - MOVD $0, R5 - MOVD $0, R6 - MOVD $0, R7 - MOVD trap+0(FP), R1 // syscall entry - SYSCALL - MOVD R2, r1+32(FP) - MOVD R3, r2+40(FP) - BL runtime·exitsyscall(SB) - RET - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - BR syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - BR syscall·RawSyscall6(SB) - -TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48 - MOVD a1+8(FP), R2 - MOVD a2+16(FP), R3 - MOVD a3+24(FP), R4 - MOVD $0, R5 - MOVD $0, R6 - MOVD $0, R7 - MOVD trap+0(FP), R1 // syscall entry - SYSCALL - MOVD R2, r1+32(FP) - MOVD R3, r2+40(FP) - RET diff --git a/vendor/golang.org/x/sys/unix/asm_netbsd_386.s b/vendor/golang.org/x/sys/unix/asm_netbsd_386.s deleted file mode 100644 index 48bdcd7..0000000 --- a/vendor/golang.org/x/sys/unix/asm_netbsd_386.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for 386, NetBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s deleted file mode 100644 index 2ede05c..0000000 --- a/vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for AMD64, NetBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-104 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_netbsd_arm.s b/vendor/golang.org/x/sys/unix/asm_netbsd_arm.s deleted file mode 100644 index e892857..0000000 --- a/vendor/golang.org/x/sys/unix/asm_netbsd_arm.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2013 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for ARM, NetBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - B syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - B syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_openbsd_386.s b/vendor/golang.org/x/sys/unix/asm_openbsd_386.s deleted file mode 100644 index 00576f3..0000000 --- a/vendor/golang.org/x/sys/unix/asm_openbsd_386.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for 386, OpenBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s b/vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s deleted file mode 100644 index 790ef77..0000000 --- a/vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2009 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for AMD64, OpenBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-56 - JMP syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-80 - JMP syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-104 - JMP syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-56 - JMP syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 - JMP syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_openbsd_arm.s b/vendor/golang.org/x/sys/unix/asm_openbsd_arm.s deleted file mode 100644 index 469bfa1..0000000 --- a/vendor/golang.org/x/sys/unix/asm_openbsd_arm.s +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System call support for ARM, OpenBSD -// - -// Just jump to package syscall's implementation for all these functions. -// The runtime may know about them. - -TEXT ·Syscall(SB),NOSPLIT,$0-28 - B syscall·Syscall(SB) - -TEXT ·Syscall6(SB),NOSPLIT,$0-40 - B syscall·Syscall6(SB) - -TEXT ·Syscall9(SB),NOSPLIT,$0-52 - B syscall·Syscall9(SB) - -TEXT ·RawSyscall(SB),NOSPLIT,$0-28 - B syscall·RawSyscall(SB) - -TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 - B syscall·RawSyscall6(SB) diff --git a/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s b/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s deleted file mode 100644 index ded8260..0000000 --- a/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2014 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. - -// +build !gccgo - -#include "textflag.h" - -// -// System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go -// - -TEXT ·sysvicall6(SB),NOSPLIT,$0-88 - JMP syscall·sysvicall6(SB) - -TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 - JMP syscall·rawSysvicall6(SB) diff --git a/vendor/golang.org/x/sys/unix/bluetooth_linux.go b/vendor/golang.org/x/sys/unix/bluetooth_linux.go deleted file mode 100644 index 6e32296..0000000 --- a/vendor/golang.org/x/sys/unix/bluetooth_linux.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Bluetooth sockets and messages - -package unix - -// Bluetooth Protocols -const ( - BTPROTO_L2CAP = 0 - BTPROTO_HCI = 1 - BTPROTO_SCO = 2 - BTPROTO_RFCOMM = 3 - BTPROTO_BNEP = 4 - BTPROTO_CMTP = 5 - BTPROTO_HIDP = 6 - BTPROTO_AVDTP = 7 -) - -const ( - HCI_CHANNEL_RAW = 0 - HCI_CHANNEL_USER = 1 - HCI_CHANNEL_MONITOR = 2 - HCI_CHANNEL_CONTROL = 3 -) - -// Socketoption Level -const ( - SOL_BLUETOOTH = 0x112 - SOL_HCI = 0x0 - SOL_L2CAP = 0x6 - SOL_RFCOMM = 0x12 - SOL_SCO = 0x11 -) diff --git a/vendor/golang.org/x/sys/unix/cap_freebsd.go b/vendor/golang.org/x/sys/unix/cap_freebsd.go deleted file mode 100644 index 83b6bce..0000000 --- a/vendor/golang.org/x/sys/unix/cap_freebsd.go +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2017 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. - -// +build freebsd - -package unix - -import ( - errorspkg "errors" - "fmt" -) - -// Go implementation of C mostly found in /usr/src/sys/kern/subr_capability.c - -const ( - // This is the version of CapRights this package understands. See C implementation for parallels. - capRightsGoVersion = CAP_RIGHTS_VERSION_00 - capArSizeMin = CAP_RIGHTS_VERSION_00 + 2 - capArSizeMax = capRightsGoVersion + 2 -) - -var ( - bit2idx = []int{ - -1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1, - 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - } -) - -func capidxbit(right uint64) int { - return int((right >> 57) & 0x1f) -} - -func rightToIndex(right uint64) (int, error) { - idx := capidxbit(right) - if idx < 0 || idx >= len(bit2idx) { - return -2, fmt.Errorf("index for right 0x%x out of range", right) - } - return bit2idx[idx], nil -} - -func caprver(right uint64) int { - return int(right >> 62) -} - -func capver(rights *CapRights) int { - return caprver(rights.Rights[0]) -} - -func caparsize(rights *CapRights) int { - return capver(rights) + 2 -} - -// CapRightsSet sets the permissions in setrights in rights. -func CapRightsSet(rights *CapRights, setrights []uint64) error { - // This is essentially a copy of cap_rights_vset() - if capver(rights) != CAP_RIGHTS_VERSION_00 { - return fmt.Errorf("bad rights version %d", capver(rights)) - } - - n := caparsize(rights) - if n < capArSizeMin || n > capArSizeMax { - return errorspkg.New("bad rights size") - } - - for _, right := range setrights { - if caprver(right) != CAP_RIGHTS_VERSION_00 { - return errorspkg.New("bad right version") - } - i, err := rightToIndex(right) - if err != nil { - return err - } - if i >= n { - return errorspkg.New("index overflow") - } - if capidxbit(rights.Rights[i]) != capidxbit(right) { - return errorspkg.New("index mismatch") - } - rights.Rights[i] |= right - if capidxbit(rights.Rights[i]) != capidxbit(right) { - return errorspkg.New("index mismatch (after assign)") - } - } - - return nil -} - -// CapRightsClear clears the permissions in clearrights from rights. -func CapRightsClear(rights *CapRights, clearrights []uint64) error { - // This is essentially a copy of cap_rights_vclear() - if capver(rights) != CAP_RIGHTS_VERSION_00 { - return fmt.Errorf("bad rights version %d", capver(rights)) - } - - n := caparsize(rights) - if n < capArSizeMin || n > capArSizeMax { - return errorspkg.New("bad rights size") - } - - for _, right := range clearrights { - if caprver(right) != CAP_RIGHTS_VERSION_00 { - return errorspkg.New("bad right version") - } - i, err := rightToIndex(right) - if err != nil { - return err - } - if i >= n { - return errorspkg.New("index overflow") - } - if capidxbit(rights.Rights[i]) != capidxbit(right) { - return errorspkg.New("index mismatch") - } - rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF) - if capidxbit(rights.Rights[i]) != capidxbit(right) { - return errorspkg.New("index mismatch (after assign)") - } - } - - return nil -} - -// CapRightsIsSet checks whether all the permissions in setrights are present in rights. -func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) { - // This is essentially a copy of cap_rights_is_vset() - if capver(rights) != CAP_RIGHTS_VERSION_00 { - return false, fmt.Errorf("bad rights version %d", capver(rights)) - } - - n := caparsize(rights) - if n < capArSizeMin || n > capArSizeMax { - return false, errorspkg.New("bad rights size") - } - - for _, right := range setrights { - if caprver(right) != CAP_RIGHTS_VERSION_00 { - return false, errorspkg.New("bad right version") - } - i, err := rightToIndex(right) - if err != nil { - return false, err - } - if i >= n { - return false, errorspkg.New("index overflow") - } - if capidxbit(rights.Rights[i]) != capidxbit(right) { - return false, errorspkg.New("index mismatch") - } - if (rights.Rights[i] & right) != right { - return false, nil - } - } - - return true, nil -} - -func capright(idx uint64, bit uint64) uint64 { - return ((1 << (57 + idx)) | bit) -} - -// CapRightsInit returns a pointer to an initialised CapRights structure filled with rights. -// See man cap_rights_init(3) and rights(4). -func CapRightsInit(rights []uint64) (*CapRights, error) { - var r CapRights - r.Rights[0] = (capRightsGoVersion << 62) | capright(0, 0) - r.Rights[1] = capright(1, 0) - - err := CapRightsSet(&r, rights) - if err != nil { - return nil, err - } - return &r, nil -} - -// CapRightsLimit reduces the operations permitted on fd to at most those contained in rights. -// The capability rights on fd can never be increased by CapRightsLimit. -// See man cap_rights_limit(2) and rights(4). -func CapRightsLimit(fd uintptr, rights *CapRights) error { - return capRightsLimit(int(fd), rights) -} - -// CapRightsGet returns a CapRights structure containing the operations permitted on fd. -// See man cap_rights_get(3) and rights(4). -func CapRightsGet(fd uintptr) (*CapRights, error) { - r, err := CapRightsInit(nil) - if err != nil { - return nil, err - } - err = capRightsGet(capRightsGoVersion, int(fd), r) - if err != nil { - return nil, err - } - return r, nil -} diff --git a/vendor/golang.org/x/sys/unix/constants.go b/vendor/golang.org/x/sys/unix/constants.go deleted file mode 100644 index a96f0eb..0000000 --- a/vendor/golang.org/x/sys/unix/constants.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2015 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -package unix - -const ( - R_OK = 0x4 - W_OK = 0x2 - X_OK = 0x1 -) diff --git a/vendor/golang.org/x/sys/unix/dev_darwin.go b/vendor/golang.org/x/sys/unix/dev_darwin.go deleted file mode 100644 index 8d1dc0f..0000000 --- a/vendor/golang.org/x/sys/unix/dev_darwin.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in Darwin's sys/types.h header. - -package unix - -// Major returns the major component of a Darwin device number. -func Major(dev uint64) uint32 { - return uint32((dev >> 24) & 0xff) -} - -// Minor returns the minor component of a Darwin device number. -func Minor(dev uint64) uint32 { - return uint32(dev & 0xffffff) -} - -// Mkdev returns a Darwin device number generated from the given major and minor -// components. -func Mkdev(major, minor uint32) uint64 { - return (uint64(major) << 24) | uint64(minor) -} diff --git a/vendor/golang.org/x/sys/unix/dev_dragonfly.go b/vendor/golang.org/x/sys/unix/dev_dragonfly.go deleted file mode 100644 index 8502f20..0000000 --- a/vendor/golang.org/x/sys/unix/dev_dragonfly.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in Dragonfly's sys/types.h header. -// -// The information below is extracted and adapted from sys/types.h: -// -// Minor gives a cookie instead of an index since in order to avoid changing the -// meanings of bits 0-15 or wasting time and space shifting bits 16-31 for -// devices that don't use them. - -package unix - -// Major returns the major component of a DragonFlyBSD device number. -func Major(dev uint64) uint32 { - return uint32((dev >> 8) & 0xff) -} - -// Minor returns the minor component of a DragonFlyBSD device number. -func Minor(dev uint64) uint32 { - return uint32(dev & 0xffff00ff) -} - -// Mkdev returns a DragonFlyBSD device number generated from the given major and -// minor components. -func Mkdev(major, minor uint32) uint64 { - return (uint64(major) << 8) | uint64(minor) -} diff --git a/vendor/golang.org/x/sys/unix/dev_freebsd.go b/vendor/golang.org/x/sys/unix/dev_freebsd.go deleted file mode 100644 index eba3b4b..0000000 --- a/vendor/golang.org/x/sys/unix/dev_freebsd.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in FreeBSD's sys/types.h header. -// -// The information below is extracted and adapted from sys/types.h: -// -// Minor gives a cookie instead of an index since in order to avoid changing the -// meanings of bits 0-15 or wasting time and space shifting bits 16-31 for -// devices that don't use them. - -package unix - -// Major returns the major component of a FreeBSD device number. -func Major(dev uint64) uint32 { - return uint32((dev >> 8) & 0xff) -} - -// Minor returns the minor component of a FreeBSD device number. -func Minor(dev uint64) uint32 { - return uint32(dev & 0xffff00ff) -} - -// Mkdev returns a FreeBSD device number generated from the given major and -// minor components. -func Mkdev(major, minor uint32) uint64 { - return (uint64(major) << 8) | uint64(minor) -} diff --git a/vendor/golang.org/x/sys/unix/dev_linux.go b/vendor/golang.org/x/sys/unix/dev_linux.go deleted file mode 100644 index d165d6f..0000000 --- a/vendor/golang.org/x/sys/unix/dev_linux.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used by the Linux kernel and glibc. -// -// The information below is extracted and adapted from bits/sysmacros.h in the -// glibc sources: -// -// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's -// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major -// number and m is a hex digit of the minor number. This is backward compatible -// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also -// backward compatible with the Linux kernel, which for some architectures uses -// 32-bit dev_t, encoded as mmmM MMmm. - -package unix - -// Major returns the major component of a Linux device number. -func Major(dev uint64) uint32 { - major := uint32((dev & 0x00000000000fff00) >> 8) - major |= uint32((dev & 0xfffff00000000000) >> 32) - return major -} - -// Minor returns the minor component of a Linux device number. -func Minor(dev uint64) uint32 { - minor := uint32((dev & 0x00000000000000ff) >> 0) - minor |= uint32((dev & 0x00000ffffff00000) >> 12) - return minor -} - -// Mkdev returns a Linux device number generated from the given major and minor -// components. -func Mkdev(major, minor uint32) uint64 { - dev := (uint64(major) & 0x00000fff) << 8 - dev |= (uint64(major) & 0xfffff000) << 32 - dev |= (uint64(minor) & 0x000000ff) << 0 - dev |= (uint64(minor) & 0xffffff00) << 12 - return dev -} diff --git a/vendor/golang.org/x/sys/unix/dev_netbsd.go b/vendor/golang.org/x/sys/unix/dev_netbsd.go deleted file mode 100644 index b4a203d..0000000 --- a/vendor/golang.org/x/sys/unix/dev_netbsd.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in NetBSD's sys/types.h header. - -package unix - -// Major returns the major component of a NetBSD device number. -func Major(dev uint64) uint32 { - return uint32((dev & 0x000fff00) >> 8) -} - -// Minor returns the minor component of a NetBSD device number. -func Minor(dev uint64) uint32 { - minor := uint32((dev & 0x000000ff) >> 0) - minor |= uint32((dev & 0xfff00000) >> 12) - return minor -} - -// Mkdev returns a NetBSD device number generated from the given major and minor -// components. -func Mkdev(major, minor uint32) uint64 { - dev := (uint64(major) << 8) & 0x000fff00 - dev |= (uint64(minor) << 12) & 0xfff00000 - dev |= (uint64(minor) << 0) & 0x000000ff - return dev -} diff --git a/vendor/golang.org/x/sys/unix/dev_openbsd.go b/vendor/golang.org/x/sys/unix/dev_openbsd.go deleted file mode 100644 index f3430c4..0000000 --- a/vendor/golang.org/x/sys/unix/dev_openbsd.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017 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. - -// Functions to access/create device major and minor numbers matching the -// encoding used in OpenBSD's sys/types.h header. - -package unix - -// Major returns the major component of an OpenBSD device number. -func Major(dev uint64) uint32 { - return uint32((dev & 0x0000ff00) >> 8) -} - -// Minor returns the minor component of an OpenBSD device number. -func Minor(dev uint64) uint32 { - minor := uint32((dev & 0x000000ff) >> 0) - minor |= uint32((dev & 0xffff0000) >> 8) - return minor -} - -// Mkdev returns an OpenBSD device number generated from the given major and minor -// components. -func Mkdev(major, minor uint32) uint64 { - dev := (uint64(major) << 8) & 0x0000ff00 - dev |= (uint64(minor) << 8) & 0xffff0000 - dev |= (uint64(minor) << 0) & 0x000000ff - return dev -} diff --git a/vendor/golang.org/x/sys/unix/dirent.go b/vendor/golang.org/x/sys/unix/dirent.go deleted file mode 100644 index 95fd353..0000000 --- a/vendor/golang.org/x/sys/unix/dirent.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2009 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. - -// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris - -package unix - -import "syscall" - -// ParseDirent parses up to max directory entries in buf, -// appending the names to names. It returns the number of -// bytes consumed from buf, the number of entries added -// to names, and the new names slice. -func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { - return syscall.ParseDirent(buf, max, names) -} diff --git a/vendor/golang.org/x/sys/unix/endian_big.go b/vendor/golang.org/x/sys/unix/endian_big.go deleted file mode 100644 index 5e92690..0000000 --- a/vendor/golang.org/x/sys/unix/endian_big.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. -// -// +build ppc64 s390x mips mips64 - -package unix - -const isBigEndian = true diff --git a/vendor/golang.org/x/sys/unix/endian_little.go b/vendor/golang.org/x/sys/unix/endian_little.go deleted file mode 100644 index 085df2d..0000000 --- a/vendor/golang.org/x/sys/unix/endian_little.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. -// -// +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le - -package unix - -const isBigEndian = false diff --git a/vendor/golang.org/x/sys/unix/env_unix.go b/vendor/golang.org/x/sys/unix/env_unix.go deleted file mode 100644 index 706b3cd..0000000 --- a/vendor/golang.org/x/sys/unix/env_unix.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2010 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -// Unix environment variables. - -package unix - -import "syscall" - -func Getenv(key string) (value string, found bool) { - return syscall.Getenv(key) -} - -func Setenv(key, value string) error { - return syscall.Setenv(key, value) -} - -func Clearenv() { - syscall.Clearenv() -} - -func Environ() []string { - return syscall.Environ() -} - -func Unsetenv(key string) error { - return syscall.Unsetenv(key) -} diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_386.go b/vendor/golang.org/x/sys/unix/errors_freebsd_386.go deleted file mode 100644 index c56bc8b..0000000 --- a/vendor/golang.org/x/sys/unix/errors_freebsd_386.go +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright 2017 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. - -// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep -// them here for backwards compatibility. - -package unix - -const ( - IFF_SMART = 0x20 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BSC = 0x53 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_IPXIP = 0xf9 - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf6 - IFT_PFSYNC = 0xf7 - IFT_PLC = 0xae - IFT_POS = 0xab - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VOICEEM = 0x64 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IPPROTO_MAXID = 0x34 - IPV6_FAITH = 0x1d - IP_FAITH = 0x16 - MAP_NORESERVE = 0x40 - MAP_RENAME = 0x20 - NET_RT_MAXID = 0x6 - RTF_PRCLONING = 0x10000 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - SIOCADDRT = 0x8030720a - SIOCALIFADDR = 0x8118691b - SIOCDELRT = 0x8030720b - SIOCDLIFADDR = 0x8118691d - SIOCGLIFADDR = 0xc118691c - SIOCGLIFPHYADDR = 0xc118694b - SIOCSLIFPHYADDR = 0x8118694a -) diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go deleted file mode 100644 index 3e97711..0000000 --- a/vendor/golang.org/x/sys/unix/errors_freebsd_amd64.go +++ /dev/null @@ -1,227 +0,0 @@ -// Copyright 2017 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. - -// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep -// them here for backwards compatibility. - -package unix - -const ( - IFF_SMART = 0x20 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BSC = 0x53 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_IPXIP = 0xf9 - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf6 - IFT_PFSYNC = 0xf7 - IFT_PLC = 0xae - IFT_POS = 0xab - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VOICEEM = 0x64 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IPPROTO_MAXID = 0x34 - IPV6_FAITH = 0x1d - IP_FAITH = 0x16 - MAP_NORESERVE = 0x40 - MAP_RENAME = 0x20 - NET_RT_MAXID = 0x6 - RTF_PRCLONING = 0x10000 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - SIOCADDRT = 0x8040720a - SIOCALIFADDR = 0x8118691b - SIOCDELRT = 0x8040720b - SIOCDLIFADDR = 0x8118691d - SIOCGLIFADDR = 0xc118691c - SIOCGLIFPHYADDR = 0xc118694b - SIOCSLIFPHYADDR = 0x8118694a -) diff --git a/vendor/golang.org/x/sys/unix/errors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/errors_freebsd_arm.go deleted file mode 100644 index 856dca3..0000000 --- a/vendor/golang.org/x/sys/unix/errors_freebsd_arm.go +++ /dev/null @@ -1,226 +0,0 @@ -// Copyright 2017 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 unix - -const ( - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BSC = 0x53 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf6 - IFT_PFSYNC = 0xf7 - IFT_PLC = 0xae - IFT_POS = 0xab - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VOICEEM = 0x64 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - - // missing constants on FreeBSD-11.1-RELEASE, copied from old values in ztypes_freebsd_arm.go - IFF_SMART = 0x20 - IFT_FAITH = 0xf2 - IFT_IPXIP = 0xf9 - IPPROTO_MAXID = 0x34 - IPV6_FAITH = 0x1d - IP_FAITH = 0x16 - MAP_NORESERVE = 0x40 - MAP_RENAME = 0x20 - NET_RT_MAXID = 0x6 - RTF_PRCLONING = 0x10000 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - SIOCADDRT = 0x8030720a - SIOCALIFADDR = 0x8118691b - SIOCDELRT = 0x8030720b - SIOCDLIFADDR = 0x8118691d - SIOCGLIFADDR = 0xc118691c - SIOCGLIFPHYADDR = 0xc118694b - SIOCSLIFPHYADDR = 0x8118694a -) diff --git a/vendor/golang.org/x/sys/unix/flock.go b/vendor/golang.org/x/sys/unix/flock.go deleted file mode 100644 index 2994ce7..0000000 --- a/vendor/golang.org/x/sys/unix/flock.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2014 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd - -package unix - -import "unsafe" - -// fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux -// systems by flock_linux_32bit.go to be SYS_FCNTL64. -var fcntl64Syscall uintptr = SYS_FCNTL - -// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. -func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { - _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) - if errno == 0 { - return nil - } - return errno -} diff --git a/vendor/golang.org/x/sys/unix/flock_linux_32bit.go b/vendor/golang.org/x/sys/unix/flock_linux_32bit.go deleted file mode 100644 index fc0e50e..0000000 --- a/vendor/golang.org/x/sys/unix/flock_linux_32bit.go +++ /dev/null @@ -1,13 +0,0 @@ -// +build linux,386 linux,arm linux,mips linux,mipsle - -// Copyright 2014 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 unix - -func init() { - // On 32-bit Linux systems, the fcntl syscall that matches Go's - // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. - fcntl64Syscall = SYS_FCNTL64 -} diff --git a/vendor/golang.org/x/sys/unix/gccgo.go b/vendor/golang.org/x/sys/unix/gccgo.go deleted file mode 100644 index 50062e3..0000000 --- a/vendor/golang.org/x/sys/unix/gccgo.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2015 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. - -// +build gccgo - -package unix - -import "syscall" - -// We can't use the gc-syntax .s files for gccgo. On the plus side -// much of the functionality can be written directly in Go. - -//extern gccgoRealSyscallNoError -func realSyscallNoError(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r uintptr) - -//extern gccgoRealSyscall -func realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r, errno uintptr) - -func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) { - syscall.Entersyscall() - r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) - syscall.Exitsyscall() - return r, 0 -} - -func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { - syscall.Entersyscall() - r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) - syscall.Exitsyscall() - return r, 0, syscall.Errno(errno) -} - -func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { - syscall.Entersyscall() - r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0) - syscall.Exitsyscall() - return r, 0, syscall.Errno(errno) -} - -func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) { - syscall.Entersyscall() - r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9) - syscall.Exitsyscall() - return r, 0, syscall.Errno(errno) -} - -func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) { - r := realSyscallNoError(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) - return r, 0 -} - -func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { - r, errno := realSyscall(trap, a1, a2, a3, 0, 0, 0, 0, 0, 0) - return r, 0, syscall.Errno(errno) -} - -func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { - r, errno := realSyscall(trap, a1, a2, a3, a4, a5, a6, 0, 0, 0) - return r, 0, syscall.Errno(errno) -} diff --git a/vendor/golang.org/x/sys/unix/gccgo_c.c b/vendor/golang.org/x/sys/unix/gccgo_c.c deleted file mode 100644 index 24e96b1..0000000 --- a/vendor/golang.org/x/sys/unix/gccgo_c.c +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2015 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. - -// +build gccgo - -#include -#include -#include - -#define _STRINGIFY2_(x) #x -#define _STRINGIFY_(x) _STRINGIFY2_(x) -#define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__) - -// Call syscall from C code because the gccgo support for calling from -// Go to C does not support varargs functions. - -struct ret { - uintptr_t r; - uintptr_t err; -}; - -struct ret -gccgoRealSyscall(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) -{ - struct ret r; - - errno = 0; - r.r = syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9); - r.err = errno; - return r; -} - -uintptr_t -gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3, uintptr_t a4, uintptr_t a5, uintptr_t a6, uintptr_t a7, uintptr_t a8, uintptr_t a9) -{ - return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9); -} - -// Define the use function in C so that it is not inlined. - -extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline)); - -void -use(void *p __attribute__ ((unused))) -{ -} diff --git a/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go deleted file mode 100644 index 251a977..0000000 --- a/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2015 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. - -// +build gccgo,linux,amd64 - -package unix - -import "syscall" - -//extern gettimeofday -func realGettimeofday(*Timeval, *byte) int32 - -func gettimeofday(tv *Timeval) (err syscall.Errno) { - r := realGettimeofday(tv, nil) - if r < 0 { - return syscall.GetErrno() - } - return 0 -} diff --git a/vendor/golang.org/x/sys/unix/mkpost.go b/vendor/golang.org/x/sys/unix/mkpost.go deleted file mode 100644 index 23590bd..0000000 --- a/vendor/golang.org/x/sys/unix/mkpost.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build ignore - -// mkpost processes the output of cgo -godefs to -// modify the generated types. It is used to clean up -// the sys API in an architecture specific manner. -// -// mkpost is run after cgo -godefs; see README.md. -package main - -import ( - "bytes" - "fmt" - "go/format" - "io/ioutil" - "log" - "os" - "regexp" -) - -func main() { - // Get the OS and architecture (using GOARCH_TARGET if it exists) - goos := os.Getenv("GOOS") - goarch := os.Getenv("GOARCH_TARGET") - if goarch == "" { - goarch = os.Getenv("GOARCH") - } - // Check that we are using the new build system if we should be. - if goos == "linux" && goarch != "sparc64" { - if os.Getenv("GOLANG_SYS_BUILD") != "docker" { - os.Stderr.WriteString("In the new build system, mkpost should not be called directly.\n") - os.Stderr.WriteString("See README.md\n") - os.Exit(1) - } - } - - b, err := ioutil.ReadAll(os.Stdin) - if err != nil { - log.Fatal(err) - } - - // If we have empty Ptrace structs, we should delete them. Only s390x emits - // nonempty Ptrace structs. - ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`) - b = ptraceRexexp.ReplaceAll(b, nil) - - // Replace the control_regs union with a blank identifier for now. - controlRegsRegex := regexp.MustCompile(`(Control_regs)\s+\[0\]uint64`) - b = controlRegsRegex.ReplaceAll(b, []byte("_ [0]uint64")) - - // Remove fields that are added by glibc - // Note that this is unstable as the identifers are private. - removeFieldsRegex := regexp.MustCompile(`X__glibc\S*`) - b = removeFieldsRegex.ReplaceAll(b, []byte("_")) - - // Convert [65]int8 to [65]byte in Utsname members to simplify - // conversion to string; see golang.org/issue/20753 - convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`) - b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte")) - - // Remove spare fields (e.g. in Statx_t) - spareFieldsRegex := regexp.MustCompile(`X__spare\S*`) - b = spareFieldsRegex.ReplaceAll(b, []byte("_")) - - // Remove cgo padding fields - removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`) - b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_")) - - // We refuse to export private fields on s390x - if goarch == "s390x" && goos == "linux" { - // Remove padding, hidden, or unused fields - removeFieldsRegex = regexp.MustCompile(`\bX_\S+`) - b = removeFieldsRegex.ReplaceAll(b, []byte("_")) - } - - // Remove the first line of warning from cgo - b = b[bytes.IndexByte(b, '\n')+1:] - // Modify the command in the header to include: - // mkpost, our own warning, and a build tag. - replacement := fmt.Sprintf(`$1 | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build %s,%s`, goarch, goos) - cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`) - b = cgoCommandRegex.ReplaceAll(b, []byte(replacement)) - - // gofmt - b, err = format.Source(b) - if err != nil { - log.Fatal(err) - } - - os.Stdout.Write(b) -} diff --git a/vendor/golang.org/x/sys/unix/openbsd_pledge.go b/vendor/golang.org/x/sys/unix/openbsd_pledge.go deleted file mode 100644 index db4f72e..0000000 --- a/vendor/golang.org/x/sys/unix/openbsd_pledge.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build openbsd -// +build 386 amd64 arm - -package unix - -import ( - "syscall" - "unsafe" -) - -const ( - SYS_PLEDGE = 108 -) - -// Pledge implements the pledge syscall. For more information see pledge(2). -func Pledge(promises string, paths []string) error { - promisesPtr, err := syscall.BytePtrFromString(promises) - if err != nil { - return err - } - promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil) - if paths != nil { - var pathsPtr []*byte - if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil { - return err - } - pathsUnsafe = unsafe.Pointer(&pathsPtr[0]) - } - _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0) - if e != 0 { - return e - } - return nil -} diff --git a/vendor/golang.org/x/sys/unix/pagesize_unix.go b/vendor/golang.org/x/sys/unix/pagesize_unix.go deleted file mode 100644 index 83c85e0..0000000 --- a/vendor/golang.org/x/sys/unix/pagesize_unix.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2017 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -// For Unix, get the pagesize from the runtime. - -package unix - -import "syscall" - -func Getpagesize() int { - return syscall.Getpagesize() -} diff --git a/vendor/golang.org/x/sys/unix/race.go b/vendor/golang.org/x/sys/unix/race.go deleted file mode 100644 index 61712b5..0000000 --- a/vendor/golang.org/x/sys/unix/race.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2012 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. - -// +build darwin,race linux,race freebsd,race - -package unix - -import ( - "runtime" - "unsafe" -) - -const raceenabled = true - -func raceAcquire(addr unsafe.Pointer) { - runtime.RaceAcquire(addr) -} - -func raceReleaseMerge(addr unsafe.Pointer) { - runtime.RaceReleaseMerge(addr) -} - -func raceReadRange(addr unsafe.Pointer, len int) { - runtime.RaceReadRange(addr, len) -} - -func raceWriteRange(addr unsafe.Pointer, len int) { - runtime.RaceWriteRange(addr, len) -} diff --git a/vendor/golang.org/x/sys/unix/race0.go b/vendor/golang.org/x/sys/unix/race0.go deleted file mode 100644 index dd08204..0000000 --- a/vendor/golang.org/x/sys/unix/race0.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2012 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. - -// +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly - -package unix - -import ( - "unsafe" -) - -const raceenabled = false - -func raceAcquire(addr unsafe.Pointer) { -} - -func raceReleaseMerge(addr unsafe.Pointer) { -} - -func raceReadRange(addr unsafe.Pointer, len int) { -} - -func raceWriteRange(addr unsafe.Pointer, len int) { -} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_linux.go b/vendor/golang.org/x/sys/unix/sockcmsg_linux.go deleted file mode 100644 index 6079eb4..0000000 --- a/vendor/golang.org/x/sys/unix/sockcmsg_linux.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2011 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. - -// Socket control messages - -package unix - -import "unsafe" - -// UnixCredentials encodes credentials into a socket control message -// for sending to another process. This can be used for -// authentication. -func UnixCredentials(ucred *Ucred) []byte { - b := make([]byte, CmsgSpace(SizeofUcred)) - h := (*Cmsghdr)(unsafe.Pointer(&b[0])) - h.Level = SOL_SOCKET - h.Type = SCM_CREDENTIALS - h.SetLen(CmsgLen(SizeofUcred)) - *((*Ucred)(cmsgData(h))) = *ucred - return b -} - -// ParseUnixCredentials decodes a socket control message that contains -// credentials in a Ucred structure. To receive such a message, the -// SO_PASSCRED option must be enabled on the socket. -func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) { - if m.Header.Level != SOL_SOCKET { - return nil, EINVAL - } - if m.Header.Type != SCM_CREDENTIALS { - return nil, EINVAL - } - ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0])) - return &ucred, nil -} diff --git a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vendor/golang.org/x/sys/unix/sockcmsg_unix.go deleted file mode 100644 index bb756ec..0000000 --- a/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2011 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -// Socket control messages - -package unix - -import "unsafe" - -// Round the length of a raw sockaddr up to align it properly. -func cmsgAlignOf(salen int) int { - salign := sizeofPtr - // NOTE: It seems like 64-bit Darwin, DragonFly BSD and - // Solaris kernels still require 32-bit aligned access to - // network subsystem. - if darwin64Bit || dragonfly64Bit || solaris64Bit { - salign = 4 - } - return (salen + salign - 1) & ^(salign - 1) -} - -// CmsgLen returns the value to store in the Len field of the Cmsghdr -// structure, taking into account any necessary alignment. -func CmsgLen(datalen int) int { - return cmsgAlignOf(SizeofCmsghdr) + datalen -} - -// CmsgSpace returns the number of bytes an ancillary element with -// payload of the passed data length occupies. -func CmsgSpace(datalen int) int { - return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen) -} - -func cmsgData(h *Cmsghdr) unsafe.Pointer { - return unsafe.Pointer(uintptr(unsafe.Pointer(h)) + uintptr(cmsgAlignOf(SizeofCmsghdr))) -} - -// SocketControlMessage represents a socket control message. -type SocketControlMessage struct { - Header Cmsghdr - Data []byte -} - -// ParseSocketControlMessage parses b as an array of socket control -// messages. -func ParseSocketControlMessage(b []byte) ([]SocketControlMessage, error) { - var msgs []SocketControlMessage - i := 0 - for i+CmsgLen(0) <= len(b) { - h, dbuf, err := socketControlMessageHeaderAndData(b[i:]) - if err != nil { - return nil, err - } - m := SocketControlMessage{Header: *h, Data: dbuf} - msgs = append(msgs, m) - i += cmsgAlignOf(int(h.Len)) - } - return msgs, nil -} - -func socketControlMessageHeaderAndData(b []byte) (*Cmsghdr, []byte, error) { - h := (*Cmsghdr)(unsafe.Pointer(&b[0])) - if h.Len < SizeofCmsghdr || uint64(h.Len) > uint64(len(b)) { - return nil, nil, EINVAL - } - return h, b[cmsgAlignOf(SizeofCmsghdr):h.Len], nil -} - -// UnixRights encodes a set of open file descriptors into a socket -// control message for sending to another process. -func UnixRights(fds ...int) []byte { - datalen := len(fds) * 4 - b := make([]byte, CmsgSpace(datalen)) - h := (*Cmsghdr)(unsafe.Pointer(&b[0])) - h.Level = SOL_SOCKET - h.Type = SCM_RIGHTS - h.SetLen(CmsgLen(datalen)) - data := cmsgData(h) - for _, fd := range fds { - *(*int32)(data) = int32(fd) - data = unsafe.Pointer(uintptr(data) + 4) - } - return b -} - -// ParseUnixRights decodes a socket control message that contains an -// integer array of open file descriptors from another process. -func ParseUnixRights(m *SocketControlMessage) ([]int, error) { - if m.Header.Level != SOL_SOCKET { - return nil, EINVAL - } - if m.Header.Type != SCM_RIGHTS { - return nil, EINVAL - } - fds := make([]int, len(m.Data)>>2) - for i, j := 0, 0; i < len(m.Data); i += 4 { - fds[j] = int(*(*int32)(unsafe.Pointer(&m.Data[i]))) - j++ - } - return fds, nil -} diff --git a/vendor/golang.org/x/sys/unix/str.go b/vendor/golang.org/x/sys/unix/str.go deleted file mode 100644 index 35ed664..0000000 --- a/vendor/golang.org/x/sys/unix/str.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2009 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -package unix - -func itoa(val int) string { // do it here rather than with fmt to avoid dependency - if val < 0 { - return "-" + uitoa(uint(-val)) - } - return uitoa(uint(val)) -} - -func uitoa(val uint) string { - var buf [32]byte // big enough for int64 - i := len(buf) - 1 - for val >= 10 { - buf[i] = byte(val%10 + '0') - i-- - val /= 10 - } - buf[i] = byte(val + '0') - return string(buf[i:]) -} diff --git a/vendor/golang.org/x/sys/unix/syscall.go b/vendor/golang.org/x/sys/unix/syscall.go deleted file mode 100644 index 857d2a4..0000000 --- a/vendor/golang.org/x/sys/unix/syscall.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2009 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -// Package unix contains an interface to the low-level operating system -// primitives. OS details vary depending on the underlying system, and -// by default, godoc will display OS-specific documentation for the current -// system. If you want godoc to display OS documentation for another -// system, set $GOOS and $GOARCH to the desired system. For example, if -// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS -// to freebsd and $GOARCH to arm. -// The primary use of this package is inside other packages that provide a more -// portable interface to the system, such as "os", "time" and "net". Use -// those packages rather than this one if you can. -// For details of the functions and data types in this package consult -// the manuals for the appropriate operating system. -// These calls return err == nil to indicate success; otherwise -// err represents an operating system error describing the failure and -// holds a value of type syscall.Errno. -package unix // import "golang.org/x/sys/unix" - -// ByteSliceFromString returns a NUL-terminated slice of bytes -// containing the text of s. If s contains a NUL byte at any -// location, it returns (nil, EINVAL). -func ByteSliceFromString(s string) ([]byte, error) { - for i := 0; i < len(s); i++ { - if s[i] == 0 { - return nil, EINVAL - } - } - a := make([]byte, len(s)+1) - copy(a, s) - return a, nil -} - -// BytePtrFromString returns a pointer to a NUL-terminated array of -// bytes containing the text of s. If s contains a NUL byte at any -// location, it returns (nil, EINVAL). -func BytePtrFromString(s string) (*byte, error) { - a, err := ByteSliceFromString(s) - if err != nil { - return nil, err - } - return &a[0], nil -} - -// Single-word zero for use when we need a valid pointer to 0 bytes. -// See mkunix.pl. -var _zero uintptr diff --git a/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vendor/golang.org/x/sys/unix/syscall_bsd.go deleted file mode 100644 index d3903ed..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_bsd.go +++ /dev/null @@ -1,665 +0,0 @@ -// Copyright 2009 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. - -// +build darwin dragonfly freebsd netbsd openbsd - -// BSD system call wrappers shared by *BSD based systems -// including OS X (Darwin) and FreeBSD. Like the other -// syscall_*.go files it is compiled as Go code but also -// used as input to mksyscall which parses the //sys -// lines and generates system call stubs. - -package unix - -import ( - "runtime" - "syscall" - "unsafe" -) - -/* - * Wrapped - */ - -//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error) -//sysnb setgroups(ngid int, gid *_Gid_t) (err error) - -func Getgroups() (gids []int, err error) { - n, err := getgroups(0, nil) - if err != nil { - return nil, err - } - if n == 0 { - return nil, nil - } - - // Sanity check group count. Max is 16 on BSD. - if n < 0 || n > 1000 { - return nil, EINVAL - } - - a := make([]_Gid_t, n) - n, err = getgroups(n, &a[0]) - if err != nil { - return nil, err - } - gids = make([]int, n) - for i, v := range a[0:n] { - gids[i] = int(v) - } - return -} - -func Setgroups(gids []int) (err error) { - if len(gids) == 0 { - return setgroups(0, nil) - } - - a := make([]_Gid_t, len(gids)) - for i, v := range gids { - a[i] = _Gid_t(v) - } - return setgroups(len(a), &a[0]) -} - -func ReadDirent(fd int, buf []byte) (n int, err error) { - // Final argument is (basep *uintptr) and the syscall doesn't take nil. - // 64 bits should be enough. (32 bits isn't even on 386). Since the - // actual system call is getdirentries64, 64 is a good guess. - // TODO(rsc): Can we use a single global basep for all calls? - var base = (*uintptr)(unsafe.Pointer(new(uint64))) - return Getdirentries(fd, buf, base) -} - -// Wait status is 7 bits at bottom, either 0 (exited), -// 0x7F (stopped), or a signal number that caused an exit. -// The 0x80 bit is whether there was a core dump. -// An extra number (exit code, signal causing a stop) -// is in the high bits. - -type WaitStatus uint32 - -const ( - mask = 0x7F - core = 0x80 - shift = 8 - - exited = 0 - stopped = 0x7F -) - -func (w WaitStatus) Exited() bool { return w&mask == exited } - -func (w WaitStatus) ExitStatus() int { - if w&mask != exited { - return -1 - } - return int(w >> shift) -} - -func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 } - -func (w WaitStatus) Signal() syscall.Signal { - sig := syscall.Signal(w & mask) - if sig == stopped || sig == 0 { - return -1 - } - return sig -} - -func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } - -func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP } - -func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP } - -func (w WaitStatus) StopSignal() syscall.Signal { - if !w.Stopped() { - return -1 - } - return syscall.Signal(w>>shift) & 0xFF -} - -func (w WaitStatus) TrapCause() int { return -1 } - -//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) - -func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { - var status _C_int - wpid, err = wait4(pid, &status, options, rusage) - if wstatus != nil { - *wstatus = WaitStatus(status) - } - return -} - -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys Shutdown(s int, how int) (err error) - -func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Len = SizeofSockaddrInet4 - sa.raw.Family = AF_INET - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil -} - -func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Len = SizeofSockaddrInet6 - sa.raw.Family = AF_INET6 - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - sa.raw.Scope_id = sa.ZoneId - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil -} - -func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { - name := sa.Name - n := len(name) - if n >= len(sa.raw.Path) || n == 0 { - return nil, 0, EINVAL - } - sa.raw.Len = byte(3 + n) // 2 for Family, Len; 1 for NUL - sa.raw.Family = AF_UNIX - for i := 0; i < n; i++ { - sa.raw.Path[i] = int8(name[i]) - } - return unsafe.Pointer(&sa.raw), _Socklen(sa.raw.Len), nil -} - -func (sa *SockaddrDatalink) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Index == 0 { - return nil, 0, EINVAL - } - sa.raw.Len = sa.Len - sa.raw.Family = AF_LINK - sa.raw.Index = sa.Index - sa.raw.Type = sa.Type - sa.raw.Nlen = sa.Nlen - sa.raw.Alen = sa.Alen - sa.raw.Slen = sa.Slen - for i := 0; i < len(sa.raw.Data); i++ { - sa.raw.Data[i] = sa.Data[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrDatalink, nil -} - -func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { - switch rsa.Addr.Family { - case AF_LINK: - pp := (*RawSockaddrDatalink)(unsafe.Pointer(rsa)) - sa := new(SockaddrDatalink) - sa.Len = pp.Len - sa.Family = pp.Family - sa.Index = pp.Index - sa.Type = pp.Type - sa.Nlen = pp.Nlen - sa.Alen = pp.Alen - sa.Slen = pp.Slen - for i := 0; i < len(sa.Data); i++ { - sa.Data[i] = pp.Data[i] - } - return sa, nil - - case AF_UNIX: - pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) - if pp.Len < 2 || pp.Len > SizeofSockaddrUnix { - return nil, EINVAL - } - sa := new(SockaddrUnix) - - // Some BSDs include the trailing NUL in the length, whereas - // others do not. Work around this by subtracting the leading - // family and len. The path is then scanned to see if a NUL - // terminator still exists within the length. - n := int(pp.Len) - 2 // subtract leading Family, Len - for i := 0; i < n; i++ { - if pp.Path[i] == 0 { - // found early NUL; assume Len included the NUL - // or was overestimating. - n = i - break - } - } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] - sa.Name = string(bytes) - return sa, nil - - case AF_INET: - pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet4) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_INET6: - pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet6) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - sa.ZoneId = pp.Scope_id - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - } - return nil, EAFNOSUPPORT -} - -func Accept(fd int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept(fd, &rsa, &len) - if err != nil { - return - } - if runtime.GOOS == "darwin" && len == 0 { - // Accepted socket has no address. - // This is likely due to a bug in xnu kernels, - // where instead of ECONNABORTED error socket - // is accepted, but has no address. - Close(nfd) - return 0, nil, ECONNABORTED - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -func Getsockname(fd int) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - if err = getsockname(fd, &rsa, &len); err != nil { - return - } - // TODO(jsing): DragonFly has a "bug" (see issue 3349), which should be - // reported upstream. - if runtime.GOOS == "dragonfly" && rsa.Addr.Family == AF_UNSPEC && rsa.Addr.Len == 0 { - rsa.Addr.Family = AF_UNIX - rsa.Addr.Len = SizeofSockaddrUnix - } - return anyToSockaddr(&rsa) -} - -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) - -func GetsockoptByte(fd, level, opt int) (value byte, err error) { - var n byte - vallen := _Socklen(1) - err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) - return n, err -} - -func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) { - vallen := _Socklen(4) - err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) - return value, err -} - -func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) { - var value IPMreq - vallen := _Socklen(SizeofIPMreq) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) { - var value IPv6Mreq - vallen := _Socklen(SizeofIPv6Mreq) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { - var value IPv6MTUInfo - vallen := _Socklen(SizeofIPv6MTUInfo) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) { - var value ICMPv6Filter - vallen := _Socklen(SizeofICMPv6Filter) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -// GetsockoptString returns the string value of the socket option opt for the -// socket associated with fd at the given socket level. -func GetsockoptString(fd, level, opt int) (string, error) { - buf := make([]byte, 256) - vallen := _Socklen(len(buf)) - err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) - if err != nil { - return "", err - } - return string(buf[:vallen-1]), nil -} - -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) - -func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { - var msg Msghdr - var rsa RawSockaddrAny - msg.Name = (*byte)(unsafe.Pointer(&rsa)) - msg.Namelen = uint32(SizeofSockaddrAny) - var iov Iovec - if len(p) > 0 { - iov.Base = (*byte)(unsafe.Pointer(&p[0])) - iov.SetLen(len(p)) - } - var dummy byte - if len(oob) > 0 { - // receive at least one normal byte - if len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Control = (*byte)(unsafe.Pointer(&oob[0])) - msg.SetControllen(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = recvmsg(fd, &msg, flags); err != nil { - return - } - oobn = int(msg.Controllen) - recvflags = int(msg.Flags) - // source address is only specified if the socket is unconnected - if rsa.Addr.Family != AF_UNSPEC { - from, err = anyToSockaddr(&rsa) - } - return -} - -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) - -func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { - _, err = SendmsgN(fd, p, oob, to, flags) - return -} - -func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { - var ptr unsafe.Pointer - var salen _Socklen - if to != nil { - ptr, salen, err = to.sockaddr() - if err != nil { - return 0, err - } - } - var msg Msghdr - msg.Name = (*byte)(unsafe.Pointer(ptr)) - msg.Namelen = uint32(salen) - var iov Iovec - if len(p) > 0 { - iov.Base = (*byte)(unsafe.Pointer(&p[0])) - iov.SetLen(len(p)) - } - var dummy byte - if len(oob) > 0 { - // send at least one normal byte - if len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Control = (*byte)(unsafe.Pointer(&oob[0])) - msg.SetControllen(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = sendmsg(fd, &msg, flags); err != nil { - return 0, err - } - if len(oob) > 0 && len(p) == 0 { - n = 0 - } - return n, nil -} - -//sys kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) - -func Kevent(kq int, changes, events []Kevent_t, timeout *Timespec) (n int, err error) { - var change, event unsafe.Pointer - if len(changes) > 0 { - change = unsafe.Pointer(&changes[0]) - } - if len(events) > 0 { - event = unsafe.Pointer(&events[0]) - } - return kevent(kq, change, len(changes), event, len(events), timeout) -} - -//sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL - -// sysctlmib translates name to mib number and appends any additional args. -func sysctlmib(name string, args ...int) ([]_C_int, error) { - // Translate name to mib number. - mib, err := nametomib(name) - if err != nil { - return nil, err - } - - for _, a := range args { - mib = append(mib, _C_int(a)) - } - - return mib, nil -} - -func Sysctl(name string) (string, error) { - return SysctlArgs(name) -} - -func SysctlArgs(name string, args ...int) (string, error) { - buf, err := SysctlRaw(name, args...) - if err != nil { - return "", err - } - n := len(buf) - - // Throw away terminating NUL. - if n > 0 && buf[n-1] == '\x00' { - n-- - } - return string(buf[0:n]), nil -} - -func SysctlUint32(name string) (uint32, error) { - return SysctlUint32Args(name) -} - -func SysctlUint32Args(name string, args ...int) (uint32, error) { - mib, err := sysctlmib(name, args...) - if err != nil { - return 0, err - } - - n := uintptr(4) - buf := make([]byte, 4) - if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { - return 0, err - } - if n != 4 { - return 0, EIO - } - return *(*uint32)(unsafe.Pointer(&buf[0])), nil -} - -func SysctlUint64(name string, args ...int) (uint64, error) { - mib, err := sysctlmib(name, args...) - if err != nil { - return 0, err - } - - n := uintptr(8) - buf := make([]byte, 8) - if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { - return 0, err - } - if n != 8 { - return 0, EIO - } - return *(*uint64)(unsafe.Pointer(&buf[0])), nil -} - -func SysctlRaw(name string, args ...int) ([]byte, error) { - mib, err := sysctlmib(name, args...) - if err != nil { - return nil, err - } - - // Find size. - n := uintptr(0) - if err := sysctl(mib, nil, &n, nil, 0); err != nil { - return nil, err - } - if n == 0 { - return nil, nil - } - - // Read into buffer of that size. - buf := make([]byte, n) - if err := sysctl(mib, &buf[0], &n, nil, 0); err != nil { - return nil, err - } - - // The actual call may return less than the original reported required - // size so ensure we deal with that. - return buf[:n], nil -} - -//sys utimes(path string, timeval *[2]Timeval) (err error) - -func Utimes(path string, tv []Timeval) error { - if tv == nil { - return utimes(path, nil) - } - if len(tv) != 2 { - return EINVAL - } - return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -func UtimesNano(path string, ts []Timespec) error { - if ts == nil { - err := utimensat(AT_FDCWD, path, nil, 0) - if err != ENOSYS { - return err - } - return utimes(path, nil) - } - if len(ts) != 2 { - return EINVAL - } - // Darwin setattrlist can set nanosecond timestamps - err := setattrlistTimes(path, ts, 0) - if err != ENOSYS { - return err - } - err = utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) - if err != ENOSYS { - return err - } - // Not as efficient as it could be because Timespec and - // Timeval have different types in the different OSes - tv := [2]Timeval{ - NsecToTimeval(TimespecToNsec(ts[0])), - NsecToTimeval(TimespecToNsec(ts[1])), - } - return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { - if ts == nil { - return utimensat(dirfd, path, nil, flags) - } - if len(ts) != 2 { - return EINVAL - } - err := setattrlistTimes(path, ts, flags) - if err != ENOSYS { - return err - } - return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) -} - -//sys futimes(fd int, timeval *[2]Timeval) (err error) - -func Futimes(fd int, tv []Timeval) error { - if tv == nil { - return futimes(fd, nil) - } - if len(tv) != 2 { - return EINVAL - } - return futimes(fd, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -//sys fcntl(fd int, cmd int, arg int) (val int, err error) - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} - -// TODO: wrap -// Acct(name nil-string) (err error) -// Gethostuuid(uuid *byte, timeout *Timespec) (err error) -// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error) - -var mapper = &mmapper{ - active: make(map[*byte][]byte), - mmap: mmap, - munmap: munmap, -} - -func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - return mapper.Mmap(fd, offset, length, prot, flags) -} - -func Munmap(b []byte) (err error) { - return mapper.Munmap(b) -} - -//sys Madvise(b []byte, behav int) (err error) -//sys Mlock(b []byte) (err error) -//sys Mlockall(flags int) (err error) -//sys Mprotect(b []byte, prot int) (err error) -//sys Msync(b []byte, flags int) (err error) -//sys Munlock(b []byte) (err error) -//sys Munlockall() (err error) diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin.go b/vendor/golang.org/x/sys/unix/syscall_darwin.go deleted file mode 100644 index b959869..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_darwin.go +++ /dev/null @@ -1,601 +0,0 @@ -// Copyright 2009,2010 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. - -// Darwin system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_bsd.go or syscall_unix.go. - -package unix - -import ( - errorspkg "errors" - "syscall" - "unsafe" -) - -const ImplementsGetwd = true - -func Getwd() (string, error) { - buf := make([]byte, 2048) - attrs, err := getAttrList(".", attrList{CommonAttr: attrCmnFullpath}, buf, 0) - if err == nil && len(attrs) == 1 && len(attrs[0]) >= 2 { - wd := string(attrs[0]) - // Sanity check that it's an absolute path and ends - // in a null byte, which we then strip. - if wd[0] == '/' && wd[len(wd)-1] == 0 { - return wd[:len(wd)-1], nil - } - } - // If pkg/os/getwd.go gets ENOTSUP, it will fall back to the - // slow algorithm. - return "", ENOTSUP -} - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 - raw RawSockaddrDatalink -} - -// Translate "kern.hostname" to []_C_int{0,1,2,3}. -func nametomib(name string) (mib []_C_int, err error) { - const siz = unsafe.Sizeof(mib[0]) - - // NOTE(rsc): It seems strange to set the buffer to have - // size CTL_MAXNAME+2 but use only CTL_MAXNAME - // as the size. I don't know why the +2 is here, but the - // kernel uses +2 for its own implementation of this function. - // I am scared that if we don't include the +2 here, the kernel - // will silently write 2 words farther than we specify - // and we'll get memory corruption. - var buf [CTL_MAXNAME + 2]_C_int - n := uintptr(CTL_MAXNAME) * siz - - p := (*byte)(unsafe.Pointer(&buf[0])) - bytes, err := ByteSliceFromString(name) - if err != nil { - return nil, err - } - - // Magic sysctl: "setting" 0.3 to a string name - // lets you read back the array of integers form. - if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { - return nil, err - } - return buf[0 : n/siz], nil -} - -//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) -func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) } -func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) } - -const ( - attrBitMapCount = 5 - attrCmnFullpath = 0x08000000 -) - -type attrList struct { - bitmapCount uint16 - _ uint16 - CommonAttr uint32 - VolAttr uint32 - DirAttr uint32 - FileAttr uint32 - Forkattr uint32 -} - -func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) { - if len(attrBuf) < 4 { - return nil, errorspkg.New("attrBuf too small") - } - attrList.bitmapCount = attrBitMapCount - - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return nil, err - } - - _, _, e1 := Syscall6( - SYS_GETATTRLIST, - uintptr(unsafe.Pointer(_p0)), - uintptr(unsafe.Pointer(&attrList)), - uintptr(unsafe.Pointer(&attrBuf[0])), - uintptr(len(attrBuf)), - uintptr(options), - 0, - ) - if e1 != 0 { - return nil, e1 - } - size := *(*uint32)(unsafe.Pointer(&attrBuf[0])) - - // dat is the section of attrBuf that contains valid data, - // without the 4 byte length header. All attribute offsets - // are relative to dat. - dat := attrBuf - if int(size) < len(attrBuf) { - dat = dat[:size] - } - dat = dat[4:] // remove length prefix - - for i := uint32(0); int(i) < len(dat); { - header := dat[i:] - if len(header) < 8 { - return attrs, errorspkg.New("truncated attribute header") - } - datOff := *(*int32)(unsafe.Pointer(&header[0])) - attrLen := *(*uint32)(unsafe.Pointer(&header[4])) - if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) { - return attrs, errorspkg.New("truncated results; attrBuf too small") - } - end := uint32(datOff) + attrLen - attrs = append(attrs, dat[datOff:end]) - i = end - if r := i % 4; r != 0 { - i += (4 - r) - } - } - return -} - -//sysnb pipe() (r int, w int, err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - p[0], p[1], err = pipe() - return -} - -func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { - var _p0 unsafe.Pointer - var bufsize uintptr - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) - } - r0, _, e1 := Syscall(SYS_GETFSSTAT64, uintptr(_p0), bufsize, uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func setattrlistTimes(path string, times []Timespec, flags int) error { - _p0, err := BytePtrFromString(path) - if err != nil { - return err - } - - var attrList attrList - attrList.bitmapCount = ATTR_BIT_MAP_COUNT - attrList.CommonAttr = ATTR_CMN_MODTIME | ATTR_CMN_ACCTIME - - // order is mtime, atime: the opposite of Chtimes - attributes := [2]Timespec{times[1], times[0]} - options := 0 - if flags&AT_SYMLINK_NOFOLLOW != 0 { - options |= FSOPT_NOFOLLOW - } - _, _, e1 := Syscall6( - SYS_SETATTRLIST, - uintptr(unsafe.Pointer(_p0)), - uintptr(unsafe.Pointer(&attrList)), - uintptr(unsafe.Pointer(&attributes)), - uintptr(unsafe.Sizeof(attributes)), - uintptr(options), - 0, - ) - if e1 != 0 { - return e1 - } - return nil -} - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error { - // Darwin doesn't support SYS_UTIMENSAT - return ENOSYS -} - -/* - * Wrapped - */ - -//sys kill(pid int, signum int, posix int) (err error) - -func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) } - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func Uname(uname *Utsname) error { - mib := []_C_int{CTL_KERN, KERN_OSTYPE} - n := unsafe.Sizeof(uname.Sysname) - if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_HOSTNAME} - n = unsafe.Sizeof(uname.Nodename) - if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_OSRELEASE} - n = unsafe.Sizeof(uname.Release) - if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_VERSION} - n = unsafe.Sizeof(uname.Version) - if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { - return err - } - - // The version might have newlines or tabs in it, convert them to - // spaces. - for i, b := range uname.Version { - if b == '\n' || b == '\t' { - if i == len(uname.Version)-1 { - uname.Version[i] = 0 - } else { - uname.Version[i] = ' ' - } - } - } - - mib = []_C_int{CTL_HW, HW_MACHINE} - n = unsafe.Sizeof(uname.Machine) - if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { - return err - } - - return nil -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys Chdir(path string) (err error) -//sys Chflags(path string, flags int) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(from int, to int) (err error) -//sys Exchangedata(path1 string, path2 string, options int) (err error) -//sys Exit(code int) -//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fchdir(fd int) (err error) -//sys Fchflags(fd int, flags int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 -//sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_FSTATFS64 -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) = SYS_GETDIRENTRIES64 -//sys Getdtablesize() (size int) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (uid int) -//sysnb Getgid() (gid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgrp int) -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Getuid() (uid int) -//sysnb Issetugid() (tainted bool) -//sys Kqueue() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) -//sys Listen(s int, backlog int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkdirat(dirfd int, path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Renameat(fromfd int, from string, tofd int, to string) (err error) -//sys Revoke(path string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sys Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sys Setlogin(name string) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sys Setprivexec(flag int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tp *Timeval) (err error) -//sysnb Setuid(uid int) (err error) -//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 -//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64 -//sys Symlink(path string, link string) (err error) -//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) -//sys Sync() (err error) -//sys Truncate(path string, length int64) (err error) -//sys Umask(newmask int) (oldmask int) -//sys Undelete(path string) (err error) -//sys Unlink(path string) (err error) -//sys Unlinkat(dirfd int, path string, flags int) (err error) -//sys Unmount(path string, flags int) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE - -/* - * Unimplemented - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Ioctl -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Mount -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Setattrlist -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Getxattr -// Fgetxattr -// Setxattr -// Fsetxattr -// Removexattr -// Fremovexattr -// Listxattr -// Flistxattr -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shmat -// Shmctl -// Shmdt -// Shmget -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// sendfile -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Poll_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go b/vendor/golang.org/x/sys/unix/syscall_darwin_386.go deleted file mode 100644 index b3ac109..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_386.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2009 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. - -// +build 386,darwin - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = int32(sec) - tv.Usec = int32(usec) - return err -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var length = uint64(count) - - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0) - - written = int(length) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) - -// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions -// of darwin/386 the syscall is called sysctl instead of __sysctl. -const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go deleted file mode 100644 index 7521944..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,darwin - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = sec - tv.Usec = usec - return err -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var length = uint64(count) - - _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0) - - written = int(length) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) - -// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions -// of darwin/amd64 the syscall is called sysctl instead of __sysctl. -const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go deleted file mode 100644 index faae207..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2015 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 unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -//sysnb gettimeofday(tp *Timeval) (sec int32, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = int32(sec) - tv.Usec = int32(usec) - return err -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var length = uint64(count) - - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(*offset>>32), uintptr(unsafe.Pointer(&length)), 0, 0, 0, 0) - - written = int(length) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic - -// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions -// of darwin/arm the syscall is called sysctl instead of __sysctl. -const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go deleted file mode 100644 index d6d9628..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2015 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. - -// +build arm64,darwin - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -//sysnb gettimeofday(tp *Timeval) (sec int64, usec int32, err error) -func Gettimeofday(tv *Timeval) (err error) { - // The tv passed to gettimeofday must be non-nil - // but is otherwise unused. The answers come back - // in the two registers. - sec, usec, err := gettimeofday(tv) - tv.Sec = sec - tv.Usec = usec - return err -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var length = uint64(count) - - _, _, e1 := Syscall6(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(unsafe.Pointer(&length)), 0, 0) - - written = int(length) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) // sic - -// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions -// of darwin/arm64 the syscall is called sysctl instead of __sysctl. -const SYS___SYSCTL = SYS_SYSCTL diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go deleted file mode 100644 index 777860b..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ /dev/null @@ -1,521 +0,0 @@ -// Copyright 2009 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. - -// DragonFly BSD system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_bsd.go or syscall_unix.go. - -package unix - -import "unsafe" - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 - Rcf uint16 - Route [16]uint16 - raw RawSockaddrDatalink -} - -// Translate "kern.hostname" to []_C_int{0,1,2,3}. -func nametomib(name string) (mib []_C_int, err error) { - const siz = unsafe.Sizeof(mib[0]) - - // NOTE(rsc): It seems strange to set the buffer to have - // size CTL_MAXNAME+2 but use only CTL_MAXNAME - // as the size. I don't know why the +2 is here, but the - // kernel uses +2 for its own implementation of this function. - // I am scared that if we don't include the +2 here, the kernel - // will silently write 2 words farther than we specify - // and we'll get memory corruption. - var buf [CTL_MAXNAME + 2]_C_int - n := uintptr(CTL_MAXNAME) * siz - - p := (*byte)(unsafe.Pointer(&buf[0])) - bytes, err := ByteSliceFromString(name) - if err != nil { - return nil, err - } - - // Magic sysctl: "setting" 0.3 to a string name - // lets you read back the array of integers form. - if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { - return nil, err - } - return buf[0 : n/siz], nil -} - -//sysnb pipe() (r int, w int, err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - p[0], p[1], err = pipe() - return -} - -//sys extpread(fd int, p []byte, flags int, offset int64) (n int, err error) -func Pread(fd int, p []byte, offset int64) (n int, err error) { - return extpread(fd, p, 0, offset) -} - -//sys extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - return extpwrite(fd, p, 0, offset) -} - -func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept4(fd, &rsa, &len, flags) - if err != nil { - return - } - if len > SizeofSockaddrAny { - panic("RawSockaddrAny too small") - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD - -func Getwd() (string, error) { - var buf [PathMax]byte - _, err := Getcwd(buf[0:]) - if err != nil { - return "", err - } - n := clen(buf[:]) - if n < 1 { - return "", EINVAL - } - return string(buf[:n]), nil -} - -func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { - var _p0 unsafe.Pointer - var bufsize uintptr - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) - } - r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func setattrlistTimes(path string, times []Timespec, flags int) error { - // used on Darwin for UtimesNano - return ENOSYS -} - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func sysctlUname(mib []_C_int, old *byte, oldlen *uintptr) error { - err := sysctl(mib, old, oldlen, nil, 0) - if err != nil { - // Utsname members on Dragonfly are only 32 bytes and - // the syscall returns ENOMEM in case the actual value - // is longer. - if err == ENOMEM { - err = nil - } - } - return err -} - -func Uname(uname *Utsname) error { - mib := []_C_int{CTL_KERN, KERN_OSTYPE} - n := unsafe.Sizeof(uname.Sysname) - if err := sysctlUname(mib, &uname.Sysname[0], &n); err != nil { - return err - } - uname.Sysname[unsafe.Sizeof(uname.Sysname)-1] = 0 - - mib = []_C_int{CTL_KERN, KERN_HOSTNAME} - n = unsafe.Sizeof(uname.Nodename) - if err := sysctlUname(mib, &uname.Nodename[0], &n); err != nil { - return err - } - uname.Nodename[unsafe.Sizeof(uname.Nodename)-1] = 0 - - mib = []_C_int{CTL_KERN, KERN_OSRELEASE} - n = unsafe.Sizeof(uname.Release) - if err := sysctlUname(mib, &uname.Release[0], &n); err != nil { - return err - } - uname.Release[unsafe.Sizeof(uname.Release)-1] = 0 - - mib = []_C_int{CTL_KERN, KERN_VERSION} - n = unsafe.Sizeof(uname.Version) - if err := sysctlUname(mib, &uname.Version[0], &n); err != nil { - return err - } - - // The version might have newlines or tabs in it, convert them to - // spaces. - for i, b := range uname.Version { - if b == '\n' || b == '\t' { - if i == len(uname.Version)-1 { - uname.Version[i] = 0 - } else { - uname.Version[i] = ' ' - } - } - } - - mib = []_C_int{CTL_HW, HW_MACHINE} - n = unsafe.Sizeof(uname.Machine) - if err := sysctlUname(mib, &uname.Machine[0], &n); err != nil { - return err - } - uname.Machine[unsafe.Sizeof(uname.Machine)-1] = 0 - - return nil -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys Chdir(path string) (err error) -//sys Chflags(path string, flags int) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(from int, to int) (err error) -//sys Exit(code int) -//sys Fchdir(fd int) (err error) -//sys Fchflags(fd int, flags int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatfs(fd int, stat *Statfs_t) (err error) -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) -//sys Getdtablesize() (size int) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (uid int) -//sysnb Getgid() (gid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgrp int) -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Getuid() (uid int) -//sys Issetugid() (tainted bool) -//sys Kill(pid int, signum syscall.Signal) (err error) -//sys Kqueue() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Listen(s int, backlog int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Revoke(path string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sysnb Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sys Setlogin(name string) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tp *Timeval) (err error) -//sysnb Setuid(uid int) (err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, stat *Statfs_t) (err error) -//sys Symlink(path string, link string) (err error) -//sys Sync() (err error) -//sys Truncate(path string, length int64) (err error) -//sys Umask(newmask int) (oldmask int) -//sys Undelete(path string) (err error) -//sys Unlink(path string) (err error) -//sys Unmount(path string, flags int) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE -//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) -//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - * TODO(jsing): Update this list for DragonFly. - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Mount -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Setattrlist -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Getxattr -// Fgetxattr -// Setxattr -// Fsetxattr -// Removexattr -// Fremovexattr -// Listxattr -// Flistxattr -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shmat -// Shmctl -// Shmdt -// Shmget -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go deleted file mode 100644 index 9babb31..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,dragonfly - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var writtenOut uint64 = 0 - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) - - written = int(writtenOut) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd.go b/vendor/golang.org/x/sys/unix/syscall_freebsd.go deleted file mode 100644 index 89f2c3f..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd.go +++ /dev/null @@ -1,759 +0,0 @@ -// Copyright 2009,2010 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. - -// FreeBSD system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_bsd.go or syscall_unix.go. - -package unix - -import "unsafe" - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [46]int8 - raw RawSockaddrDatalink -} - -// Translate "kern.hostname" to []_C_int{0,1,2,3}. -func nametomib(name string) (mib []_C_int, err error) { - const siz = unsafe.Sizeof(mib[0]) - - // NOTE(rsc): It seems strange to set the buffer to have - // size CTL_MAXNAME+2 but use only CTL_MAXNAME - // as the size. I don't know why the +2 is here, but the - // kernel uses +2 for its own implementation of this function. - // I am scared that if we don't include the +2 here, the kernel - // will silently write 2 words farther than we specify - // and we'll get memory corruption. - var buf [CTL_MAXNAME + 2]_C_int - n := uintptr(CTL_MAXNAME) * siz - - p := (*byte)(unsafe.Pointer(&buf[0])) - bytes, err := ByteSliceFromString(name) - if err != nil { - return nil, err - } - - // Magic sysctl: "setting" 0.3 to a string name - // lets you read back the array of integers form. - if err = sysctl([]_C_int{0, 3}, p, &n, &bytes[0], uintptr(len(name))); err != nil { - return nil, err - } - return buf[0 : n/siz], nil -} - -//sysnb pipe() (r int, w int, err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - p[0], p[1], err = pipe() - return -} - -func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { - var value IPMreqn - vallen := _Socklen(SizeofIPMreqn) - errno := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, errno -} - -func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) -} - -func Accept4(fd, flags int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept4(fd, &rsa, &len, flags) - if err != nil { - return - } - if len > SizeofSockaddrAny { - panic("RawSockaddrAny too small") - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD - -func Getwd() (string, error) { - var buf [PathMax]byte - _, err := Getcwd(buf[0:]) - if err != nil { - return "", err - } - n := clen(buf[:]) - if n < 1 { - return "", EINVAL - } - return string(buf[:n]), nil -} - -func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { - var _p0 unsafe.Pointer - var bufsize uintptr - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) - } - r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func setattrlistTimes(path string, times []Timespec, flags int) error { - // used on Darwin for UtimesNano - return ENOSYS -} - -// Derive extattr namespace and attribute name - -func xattrnamespace(fullattr string) (ns int, attr string, err error) { - s := -1 - for idx, val := range fullattr { - if val == '.' { - s = idx - break - } - } - - if s == -1 { - return -1, "", ENOATTR - } - - namespace := fullattr[0:s] - attr = fullattr[s+1:] - - switch namespace { - case "user": - return EXTATTR_NAMESPACE_USER, attr, nil - case "system": - return EXTATTR_NAMESPACE_SYSTEM, attr, nil - default: - return -1, "", ENOATTR - } -} - -func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) { - if len(dest) > idx { - return unsafe.Pointer(&dest[idx]) - } else { - return unsafe.Pointer(_zero) - } -} - -// FreeBSD implements its own syscalls to handle extended attributes - -func Getxattr(file string, attr string, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsize := len(dest) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return -1, err - } - - return ExtattrGetFile(file, nsid, a, uintptr(d), destsize) -} - -func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsize := len(dest) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return -1, err - } - - return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize) -} - -func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsize := len(dest) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return -1, err - } - - return ExtattrGetLink(link, nsid, a, uintptr(d), destsize) -} - -// flags are unused on FreeBSD - -func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) { - d := unsafe.Pointer(&data[0]) - datasiz := len(data) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - _, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz) - return -} - -func Setxattr(file string, attr string, data []byte, flags int) (err error) { - d := unsafe.Pointer(&data[0]) - datasiz := len(data) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - _, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz) - return -} - -func Lsetxattr(link string, attr string, data []byte, flags int) (err error) { - d := unsafe.Pointer(&data[0]) - datasiz := len(data) - - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - _, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz) - return -} - -func Removexattr(file string, attr string) (err error) { - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - err = ExtattrDeleteFile(file, nsid, a) - return -} - -func Fremovexattr(fd int, attr string) (err error) { - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - err = ExtattrDeleteFd(fd, nsid, a) - return -} - -func Lremovexattr(link string, attr string) (err error) { - nsid, a, err := xattrnamespace(attr) - if err != nil { - return - } - - err = ExtattrDeleteLink(link, nsid, a) - return -} - -func Listxattr(file string, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsiz := len(dest) - - // FreeBSD won't allow you to list xattrs from multiple namespaces - s := 0 - for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { - stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz) - - /* Errors accessing system attrs are ignored so that - * we can implement the Linux-like behavior of omitting errors that - * we don't have read permissions on - * - * Linux will still error if we ask for user attributes on a file that - * we don't have read permissions on, so don't ignore those errors - */ - if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { - continue - } else if e != nil { - return s, e - } - - s += stmp - destsiz -= s - if destsiz < 0 { - destsiz = 0 - } - d = initxattrdest(dest, s) - } - - return s, nil -} - -func Flistxattr(fd int, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsiz := len(dest) - - s := 0 - for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { - stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz) - if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { - continue - } else if e != nil { - return s, e - } - - s += stmp - destsiz -= s - if destsiz < 0 { - destsiz = 0 - } - d = initxattrdest(dest, s) - } - - return s, nil -} - -func Llistxattr(link string, dest []byte) (sz int, err error) { - d := initxattrdest(dest, 0) - destsiz := len(dest) - - s := 0 - for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { - stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz) - if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { - continue - } else if e != nil { - return s, e - } - - s += stmp - destsiz -= s - if destsiz < 0 { - destsiz = 0 - } - d = initxattrdest(dest, s) - } - - return s, nil -} - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func Uname(uname *Utsname) error { - mib := []_C_int{CTL_KERN, KERN_OSTYPE} - n := unsafe.Sizeof(uname.Sysname) - if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_HOSTNAME} - n = unsafe.Sizeof(uname.Nodename) - if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_OSRELEASE} - n = unsafe.Sizeof(uname.Release) - if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_VERSION} - n = unsafe.Sizeof(uname.Version) - if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { - return err - } - - // The version might have newlines or tabs in it, convert them to - // spaces. - for i, b := range uname.Version { - if b == '\n' || b == '\t' { - if i == len(uname.Version)-1 { - uname.Version[i] = 0 - } else { - uname.Version[i] = ' ' - } - } - } - - mib = []_C_int{CTL_HW, HW_MACHINE} - n = unsafe.Sizeof(uname.Machine) - if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { - return err - } - - return nil -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys CapEnter() (err error) -//sys capRightsGet(version int, fd int, rightsp *CapRights) (err error) = SYS___CAP_RIGHTS_GET -//sys capRightsLimit(fd int, rightsp *CapRights) (err error) -//sys Chdir(path string) (err error) -//sys Chflags(path string, flags int) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(from int, to int) (err error) -//sys Exit(code int) -//sys ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) -//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) -//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) -//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) -//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) -//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE -//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fchdir(fd int) (err error) -//sys Fchflags(fd int, flags int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatfs(fd int, stat *Statfs_t) (err error) -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sys Getdents(fd int, buf []byte) (n int, err error) -//sys Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) -//sys Getdtablesize() (size int) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (uid int) -//sysnb Getgid() (gid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgrp int) -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Getuid() (uid int) -//sys Issetugid() (tainted bool) -//sys Kill(pid int, signum syscall.Signal) (err error) -//sys Kqueue() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) -//sys Listen(s int, backlog int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkdirat(dirfd int, path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Renameat(fromfd int, from string, tofd int, to string) (err error) -//sys Revoke(path string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sysnb Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sys Setlogin(name string) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tp *Timeval) (err error) -//sysnb Setuid(uid int) (err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, stat *Statfs_t) (err error) -//sys Symlink(path string, link string) (err error) -//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) -//sys Sync() (err error) -//sys Truncate(path string, length int64) (err error) -//sys Umask(newmask int) (oldmask int) -//sys Undelete(path string) (err error) -//sys Unlink(path string) (err error) -//sys Unlinkat(dirfd int, path string, flags int) (err error) -//sys Unmount(path string, flags int) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE -//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) -//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - */ -// Profil -// Sigaction -// Sigprocmask -// Getlogin -// Sigpending -// Sigaltstack -// Ioctl -// Reboot -// Execve -// Vfork -// Sbrk -// Sstk -// Ovadvise -// Mincore -// Setitimer -// Swapon -// Select -// Sigsuspend -// Readv -// Writev -// Nfssvc -// Getfh -// Quotactl -// Mount -// Csops -// Waitid -// Add_profil -// Kdebug_trace -// Sigreturn -// Atsocket -// Kqueue_from_portset_np -// Kqueue_portset -// Getattrlist -// Setattrlist -// Getdirentriesattr -// Searchfs -// Delete -// Copyfile -// Watchevent -// Waitevent -// Modwatch -// Getxattr -// Fgetxattr -// Setxattr -// Fsetxattr -// Removexattr -// Fremovexattr -// Listxattr -// Flistxattr -// Fsctl -// Initgroups -// Posix_spawn -// Nfsclnt -// Fhopen -// Minherit -// Semsys -// Msgsys -// Shmsys -// Semctl -// Semget -// Semop -// Msgctl -// Msgget -// Msgsnd -// Msgrcv -// Shmat -// Shmctl -// Shmdt -// Shmget -// Shm_open -// Shm_unlink -// Sem_open -// Sem_close -// Sem_unlink -// Sem_wait -// Sem_trywait -// Sem_post -// Sem_getvalue -// Sem_init -// Sem_destroy -// Open_extended -// Umask_extended -// Stat_extended -// Lstat_extended -// Fstat_extended -// Chmod_extended -// Fchmod_extended -// Access_extended -// Settid -// Gettid -// Setsgroups -// Getsgroups -// Setwgroups -// Getwgroups -// Mkfifo_extended -// Mkdir_extended -// Identitysvc -// Shared_region_check_np -// Shared_region_map_np -// __pthread_mutex_destroy -// __pthread_mutex_init -// __pthread_mutex_lock -// __pthread_mutex_trylock -// __pthread_mutex_unlock -// __pthread_cond_init -// __pthread_cond_destroy -// __pthread_cond_broadcast -// __pthread_cond_signal -// Setsid_with_pid -// __pthread_cond_timedwait -// Aio_fsync -// Aio_return -// Aio_suspend -// Aio_cancel -// Aio_error -// Aio_read -// Aio_write -// Lio_listio -// __pthread_cond_wait -// Iopolicysys -// __pthread_kill -// __pthread_sigmask -// __sigwait -// __disable_threadsignal -// __pthread_markcancel -// __pthread_canceled -// __semwait_signal -// Proc_info -// Stat64_extended -// Lstat64_extended -// Fstat64_extended -// __pthread_chdir -// __pthread_fchdir -// Audit -// Auditon -// Getauid -// Setauid -// Getaudit -// Setaudit -// Getaudit_addr -// Setaudit_addr -// Auditctl -// Bsdthread_create -// Bsdthread_terminate -// Stack_snapshot -// Bsdthread_register -// Workq_open -// Workq_ops -// __mac_execve -// __mac_syscall -// __mac_get_file -// __mac_set_file -// __mac_get_link -// __mac_set_link -// __mac_get_proc -// __mac_set_proc -// __mac_get_fd -// __mac_set_fd -// __mac_get_pid -// __mac_get_lcid -// __mac_get_lctx -// __mac_set_lctx -// Setlcid -// Read_nocancel -// Write_nocancel -// Open_nocancel -// Close_nocancel -// Wait4_nocancel -// Recvmsg_nocancel -// Sendmsg_nocancel -// Recvfrom_nocancel -// Accept_nocancel -// Fcntl_nocancel -// Select_nocancel -// Fsync_nocancel -// Connect_nocancel -// Sigsuspend_nocancel -// Readv_nocancel -// Writev_nocancel -// Sendto_nocancel -// Pread_nocancel -// Pwrite_nocancel -// Waitid_nocancel -// Poll_nocancel -// Msgsnd_nocancel -// Msgrcv_nocancel -// Sem_wait_nocancel -// Aio_suspend_nocancel -// __sigwait_nocancel -// __semwait_signal_nocancel -// __mac_mount -// __mac_get_mount -// __mac_getfsstat diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go deleted file mode 100644 index 21e0395..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2009 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. - -// +build 386,freebsd - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var writtenOut uint64 = 0 - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0) - - written = int(writtenOut) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go deleted file mode 100644 index 9c945a6..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,freebsd - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var writtenOut uint64 = 0 - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0, 0) - - written = int(writtenOut) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go deleted file mode 100644 index 5cd6243..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2012 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. - -// +build arm,freebsd - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - var writtenOut uint64 = 0 - _, _, e1 := Syscall9(SYS_SENDFILE, uintptr(infd), uintptr(outfd), uintptr(*offset), uintptr((*offset)>>32), uintptr(count), 0, uintptr(unsafe.Pointer(&writtenOut)), 0, 0) - - written = int(writtenOut) - - if e1 != 0 { - err = e1 - } - return -} - -func Syscall9(num, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux.go b/vendor/golang.org/x/sys/unix/syscall_linux.go deleted file mode 100644 index 76cf81f..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux.go +++ /dev/null @@ -1,1503 +0,0 @@ -// Copyright 2009 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. - -// Linux system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and -// wrap it in our own nicer implementation. - -package unix - -import ( - "syscall" - "unsafe" -) - -/* - * Wrapped - */ - -func Access(path string, mode uint32) (err error) { - return Faccessat(AT_FDCWD, path, mode, 0) -} - -func Chmod(path string, mode uint32) (err error) { - return Fchmodat(AT_FDCWD, path, mode, 0) -} - -func Chown(path string, uid int, gid int) (err error) { - return Fchownat(AT_FDCWD, path, uid, gid, 0) -} - -func Creat(path string, mode uint32) (fd int, err error) { - return Open(path, O_CREAT|O_WRONLY|O_TRUNC, mode) -} - -//sys fchmodat(dirfd int, path string, mode uint32) (err error) - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - // Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior - // and check the flags. Otherwise the mode would be applied to the symlink - // destination which is not what the user expects. - if flags&^AT_SYMLINK_NOFOLLOW != 0 { - return EINVAL - } else if flags&AT_SYMLINK_NOFOLLOW != 0 { - return EOPNOTSUPP - } - return fchmodat(dirfd, path, mode) -} - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -//sys Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) - -func Link(oldpath string, newpath string) (err error) { - return Linkat(AT_FDCWD, oldpath, AT_FDCWD, newpath, 0) -} - -func Mkdir(path string, mode uint32) (err error) { - return Mkdirat(AT_FDCWD, path, mode) -} - -func Mknod(path string, mode uint32, dev int) (err error) { - return Mknodat(AT_FDCWD, path, mode, dev) -} - -func Open(path string, mode int, perm uint32) (fd int, err error) { - return openat(AT_FDCWD, path, mode|O_LARGEFILE, perm) -} - -//sys openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) - -func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - return openat(dirfd, path, flags|O_LARGEFILE, mode) -} - -//sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) - -func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - if len(fds) == 0 { - return ppoll(nil, 0, timeout, sigmask) - } - return ppoll(&fds[0], len(fds), timeout, sigmask) -} - -//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error) - -func Readlink(path string, buf []byte) (n int, err error) { - return Readlinkat(AT_FDCWD, path, buf) -} - -func Rename(oldpath string, newpath string) (err error) { - return Renameat(AT_FDCWD, oldpath, AT_FDCWD, newpath) -} - -func Rmdir(path string) error { - return Unlinkat(AT_FDCWD, path, AT_REMOVEDIR) -} - -//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error) - -func Symlink(oldpath string, newpath string) (err error) { - return Symlinkat(oldpath, AT_FDCWD, newpath) -} - -func Unlink(path string) error { - return Unlinkat(AT_FDCWD, path, 0) -} - -//sys Unlinkat(dirfd int, path string, flags int) (err error) - -//sys utimes(path string, times *[2]Timeval) (err error) - -func Utimes(path string, tv []Timeval) error { - if tv == nil { - err := utimensat(AT_FDCWD, path, nil, 0) - if err != ENOSYS { - return err - } - return utimes(path, nil) - } - if len(tv) != 2 { - return EINVAL - } - var ts [2]Timespec - ts[0] = NsecToTimespec(TimevalToNsec(tv[0])) - ts[1] = NsecToTimespec(TimevalToNsec(tv[1])) - err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) - if err != ENOSYS { - return err - } - return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -func UtimesNano(path string, ts []Timespec) error { - if ts == nil { - err := utimensat(AT_FDCWD, path, nil, 0) - if err != ENOSYS { - return err - } - return utimes(path, nil) - } - if len(ts) != 2 { - return EINVAL - } - err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) - if err != ENOSYS { - return err - } - // If the utimensat syscall isn't available (utimensat was added to Linux - // in 2.6.22, Released, 8 July 2007) then fall back to utimes - var tv [2]Timeval - for i := 0; i < 2; i++ { - tv[i] = NsecToTimeval(TimespecToNsec(ts[i])) - } - return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { - if ts == nil { - return utimensat(dirfd, path, nil, flags) - } - if len(ts) != 2 { - return EINVAL - } - return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) -} - -//sys futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) - -func Futimesat(dirfd int, path string, tv []Timeval) error { - pathp, err := BytePtrFromString(path) - if err != nil { - return err - } - if tv == nil { - return futimesat(dirfd, pathp, nil) - } - if len(tv) != 2 { - return EINVAL - } - return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -func Futimes(fd int, tv []Timeval) (err error) { - // Believe it or not, this is the best we can do on Linux - // (and is what glibc does). - return Utimes("/proc/self/fd/"+itoa(fd), tv) -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) - -func Getwd() (wd string, err error) { - var buf [PathMax]byte - n, err := Getcwd(buf[0:]) - if err != nil { - return "", err - } - // Getcwd returns the number of bytes written to buf, including the NUL. - if n < 1 || n > len(buf) || buf[n-1] != 0 { - return "", EINVAL - } - return string(buf[0 : n-1]), nil -} - -func Getgroups() (gids []int, err error) { - n, err := getgroups(0, nil) - if err != nil { - return nil, err - } - if n == 0 { - return nil, nil - } - - // Sanity check group count. Max is 1<<16 on Linux. - if n < 0 || n > 1<<20 { - return nil, EINVAL - } - - a := make([]_Gid_t, n) - n, err = getgroups(n, &a[0]) - if err != nil { - return nil, err - } - gids = make([]int, n) - for i, v := range a[0:n] { - gids[i] = int(v) - } - return -} - -func Setgroups(gids []int) (err error) { - if len(gids) == 0 { - return setgroups(0, nil) - } - - a := make([]_Gid_t, len(gids)) - for i, v := range gids { - a[i] = _Gid_t(v) - } - return setgroups(len(a), &a[0]) -} - -type WaitStatus uint32 - -// Wait status is 7 bits at bottom, either 0 (exited), -// 0x7F (stopped), or a signal number that caused an exit. -// The 0x80 bit is whether there was a core dump. -// An extra number (exit code, signal causing a stop) -// is in the high bits. At least that's the idea. -// There are various irregularities. For example, the -// "continued" status is 0xFFFF, distinguishing itself -// from stopped via the core dump bit. - -const ( - mask = 0x7F - core = 0x80 - exited = 0x00 - stopped = 0x7F - shift = 8 -) - -func (w WaitStatus) Exited() bool { return w&mask == exited } - -func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != exited } - -func (w WaitStatus) Stopped() bool { return w&0xFF == stopped } - -func (w WaitStatus) Continued() bool { return w == 0xFFFF } - -func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } - -func (w WaitStatus) ExitStatus() int { - if !w.Exited() { - return -1 - } - return int(w>>shift) & 0xFF -} - -func (w WaitStatus) Signal() syscall.Signal { - if !w.Signaled() { - return -1 - } - return syscall.Signal(w & mask) -} - -func (w WaitStatus) StopSignal() syscall.Signal { - if !w.Stopped() { - return -1 - } - return syscall.Signal(w>>shift) & 0xFF -} - -func (w WaitStatus) TrapCause() int { - if w.StopSignal() != SIGTRAP { - return -1 - } - return int(w>>shift) >> 8 -} - -//sys wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) - -func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, err error) { - var status _C_int - wpid, err = wait4(pid, &status, options, rusage) - if wstatus != nil { - *wstatus = WaitStatus(status) - } - return -} - -func Mkfifo(path string, mode uint32) error { - return Mknod(path, mode|S_IFIFO, 0) -} - -func Mkfifoat(dirfd int, path string, mode uint32) error { - return Mknodat(dirfd, path, mode|S_IFIFO, 0) -} - -func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Family = AF_INET - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil -} - -func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Family = AF_INET6 - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - sa.raw.Scope_id = sa.ZoneId - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil -} - -func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { - name := sa.Name - n := len(name) - if n >= len(sa.raw.Path) { - return nil, 0, EINVAL - } - sa.raw.Family = AF_UNIX - for i := 0; i < n; i++ { - sa.raw.Path[i] = int8(name[i]) - } - // length is family (uint16), name, NUL. - sl := _Socklen(2) - if n > 0 { - sl += _Socklen(n) + 1 - } - if sa.raw.Path[0] == '@' { - sa.raw.Path[0] = 0 - // Don't count trailing NUL for abstract address. - sl-- - } - - return unsafe.Pointer(&sa.raw), sl, nil -} - -// SockaddrLinklayer implements the Sockaddr interface for AF_PACKET type sockets. -type SockaddrLinklayer struct { - Protocol uint16 - Ifindex int - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]byte - raw RawSockaddrLinklayer -} - -func (sa *SockaddrLinklayer) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { - return nil, 0, EINVAL - } - sa.raw.Family = AF_PACKET - sa.raw.Protocol = sa.Protocol - sa.raw.Ifindex = int32(sa.Ifindex) - sa.raw.Hatype = sa.Hatype - sa.raw.Pkttype = sa.Pkttype - sa.raw.Halen = sa.Halen - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrLinklayer, nil -} - -// SockaddrNetlink implements the Sockaddr interface for AF_NETLINK type sockets. -type SockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 - raw RawSockaddrNetlink -} - -func (sa *SockaddrNetlink) sockaddr() (unsafe.Pointer, _Socklen, error) { - sa.raw.Family = AF_NETLINK - sa.raw.Pad = sa.Pad - sa.raw.Pid = sa.Pid - sa.raw.Groups = sa.Groups - return unsafe.Pointer(&sa.raw), SizeofSockaddrNetlink, nil -} - -// SockaddrHCI implements the Sockaddr interface for AF_BLUETOOTH type sockets -// using the HCI protocol. -type SockaddrHCI struct { - Dev uint16 - Channel uint16 - raw RawSockaddrHCI -} - -func (sa *SockaddrHCI) sockaddr() (unsafe.Pointer, _Socklen, error) { - sa.raw.Family = AF_BLUETOOTH - sa.raw.Dev = sa.Dev - sa.raw.Channel = sa.Channel - return unsafe.Pointer(&sa.raw), SizeofSockaddrHCI, nil -} - -// SockaddrL2 implements the Sockaddr interface for AF_BLUETOOTH type sockets -// using the L2CAP protocol. -type SockaddrL2 struct { - PSM uint16 - CID uint16 - Addr [6]uint8 - AddrType uint8 - raw RawSockaddrL2 -} - -func (sa *SockaddrL2) sockaddr() (unsafe.Pointer, _Socklen, error) { - sa.raw.Family = AF_BLUETOOTH - psm := (*[2]byte)(unsafe.Pointer(&sa.raw.Psm)) - psm[0] = byte(sa.PSM) - psm[1] = byte(sa.PSM >> 8) - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Bdaddr[i] = sa.Addr[len(sa.Addr)-1-i] - } - cid := (*[2]byte)(unsafe.Pointer(&sa.raw.Cid)) - cid[0] = byte(sa.CID) - cid[1] = byte(sa.CID >> 8) - sa.raw.Bdaddr_type = sa.AddrType - return unsafe.Pointer(&sa.raw), SizeofSockaddrL2, nil -} - -// SockaddrCAN implements the Sockaddr interface for AF_CAN type sockets. -// The RxID and TxID fields are used for transport protocol addressing in -// (CAN_TP16, CAN_TP20, CAN_MCNET, and CAN_ISOTP), they can be left with -// zero values for CAN_RAW and CAN_BCM sockets as they have no meaning. -// -// The SockaddrCAN struct must be bound to the socket file descriptor -// using Bind before the CAN socket can be used. -// -// // Read one raw CAN frame -// fd, _ := Socket(AF_CAN, SOCK_RAW, CAN_RAW) -// addr := &SockaddrCAN{Ifindex: index} -// Bind(fd, addr) -// frame := make([]byte, 16) -// Read(fd, frame) -// -// The full SocketCAN documentation can be found in the linux kernel -// archives at: https://www.kernel.org/doc/Documentation/networking/can.txt -type SockaddrCAN struct { - Ifindex int - RxID uint32 - TxID uint32 - raw RawSockaddrCAN -} - -func (sa *SockaddrCAN) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Ifindex < 0 || sa.Ifindex > 0x7fffffff { - return nil, 0, EINVAL - } - sa.raw.Family = AF_CAN - sa.raw.Ifindex = int32(sa.Ifindex) - rx := (*[4]byte)(unsafe.Pointer(&sa.RxID)) - for i := 0; i < 4; i++ { - sa.raw.Addr[i] = rx[i] - } - tx := (*[4]byte)(unsafe.Pointer(&sa.TxID)) - for i := 0; i < 4; i++ { - sa.raw.Addr[i+4] = tx[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrCAN, nil -} - -// SockaddrALG implements the Sockaddr interface for AF_ALG type sockets. -// SockaddrALG enables userspace access to the Linux kernel's cryptography -// subsystem. The Type and Name fields specify which type of hash or cipher -// should be used with a given socket. -// -// To create a file descriptor that provides access to a hash or cipher, both -// Bind and Accept must be used. Once the setup process is complete, input -// data can be written to the socket, processed by the kernel, and then read -// back as hash output or ciphertext. -// -// Here is an example of using an AF_ALG socket with SHA1 hashing. -// The initial socket setup process is as follows: -// -// // Open a socket to perform SHA1 hashing. -// fd, _ := unix.Socket(unix.AF_ALG, unix.SOCK_SEQPACKET, 0) -// addr := &unix.SockaddrALG{Type: "hash", Name: "sha1"} -// unix.Bind(fd, addr) -// // Note: unix.Accept does not work at this time; must invoke accept() -// // manually using unix.Syscall. -// hashfd, _, _ := unix.Syscall(unix.SYS_ACCEPT, uintptr(fd), 0, 0) -// -// Once a file descriptor has been returned from Accept, it may be used to -// perform SHA1 hashing. The descriptor is not safe for concurrent use, but -// may be re-used repeatedly with subsequent Write and Read operations. -// -// When hashing a small byte slice or string, a single Write and Read may -// be used: -// -// // Assume hashfd is already configured using the setup process. -// hash := os.NewFile(hashfd, "sha1") -// // Hash an input string and read the results. Each Write discards -// // previous hash state. Read always reads the current state. -// b := make([]byte, 20) -// for i := 0; i < 2; i++ { -// io.WriteString(hash, "Hello, world.") -// hash.Read(b) -// fmt.Println(hex.EncodeToString(b)) -// } -// // Output: -// // 2ae01472317d1935a84797ec1983ae243fc6aa28 -// // 2ae01472317d1935a84797ec1983ae243fc6aa28 -// -// For hashing larger byte slices, or byte streams such as those read from -// a file or socket, use Sendto with MSG_MORE to instruct the kernel to update -// the hash digest instead of creating a new one for a given chunk and finalizing it. -// -// // Assume hashfd and addr are already configured using the setup process. -// hash := os.NewFile(hashfd, "sha1") -// // Hash the contents of a file. -// f, _ := os.Open("/tmp/linux-4.10-rc7.tar.xz") -// b := make([]byte, 4096) -// for { -// n, err := f.Read(b) -// if err == io.EOF { -// break -// } -// unix.Sendto(hashfd, b[:n], unix.MSG_MORE, addr) -// } -// hash.Read(b) -// fmt.Println(hex.EncodeToString(b)) -// // Output: 85cdcad0c06eef66f805ecce353bec9accbeecc5 -// -// For more information, see: http://www.chronox.de/crypto-API/crypto/userspace-if.html. -type SockaddrALG struct { - Type string - Name string - Feature uint32 - Mask uint32 - raw RawSockaddrALG -} - -func (sa *SockaddrALG) sockaddr() (unsafe.Pointer, _Socklen, error) { - // Leave room for NUL byte terminator. - if len(sa.Type) > 13 { - return nil, 0, EINVAL - } - if len(sa.Name) > 63 { - return nil, 0, EINVAL - } - - sa.raw.Family = AF_ALG - sa.raw.Feat = sa.Feature - sa.raw.Mask = sa.Mask - - typ, err := ByteSliceFromString(sa.Type) - if err != nil { - return nil, 0, err - } - name, err := ByteSliceFromString(sa.Name) - if err != nil { - return nil, 0, err - } - - copy(sa.raw.Type[:], typ) - copy(sa.raw.Name[:], name) - - return unsafe.Pointer(&sa.raw), SizeofSockaddrALG, nil -} - -// SockaddrVM implements the Sockaddr interface for AF_VSOCK type sockets. -// SockaddrVM provides access to Linux VM sockets: a mechanism that enables -// bidirectional communication between a hypervisor and its guest virtual -// machines. -type SockaddrVM struct { - // CID and Port specify a context ID and port address for a VM socket. - // Guests have a unique CID, and hosts may have a well-known CID of: - // - VMADDR_CID_HYPERVISOR: refers to the hypervisor process. - // - VMADDR_CID_HOST: refers to other processes on the host. - CID uint32 - Port uint32 - raw RawSockaddrVM -} - -func (sa *SockaddrVM) sockaddr() (unsafe.Pointer, _Socklen, error) { - sa.raw.Family = AF_VSOCK - sa.raw.Port = sa.Port - sa.raw.Cid = sa.CID - - return unsafe.Pointer(&sa.raw), SizeofSockaddrVM, nil -} - -func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { - switch rsa.Addr.Family { - case AF_NETLINK: - pp := (*RawSockaddrNetlink)(unsafe.Pointer(rsa)) - sa := new(SockaddrNetlink) - sa.Family = pp.Family - sa.Pad = pp.Pad - sa.Pid = pp.Pid - sa.Groups = pp.Groups - return sa, nil - - case AF_PACKET: - pp := (*RawSockaddrLinklayer)(unsafe.Pointer(rsa)) - sa := new(SockaddrLinklayer) - sa.Protocol = pp.Protocol - sa.Ifindex = int(pp.Ifindex) - sa.Hatype = pp.Hatype - sa.Pkttype = pp.Pkttype - sa.Halen = pp.Halen - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_UNIX: - pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) - sa := new(SockaddrUnix) - if pp.Path[0] == 0 { - // "Abstract" Unix domain socket. - // Rewrite leading NUL as @ for textual display. - // (This is the standard convention.) - // Not friendly to overwrite in place, - // but the callers below don't care. - pp.Path[0] = '@' - } - - // Assume path ends at NUL. - // This is not technically the Linux semantics for - // abstract Unix domain sockets--they are supposed - // to be uninterpreted fixed-size binary blobs--but - // everyone uses this convention. - n := 0 - for n < len(pp.Path) && pp.Path[n] != 0 { - n++ - } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] - sa.Name = string(bytes) - return sa, nil - - case AF_INET: - pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet4) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_INET6: - pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet6) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - sa.ZoneId = pp.Scope_id - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_VSOCK: - pp := (*RawSockaddrVM)(unsafe.Pointer(rsa)) - sa := &SockaddrVM{ - CID: pp.Cid, - Port: pp.Port, - } - return sa, nil - } - return nil, EAFNOSUPPORT -} - -func Accept(fd int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept(fd, &rsa, &len) - if err != nil { - return - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept4(fd, &rsa, &len, flags) - if err != nil { - return - } - if len > SizeofSockaddrAny { - panic("RawSockaddrAny too small") - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -func Getsockname(fd int) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - if err = getsockname(fd, &rsa, &len); err != nil { - return - } - return anyToSockaddr(&rsa) -} - -func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) { - vallen := _Socklen(4) - err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen) - return value, err -} - -func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) { - var value IPMreq - vallen := _Socklen(SizeofIPMreq) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) { - var value IPMreqn - vallen := _Socklen(SizeofIPMreqn) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) { - var value IPv6Mreq - vallen := _Socklen(SizeofIPv6Mreq) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) { - var value IPv6MTUInfo - vallen := _Socklen(SizeofIPv6MTUInfo) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) { - var value ICMPv6Filter - vallen := _Socklen(SizeofICMPv6Filter) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptUcred(fd, level, opt int) (*Ucred, error) { - var value Ucred - vallen := _Socklen(SizeofUcred) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -func GetsockoptTCPInfo(fd, level, opt int) (*TCPInfo, error) { - var value TCPInfo - vallen := _Socklen(SizeofTCPInfo) - err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen) - return &value, err -} - -// GetsockoptString returns the string value of the socket option opt for the -// socket associated with fd at the given socket level. -func GetsockoptString(fd, level, opt int) (string, error) { - buf := make([]byte, 256) - vallen := _Socklen(len(buf)) - err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) - if err != nil { - if err == ERANGE { - buf = make([]byte, vallen) - err = getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) - } - if err != nil { - return "", err - } - } - return string(buf[:vallen-1]), nil -} - -func SetsockoptIPMreqn(fd, level, opt int, mreq *IPMreqn) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(mreq), unsafe.Sizeof(*mreq)) -} - -// Keyctl Commands (http://man7.org/linux/man-pages/man2/keyctl.2.html) - -// KeyctlInt calls keyctl commands in which each argument is an int. -// These commands are KEYCTL_REVOKE, KEYCTL_CHOWN, KEYCTL_CLEAR, KEYCTL_LINK, -// KEYCTL_UNLINK, KEYCTL_NEGATE, KEYCTL_SET_REQKEY_KEYRING, KEYCTL_SET_TIMEOUT, -// KEYCTL_ASSUME_AUTHORITY, KEYCTL_SESSION_TO_PARENT, KEYCTL_REJECT, -// KEYCTL_INVALIDATE, and KEYCTL_GET_PERSISTENT. -//sys KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) = SYS_KEYCTL - -// KeyctlBuffer calls keyctl commands in which the third and fourth -// arguments are a buffer and its length, respectively. -// These commands are KEYCTL_UPDATE, KEYCTL_READ, and KEYCTL_INSTANTIATE. -//sys KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) = SYS_KEYCTL - -// KeyctlString calls keyctl commands which return a string. -// These commands are KEYCTL_DESCRIBE and KEYCTL_GET_SECURITY. -func KeyctlString(cmd int, id int) (string, error) { - // We must loop as the string data may change in between the syscalls. - // We could allocate a large buffer here to reduce the chance that the - // syscall needs to be called twice; however, this is unnecessary as - // the performance loss is negligible. - var buffer []byte - for { - // Try to fill the buffer with data - length, err := KeyctlBuffer(cmd, id, buffer, 0) - if err != nil { - return "", err - } - - // Check if the data was written - if length <= len(buffer) { - // Exclude the null terminator - return string(buffer[:length-1]), nil - } - - // Make a bigger buffer if needed - buffer = make([]byte, length) - } -} - -// Keyctl commands with special signatures. - -// KeyctlGetKeyringID implements the KEYCTL_GET_KEYRING_ID command. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_get_keyring_ID.3.html -func KeyctlGetKeyringID(id int, create bool) (ringid int, err error) { - createInt := 0 - if create { - createInt = 1 - } - return KeyctlInt(KEYCTL_GET_KEYRING_ID, id, createInt, 0, 0) -} - -// KeyctlSetperm implements the KEYCTL_SETPERM command. The perm value is the -// key handle permission mask as described in the "keyctl setperm" section of -// http://man7.org/linux/man-pages/man1/keyctl.1.html. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_setperm.3.html -func KeyctlSetperm(id int, perm uint32) error { - _, err := KeyctlInt(KEYCTL_SETPERM, id, int(perm), 0, 0) - return err -} - -//sys keyctlJoin(cmd int, arg2 string) (ret int, err error) = SYS_KEYCTL - -// KeyctlJoinSessionKeyring implements the KEYCTL_JOIN_SESSION_KEYRING command. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_join_session_keyring.3.html -func KeyctlJoinSessionKeyring(name string) (ringid int, err error) { - return keyctlJoin(KEYCTL_JOIN_SESSION_KEYRING, name) -} - -//sys keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) = SYS_KEYCTL - -// KeyctlSearch implements the KEYCTL_SEARCH command. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_search.3.html -func KeyctlSearch(ringid int, keyType, description string, destRingid int) (id int, err error) { - return keyctlSearch(KEYCTL_SEARCH, ringid, keyType, description, destRingid) -} - -//sys keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) = SYS_KEYCTL - -// KeyctlInstantiateIOV implements the KEYCTL_INSTANTIATE_IOV command. This -// command is similar to KEYCTL_INSTANTIATE, except that the payload is a slice -// of Iovec (each of which represents a buffer) instead of a single buffer. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_instantiate_iov.3.html -func KeyctlInstantiateIOV(id int, payload []Iovec, ringid int) error { - return keyctlIOV(KEYCTL_INSTANTIATE_IOV, id, payload, ringid) -} - -//sys keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) = SYS_KEYCTL - -// KeyctlDHCompute implements the KEYCTL_DH_COMPUTE command. This command -// computes a Diffie-Hellman shared secret based on the provide params. The -// secret is written to the provided buffer and the returned size is the number -// of bytes written (returning an error if there is insufficient space in the -// buffer). If a nil buffer is passed in, this function returns the minimum -// buffer length needed to store the appropriate data. Note that this differs -// from KEYCTL_READ's behavior which always returns the requested payload size. -// See the full documentation at: -// http://man7.org/linux/man-pages/man3/keyctl_dh_compute.3.html -func KeyctlDHCompute(params *KeyctlDHParams, buffer []byte) (size int, err error) { - return keyctlDH(KEYCTL_DH_COMPUTE, params, buffer) -} - -func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { - var msg Msghdr - var rsa RawSockaddrAny - msg.Name = (*byte)(unsafe.Pointer(&rsa)) - msg.Namelen = uint32(SizeofSockaddrAny) - var iov Iovec - if len(p) > 0 { - iov.Base = &p[0] - iov.SetLen(len(p)) - } - var dummy byte - if len(oob) > 0 { - var sockType int - sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) - if err != nil { - return - } - // receive at least one normal byte - if sockType != SOCK_DGRAM && len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Control = &oob[0] - msg.SetControllen(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = recvmsg(fd, &msg, flags); err != nil { - return - } - oobn = int(msg.Controllen) - recvflags = int(msg.Flags) - // source address is only specified if the socket is unconnected - if rsa.Addr.Family != AF_UNSPEC { - from, err = anyToSockaddr(&rsa) - } - return -} - -func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { - _, err = SendmsgN(fd, p, oob, to, flags) - return -} - -func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { - var ptr unsafe.Pointer - var salen _Socklen - if to != nil { - var err error - ptr, salen, err = to.sockaddr() - if err != nil { - return 0, err - } - } - var msg Msghdr - msg.Name = (*byte)(ptr) - msg.Namelen = uint32(salen) - var iov Iovec - if len(p) > 0 { - iov.Base = &p[0] - iov.SetLen(len(p)) - } - var dummy byte - if len(oob) > 0 { - var sockType int - sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE) - if err != nil { - return 0, err - } - // send at least one normal byte - if sockType != SOCK_DGRAM && len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Control = &oob[0] - msg.SetControllen(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = sendmsg(fd, &msg, flags); err != nil { - return 0, err - } - if len(oob) > 0 && len(p) == 0 { - n = 0 - } - return n, nil -} - -// BindToDevice binds the socket associated with fd to device. -func BindToDevice(fd int, device string) (err error) { - return SetsockoptString(fd, SOL_SOCKET, SO_BINDTODEVICE, device) -} - -//sys ptrace(request int, pid int, addr uintptr, data uintptr) (err error) - -func ptracePeek(req int, pid int, addr uintptr, out []byte) (count int, err error) { - // The peek requests are machine-size oriented, so we wrap it - // to retrieve arbitrary-length data. - - // The ptrace syscall differs from glibc's ptrace. - // Peeks returns the word in *data, not as the return value. - - var buf [sizeofPtr]byte - - // Leading edge. PEEKTEXT/PEEKDATA don't require aligned - // access (PEEKUSER warns that it might), but if we don't - // align our reads, we might straddle an unmapped page - // boundary and not get the bytes leading up to the page - // boundary. - n := 0 - if addr%sizeofPtr != 0 { - err = ptrace(req, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) - if err != nil { - return 0, err - } - n += copy(out, buf[addr%sizeofPtr:]) - out = out[n:] - } - - // Remainder. - for len(out) > 0 { - // We use an internal buffer to guarantee alignment. - // It's not documented if this is necessary, but we're paranoid. - err = ptrace(req, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0]))) - if err != nil { - return n, err - } - copied := copy(out, buf[0:]) - n += copied - out = out[copied:] - } - - return n, nil -} - -func PtracePeekText(pid int, addr uintptr, out []byte) (count int, err error) { - return ptracePeek(PTRACE_PEEKTEXT, pid, addr, out) -} - -func PtracePeekData(pid int, addr uintptr, out []byte) (count int, err error) { - return ptracePeek(PTRACE_PEEKDATA, pid, addr, out) -} - -func PtracePeekUser(pid int, addr uintptr, out []byte) (count int, err error) { - return ptracePeek(PTRACE_PEEKUSR, pid, addr, out) -} - -func ptracePoke(pokeReq int, peekReq int, pid int, addr uintptr, data []byte) (count int, err error) { - // As for ptracePeek, we need to align our accesses to deal - // with the possibility of straddling an invalid page. - - // Leading edge. - n := 0 - if addr%sizeofPtr != 0 { - var buf [sizeofPtr]byte - err = ptrace(peekReq, pid, addr-addr%sizeofPtr, uintptr(unsafe.Pointer(&buf[0]))) - if err != nil { - return 0, err - } - n += copy(buf[addr%sizeofPtr:], data) - word := *((*uintptr)(unsafe.Pointer(&buf[0]))) - err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word) - if err != nil { - return 0, err - } - data = data[n:] - } - - // Interior. - for len(data) > sizeofPtr { - word := *((*uintptr)(unsafe.Pointer(&data[0]))) - err = ptrace(pokeReq, pid, addr+uintptr(n), word) - if err != nil { - return n, err - } - n += sizeofPtr - data = data[sizeofPtr:] - } - - // Trailing edge. - if len(data) > 0 { - var buf [sizeofPtr]byte - err = ptrace(peekReq, pid, addr+uintptr(n), uintptr(unsafe.Pointer(&buf[0]))) - if err != nil { - return n, err - } - copy(buf[0:], data) - word := *((*uintptr)(unsafe.Pointer(&buf[0]))) - err = ptrace(pokeReq, pid, addr+uintptr(n), word) - if err != nil { - return n, err - } - n += len(data) - } - - return n, nil -} - -func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) { - return ptracePoke(PTRACE_POKETEXT, PTRACE_PEEKTEXT, pid, addr, data) -} - -func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) { - return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data) -} - -func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) { - return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data) -} - -func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} - -func PtraceSetOptions(pid int, options int) (err error) { - return ptrace(PTRACE_SETOPTIONS, pid, 0, uintptr(options)) -} - -func PtraceGetEventMsg(pid int) (msg uint, err error) { - var data _C_long - err = ptrace(PTRACE_GETEVENTMSG, pid, 0, uintptr(unsafe.Pointer(&data))) - msg = uint(data) - return -} - -func PtraceCont(pid int, signal int) (err error) { - return ptrace(PTRACE_CONT, pid, 0, uintptr(signal)) -} - -func PtraceSyscall(pid int, signal int) (err error) { - return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal)) -} - -func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } - -func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } - -func PtraceDetach(pid int) (err error) { return ptrace(PTRACE_DETACH, pid, 0, 0) } - -//sys reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) - -func Reboot(cmd int) (err error) { - return reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, "") -} - -func ReadDirent(fd int, buf []byte) (n int, err error) { - return Getdents(fd, buf) -} - -//sys mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) - -func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) { - // Certain file systems get rather angry and EINVAL if you give - // them an empty string of data, rather than NULL. - if data == "" { - return mount(source, target, fstype, flags, nil) - } - datap, err := BytePtrFromString(data) - if err != nil { - return err - } - return mount(source, target, fstype, flags, datap) -} - -// Sendto -// Recvfrom -// Socketpair - -/* - * Direct access - */ -//sys Acct(path string) (err error) -//sys AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) -//sys Adjtimex(buf *Timex) (state int, err error) -//sys Chdir(path string) (err error) -//sys Chroot(path string) (err error) -//sys ClockGettime(clockid int32, time *Timespec) (err error) -//sys Close(fd int) (err error) -//sys CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -//sys Dup(oldfd int) (fd int, err error) -//sys Dup3(oldfd int, newfd int, flags int) (err error) -//sysnb EpollCreate(size int) (fd int, err error) -//sysnb EpollCreate1(flag int) (fd int, err error) -//sysnb EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) -//sys Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2 -//sys Exit(code int) = SYS_EXIT_GROUP -//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fallocate(fd int, mode uint32, off int64, len int64) (err error) -//sys Fchdir(fd int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) -//sys fcntl(fd int, cmd int, arg int) (val int, err error) -//sys Fdatasync(fd int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fsync(fd int) (err error) -//sys Getdents(fd int, buf []byte) (n int, err error) = SYS_GETDENTS64 -//sysnb Getpgid(pid int) (pgid int, err error) - -func Getpgrp() (pid int) { - pid, _ = Getpgid(0) - return -} - -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sys Getrandom(buf []byte, flags int) (n int, err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Gettid() (tid int) -//sys Getxattr(path string, attr string, dest []byte) (sz int, err error) -//sys InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) -//sysnb InotifyInit1(flags int) (fd int, err error) -//sysnb InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) -//sysnb Kill(pid int, sig syscall.Signal) (err error) -//sys Klogctl(typ int, buf []byte) (n int, err error) = SYS_SYSLOG -//sys Lgetxattr(path string, attr string, dest []byte) (sz int, err error) -//sys Listxattr(path string, dest []byte) (sz int, err error) -//sys Llistxattr(path string, dest []byte) (sz int, err error) -//sys Lremovexattr(path string, attr string) (err error) -//sys Lsetxattr(path string, attr string, data []byte, flags int) (err error) -//sys Mkdirat(dirfd int, path string, mode uint32) (err error) -//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT -//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64 -//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) -//sys Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) = SYS_PSELECT6 -//sys read(fd int, p []byte) (n int, err error) -//sys Removexattr(path string, attr string) (err error) -//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) -//sys RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) -//sys Setdomainname(p []byte) (err error) -//sys Sethostname(p []byte) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tv *Timeval) (err error) -//sys Setns(fd int, nstype int) (err error) - -// issue 1435. -// On linux Setuid and Setgid only affects the current thread, not the process. -// This does not match what most callers expect so we must return an error -// here rather than letting the caller think that the call succeeded. - -func Setuid(uid int) (err error) { - return EOPNOTSUPP -} - -func Setgid(uid int) (err error) { - return EOPNOTSUPP -} - -//sys Setpriority(which int, who int, prio int) (err error) -//sys Setxattr(path string, attr string, data []byte, flags int) (err error) -//sys Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) -//sys Sync() -//sys Syncfs(fd int) (err error) -//sysnb Sysinfo(info *Sysinfo_t) (err error) -//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error) -//sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error) -//sysnb Times(tms *Tms) (ticks uintptr, err error) -//sysnb Umask(mask int) (oldmask int) -//sysnb Uname(buf *Utsname) (err error) -//sys Unmount(target string, flags int) (err error) = SYS_UMOUNT2 -//sys Unshare(flags int) (err error) -//sys Ustat(dev int, ubuf *Ustat_t) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys exitThread(code int) (err error) = SYS_EXIT -//sys readlen(fd int, p *byte, np int) (n int, err error) = SYS_READ -//sys writelen(fd int, p *byte, np int) (n int, err error) = SYS_WRITE - -// mmap varies by architecture; see syscall_linux_*.go. -//sys munmap(addr uintptr, length uintptr) (err error) - -var mapper = &mmapper{ - active: make(map[*byte][]byte), - mmap: mmap, - munmap: munmap, -} - -func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - return mapper.Mmap(fd, offset, length, prot, flags) -} - -func Munmap(b []byte) (err error) { - return mapper.Munmap(b) -} - -//sys Madvise(b []byte, advice int) (err error) -//sys Mprotect(b []byte, prot int) (err error) -//sys Mlock(b []byte) (err error) -//sys Mlockall(flags int) (err error) -//sys Msync(b []byte, flags int) (err error) -//sys Munlock(b []byte) (err error) -//sys Munlockall() (err error) - -// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd, -// using the specified flags. -func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) { - n, _, errno := Syscall6( - SYS_VMSPLICE, - uintptr(fd), - uintptr(unsafe.Pointer(&iovs[0])), - uintptr(len(iovs)), - uintptr(flags), - 0, - 0, - ) - if errno != 0 { - return 0, syscall.Errno(errno) - } - - return int(n), nil -} - -/* - * Unimplemented - */ -// AfsSyscall -// Alarm -// ArchPrctl -// Brk -// Capget -// Capset -// ClockGetres -// ClockNanosleep -// ClockSettime -// Clone -// CreateModule -// DeleteModule -// EpollCtlOld -// EpollPwait -// EpollWaitOld -// Execve -// Fgetxattr -// Flistxattr -// Fork -// Fremovexattr -// Fsetxattr -// Futex -// GetKernelSyms -// GetMempolicy -// GetRobustList -// GetThreadArea -// Getitimer -// Getpmsg -// IoCancel -// IoDestroy -// IoGetevents -// IoSetup -// IoSubmit -// IoprioGet -// IoprioSet -// KexecLoad -// LookupDcookie -// Mbind -// MigratePages -// Mincore -// ModifyLdt -// Mount -// MovePages -// MqGetsetattr -// MqNotify -// MqOpen -// MqTimedreceive -// MqTimedsend -// MqUnlink -// Mremap -// Msgctl -// Msgget -// Msgrcv -// Msgsnd -// Nfsservctl -// Personality -// Pselect6 -// Ptrace -// Putpmsg -// QueryModule -// Quotactl -// Readahead -// Readv -// RemapFilePages -// RestartSyscall -// RtSigaction -// RtSigpending -// RtSigprocmask -// RtSigqueueinfo -// RtSigreturn -// RtSigsuspend -// RtSigtimedwait -// SchedGetPriorityMax -// SchedGetPriorityMin -// SchedGetparam -// SchedGetscheduler -// SchedRrGetInterval -// SchedSetparam -// SchedYield -// Security -// Semctl -// Semget -// Semop -// Semtimedop -// SetMempolicy -// SetRobustList -// SetThreadArea -// SetTidAddress -// Shmat -// Shmctl -// Shmdt -// Shmget -// Sigaltstack -// Signalfd -// Swapoff -// Swapon -// Sysfs -// TimerCreate -// TimerDelete -// TimerGetoverrun -// TimerGettime -// TimerSettime -// Timerfd -// Tkill (obsolete) -// Tuxcall -// Umount2 -// Uselib -// Utimensat -// Vfork -// Vhangup -// Vserver -// Waitid -// _Sysctl diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vendor/golang.org/x/sys/unix/syscall_linux_386.go deleted file mode 100644 index bb8e4fb..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright 2009 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. - -// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) -// so that go vet can check that they are correct. - -// +build 386,linux - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -//sysnb pipe(p *[2]_C_int) (err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe(&pp) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -// 64-bit file system and 32-bit uid calls -// (386 default is 32-bit file system and 16-bit uid). -//sys Dup2(oldfd int, newfd int) (err error) -//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64_64 -//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 -//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 -//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 -//sysnb Getegid() (egid int) = SYS_GETEGID32 -//sysnb Geteuid() (euid int) = SYS_GETEUID32 -//sysnb Getgid() (gid int) = SYS_GETGID32 -//sysnb Getuid() (uid int) = SYS_GETUID32 -//sysnb InotifyInit() (fd int, err error) -//sys Ioperm(from int, num int, on int) (err error) -//sys Iopl(level int) (err error) -//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 -//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 -//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 -//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32 -//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32 -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32 -//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32 -//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32 -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32 -//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32 -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT - -//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Pause() (err error) - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - page := uintptr(offset / 4096) - if offset != int64(page)*4096 { - return 0, EINVAL - } - return mmap2(addr, length, prot, flags, fd, page) -} - -type rlimit32 struct { - Cur uint32 - Max uint32 -} - -//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT - -const rlimInf32 = ^uint32(0) -const rlimInf64 = ^uint64(0) - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, nil, rlim) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - err = getrlimit(resource, &rl) - if err != nil { - return - } - - if rl.Cur == rlimInf32 { - rlim.Cur = rlimInf64 - } else { - rlim.Cur = uint64(rl.Cur) - } - - if rl.Max == rlimInf32 { - rlim.Max = rlimInf64 - } else { - rlim.Max = uint64(rl.Max) - } - return -} - -//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, rlim, nil) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - if rlim.Cur == rlimInf64 { - rl.Cur = rlimInf32 - } else if rlim.Cur < uint64(rlimInf32) { - rl.Cur = uint32(rlim.Cur) - } else { - return EINVAL - } - if rlim.Max == rlimInf64 { - rl.Max = rlimInf32 - } else if rlim.Max < uint64(rlimInf32) { - rl.Max = uint32(rlim.Max) - } else { - return EINVAL - } - - return setrlimit(resource, &rl) -} - -// Underlying system call writes to newoffset via pointer. -// Implemented in assembly to avoid allocation. -func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - newoffset, errno := seek(fd, offset, whence) - if errno != 0 { - return 0, errno - } - return newoffset, nil -} - -// Vsyscalls on amd64. -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Time(t *Time_t) (tt Time_t, err error) - -//sys Utime(path string, buf *Utimbuf) (err error) - -// On x86 Linux, all the socket calls go through an extra indirection, -// I think because the 5-register system call interface can't handle -// the 6-argument calls like sendto and recvfrom. Instead the -// arguments to the underlying system call are the number below -// and a pointer to an array of uintptr. We hide the pointer in the -// socketcall assembly to avoid allocation on every system call. - -const ( - // see linux/net.h - _SOCKET = 1 - _BIND = 2 - _CONNECT = 3 - _LISTEN = 4 - _ACCEPT = 5 - _GETSOCKNAME = 6 - _GETPEERNAME = 7 - _SOCKETPAIR = 8 - _SEND = 9 - _RECV = 10 - _SENDTO = 11 - _RECVFROM = 12 - _SHUTDOWN = 13 - _SETSOCKOPT = 14 - _GETSOCKOPT = 15 - _SENDMSG = 16 - _RECVMSG = 17 - _ACCEPT4 = 18 - _RECVMMSG = 19 - _SENDMMSG = 20 -) - -func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) -func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - fd, e := socketcall(_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - if e != 0 { - err = e - } - return -} - -func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, e := rawsocketcall(_GETSOCKNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, e := rawsocketcall(_GETPEERNAME, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) { - _, e := rawsocketcall(_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) - if e != 0 { - err = e - } - return -} - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, e := socketcall(_BIND, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, e := socketcall(_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func socket(domain int, typ int, proto int) (fd int, err error) { - fd, e := rawsocketcall(_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, e := socketcall(_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e != 0 { - err = e - } - return -} - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, e := socketcall(_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), vallen, 0) - if e != 0 { - err = e - } - return -} - -func recvfrom(s int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var base uintptr - if len(p) > 0 { - base = uintptr(unsafe.Pointer(&p[0])) - } - n, e := socketcall(_RECVFROM, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - if e != 0 { - err = e - } - return -} - -func sendto(s int, p []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var base uintptr - if len(p) > 0 { - base = uintptr(unsafe.Pointer(&p[0])) - } - _, e := socketcall(_SENDTO, uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e != 0 { - err = e - } - return -} - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - n, e := socketcall(_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - n, e := socketcall(_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func Listen(s int, n int) (err error) { - _, e := socketcall(_LISTEN, uintptr(s), uintptr(n), 0, 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func Shutdown(s, how int) (err error) { - _, e := socketcall(_SHUTDOWN, uintptr(s), uintptr(how), 0, 0, 0, 0) - if e != 0 { - err = e - } - return -} - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = e - } - return -} - -func Statfs(path string, buf *Statfs_t) (err error) { - pathp, err := BytePtrFromString(path) - if err != nil { - return err - } - _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = e - } - return -} - -func (r *PtraceRegs) PC() uint64 { return uint64(uint32(r.Eip)) } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Eip = int32(pc) } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go deleted file mode 100644 index 53d38a5..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,linux - -package unix - -//sys Dup2(oldfd int, newfd int) (err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Getuid() (uid int) -//sysnb InotifyInit() (fd int, err error) -//sys Ioperm(from int, num int, on int) (err error) -//sys Iopl(level int) (err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Listen(s int, n int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -func Gettimeofday(tv *Timeval) (err error) { - errno := gettimeofday(tv) - if errno != 0 { - return errno - } - return nil -} - -func Time(t *Time_t) (tt Time_t, err error) { - var tv Timeval - errno := gettimeofday(&tv) - if errno != 0 { - return 0, errno - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -//sys Utime(path string, buf *Utimbuf) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -//sysnb pipe(p *[2]_C_int) (err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe(&pp) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func (r *PtraceRegs) PC() uint64 { return r.Rip } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go b/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go deleted file mode 100644 index 21a4946..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build amd64,linux -// +build !gccgo - -package unix - -import "syscall" - -//go:noescape -func gettimeofday(tv *Timeval) (err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm.go deleted file mode 100644 index c59f858..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2009 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. - -// +build arm,linux - -package unix - -import ( - "syscall" - "unsafe" -) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, 0) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -// Underlying system call writes to newoffset via pointer. -// Implemented in assembly to avoid allocation. -func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - newoffset, errno := seek(fd, offset, whence) - if errno != 0 { - return 0, errno - } - return newoffset, nil -} - -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) = SYS_GETGROUPS32 -//sysnb setgroups(n int, list *_Gid_t) (err error) = SYS_SETGROUPS32 -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) - -// 64-bit file system and 32-bit uid calls -// (16-bit uid calls are not always supported in newer kernels) -//sys Dup2(oldfd int, newfd int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) = SYS_FCHOWN32 -//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 -//sysnb Getegid() (egid int) = SYS_GETEGID32 -//sysnb Geteuid() (euid int) = SYS_GETEUID32 -//sysnb Getgid() (gid int) = SYS_GETGID32 -//sysnb Getuid() (uid int) = SYS_GETUID32 -//sysnb InotifyInit() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) = SYS_LCHOWN32 -//sys Listen(s int, n int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT -//sys Setfsgid(gid int) (err error) = SYS_SETFSGID32 -//sys Setfsuid(uid int) (err error) = SYS_SETFSUID32 -//sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32 -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32 -//sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32 -//sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32 -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 - -// Vsyscalls on amd64. -//sysnb Gettimeofday(tv *Timeval) (err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Pause() (err error) - -func Time(t *Time_t) (Time_t, error) { - var tv Timeval - err := Gettimeofday(&tv) - if err != nil { - return 0, err - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -func Utime(path string, buf *Utimbuf) error { - tv := []Timeval{ - {Sec: buf.Actime}, - {Sec: buf.Modtime}, - } - return Utimes(path, tv) -} - -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 -//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_ARM_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = e - } - return -} - -func Statfs(path string, buf *Statfs_t) (err error) { - pathp, err := BytePtrFromString(path) - if err != nil { - return err - } - _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = e - } - return -} - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - page := uintptr(offset / 4096) - if offset != int64(page)*4096 { - return 0, EINVAL - } - return mmap2(addr, length, prot, flags, fd, page) -} - -type rlimit32 struct { - Cur uint32 - Max uint32 -} - -//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT - -const rlimInf32 = ^uint32(0) -const rlimInf64 = ^uint64(0) - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, nil, rlim) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - err = getrlimit(resource, &rl) - if err != nil { - return - } - - if rl.Cur == rlimInf32 { - rlim.Cur = rlimInf64 - } else { - rlim.Cur = uint64(rl.Cur) - } - - if rl.Max == rlimInf32 { - rlim.Max = rlimInf64 - } else { - rlim.Max = uint64(rl.Max) - } - return -} - -//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, rlim, nil) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - if rlim.Cur == rlimInf64 { - rl.Cur = rlimInf32 - } else if rlim.Cur < uint64(rlimInf32) { - rl.Cur = uint32(rlim.Cur) - } else { - return EINVAL - } - if rlim.Max == rlimInf64 { - rl.Max = rlimInf32 - } else if rlim.Max < uint64(rlimInf32) { - rl.Max = uint32(rlim.Max) - } else { - return EINVAL - } - - return setrlimit(resource, &rl) -} - -func (r *PtraceRegs) PC() uint64 { return uint64(r.Uregs[15]) } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Uregs[15] = uint32(pc) } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go deleted file mode 100644 index 9a8e6e4..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2015 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. - -// +build arm64,linux - -package unix - -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Getuid() (uid int) -//sys Listen(s int, n int) (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} - return Pselect(nfd, r, w, e, &ts, nil) -} - -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) - -func Stat(path string, stat *Stat_t) (err error) { - return Fstatat(AT_FDCWD, path, stat, 0) -} - -func Lchown(path string, uid int, gid int) (err error) { - return Fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW) -} - -func Lstat(path string, stat *Stat_t) (err error) { - return Fstatat(AT_FDCWD, path, stat, AT_SYMLINK_NOFOLLOW) -} - -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -//sysnb Gettimeofday(tv *Timeval) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func Time(t *Time_t) (Time_t, error) { - var tv Timeval - err := Gettimeofday(&tv) - if err != nil { - return 0, err - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -func Utime(path string, buf *Utimbuf) error { - tv := []Timeval{ - {Sec: buf.Actime}, - {Sec: buf.Modtime}, - } - return Utimes(path, tv) -} - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, 0) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func (r *PtraceRegs) PC() uint64 { return r.Pc } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -func InotifyInit() (fd int, err error) { - return InotifyInit1(0) -} - -func Dup2(oldfd int, newfd int) (err error) { - return Dup3(oldfd, newfd, 0) -} - -func Pause() (err error) { - _, _, e1 := Syscall6(SYS_PPOLL, 0, 0, 0, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// TODO(dfc): constants that should be in zsysnum_linux_arm64.go, remove -// these when the deprecated syscalls that the syscall package relies on -// are removed. -const ( - SYS_GETPGRP = 1060 - SYS_UTIMES = 1037 - SYS_FUTIMESAT = 1066 - SYS_PAUSE = 1061 - SYS_USTAT = 1070 - SYS_UTIME = 1063 - SYS_LCHOWN = 1032 - SYS_TIME = 1062 - SYS_EPOLL_CREATE = 1042 - SYS_EPOLL_WAIT = 1069 -) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - var ts *Timespec - if timeout >= 0 { - ts = new(Timespec) - *ts = NsecToTimespec(int64(timeout) * 1e6) - } - if len(fds) == 0 { - return ppoll(nil, 0, ts, nil) - } - return ppoll(&fds[0], len(fds), ts, nil) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_gc.go b/vendor/golang.org/x/sys/unix/syscall_linux_gc.go deleted file mode 100644 index c26e6ec..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_gc.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2018 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. - -// +build linux,!gccgo - -package unix - -// SyscallNoError may be used instead of Syscall for syscalls that don't fail. -func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) - -// RawSyscallNoError may be used instead of RawSyscall for syscalls that don't -// fail. -func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go deleted file mode 100644 index 46aa4ff..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright 2015 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. - -// +build linux -// +build mips64 mips64le - -package unix - -//sys Dup2(oldfd int, newfd int) (err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Getuid() (uid int) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Listen(s int, n int) (err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - ts := Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000} - return Pselect(nfd, r, w, e, &ts, nil) -} - -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -//sysnb Gettimeofday(tv *Timeval) (err error) - -func Time(t *Time_t) (tt Time_t, err error) { - var tv Timeval - err = Gettimeofday(&tv) - if err != nil { - return 0, err - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -//sys Utime(path string, buf *Utimbuf) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, 0) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func Ioperm(from int, num int, on int) (err error) { - return ENOSYS -} - -func Iopl(level int) (err error) { - return ENOSYS -} - -type stat_t struct { - Dev uint32 - Pad0 [3]int32 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint32 - Pad1 [3]uint32 - Size int64 - Atime uint32 - Atime_nsec uint32 - Mtime uint32 - Mtime_nsec uint32 - Ctime uint32 - Ctime_nsec uint32 - Blksize uint32 - Pad2 uint32 - Blocks int64 -} - -//sys fstat(fd int, st *stat_t) (err error) -//sys lstat(path string, st *stat_t) (err error) -//sys stat(path string, st *stat_t) (err error) - -func Fstat(fd int, s *Stat_t) (err error) { - st := &stat_t{} - err = fstat(fd, st) - fillStat_t(s, st) - return -} - -func Lstat(path string, s *Stat_t) (err error) { - st := &stat_t{} - err = lstat(path, st) - fillStat_t(s, st) - return -} - -func Stat(path string, s *Stat_t) (err error) { - st := &stat_t{} - err = stat(path, st) - fillStat_t(s, st) - return -} - -func fillStat_t(s *Stat_t, st *stat_t) { - s.Dev = st.Dev - s.Ino = st.Ino - s.Mode = st.Mode - s.Nlink = st.Nlink - s.Uid = st.Uid - s.Gid = st.Gid - s.Rdev = st.Rdev - s.Size = st.Size - s.Atim = Timespec{int64(st.Atime), int64(st.Atime_nsec)} - s.Mtim = Timespec{int64(st.Mtime), int64(st.Mtime_nsec)} - s.Ctim = Timespec{int64(st.Ctime), int64(st.Ctime_nsec)} - s.Blksize = st.Blksize - s.Blocks = st.Blocks -} - -func (r *PtraceRegs) PC() uint64 { return r.Epc } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go deleted file mode 100644 index 40b8e4f..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ /dev/null @@ -1,231 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build linux -// +build mips mipsle - -package unix - -import ( - "syscall" - "unsafe" -) - -func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) - -//sys Dup2(oldfd int, newfd int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64 -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getuid() (uid int) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Listen(s int, n int) (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64 -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) - -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) - -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64 -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) - -//sysnb InotifyInit() (fd int, err error) -//sys Ioperm(from int, num int, on int) (err error) -//sys Iopl(level int) (err error) - -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Time(t *Time_t) (tt Time_t, err error) - -//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64 -//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64 -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 -//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 - -//sys Utime(path string, buf *Utimbuf) (err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Pause() (err error) - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = errnoErr(e) - } - return -} - -func Statfs(path string, buf *Statfs_t) (err error) { - p, err := BytePtrFromString(path) - if err != nil { - return err - } - _, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(p)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf))) - if e != 0 { - err = errnoErr(e) - } - return -} - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - _, _, e := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offset>>32), uintptr(offset), uintptr(unsafe.Pointer(&off)), uintptr(whence), 0) - if e != 0 { - err = errnoErr(e) - } - return -} - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: int32(sec), Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: int32(sec), Usec: int32(usec)} -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, 0) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - page := uintptr(offset / 4096) - if offset != int64(page)*4096 { - return 0, EINVAL - } - return mmap2(addr, length, prot, flags, fd, page) -} - -const rlimInf32 = ^uint32(0) -const rlimInf64 = ^uint64(0) - -type rlimit32 struct { - Cur uint32 - Max uint32 -} - -//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_GETRLIMIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, nil, rlim) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - err = getrlimit(resource, &rl) - if err != nil { - return - } - - if rl.Cur == rlimInf32 { - rlim.Cur = rlimInf64 - } else { - rlim.Cur = uint64(rl.Cur) - } - - if rl.Max == rlimInf32 { - rlim.Max = rlimInf64 - } else { - rlim.Max = uint64(rl.Max) - } - return -} - -//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - err = prlimit(0, resource, rlim, nil) - if err != ENOSYS { - return err - } - - rl := rlimit32{} - if rlim.Cur == rlimInf64 { - rl.Cur = rlimInf32 - } else if rlim.Cur < uint64(rlimInf32) { - rl.Cur = uint32(rlim.Cur) - } else { - return EINVAL - } - if rlim.Max == rlimInf64 { - rl.Max = rlimInf32 - } else if rlim.Max < uint64(rlimInf32) { - rl.Max = uint32(rlim.Max) - } else { - return EINVAL - } - - return setrlimit(resource, &rl) -} - -func (r *PtraceRegs) PC() uint64 { return r.Epc } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Epc = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go deleted file mode 100644 index 17c9116..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2009 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. - -// +build linux -// +build ppc64 ppc64le - -package unix - -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Dup2(oldfd int, newfd int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_UGETRLIMIT -//sysnb Getuid() (uid int) -//sysnb InotifyInit() (fd int, err error) -//sys Ioperm(from int, num int, on int) (err error) -//sys Iopl(level int) (err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Listen(s int, n int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) = SYS_SYNC_FILE_RANGE2 -//sys Truncate(path string, length int64) (err error) -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Time(t *Time_t) (tt Time_t, err error) - -//sys Utime(path string, buf *Utimbuf) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func (r *PtraceRegs) PC() uint64 { return r.Nip } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Nip = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -//sysnb pipe(p *[2]_C_int) (err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe(&pp) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go deleted file mode 100644 index c0d86e7..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build s390x,linux - -package unix - -import ( - "unsafe" -) - -//sys Dup2(oldfd int, newfd int) (err error) -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_FADVISE64 -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Getuid() (uid int) -//sysnb InotifyInit() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) - -//sysnb Gettimeofday(tv *Timeval) (err error) - -func Time(t *Time_t) (tt Time_t, err error) { - var tv Timeval - err = Gettimeofday(&tv) - if err != nil { - return 0, err - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -//sys Utime(path string, buf *Utimbuf) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, 0) // pipe2 is the same as pipe when flags are set to 0. - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -func Ioperm(from int, num int, on int) (err error) { - return ENOSYS -} - -func Iopl(level int) (err error) { - return ENOSYS -} - -func (r *PtraceRegs) PC() uint64 { return r.Psw.Addr } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.Addr = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -// Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct. -// mmap2 also requires arguments to be passed in a struct; it is currently not exposed in . -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - mmap_args := [6]uintptr{addr, length, uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)} - r0, _, e1 := Syscall(SYS_MMAP, uintptr(unsafe.Pointer(&mmap_args[0])), 0, 0) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// On s390x Linux, all the socket calls go through an extra indirection. -// The arguments to the underlying system call (SYS_SOCKETCALL) are the -// number below and a pointer to an array of uintptr. -const ( - // see linux/net.h - netSocket = 1 - netBind = 2 - netConnect = 3 - netListen = 4 - netAccept = 5 - netGetSockName = 6 - netGetPeerName = 7 - netSocketPair = 8 - netSend = 9 - netRecv = 10 - netSendTo = 11 - netRecvFrom = 12 - netShutdown = 13 - netSetSockOpt = 14 - netGetSockOpt = 15 - netSendMsg = 16 - netRecvMsg = 17 - netAccept4 = 18 - netRecvMMsg = 19 - netSendMMsg = 20 -) - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (int, error) { - args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} - fd, _, err := Syscall(SYS_SOCKETCALL, netAccept, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(fd), nil -} - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (int, error) { - args := [4]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags)} - fd, _, err := Syscall(SYS_SOCKETCALL, netAccept4, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(fd), nil -} - -func getsockname(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { - args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} - _, _, err := RawSyscall(SYS_SOCKETCALL, netGetSockName, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func getpeername(s int, rsa *RawSockaddrAny, addrlen *_Socklen) error { - args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))} - _, _, err := RawSyscall(SYS_SOCKETCALL, netGetPeerName, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func socketpair(domain int, typ int, flags int, fd *[2]int32) error { - args := [4]uintptr{uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd))} - _, _, err := RawSyscall(SYS_SOCKETCALL, netSocketPair, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) error { - args := [3]uintptr{uintptr(s), uintptr(addr), uintptr(addrlen)} - _, _, err := Syscall(SYS_SOCKETCALL, netBind, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) error { - args := [3]uintptr{uintptr(s), uintptr(addr), uintptr(addrlen)} - _, _, err := Syscall(SYS_SOCKETCALL, netConnect, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func socket(domain int, typ int, proto int) (int, error) { - args := [3]uintptr{uintptr(domain), uintptr(typ), uintptr(proto)} - fd, _, err := RawSyscall(SYS_SOCKETCALL, netSocket, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(fd), nil -} - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) error { - args := [5]uintptr{uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen))} - _, _, err := Syscall(SYS_SOCKETCALL, netGetSockOpt, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) error { - args := [4]uintptr{uintptr(s), uintptr(level), uintptr(name), uintptr(val)} - _, _, err := Syscall(SYS_SOCKETCALL, netSetSockOpt, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func recvfrom(s int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (int, error) { - var base uintptr - if len(p) > 0 { - base = uintptr(unsafe.Pointer(&p[0])) - } - args := [6]uintptr{uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))} - n, _, err := Syscall(SYS_SOCKETCALL, netRecvFrom, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(n), nil -} - -func sendto(s int, p []byte, flags int, to unsafe.Pointer, addrlen _Socklen) error { - var base uintptr - if len(p) > 0 { - base = uintptr(unsafe.Pointer(&p[0])) - } - args := [6]uintptr{uintptr(s), base, uintptr(len(p)), uintptr(flags), uintptr(to), uintptr(addrlen)} - _, _, err := Syscall(SYS_SOCKETCALL, netSendTo, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func recvmsg(s int, msg *Msghdr, flags int) (int, error) { - args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)} - n, _, err := Syscall(SYS_SOCKETCALL, netRecvMsg, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(n), nil -} - -func sendmsg(s int, msg *Msghdr, flags int) (int, error) { - args := [3]uintptr{uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)} - n, _, err := Syscall(SYS_SOCKETCALL, netSendMsg, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return 0, err - } - return int(n), nil -} - -func Listen(s int, n int) error { - args := [2]uintptr{uintptr(s), uintptr(n)} - _, _, err := Syscall(SYS_SOCKETCALL, netListen, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -func Shutdown(s, how int) error { - args := [2]uintptr{uintptr(s), uintptr(how)} - _, _, err := Syscall(SYS_SOCKETCALL, netShutdown, uintptr(unsafe.Pointer(&args)), 0) - if err != 0 { - return err - } - return nil -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go deleted file mode 100644 index a00f992..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2009 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. - -// +build sparc64,linux - -package unix - -//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) -//sys Dup2(oldfd int, newfd int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64 -//sys Fstatfs(fd int, buf *Statfs_t) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (euid int) -//sysnb Getgid() (gid int) -//sysnb Getrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Getuid() (uid int) -//sysnb InotifyInit() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Listen(s int, n int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64 -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64 -//sys Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK -//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) -//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) -//sys Setfsgid(gid int) (err error) -//sys Setfsuid(uid int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(resource int, rlim *Rlimit) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sys Shutdown(fd int, how int) (err error) -//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, buf *Statfs_t) (err error) -//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error) -//sys Truncate(path string, length int64) (err error) -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) -//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) -//sysnb getgroups(n int, list *_Gid_t) (nn int, err error) -//sysnb setgroups(n int, list *_Gid_t) (err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) -//sysnb socket(domain int, typ int, proto int) (fd int, err error) -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) - -func Ioperm(from int, num int, on int) (err error) { - return ENOSYS -} - -func Iopl(level int) (err error) { - return ENOSYS -} - -//sysnb Gettimeofday(tv *Timeval) (err error) - -func Time(t *Time_t) (tt Time_t, err error) { - var tv Timeval - err = Gettimeofday(&tv) - if err != nil { - return 0, err - } - if t != nil { - *t = Time_t(tv.Sec) - } - return Time_t(tv.Sec), nil -} - -//sys Utime(path string, buf *Utimbuf) (err error) - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func (r *PtraceRegs) PC() uint64 { return r.Tpc } - -func (r *PtraceRegs) SetPC(pc uint64) { r.Tpc = pc } - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint64(length) -} - -//sysnb pipe(p *[2]_C_int) (err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe(&pp) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sysnb pipe2(p *[2]_C_int, flags int) (err error) - -func Pipe2(p []int, flags int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe2(&pp, flags) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd.go b/vendor/golang.org/x/sys/unix/syscall_netbsd.go deleted file mode 100644 index 71b7078..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd.go +++ /dev/null @@ -1,565 +0,0 @@ -// Copyright 2009,2010 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. - -// NetBSD system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_bsd.go or syscall_unix.go. - -package unix - -import ( - "syscall" - "unsafe" -) - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 - raw RawSockaddrDatalink -} - -func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) - -func sysctlNodes(mib []_C_int) (nodes []Sysctlnode, err error) { - var olen uintptr - - // Get a list of all sysctl nodes below the given MIB by performing - // a sysctl for the given MIB with CTL_QUERY appended. - mib = append(mib, CTL_QUERY) - qnode := Sysctlnode{Flags: SYSCTL_VERS_1} - qp := (*byte)(unsafe.Pointer(&qnode)) - sz := unsafe.Sizeof(qnode) - if err = sysctl(mib, nil, &olen, qp, sz); err != nil { - return nil, err - } - - // Now that we know the size, get the actual nodes. - nodes = make([]Sysctlnode, olen/sz) - np := (*byte)(unsafe.Pointer(&nodes[0])) - if err = sysctl(mib, np, &olen, qp, sz); err != nil { - return nil, err - } - - return nodes, nil -} - -func nametomib(name string) (mib []_C_int, err error) { - // Split name into components. - var parts []string - last := 0 - for i := 0; i < len(name); i++ { - if name[i] == '.' { - parts = append(parts, name[last:i]) - last = i + 1 - } - } - parts = append(parts, name[last:]) - - // Discover the nodes and construct the MIB OID. - for partno, part := range parts { - nodes, err := sysctlNodes(mib) - if err != nil { - return nil, err - } - for _, node := range nodes { - n := make([]byte, 0) - for i := range node.Name { - if node.Name[i] != 0 { - n = append(n, byte(node.Name[i])) - } - } - if string(n) == part { - mib = append(mib, _C_int(node.Num)) - break - } - } - if len(mib) != partno+1 { - return nil, EINVAL - } - } - - return mib, nil -} - -//sysnb pipe() (fd1 int, fd2 int, err error) -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - p[0], p[1], err = pipe() - return -} - -//sys getdents(fd int, buf []byte) (n int, err error) -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - return getdents(fd, buf) -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD - -func Getwd() (string, error) { - var buf [PathMax]byte - _, err := Getcwd(buf[0:]) - if err != nil { - return "", err - } - n := clen(buf[:]) - if n < 1 { - return "", EINVAL - } - return string(buf[:n]), nil -} - -// TODO -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - return -1, ENOSYS -} - -func setattrlistTimes(path string, times []Timespec, flags int) error { - // used on Darwin for UtimesNano - return ENOSYS -} - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func Uname(uname *Utsname) error { - mib := []_C_int{CTL_KERN, KERN_OSTYPE} - n := unsafe.Sizeof(uname.Sysname) - if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_HOSTNAME} - n = unsafe.Sizeof(uname.Nodename) - if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_OSRELEASE} - n = unsafe.Sizeof(uname.Release) - if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_VERSION} - n = unsafe.Sizeof(uname.Version) - if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { - return err - } - - // The version might have newlines or tabs in it, convert them to - // spaces. - for i, b := range uname.Version { - if b == '\n' || b == '\t' { - if i == len(uname.Version)-1 { - uname.Version[i] = 0 - } else { - uname.Version[i] = ' ' - } - } - } - - mib = []_C_int{CTL_HW, HW_MACHINE} - n = unsafe.Sizeof(uname.Machine) - if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { - return err - } - - return nil -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys Chdir(path string) (err error) -//sys Chflags(path string, flags int) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(from int, to int) (err error) -//sys Exit(code int) -//sys Fchdir(fd int) (err error) -//sys Fchflags(fd int, flags int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (uid int) -//sysnb Getgid() (gid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgrp int) -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Getuid() (uid int) -//sys Issetugid() (tainted bool) -//sys Kill(pid int, signum syscall.Signal) (err error) -//sys Kqueue() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Listen(s int, backlog int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Revoke(path string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sysnb Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tp *Timeval) (err error) -//sysnb Setuid(uid int) (err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Symlink(path string, link string) (err error) -//sys Sync() (err error) -//sys Truncate(path string, length int64) (err error) -//sys Umask(newmask int) (oldmask int) -//sys Unlink(path string) (err error) -//sys Unmount(path string, flags int) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE -//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - */ -// ____semctl13 -// __clone -// __fhopen40 -// __fhstat40 -// __fhstatvfs140 -// __fstat30 -// __getcwd -// __getfh30 -// __getlogin -// __lstat30 -// __mount50 -// __msgctl13 -// __msync13 -// __ntp_gettime30 -// __posix_chown -// __posix_fadvise50 -// __posix_fchown -// __posix_lchown -// __posix_rename -// __setlogin -// __shmctl13 -// __sigaction_sigtramp -// __sigaltstack14 -// __sigpending14 -// __sigprocmask14 -// __sigsuspend14 -// __sigtimedwait -// __stat30 -// __syscall -// __vfork14 -// _ksem_close -// _ksem_destroy -// _ksem_getvalue -// _ksem_init -// _ksem_open -// _ksem_post -// _ksem_trywait -// _ksem_unlink -// _ksem_wait -// _lwp_continue -// _lwp_create -// _lwp_ctl -// _lwp_detach -// _lwp_exit -// _lwp_getname -// _lwp_getprivate -// _lwp_kill -// _lwp_park -// _lwp_self -// _lwp_setname -// _lwp_setprivate -// _lwp_suspend -// _lwp_unpark -// _lwp_unpark_all -// _lwp_wait -// _lwp_wakeup -// _pset_bind -// _sched_getaffinity -// _sched_getparam -// _sched_setaffinity -// _sched_setparam -// acct -// aio_cancel -// aio_error -// aio_fsync -// aio_read -// aio_return -// aio_suspend -// aio_write -// break -// clock_getres -// clock_gettime -// clock_settime -// compat_09_ogetdomainname -// compat_09_osetdomainname -// compat_09_ouname -// compat_10_omsgsys -// compat_10_osemsys -// compat_10_oshmsys -// compat_12_fstat12 -// compat_12_getdirentries -// compat_12_lstat12 -// compat_12_msync -// compat_12_oreboot -// compat_12_oswapon -// compat_12_stat12 -// compat_13_sigaction13 -// compat_13_sigaltstack13 -// compat_13_sigpending13 -// compat_13_sigprocmask13 -// compat_13_sigreturn13 -// compat_13_sigsuspend13 -// compat_14___semctl -// compat_14_msgctl -// compat_14_shmctl -// compat_16___sigaction14 -// compat_16___sigreturn14 -// compat_20_fhstatfs -// compat_20_fstatfs -// compat_20_getfsstat -// compat_20_statfs -// compat_30___fhstat30 -// compat_30___fstat13 -// compat_30___lstat13 -// compat_30___stat13 -// compat_30_fhopen -// compat_30_fhstat -// compat_30_fhstatvfs1 -// compat_30_getdents -// compat_30_getfh -// compat_30_ntp_gettime -// compat_30_socket -// compat_40_mount -// compat_43_fstat43 -// compat_43_lstat43 -// compat_43_oaccept -// compat_43_ocreat -// compat_43_oftruncate -// compat_43_ogetdirentries -// compat_43_ogetdtablesize -// compat_43_ogethostid -// compat_43_ogethostname -// compat_43_ogetkerninfo -// compat_43_ogetpagesize -// compat_43_ogetpeername -// compat_43_ogetrlimit -// compat_43_ogetsockname -// compat_43_okillpg -// compat_43_olseek -// compat_43_ommap -// compat_43_oquota -// compat_43_orecv -// compat_43_orecvfrom -// compat_43_orecvmsg -// compat_43_osend -// compat_43_osendmsg -// compat_43_osethostid -// compat_43_osethostname -// compat_43_osetrlimit -// compat_43_osigblock -// compat_43_osigsetmask -// compat_43_osigstack -// compat_43_osigvec -// compat_43_otruncate -// compat_43_owait -// compat_43_stat43 -// execve -// extattr_delete_fd -// extattr_delete_file -// extattr_delete_link -// extattr_get_fd -// extattr_get_file -// extattr_get_link -// extattr_list_fd -// extattr_list_file -// extattr_list_link -// extattr_set_fd -// extattr_set_file -// extattr_set_link -// extattrctl -// fchroot -// fdatasync -// fgetxattr -// fktrace -// flistxattr -// fork -// fremovexattr -// fsetxattr -// fstatvfs1 -// fsync_range -// getcontext -// getitimer -// getvfsstat -// getxattr -// ktrace -// lchflags -// lchmod -// lfs_bmapv -// lfs_markv -// lfs_segclean -// lfs_segwait -// lgetxattr -// lio_listio -// listxattr -// llistxattr -// lremovexattr -// lseek -// lsetxattr -// lutimes -// madvise -// mincore -// minherit -// modctl -// mq_close -// mq_getattr -// mq_notify -// mq_open -// mq_receive -// mq_send -// mq_setattr -// mq_timedreceive -// mq_timedsend -// mq_unlink -// mremap -// msgget -// msgrcv -// msgsnd -// nfssvc -// ntp_adjtime -// pmc_control -// pmc_get_info -// pollts -// preadv -// profil -// pselect -// pset_assign -// pset_create -// pset_destroy -// ptrace -// pwritev -// quotactl -// rasctl -// readv -// reboot -// removexattr -// sa_enable -// sa_preempt -// sa_register -// sa_setconcurrency -// sa_stacks -// sa_yield -// sbrk -// sched_yield -// semconfig -// semget -// semop -// setcontext -// setitimer -// setxattr -// shmat -// shmdt -// shmget -// sstk -// statvfs1 -// swapctl -// sysarch -// syscall -// timer_create -// timer_delete -// timer_getoverrun -// timer_gettime -// timer_settime -// undelete -// utrace -// uuidgen -// vadvise -// vfork -// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go deleted file mode 100644 index 24f74e5..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 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. - -// +build 386,netbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = uint32(mode) - k.Flags = uint32(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go deleted file mode 100644 index 6878bf7..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,netbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = uint32(mode) - k.Flags = uint32(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go deleted file mode 100644 index dbbfcf7..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2013 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. - -// +build arm,netbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = uint32(mode) - k.Flags = uint32(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vendor/golang.org/x/sys/unix/syscall_openbsd.go deleted file mode 100644 index 37556e7..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ /dev/null @@ -1,365 +0,0 @@ -// Copyright 2009,2010 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. - -// OpenBSD system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_bsd.go or syscall_unix.go. - -package unix - -import ( - "sort" - "syscall" - "unsafe" -) - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [24]int8 - raw RawSockaddrDatalink -} - -func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err syscall.Errno) - -func nametomib(name string) (mib []_C_int, err error) { - i := sort.Search(len(sysctlMib), func(i int) bool { - return sysctlMib[i].ctlname >= name - }) - if i < len(sysctlMib) && sysctlMib[i].ctlname == name { - return sysctlMib[i].ctloid, nil - } - return nil, EINVAL -} - -//sysnb pipe(p *[2]_C_int) (err error) -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - err = pipe(&pp) - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return -} - -//sys getdents(fd int, buf []byte) (n int, err error) -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - return getdents(fd, buf) -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD - -func Getwd() (string, error) { - var buf [PathMax]byte - _, err := Getcwd(buf[0:]) - if err != nil { - return "", err - } - n := clen(buf[:]) - if n < 1 { - return "", EINVAL - } - return string(buf[:n]), nil -} - -// TODO -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - return -1, ENOSYS -} - -func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { - var _p0 unsafe.Pointer - var bufsize uintptr - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) - } - r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func setattrlistTimes(path string, times []Timespec, flags int) error { - // used on Darwin for UtimesNano - return ENOSYS -} - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -// ioctl itself should not be exposed directly, but additional get/set -// functions for specific types are permissible. - -// IoctlSetInt performs an ioctl operation which sets an integer value -// on fd, using the specified request number. -func IoctlSetInt(fd int, req uint, value int) error { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) error { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -// IoctlGetInt performs an ioctl operation which gets an integer value -// from fd, using the specified request number. -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func Uname(uname *Utsname) error { - mib := []_C_int{CTL_KERN, KERN_OSTYPE} - n := unsafe.Sizeof(uname.Sysname) - if err := sysctl(mib, &uname.Sysname[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_HOSTNAME} - n = unsafe.Sizeof(uname.Nodename) - if err := sysctl(mib, &uname.Nodename[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_OSRELEASE} - n = unsafe.Sizeof(uname.Release) - if err := sysctl(mib, &uname.Release[0], &n, nil, 0); err != nil { - return err - } - - mib = []_C_int{CTL_KERN, KERN_VERSION} - n = unsafe.Sizeof(uname.Version) - if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { - return err - } - - // The version might have newlines or tabs in it, convert them to - // spaces. - for i, b := range uname.Version { - if b == '\n' || b == '\t' { - if i == len(uname.Version)-1 { - uname.Version[i] = 0 - } else { - uname.Version[i] = ' ' - } - } - } - - mib = []_C_int{CTL_HW, HW_MACHINE} - n = unsafe.Sizeof(uname.Machine) - if err := sysctl(mib, &uname.Machine[0], &n, nil, 0); err != nil { - return err - } - - return nil -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys Chdir(path string) (err error) -//sys Chflags(path string, flags int) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(from int, to int) (err error) -//sys Exit(code int) -//sys Fchdir(fd int) (err error) -//sys Fchflags(fd int, flags int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatfs(fd int, stat *Statfs_t) (err error) -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sysnb Getegid() (egid int) -//sysnb Geteuid() (uid int) -//sysnb Getgid() (gid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgrp int) -//sysnb Getpid() (pid int) -//sysnb Getppid() (ppid int) -//sys Getpriority(which int, who int) (prio int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Getsid(pid int) (sid int, err error) -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Getuid() (uid int) -//sys Issetugid() (tainted bool) -//sys Kill(pid int, signum syscall.Signal) (err error) -//sys Kqueue() (fd int, err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Listen(s int, backlog int) (err error) -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Revoke(path string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sysnb Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sys Setlogin(name string) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setresgid(rgid int, egid int, sgid int) (err error) -//sysnb Setresuid(ruid int, euid int, suid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Settimeofday(tp *Timeval) (err error) -//sysnb Setuid(uid int) (err error) -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statfs(path string, stat *Statfs_t) (err error) -//sys Symlink(path string, link string) (err error) -//sys Sync() (err error) -//sys Truncate(path string, length int64) (err error) -//sys Umask(newmask int) (oldmask int) -//sys Unlink(path string) (err error) -//sys Unmount(path string, flags int) (err error) -//sys write(fd int, p []byte) (n int, err error) -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ -//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE -//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) - -/* - * Unimplemented - */ -// __getcwd -// __semctl -// __syscall -// __sysctl -// adjfreq -// break -// clock_getres -// clock_gettime -// clock_settime -// closefrom -// execve -// faccessat -// fchmodat -// fchownat -// fcntl -// fhopen -// fhstat -// fhstatfs -// fork -// fstatat -// futimens -// getfh -// getgid -// getitimer -// getlogin -// getresgid -// getresuid -// getrtable -// getthrid -// ktrace -// lfs_bmapv -// lfs_markv -// lfs_segclean -// lfs_segwait -// linkat -// mincore -// minherit -// mkdirat -// mkfifoat -// mknodat -// mount -// mquery -// msgctl -// msgget -// msgrcv -// msgsnd -// nfssvc -// nnpfspioctl -// openat -// preadv -// profil -// pwritev -// quotactl -// readlinkat -// readv -// reboot -// renameat -// rfork -// sched_yield -// semget -// semop -// setgroups -// setitimer -// setrtable -// setsockopt -// shmat -// shmctl -// shmdt -// shmget -// sigaction -// sigaltstack -// sigpending -// sigprocmask -// sigreturn -// sigsuspend -// symlinkat -// sysarch -// syscall -// threxit -// thrsigdivert -// thrsleep -// thrwakeup -// unlinkat -// vfork -// writev diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go deleted file mode 100644 index 994964a..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 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. - -// +build 386,openbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go deleted file mode 100644 index 649e67f..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,openbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint64(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go deleted file mode 100644 index 59844f5..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2017 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. - -// +build arm,openbsd - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: int32(nsec)} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: int32(usec)} -} - -func SetKevent(k *Kevent_t, fd, mode, flags int) { - k.Ident = uint32(fd) - k.Filter = int16(mode) - k.Flags = uint16(flags) -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint32(length) -} - -func (msghdr *Msghdr) SetControllen(length int) { - msghdr.Controllen = uint32(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vendor/golang.org/x/sys/unix/syscall_solaris.go deleted file mode 100644 index eca8d1d..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_solaris.go +++ /dev/null @@ -1,717 +0,0 @@ -// Copyright 2009 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. - -// Solaris system calls. -// This file is compiled as ordinary Go code, -// but it is also input to mksyscall, -// which parses the //sys lines and generates system call stubs. -// Note that sometimes we use a lowercase //sys name and wrap -// it in our own nicer implementation, either here or in -// syscall_solaris.go or syscall_unix.go. - -package unix - -import ( - "syscall" - "unsafe" -) - -// Implemented in runtime/syscall_solaris.go. -type syscallFunc uintptr - -func rawSysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) -func sysvicall6(trap, nargs, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) - -// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -type SockaddrDatalink struct { - Family uint16 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [244]int8 - raw RawSockaddrDatalink -} - -//sysnb pipe(p *[2]_C_int) (n int, err error) - -func Pipe(p []int) (err error) { - if len(p) != 2 { - return EINVAL - } - var pp [2]_C_int - n, err := pipe(&pp) - if n != 0 { - return err - } - p[0] = int(pp[0]) - p[1] = int(pp[1]) - return nil -} - -func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Family = AF_INET - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrInet4, nil -} - -func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, _Socklen, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, EINVAL - } - sa.raw.Family = AF_INET6 - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - sa.raw.Scope_id = sa.ZoneId - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), SizeofSockaddrInet6, nil -} - -func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { - name := sa.Name - n := len(name) - if n >= len(sa.raw.Path) { - return nil, 0, EINVAL - } - sa.raw.Family = AF_UNIX - for i := 0; i < n; i++ { - sa.raw.Path[i] = int8(name[i]) - } - // length is family (uint16), name, NUL. - sl := _Socklen(2) - if n > 0 { - sl += _Socklen(n) + 1 - } - if sa.raw.Path[0] == '@' { - sa.raw.Path[0] = 0 - // Don't count trailing NUL for abstract address. - sl-- - } - - return unsafe.Pointer(&sa.raw), sl, nil -} - -//sys getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getsockname - -func Getsockname(fd int) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - if err = getsockname(fd, &rsa, &len); err != nil { - return - } - return anyToSockaddr(&rsa) -} - -// GetsockoptString returns the string value of the socket option opt for the -// socket associated with fd at the given socket level. -func GetsockoptString(fd, level, opt int) (string, error) { - buf := make([]byte, 256) - vallen := _Socklen(len(buf)) - err := getsockopt(fd, level, opt, unsafe.Pointer(&buf[0]), &vallen) - if err != nil { - return "", err - } - return string(buf[:vallen-1]), nil -} - -const ImplementsGetwd = true - -//sys Getcwd(buf []byte) (n int, err error) - -func Getwd() (wd string, err error) { - var buf [PathMax]byte - // Getcwd will return an error if it failed for any reason. - _, err = Getcwd(buf[0:]) - if err != nil { - return "", err - } - n := clen(buf[:]) - if n < 1 { - return "", EINVAL - } - return string(buf[:n]), nil -} - -/* - * Wrapped - */ - -//sysnb getgroups(ngid int, gid *_Gid_t) (n int, err error) -//sysnb setgroups(ngid int, gid *_Gid_t) (err error) - -func Getgroups() (gids []int, err error) { - n, err := getgroups(0, nil) - // Check for error and sanity check group count. Newer versions of - // Solaris allow up to 1024 (NGROUPS_MAX). - if n < 0 || n > 1024 { - if err != nil { - return nil, err - } - return nil, EINVAL - } else if n == 0 { - return nil, nil - } - - a := make([]_Gid_t, n) - n, err = getgroups(n, &a[0]) - if n == -1 { - return nil, err - } - gids = make([]int, n) - for i, v := range a[0:n] { - gids[i] = int(v) - } - return -} - -func Setgroups(gids []int) (err error) { - if len(gids) == 0 { - return setgroups(0, nil) - } - - a := make([]_Gid_t, len(gids)) - for i, v := range gids { - a[i] = _Gid_t(v) - } - return setgroups(len(a), &a[0]) -} - -func ReadDirent(fd int, buf []byte) (n int, err error) { - // Final argument is (basep *uintptr) and the syscall doesn't take nil. - // TODO(rsc): Can we use a single global basep for all calls? - return Getdents(fd, buf, new(uintptr)) -} - -// Wait status is 7 bits at bottom, either 0 (exited), -// 0x7F (stopped), or a signal number that caused an exit. -// The 0x80 bit is whether there was a core dump. -// An extra number (exit code, signal causing a stop) -// is in the high bits. - -type WaitStatus uint32 - -const ( - mask = 0x7F - core = 0x80 - shift = 8 - - exited = 0 - stopped = 0x7F -) - -func (w WaitStatus) Exited() bool { return w&mask == exited } - -func (w WaitStatus) ExitStatus() int { - if w&mask != exited { - return -1 - } - return int(w >> shift) -} - -func (w WaitStatus) Signaled() bool { return w&mask != stopped && w&mask != 0 } - -func (w WaitStatus) Signal() syscall.Signal { - sig := syscall.Signal(w & mask) - if sig == stopped || sig == 0 { - return -1 - } - return sig -} - -func (w WaitStatus) CoreDump() bool { return w.Signaled() && w&core != 0 } - -func (w WaitStatus) Stopped() bool { return w&mask == stopped && syscall.Signal(w>>shift) != SIGSTOP } - -func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP } - -func (w WaitStatus) StopSignal() syscall.Signal { - if !w.Stopped() { - return -1 - } - return syscall.Signal(w>>shift) & 0xFF -} - -func (w WaitStatus) TrapCause() int { return -1 } - -//sys wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) - -func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (int, error) { - var status _C_int - rpid, err := wait4(int32(pid), &status, options, rusage) - wpid := int(rpid) - if wpid == -1 { - return wpid, err - } - if wstatus != nil { - *wstatus = WaitStatus(status) - } - return wpid, nil -} - -//sys gethostname(buf []byte) (n int, err error) - -func Gethostname() (name string, err error) { - var buf [MaxHostNameLen]byte - n, err := gethostname(buf[:]) - if n != 0 { - return "", err - } - n = clen(buf[:]) - if n < 1 { - return "", EFAULT - } - return string(buf[:n]), nil -} - -//sys utimes(path string, times *[2]Timeval) (err error) - -func Utimes(path string, tv []Timeval) (err error) { - if tv == nil { - return utimes(path, nil) - } - if len(tv) != 2 { - return EINVAL - } - return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -//sys utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) - -func UtimesNano(path string, ts []Timespec) error { - if ts == nil { - return utimensat(AT_FDCWD, path, nil, 0) - } - if len(ts) != 2 { - return EINVAL - } - return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0) -} - -func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error { - if ts == nil { - return utimensat(dirfd, path, nil, flags) - } - if len(ts) != 2 { - return EINVAL - } - return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags) -} - -//sys fcntl(fd int, cmd int, arg int) (val int, err error) - -// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. -func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0) - if e1 != 0 { - return e1 - } - return nil -} - -//sys futimesat(fildes int, path *byte, times *[2]Timeval) (err error) - -func Futimesat(dirfd int, path string, tv []Timeval) error { - pathp, err := BytePtrFromString(path) - if err != nil { - return err - } - if tv == nil { - return futimesat(dirfd, pathp, nil) - } - if len(tv) != 2 { - return EINVAL - } - return futimesat(dirfd, pathp, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -// Solaris doesn't have an futimes function because it allows NULL to be -// specified as the path for futimesat. However, Go doesn't like -// NULL-style string interfaces, so this simple wrapper is provided. -func Futimes(fd int, tv []Timeval) error { - if tv == nil { - return futimesat(fd, nil, nil) - } - if len(tv) != 2 { - return EINVAL - } - return futimesat(fd, nil, (*[2]Timeval)(unsafe.Pointer(&tv[0]))) -} - -func anyToSockaddr(rsa *RawSockaddrAny) (Sockaddr, error) { - switch rsa.Addr.Family { - case AF_UNIX: - pp := (*RawSockaddrUnix)(unsafe.Pointer(rsa)) - sa := new(SockaddrUnix) - // Assume path ends at NUL. - // This is not technically the Solaris semantics for - // abstract Unix domain sockets -- they are supposed - // to be uninterpreted fixed-size binary blobs -- but - // everyone uses this convention. - n := 0 - for n < len(pp.Path) && pp.Path[n] != 0 { - n++ - } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] - sa.Name = string(bytes) - return sa, nil - - case AF_INET: - pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet4) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_INET6: - pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet6) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - sa.ZoneId = pp.Scope_id - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - } - return nil, EAFNOSUPPORT -} - -//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) = libsocket.accept - -func Accept(fd int) (nfd int, sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - nfd, err = accept(fd, &rsa, &len) - if nfd == -1 { - return - } - sa, err = anyToSockaddr(&rsa) - if err != nil { - Close(nfd) - nfd = 0 - } - return -} - -//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_recvmsg - -func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { - var msg Msghdr - var rsa RawSockaddrAny - msg.Name = (*byte)(unsafe.Pointer(&rsa)) - msg.Namelen = uint32(SizeofSockaddrAny) - var iov Iovec - if len(p) > 0 { - iov.Base = (*int8)(unsafe.Pointer(&p[0])) - iov.SetLen(len(p)) - } - var dummy int8 - if len(oob) > 0 { - // receive at least one normal byte - if len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Accrightslen = int32(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = recvmsg(fd, &msg, flags); n == -1 { - return - } - oobn = int(msg.Accrightslen) - // source address is only specified if the socket is unconnected - if rsa.Addr.Family != AF_UNSPEC { - from, err = anyToSockaddr(&rsa) - } - return -} - -func Sendmsg(fd int, p, oob []byte, to Sockaddr, flags int) (err error) { - _, err = SendmsgN(fd, p, oob, to, flags) - return -} - -//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error) = libsocket.__xnet_sendmsg - -func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error) { - var ptr unsafe.Pointer - var salen _Socklen - if to != nil { - ptr, salen, err = to.sockaddr() - if err != nil { - return 0, err - } - } - var msg Msghdr - msg.Name = (*byte)(unsafe.Pointer(ptr)) - msg.Namelen = uint32(salen) - var iov Iovec - if len(p) > 0 { - iov.Base = (*int8)(unsafe.Pointer(&p[0])) - iov.SetLen(len(p)) - } - var dummy int8 - if len(oob) > 0 { - // send at least one normal byte - if len(p) == 0 { - iov.Base = &dummy - iov.SetLen(1) - } - msg.Accrightslen = int32(len(oob)) - } - msg.Iov = &iov - msg.Iovlen = 1 - if n, err = sendmsg(fd, &msg, flags); err != nil { - return 0, err - } - if len(oob) > 0 && len(p) == 0 { - n = 0 - } - return n, nil -} - -//sys acct(path *byte) (err error) - -func Acct(path string) (err error) { - if len(path) == 0 { - // Assume caller wants to disable accounting. - return acct(nil) - } - - pathp, err := BytePtrFromString(path) - if err != nil { - return err - } - return acct(pathp) -} - -//sys __makedev(version int, major uint, minor uint) (val uint64) - -func Mkdev(major, minor uint32) uint64 { - return __makedev(NEWDEV, uint(major), uint(minor)) -} - -//sys __major(version int, dev uint64) (val uint) - -func Major(dev uint64) uint32 { - return uint32(__major(NEWDEV, dev)) -} - -//sys __minor(version int, dev uint64) (val uint) - -func Minor(dev uint64) uint32 { - return uint32(__minor(NEWDEV, dev)) -} - -/* - * Expose the ioctl function - */ - -//sys ioctl(fd int, req uint, arg uintptr) (err error) - -func IoctlSetInt(fd int, req uint, value int) (err error) { - return ioctl(fd, req, uintptr(value)) -} - -func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermios(fd int, req uint, value *Termios) (err error) { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlSetTermio(fd int, req uint, value *Termio) (err error) { - return ioctl(fd, req, uintptr(unsafe.Pointer(value))) -} - -func IoctlGetInt(fd int, req uint) (int, error) { - var value int - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return value, err -} - -func IoctlGetWinsize(fd int, req uint) (*Winsize, error) { - var value Winsize - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermios(fd int, req uint) (*Termios, error) { - var value Termios - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -func IoctlGetTermio(fd int, req uint) (*Termio, error) { - var value Termio - err := ioctl(fd, req, uintptr(unsafe.Pointer(&value))) - return &value, err -} - -//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error) - -func Poll(fds []PollFd, timeout int) (n int, err error) { - if len(fds) == 0 { - return poll(nil, 0, timeout) - } - return poll(&fds[0], len(fds), timeout) -} - -/* - * Exposed directly - */ -//sys Access(path string, mode uint32) (err error) -//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) -//sys Chdir(path string) (err error) -//sys Chmod(path string, mode uint32) (err error) -//sys Chown(path string, uid int, gid int) (err error) -//sys Chroot(path string) (err error) -//sys Close(fd int) (err error) -//sys Creat(path string, mode uint32) (fd int, err error) -//sys Dup(fd int) (nfd int, err error) -//sys Dup2(oldfd int, newfd int) (err error) -//sys Exit(code int) -//sys Fchdir(fd int) (err error) -//sys Fchmod(fd int, mode uint32) (err error) -//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) -//sys Fchown(fd int, uid int, gid int) (err error) -//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) -//sys Fdatasync(fd int) (err error) -//sys Flock(fd int, how int) (err error) -//sys Fpathconf(fd int, name int) (val int, err error) -//sys Fstat(fd int, stat *Stat_t) (err error) -//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) -//sys Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) -//sysnb Getgid() (gid int) -//sysnb Getpid() (pid int) -//sysnb Getpgid(pid int) (pgid int, err error) -//sysnb Getpgrp() (pgid int, err error) -//sys Geteuid() (euid int) -//sys Getegid() (egid int) -//sys Getppid() (ppid int) -//sys Getpriority(which int, who int) (n int, err error) -//sysnb Getrlimit(which int, lim *Rlimit) (err error) -//sysnb Getrusage(who int, rusage *Rusage) (err error) -//sysnb Gettimeofday(tv *Timeval) (err error) -//sysnb Getuid() (uid int) -//sys Kill(pid int, signum syscall.Signal) (err error) -//sys Lchown(path string, uid int, gid int) (err error) -//sys Link(path string, link string) (err error) -//sys Listen(s int, backlog int) (err error) = libsocket.__xnet_llisten -//sys Lstat(path string, stat *Stat_t) (err error) -//sys Madvise(b []byte, advice int) (err error) -//sys Mkdir(path string, mode uint32) (err error) -//sys Mkdirat(dirfd int, path string, mode uint32) (err error) -//sys Mkfifo(path string, mode uint32) (err error) -//sys Mkfifoat(dirfd int, path string, mode uint32) (err error) -//sys Mknod(path string, mode uint32, dev int) (err error) -//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error) -//sys Mlock(b []byte) (err error) -//sys Mlockall(flags int) (err error) -//sys Mprotect(b []byte, prot int) (err error) -//sys Msync(b []byte, flags int) (err error) -//sys Munlock(b []byte) (err error) -//sys Munlockall() (err error) -//sys Nanosleep(time *Timespec, leftover *Timespec) (err error) -//sys Open(path string, mode int, perm uint32) (fd int, err error) -//sys Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) -//sys Pathconf(path string, name int) (val int, err error) -//sys Pause() (err error) -//sys Pread(fd int, p []byte, offset int64) (n int, err error) -//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) -//sys read(fd int, p []byte) (n int, err error) -//sys Readlink(path string, buf []byte) (n int, err error) -//sys Rename(from string, to string) (err error) -//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) -//sys Rmdir(path string) (err error) -//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = lseek -//sys Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) -//sysnb Setegid(egid int) (err error) -//sysnb Seteuid(euid int) (err error) -//sysnb Setgid(gid int) (err error) -//sys Sethostname(p []byte) (err error) -//sysnb Setpgid(pid int, pgid int) (err error) -//sys Setpriority(which int, who int, prio int) (err error) -//sysnb Setregid(rgid int, egid int) (err error) -//sysnb Setreuid(ruid int, euid int) (err error) -//sysnb Setrlimit(which int, lim *Rlimit) (err error) -//sysnb Setsid() (pid int, err error) -//sysnb Setuid(uid int) (err error) -//sys Shutdown(s int, how int) (err error) = libsocket.shutdown -//sys Stat(path string, stat *Stat_t) (err error) -//sys Statvfs(path string, vfsstat *Statvfs_t) (err error) -//sys Symlink(path string, link string) (err error) -//sys Sync() (err error) -//sysnb Times(tms *Tms) (ticks uintptr, err error) -//sys Truncate(path string, length int64) (err error) -//sys Fsync(fd int) (err error) -//sys Ftruncate(fd int, length int64) (err error) -//sys Umask(mask int) (oldmask int) -//sysnb Uname(buf *Utsname) (err error) -//sys Unmount(target string, flags int) (err error) = libc.umount -//sys Unlink(path string) (err error) -//sys Unlinkat(dirfd int, path string, flags int) (err error) -//sys Ustat(dev int, ubuf *Ustat_t) (err error) -//sys Utime(path string, buf *Utimbuf) (err error) -//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_bind -//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_connect -//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) -//sys munmap(addr uintptr, length uintptr) (err error) -//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) = libsocket.__xnet_sendto -//sys socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket -//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair -//sys write(fd int, p []byte) (n int, err error) -//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.__xnet_getsockopt -//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) = libsocket.getpeername -//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) = libsocket.setsockopt -//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) = libsocket.recvfrom - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -var mapper = &mmapper{ - active: make(map[*byte][]byte), - mmap: mmap, - munmap: munmap, -} - -func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - return mapper.Mmap(fd, offset, length, prot, flags) -} - -func Munmap(b []byte) (err error) { - return mapper.Munmap(b) -} diff --git a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go deleted file mode 100644 index 9d4e7a6..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2009 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. - -// +build amd64,solaris - -package unix - -func setTimespec(sec, nsec int64) Timespec { - return Timespec{Sec: sec, Nsec: nsec} -} - -func setTimeval(sec, usec int64) Timeval { - return Timeval{Sec: sec, Usec: usec} -} - -func (iov *Iovec) SetLen(length int) { - iov.Len = uint64(length) -} - -func (cmsg *Cmsghdr) SetLen(length int) { - cmsg.Len = uint32(length) -} - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - // TODO(aram): implement this, see issue 5847. - panic("unimplemented") -} diff --git a/vendor/golang.org/x/sys/unix/syscall_unix.go b/vendor/golang.org/x/sys/unix/syscall_unix.go deleted file mode 100644 index cd8f3a9..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_unix.go +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright 2009 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -package unix - -import ( - "runtime" - "sync" - "syscall" - "unsafe" -) - -var ( - Stdin = 0 - Stdout = 1 - Stderr = 2 -) - -const ( - darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8 - dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8 - netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4 - solaris64Bit = runtime.GOOS == "solaris" && sizeofPtr == 8 -) - -// Do the interface allocations only once for common -// Errno values. -var ( - errEAGAIN error = syscall.EAGAIN - errEINVAL error = syscall.EINVAL - errENOENT error = syscall.ENOENT -) - -// errnoErr returns common boxed Errno values, to prevent -// allocations at runtime. -func errnoErr(e syscall.Errno) error { - switch e { - case 0: - return nil - case EAGAIN: - return errEAGAIN - case EINVAL: - return errEINVAL - case ENOENT: - return errENOENT - } - return e -} - -// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte. -func clen(n []byte) int { - for i := 0; i < len(n); i++ { - if n[i] == 0 { - return i - } - } - return len(n) -} - -// Mmap manager, for use by operating system-specific implementations. - -type mmapper struct { - sync.Mutex - active map[*byte][]byte // active mappings; key is last byte in mapping - mmap func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error) - munmap func(addr uintptr, length uintptr) error -} - -func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - if length <= 0 { - return nil, EINVAL - } - - // Map the requested memory. - addr, errno := m.mmap(0, uintptr(length), prot, flags, fd, offset) - if errno != nil { - return nil, errno - } - - // Slice memory layout - var sl = struct { - addr uintptr - len int - cap int - }{addr, length, length} - - // Use unsafe to turn sl into a []byte. - b := *(*[]byte)(unsafe.Pointer(&sl)) - - // Register mapping in m and return it. - p := &b[cap(b)-1] - m.Lock() - defer m.Unlock() - m.active[p] = b - return b, nil -} - -func (m *mmapper) Munmap(data []byte) (err error) { - if len(data) == 0 || len(data) != cap(data) { - return EINVAL - } - - // Find the base of the mapping. - p := &data[cap(data)-1] - m.Lock() - defer m.Unlock() - b := m.active[p] - if b == nil || &b[0] != &data[0] { - return EINVAL - } - - // Unmap the memory and update m. - if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { - return errno - } - delete(m.active, p) - return nil -} - -func Read(fd int, p []byte) (n int, err error) { - n, err = read(fd, p) - if raceenabled { - if n > 0 { - raceWriteRange(unsafe.Pointer(&p[0]), n) - } - if err == nil { - raceAcquire(unsafe.Pointer(&ioSync)) - } - } - return -} - -func Write(fd int, p []byte) (n int, err error) { - if raceenabled { - raceReleaseMerge(unsafe.Pointer(&ioSync)) - } - n, err = write(fd, p) - if raceenabled && n > 0 { - raceReadRange(unsafe.Pointer(&p[0]), n) - } - return -} - -// For testing: clients can set this flag to force -// creation of IPv6 sockets to return EAFNOSUPPORT. -var SocketDisableIPv6 bool - -// Sockaddr represents a socket address. -type Sockaddr interface { - sockaddr() (ptr unsafe.Pointer, len _Socklen, err error) // lowercase; only we can define Sockaddrs -} - -// SockaddrInet4 implements the Sockaddr interface for AF_INET type sockets. -type SockaddrInet4 struct { - Port int - Addr [4]byte - raw RawSockaddrInet4 -} - -// SockaddrInet6 implements the Sockaddr interface for AF_INET6 type sockets. -type SockaddrInet6 struct { - Port int - ZoneId uint32 - Addr [16]byte - raw RawSockaddrInet6 -} - -// SockaddrUnix implements the Sockaddr interface for AF_UNIX type sockets. -type SockaddrUnix struct { - Name string - raw RawSockaddrUnix -} - -func Bind(fd int, sa Sockaddr) (err error) { - ptr, n, err := sa.sockaddr() - if err != nil { - return err - } - return bind(fd, ptr, n) -} - -func Connect(fd int, sa Sockaddr) (err error) { - ptr, n, err := sa.sockaddr() - if err != nil { - return err - } - return connect(fd, ptr, n) -} - -func Getpeername(fd int) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - if err = getpeername(fd, &rsa, &len); err != nil { - return - } - return anyToSockaddr(&rsa) -} - -func GetsockoptInt(fd, level, opt int) (value int, err error) { - var n int32 - vallen := _Socklen(4) - err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen) - return int(n), err -} - -func Recvfrom(fd int, p []byte, flags int) (n int, from Sockaddr, err error) { - var rsa RawSockaddrAny - var len _Socklen = SizeofSockaddrAny - if n, err = recvfrom(fd, p, flags, &rsa, &len); err != nil { - return - } - if rsa.Addr.Family != AF_UNSPEC { - from, err = anyToSockaddr(&rsa) - } - return -} - -func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { - ptr, n, err := to.sockaddr() - if err != nil { - return err - } - return sendto(fd, p, flags, ptr, n) -} - -func SetsockoptByte(fd, level, opt int, value byte) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(&value), 1) -} - -func SetsockoptInt(fd, level, opt int, value int) (err error) { - var n = int32(value) - return setsockopt(fd, level, opt, unsafe.Pointer(&n), 4) -} - -func SetsockoptInet4Addr(fd, level, opt int, value [4]byte) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(&value[0]), 4) -} - -func SetsockoptIPMreq(fd, level, opt int, mreq *IPMreq) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPMreq) -} - -func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(mreq), SizeofIPv6Mreq) -} - -func SetsockoptICMPv6Filter(fd, level, opt int, filter *ICMPv6Filter) error { - return setsockopt(fd, level, opt, unsafe.Pointer(filter), SizeofICMPv6Filter) -} - -func SetsockoptLinger(fd, level, opt int, l *Linger) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(l), SizeofLinger) -} - -func SetsockoptString(fd, level, opt int, s string) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(&[]byte(s)[0]), uintptr(len(s))) -} - -func SetsockoptTimeval(fd, level, opt int, tv *Timeval) (err error) { - return setsockopt(fd, level, opt, unsafe.Pointer(tv), unsafe.Sizeof(*tv)) -} - -func Socket(domain, typ, proto int) (fd int, err error) { - if domain == AF_INET6 && SocketDisableIPv6 { - return -1, EAFNOSUPPORT - } - fd, err = socket(domain, typ, proto) - return -} - -func Socketpair(domain, typ, proto int) (fd [2]int, err error) { - var fdx [2]int32 - err = socketpair(domain, typ, proto, &fdx) - if err == nil { - fd[0] = int(fdx[0]) - fd[1] = int(fdx[1]) - } - return -} - -func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - if raceenabled { - raceReleaseMerge(unsafe.Pointer(&ioSync)) - } - return sendfile(outfd, infd, offset, count) -} - -var ioSync int64 - -func CloseOnExec(fd int) { fcntl(fd, F_SETFD, FD_CLOEXEC) } - -func SetNonblock(fd int, nonblocking bool) (err error) { - flag, err := fcntl(fd, F_GETFL, 0) - if err != nil { - return err - } - if nonblocking { - flag |= O_NONBLOCK - } else { - flag &= ^O_NONBLOCK - } - _, err = fcntl(fd, F_SETFL, flag) - return err -} diff --git a/vendor/golang.org/x/sys/unix/syscall_unix_gc.go b/vendor/golang.org/x/sys/unix/syscall_unix_gc.go deleted file mode 100644 index 4cb8e8e..0000000 --- a/vendor/golang.org/x/sys/unix/syscall_unix_gc.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2016 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris -// +build !gccgo - -package unix - -import "syscall" - -func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) -func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) -func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) -func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) diff --git a/vendor/golang.org/x/sys/unix/timestruct.go b/vendor/golang.org/x/sys/unix/timestruct.go deleted file mode 100644 index 47b9011..0000000 --- a/vendor/golang.org/x/sys/unix/timestruct.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2017 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. - -// +build darwin dragonfly freebsd linux netbsd openbsd solaris - -package unix - -import "time" - -// TimespecToNsec converts a Timespec value into a number of -// nanoseconds since the Unix epoch. -func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) } - -// NsecToTimespec takes a number of nanoseconds since the Unix epoch -// and returns the corresponding Timespec value. -func NsecToTimespec(nsec int64) Timespec { - sec := nsec / 1e9 - nsec = nsec % 1e9 - if nsec < 0 { - nsec += 1e9 - sec-- - } - return setTimespec(sec, nsec) -} - -// TimeToTimespec converts t into a Timespec. -// On some 32-bit systems the range of valid Timespec values are smaller -// than that of time.Time values. So if t is out of the valid range of -// Timespec, it returns a zero Timespec and ERANGE. -func TimeToTimespec(t time.Time) (Timespec, error) { - sec := t.Unix() - nsec := int64(t.Nanosecond()) - ts := setTimespec(sec, nsec) - - // Currently all targets have either int32 or int64 for Timespec.Sec. - // If there were a new target with floating point type for it, we have - // to consider the rounding error. - if int64(ts.Sec) != sec { - return Timespec{}, ERANGE - } - return ts, nil -} - -// TimevalToNsec converts a Timeval value into a number of nanoseconds -// since the Unix epoch. -func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 } - -// NsecToTimeval takes a number of nanoseconds since the Unix epoch -// and returns the corresponding Timeval value. -func NsecToTimeval(nsec int64) Timeval { - nsec += 999 // round up to microsecond - usec := nsec % 1e9 / 1e3 - sec := nsec / 1e9 - if usec < 0 { - usec += 1e6 - sec-- - } - return setTimeval(sec, usec) -} - -// Unix returns ts as the number of seconds and nanoseconds elapsed since the -// Unix epoch. -func (ts *Timespec) Unix() (sec int64, nsec int64) { - return int64(ts.Sec), int64(ts.Nsec) -} - -// Unix returns tv as the number of seconds and nanoseconds elapsed since the -// Unix epoch. -func (tv *Timeval) Unix() (sec int64, nsec int64) { - return int64(tv.Sec), int64(tv.Usec) * 1000 -} - -// Nano returns ts as the number of nanoseconds elapsed since the Unix epoch. -func (ts *Timespec) Nano() int64 { - return int64(ts.Sec)*1e9 + int64(ts.Nsec) -} - -// Nano returns tv as the number of nanoseconds elapsed since the Unix epoch. -func (tv *Timeval) Nano() int64 { - return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 -} diff --git a/vendor/golang.org/x/sys/unix/types_darwin.go b/vendor/golang.org/x/sys/unix/types_darwin.go deleted file mode 100644 index 46b9908..0000000 --- a/vendor/golang.org/x/sys/unix/types_darwin.go +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define __DARWIN_UNIX03 0 -#define KERNEL -#define _DARWIN_USE_64_BIT_INODE -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -type Timeval32 C.struct_timeval32 - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -type Stat_t C.struct_stat64 - -type Statfs_t C.struct_statfs64 - -type Flock_t C.struct_flock - -type Fstore_t C.struct_fstore - -type Radvisory_t C.struct_radvisory - -type Fbootstraptransfer_t C.struct_fbootstraptransfer - -type Log2phys_t C.struct_log2phys - -type Fsid C.struct_fsid - -type Dirent C.struct_dirent - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet4Pktinfo C.struct_in_pktinfo - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet4Pktinfo = C.sizeof_struct_in_pktinfo - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Ptrace requests - -const ( - PTRACE_TRACEME = C.PT_TRACE_ME - PTRACE_CONT = C.PT_CONTINUE - PTRACE_KILL = C.PT_KILL -) - -// Events (kqueue, kevent) - -type Kevent_t C.struct_kevent - -// Select - -type FdSet C.fd_set - -// Routing and interface messages - -const ( - SizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfData = C.sizeof_struct_if_data - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr - SizeofIfmaMsghdr2 = C.sizeof_struct_ifma_msghdr2 - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type IfMsghdr C.struct_if_msghdr - -type IfData C.struct_if_data - -type IfaMsghdr C.struct_ifa_msghdr - -type IfmaMsghdr C.struct_ifma_msghdr - -type IfmaMsghdr2 C.struct_ifma_msghdr2 - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfHdr C.struct_bpf_hdr - -// Terminal handling - -type Termios C.struct_termios - -type Winsize C.struct_winsize - -// fchmodat-like syscalls. - -const ( - AT_FDCWD = C.AT_FDCWD - AT_REMOVEDIR = C.AT_REMOVEDIR - AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW -) - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) - -// uname - -type Utsname C.struct_utsname diff --git a/vendor/golang.org/x/sys/unix/types_dragonfly.go b/vendor/golang.org/x/sys/unix/types_dragonfly.go deleted file mode 100644 index 0c63304..0000000 --- a/vendor/golang.org/x/sys/unix/types_dragonfly.go +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define KERNEL -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -const ( // Directory mode bits - S_IFMT = C.S_IFMT - S_IFIFO = C.S_IFIFO - S_IFCHR = C.S_IFCHR - S_IFDIR = C.S_IFDIR - S_IFBLK = C.S_IFBLK - S_IFREG = C.S_IFREG - S_IFLNK = C.S_IFLNK - S_IFSOCK = C.S_IFSOCK - S_ISUID = C.S_ISUID - S_ISGID = C.S_ISGID - S_ISVTX = C.S_ISVTX - S_IRUSR = C.S_IRUSR - S_IWUSR = C.S_IWUSR - S_IXUSR = C.S_IXUSR -) - -type Stat_t C.struct_stat - -type Statfs_t C.struct_statfs - -type Flock_t C.struct_flock - -type Dirent C.struct_dirent - -type Fsid C.struct_fsid - -// File system limits - -const ( - PathMax = C.PATH_MAX -) - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Ptrace requests - -const ( - PTRACE_TRACEME = C.PT_TRACE_ME - PTRACE_CONT = C.PT_CONTINUE - PTRACE_KILL = C.PT_KILL -) - -// Events (kqueue, kevent) - -type Kevent_t C.struct_kevent - -// Select - -type FdSet C.fd_set - -// Routing and interface messages - -const ( - SizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfData = C.sizeof_struct_if_data - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr - SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type IfMsghdr C.struct_if_msghdr - -type IfData C.struct_if_data - -type IfaMsghdr C.struct_ifa_msghdr - -type IfmaMsghdr C.struct_ifma_msghdr - -type IfAnnounceMsghdr C.struct_if_announcemsghdr - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfHdr C.struct_bpf_hdr - -// Terminal handling - -type Termios C.struct_termios - -type Winsize C.struct_winsize - -// fchmodat-like syscalls. - -const ( - AT_FDCWD = C.AT_FDCWD - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW -) - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) - -// Uname - -type Utsname C.struct_utsname diff --git a/vendor/golang.org/x/sys/unix/types_freebsd.go b/vendor/golang.org/x/sys/unix/types_freebsd.go deleted file mode 100644 index 4eb02cd..0000000 --- a/vendor/golang.org/x/sys/unix/types_freebsd.go +++ /dev/null @@ -1,402 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define KERNEL -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -// This structure is a duplicate of stat on FreeBSD 8-STABLE. -// See /usr/include/sys/stat.h. -struct stat8 { -#undef st_atimespec st_atim -#undef st_mtimespec st_mtim -#undef st_ctimespec st_ctim -#undef st_birthtimespec st_birthtim - __dev_t st_dev; - ino_t st_ino; - mode_t st_mode; - nlink_t st_nlink; - uid_t st_uid; - gid_t st_gid; - __dev_t st_rdev; -#if __BSD_VISIBLE - struct timespec st_atimespec; - struct timespec st_mtimespec; - struct timespec st_ctimespec; -#else - time_t st_atime; - long __st_atimensec; - time_t st_mtime; - long __st_mtimensec; - time_t st_ctime; - long __st_ctimensec; -#endif - off_t st_size; - blkcnt_t st_blocks; - blksize_t st_blksize; - fflags_t st_flags; - __uint32_t st_gen; - __int32_t st_lspare; -#if __BSD_VISIBLE - struct timespec st_birthtimespec; - unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); - unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec)); -#else - time_t st_birthtime; - long st_birthtimensec; - unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); - unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); -#endif -}; - -// This structure is a duplicate of if_data on FreeBSD 8-STABLE. -// See /usr/include/net/if.h. -struct if_data8 { - u_char ifi_type; - u_char ifi_physical; - u_char ifi_addrlen; - u_char ifi_hdrlen; - u_char ifi_link_state; - u_char ifi_spare_char1; - u_char ifi_spare_char2; - u_char ifi_datalen; - u_long ifi_mtu; - u_long ifi_metric; - u_long ifi_baudrate; - u_long ifi_ipackets; - u_long ifi_ierrors; - u_long ifi_opackets; - u_long ifi_oerrors; - u_long ifi_collisions; - u_long ifi_ibytes; - u_long ifi_obytes; - u_long ifi_imcasts; - u_long ifi_omcasts; - u_long ifi_iqdrops; - u_long ifi_noproto; - u_long ifi_hwassist; -// FIXME: these are now unions, so maybe need to change definitions? -#undef ifi_epoch - time_t ifi_epoch; -#undef ifi_lastchange - struct timeval ifi_lastchange; -}; - -// This structure is a duplicate of if_msghdr on FreeBSD 8-STABLE. -// See /usr/include/net/if.h. -struct if_msghdr8 { - u_short ifm_msglen; - u_char ifm_version; - u_char ifm_type; - int ifm_addrs; - int ifm_flags; - u_short ifm_index; - struct if_data8 ifm_data; -}; -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -const ( // Directory mode bits - S_IFMT = C.S_IFMT - S_IFIFO = C.S_IFIFO - S_IFCHR = C.S_IFCHR - S_IFDIR = C.S_IFDIR - S_IFBLK = C.S_IFBLK - S_IFREG = C.S_IFREG - S_IFLNK = C.S_IFLNK - S_IFSOCK = C.S_IFSOCK - S_ISUID = C.S_ISUID - S_ISGID = C.S_ISGID - S_ISVTX = C.S_ISVTX - S_IRUSR = C.S_IRUSR - S_IWUSR = C.S_IWUSR - S_IXUSR = C.S_IXUSR -) - -type Stat_t C.struct_stat8 - -type Statfs_t C.struct_statfs - -type Flock_t C.struct_flock - -type Dirent C.struct_dirent - -type Fsid C.struct_fsid - -// File system limits - -const ( - PathMax = C.PATH_MAX -) - -// Advice to Fadvise - -const ( - FADV_NORMAL = C.POSIX_FADV_NORMAL - FADV_RANDOM = C.POSIX_FADV_RANDOM - FADV_SEQUENTIAL = C.POSIX_FADV_SEQUENTIAL - FADV_WILLNEED = C.POSIX_FADV_WILLNEED - FADV_DONTNEED = C.POSIX_FADV_DONTNEED - FADV_NOREUSE = C.POSIX_FADV_NOREUSE -) - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPMreqn C.struct_ip_mreqn - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPMreqn = C.sizeof_struct_ip_mreqn - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Ptrace requests - -const ( - PTRACE_TRACEME = C.PT_TRACE_ME - PTRACE_CONT = C.PT_CONTINUE - PTRACE_KILL = C.PT_KILL -) - -// Events (kqueue, kevent) - -type Kevent_t C.struct_kevent - -// Select - -type FdSet C.fd_set - -// Routing and interface messages - -const ( - sizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfMsghdr = C.sizeof_struct_if_msghdr8 - sizeofIfData = C.sizeof_struct_if_data - SizeofIfData = C.sizeof_struct_if_data8 - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr - SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type ifMsghdr C.struct_if_msghdr - -type IfMsghdr C.struct_if_msghdr8 - -type ifData C.struct_if_data - -type IfData C.struct_if_data8 - -type IfaMsghdr C.struct_ifa_msghdr - -type IfmaMsghdr C.struct_ifma_msghdr - -type IfAnnounceMsghdr C.struct_if_announcemsghdr - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfZbuf = C.sizeof_struct_bpf_zbuf - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr - SizeofBpfZbufHeader = C.sizeof_struct_bpf_zbuf_header -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfZbuf C.struct_bpf_zbuf - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfHdr C.struct_bpf_hdr - -type BpfZbufHeader C.struct_bpf_zbuf_header - -// Terminal handling - -type Termios C.struct_termios - -type Winsize C.struct_winsize - -// fchmodat-like syscalls. - -const ( - AT_FDCWD = C.AT_FDCWD - AT_REMOVEDIR = C.AT_REMOVEDIR - AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW -) - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLINIGNEOF = C.POLLINIGNEOF - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) - -// Capabilities - -type CapRights C.struct_cap_rights - -// Uname - -type Utsname C.struct_utsname diff --git a/vendor/golang.org/x/sys/unix/types_netbsd.go b/vendor/golang.org/x/sys/unix/types_netbsd.go deleted file mode 100644 index 10aa9b3..0000000 --- a/vendor/golang.org/x/sys/unix/types_netbsd.go +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define KERNEL -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -type Stat_t C.struct_stat - -type Statfs_t C.struct_statfs - -type Flock_t C.struct_flock - -type Dirent C.struct_dirent - -type Fsid C.fsid_t - -// File system limits - -const ( - PathMax = C.PATH_MAX -) - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Ptrace requests - -const ( - PTRACE_TRACEME = C.PT_TRACE_ME - PTRACE_CONT = C.PT_CONTINUE - PTRACE_KILL = C.PT_KILL -) - -// Events (kqueue, kevent) - -type Kevent_t C.struct_kevent - -// Select - -type FdSet C.fd_set - -// Routing and interface messages - -const ( - SizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfData = C.sizeof_struct_if_data - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type IfMsghdr C.struct_if_msghdr - -type IfData C.struct_if_data - -type IfaMsghdr C.struct_ifa_msghdr - -type IfAnnounceMsghdr C.struct_if_announcemsghdr - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -type Mclpool C.struct_mclpool - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfHdr C.struct_bpf_hdr - -type BpfTimeval C.struct_bpf_timeval - -// Terminal handling - -type Termios C.struct_termios - -type Winsize C.struct_winsize - -// fchmodat-like syscalls. - -const ( - AT_FDCWD = C.AT_FDCWD - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW -) - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) - -// Sysctl - -type Sysctlnode C.struct_sysctlnode - -// Uname - -type Utsname C.struct_utsname diff --git a/vendor/golang.org/x/sys/unix/types_openbsd.go b/vendor/golang.org/x/sys/unix/types_openbsd.go deleted file mode 100644 index 649e559..0000000 --- a/vendor/golang.org/x/sys/unix/types_openbsd.go +++ /dev/null @@ -1,282 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define KERNEL -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -const ( // Directory mode bits - S_IFMT = C.S_IFMT - S_IFIFO = C.S_IFIFO - S_IFCHR = C.S_IFCHR - S_IFDIR = C.S_IFDIR - S_IFBLK = C.S_IFBLK - S_IFREG = C.S_IFREG - S_IFLNK = C.S_IFLNK - S_IFSOCK = C.S_IFSOCK - S_ISUID = C.S_ISUID - S_ISGID = C.S_ISGID - S_ISVTX = C.S_ISVTX - S_IRUSR = C.S_IRUSR - S_IWUSR = C.S_IWUSR - S_IXUSR = C.S_IXUSR -) - -type Stat_t C.struct_stat - -type Statfs_t C.struct_statfs - -type Flock_t C.struct_flock - -type Dirent C.struct_dirent - -type Fsid C.fsid_t - -// File system limits - -const ( - PathMax = C.PATH_MAX -) - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Ptrace requests - -const ( - PTRACE_TRACEME = C.PT_TRACE_ME - PTRACE_CONT = C.PT_CONTINUE - PTRACE_KILL = C.PT_KILL -) - -// Events (kqueue, kevent) - -type Kevent_t C.struct_kevent - -// Select - -type FdSet C.fd_set - -// Routing and interface messages - -const ( - SizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfData = C.sizeof_struct_if_data - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type IfMsghdr C.struct_if_msghdr - -type IfData C.struct_if_data - -type IfaMsghdr C.struct_ifa_msghdr - -type IfAnnounceMsghdr C.struct_if_announcemsghdr - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -type Mclpool C.struct_mclpool - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfHdr C.struct_bpf_hdr - -type BpfTimeval C.struct_bpf_timeval - -// Terminal handling - -type Termios C.struct_termios - -type Winsize C.struct_winsize - -// fchmodat-like syscalls. - -const ( - AT_FDCWD = C.AT_FDCWD - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW -) - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) - -// Uname - -type Utsname C.struct_utsname diff --git a/vendor/golang.org/x/sys/unix/types_solaris.go b/vendor/golang.org/x/sys/unix/types_solaris.go deleted file mode 100644 index f777155..0000000 --- a/vendor/golang.org/x/sys/unix/types_solaris.go +++ /dev/null @@ -1,283 +0,0 @@ -// Copyright 2009 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. - -// +build ignore - -/* -Input to cgo -godefs. See README.md -*/ - -// +godefs map struct_in_addr [4]byte /* in_addr */ -// +godefs map struct_in6_addr [16]byte /* in6_addr */ - -package unix - -/* -#define KERNEL -// These defines ensure that builds done on newer versions of Solaris are -// backwards-compatible with older versions of Solaris and -// OpenSolaris-based derivatives. -#define __USE_SUNOS_SOCKETS__ // msghdr -#define __USE_LEGACY_PROTOTYPES__ // iovec -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -enum { - sizeofPtr = sizeof(void*), -}; - -union sockaddr_all { - struct sockaddr s1; // this one gets used for fields - struct sockaddr_in s2; // these pad it out - struct sockaddr_in6 s3; - struct sockaddr_un s4; - struct sockaddr_dl s5; -}; - -struct sockaddr_any { - struct sockaddr addr; - char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; -}; - -*/ -import "C" - -// Machine characteristics; for internal use. - -const ( - sizeofPtr = C.sizeofPtr - sizeofShort = C.sizeof_short - sizeofInt = C.sizeof_int - sizeofLong = C.sizeof_long - sizeofLongLong = C.sizeof_longlong - PathMax = C.PATH_MAX - MaxHostNameLen = C.MAXHOSTNAMELEN -) - -// Basic types - -type ( - _C_short C.short - _C_int C.int - _C_long C.long - _C_long_long C.longlong -) - -// Time - -type Timespec C.struct_timespec - -type Timeval C.struct_timeval - -type Timeval32 C.struct_timeval32 - -type Tms C.struct_tms - -type Utimbuf C.struct_utimbuf - -// Processes - -type Rusage C.struct_rusage - -type Rlimit C.struct_rlimit - -type _Gid_t C.gid_t - -// Files - -const ( // Directory mode bits - S_IFMT = C.S_IFMT - S_IFIFO = C.S_IFIFO - S_IFCHR = C.S_IFCHR - S_IFDIR = C.S_IFDIR - S_IFBLK = C.S_IFBLK - S_IFREG = C.S_IFREG - S_IFLNK = C.S_IFLNK - S_IFSOCK = C.S_IFSOCK - S_ISUID = C.S_ISUID - S_ISGID = C.S_ISGID - S_ISVTX = C.S_ISVTX - S_IRUSR = C.S_IRUSR - S_IWUSR = C.S_IWUSR - S_IXUSR = C.S_IXUSR -) - -type Stat_t C.struct_stat - -type Flock_t C.struct_flock - -type Dirent C.struct_dirent - -// Filesystems - -type _Fsblkcnt_t C.fsblkcnt_t - -type Statvfs_t C.struct_statvfs - -// Sockets - -type RawSockaddrInet4 C.struct_sockaddr_in - -type RawSockaddrInet6 C.struct_sockaddr_in6 - -type RawSockaddrUnix C.struct_sockaddr_un - -type RawSockaddrDatalink C.struct_sockaddr_dl - -type RawSockaddr C.struct_sockaddr - -type RawSockaddrAny C.struct_sockaddr_any - -type _Socklen C.socklen_t - -type Linger C.struct_linger - -type Iovec C.struct_iovec - -type IPMreq C.struct_ip_mreq - -type IPv6Mreq C.struct_ipv6_mreq - -type Msghdr C.struct_msghdr - -type Cmsghdr C.struct_cmsghdr - -type Inet6Pktinfo C.struct_in6_pktinfo - -type IPv6MTUInfo C.struct_ip6_mtuinfo - -type ICMPv6Filter C.struct_icmp6_filter - -const ( - SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in - SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 - SizeofSockaddrAny = C.sizeof_struct_sockaddr_any - SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un - SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl - SizeofLinger = C.sizeof_struct_linger - SizeofIPMreq = C.sizeof_struct_ip_mreq - SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq - SizeofMsghdr = C.sizeof_struct_msghdr - SizeofCmsghdr = C.sizeof_struct_cmsghdr - SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo - SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo - SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter -) - -// Select - -type FdSet C.fd_set - -// Misc - -type Utsname C.struct_utsname - -type Ustat_t C.struct_ustat - -const ( - AT_FDCWD = C.AT_FDCWD - AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW - AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW - AT_REMOVEDIR = C.AT_REMOVEDIR - AT_EACCESS = C.AT_EACCESS -) - -// Routing and interface messages - -const ( - SizeofIfMsghdr = C.sizeof_struct_if_msghdr - SizeofIfData = C.sizeof_struct_if_data - SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr - SizeofRtMsghdr = C.sizeof_struct_rt_msghdr - SizeofRtMetrics = C.sizeof_struct_rt_metrics -) - -type IfMsghdr C.struct_if_msghdr - -type IfData C.struct_if_data - -type IfaMsghdr C.struct_ifa_msghdr - -type RtMsghdr C.struct_rt_msghdr - -type RtMetrics C.struct_rt_metrics - -// Berkeley packet filter - -const ( - SizeofBpfVersion = C.sizeof_struct_bpf_version - SizeofBpfStat = C.sizeof_struct_bpf_stat - SizeofBpfProgram = C.sizeof_struct_bpf_program - SizeofBpfInsn = C.sizeof_struct_bpf_insn - SizeofBpfHdr = C.sizeof_struct_bpf_hdr -) - -type BpfVersion C.struct_bpf_version - -type BpfStat C.struct_bpf_stat - -type BpfProgram C.struct_bpf_program - -type BpfInsn C.struct_bpf_insn - -type BpfTimeval C.struct_bpf_timeval - -type BpfHdr C.struct_bpf_hdr - -// Terminal handling - -type Termios C.struct_termios - -type Termio C.struct_termio - -type Winsize C.struct_winsize - -// poll - -type PollFd C.struct_pollfd - -const ( - POLLERR = C.POLLERR - POLLHUP = C.POLLHUP - POLLIN = C.POLLIN - POLLNVAL = C.POLLNVAL - POLLOUT = C.POLLOUT - POLLPRI = C.POLLPRI - POLLRDBAND = C.POLLRDBAND - POLLRDNORM = C.POLLRDNORM - POLLWRBAND = C.POLLWRBAND - POLLWRNORM = C.POLLWRNORM -) diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go deleted file mode 100644 index dcba884..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_386.go +++ /dev/null @@ -1,1769 +0,0 @@ -// mkerrors.sh -m32 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,darwin - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m32 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1c - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1e - AF_IPX = 0x17 - AF_ISDN = 0x1c - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x28 - AF_NATM = 0x1f - AF_NDRV = 0x1b - AF_NETBIOS = 0x21 - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PPP = 0x22 - AF_PUP = 0x4 - AF_RESERVED_36 = 0x24 - AF_ROUTE = 0x11 - AF_SIP = 0x18 - AF_SNA = 0xb - AF_SYSTEM = 0x20 - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_UTUN = 0x26 - ALTWERASE = 0x200 - ATTR_BIT_MAP_COUNT = 0x5 - ATTR_CMN_ACCESSMASK = 0x20000 - ATTR_CMN_ACCTIME = 0x1000 - ATTR_CMN_ADDEDTIME = 0x10000000 - ATTR_CMN_BKUPTIME = 0x2000 - ATTR_CMN_CHGTIME = 0x800 - ATTR_CMN_CRTIME = 0x200 - ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 - ATTR_CMN_DEVID = 0x2 - ATTR_CMN_DOCUMENT_ID = 0x100000 - ATTR_CMN_ERROR = 0x20000000 - ATTR_CMN_EXTENDED_SECURITY = 0x400000 - ATTR_CMN_FILEID = 0x2000000 - ATTR_CMN_FLAGS = 0x40000 - ATTR_CMN_FNDRINFO = 0x4000 - ATTR_CMN_FSID = 0x4 - ATTR_CMN_FULLPATH = 0x8000000 - ATTR_CMN_GEN_COUNT = 0x80000 - ATTR_CMN_GRPID = 0x10000 - ATTR_CMN_GRPUUID = 0x1000000 - ATTR_CMN_MODTIME = 0x400 - ATTR_CMN_NAME = 0x1 - ATTR_CMN_NAMEDATTRCOUNT = 0x80000 - ATTR_CMN_NAMEDATTRLIST = 0x100000 - ATTR_CMN_OBJID = 0x20 - ATTR_CMN_OBJPERMANENTID = 0x40 - ATTR_CMN_OBJTAG = 0x10 - ATTR_CMN_OBJTYPE = 0x8 - ATTR_CMN_OWNERID = 0x8000 - ATTR_CMN_PARENTID = 0x4000000 - ATTR_CMN_PAROBJID = 0x80 - ATTR_CMN_RETURNED_ATTRS = 0x80000000 - ATTR_CMN_SCRIPT = 0x100 - ATTR_CMN_SETMASK = 0x41c7ff00 - ATTR_CMN_USERACCESS = 0x200000 - ATTR_CMN_UUID = 0x800000 - ATTR_CMN_VALIDMASK = 0xffffffff - ATTR_CMN_VOLSETMASK = 0x6700 - ATTR_FILE_ALLOCSIZE = 0x4 - ATTR_FILE_CLUMPSIZE = 0x10 - ATTR_FILE_DATAALLOCSIZE = 0x400 - ATTR_FILE_DATAEXTENTS = 0x800 - ATTR_FILE_DATALENGTH = 0x200 - ATTR_FILE_DEVTYPE = 0x20 - ATTR_FILE_FILETYPE = 0x40 - ATTR_FILE_FORKCOUNT = 0x80 - ATTR_FILE_FORKLIST = 0x100 - ATTR_FILE_IOBLOCKSIZE = 0x8 - ATTR_FILE_LINKCOUNT = 0x1 - ATTR_FILE_RSRCALLOCSIZE = 0x2000 - ATTR_FILE_RSRCEXTENTS = 0x4000 - ATTR_FILE_RSRCLENGTH = 0x1000 - ATTR_FILE_SETMASK = 0x20 - ATTR_FILE_TOTALSIZE = 0x2 - ATTR_FILE_VALIDMASK = 0x37ff - ATTR_VOL_ALLOCATIONCLUMP = 0x40 - ATTR_VOL_ATTRIBUTES = 0x40000000 - ATTR_VOL_CAPABILITIES = 0x20000 - ATTR_VOL_DIRCOUNT = 0x400 - ATTR_VOL_ENCODINGSUSED = 0x10000 - ATTR_VOL_FILECOUNT = 0x200 - ATTR_VOL_FSTYPE = 0x1 - ATTR_VOL_INFO = 0x80000000 - ATTR_VOL_IOBLOCKSIZE = 0x80 - ATTR_VOL_MAXOBJCOUNT = 0x800 - ATTR_VOL_MINALLOCATION = 0x20 - ATTR_VOL_MOUNTEDDEVICE = 0x8000 - ATTR_VOL_MOUNTFLAGS = 0x4000 - ATTR_VOL_MOUNTPOINT = 0x1000 - ATTR_VOL_NAME = 0x2000 - ATTR_VOL_OBJCOUNT = 0x100 - ATTR_VOL_QUOTA_SIZE = 0x10000000 - ATTR_VOL_RESERVED_SIZE = 0x20000000 - ATTR_VOL_SETMASK = 0x80002000 - ATTR_VOL_SIGNATURE = 0x2 - ATTR_VOL_SIZE = 0x4 - ATTR_VOL_SPACEAVAIL = 0x10 - ATTR_VOL_SPACEFREE = 0x8 - ATTR_VOL_UUID = 0x40000 - ATTR_VOL_VALIDMASK = 0xf007ffff - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc00c4279 - BIOCGETIF = 0x4020426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4008426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044278 - BIOCSETF = 0x80084267 - BIOCSETFNR = 0x8008427e - BIOCSETIF = 0x8020426c - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8008426d - BIOCSSEESENT = 0x80044277 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_MONOTONIC_RAW_APPROX = 0x5 - CLOCK_PROCESS_CPUTIME_ID = 0xc - CLOCK_REALTIME = 0x0 - CLOCK_THREAD_CPUTIME_ID = 0x10 - CLOCK_UPTIME_RAW = 0x8 - CLOCK_UPTIME_RAW_APPROX = 0x9 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0xf5 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_EXCEPT = -0xf - EVFILT_FS = -0x9 - EVFILT_MACHPORT = -0x8 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xf - EVFILT_THREADMARKER = 0xf - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xa - EVFILT_VM = -0xc - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DISPATCH2 = 0x180 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG0 = 0x1000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_OOBAND = 0x2000 - EV_POLL = 0x1000 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EV_UDATA_SPECIFIC = 0x100 - EV_VANISHED = 0x200 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FSOPT_ATTR_CMN_EXTENDED = 0x20 - FSOPT_NOFOLLOW = 0x1 - FSOPT_NOINMEMUPDATE = 0x2 - FSOPT_PACK_INVAL_ATTRS = 0x8 - FSOPT_REPORT_FULLSIZE = 0x4 - F_ADDFILESIGS = 0x3d - F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 - F_ADDFILESIGS_RETURN = 0x61 - F_ADDSIGS = 0x3b - F_ALLOCATEALL = 0x4 - F_ALLOCATECONTIG = 0x2 - F_BARRIERFSYNC = 0x55 - F_CHECK_LV = 0x62 - F_CHKCLEAN = 0x29 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x43 - F_FINDSIGS = 0x4e - F_FLUSH_DATA = 0x28 - F_FREEZE_FS = 0x35 - F_FULLFSYNC = 0x33 - F_GETCODEDIR = 0x48 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETLKPID = 0x42 - F_GETNOSIGPIPE = 0x4a - F_GETOWN = 0x5 - F_GETPATH = 0x32 - F_GETPATH_MTMINFO = 0x47 - F_GETPROTECTIONCLASS = 0x3f - F_GETPROTECTIONLEVEL = 0x4d - F_GLOBAL_NOCACHE = 0x37 - F_LOG2PHYS = 0x31 - F_LOG2PHYS_EXT = 0x41 - F_NOCACHE = 0x30 - F_NODIRECT = 0x3e - F_OK = 0x0 - F_PATHPKG_CHECK = 0x34 - F_PEOFPOSMODE = 0x3 - F_PREALLOCATE = 0x2a - F_PUNCHHOLE = 0x63 - F_RDADVISE = 0x2c - F_RDAHEAD = 0x2d - F_RDLCK = 0x1 - F_SETBACKINGSTORE = 0x46 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETLKWTIMEOUT = 0xa - F_SETNOSIGPIPE = 0x49 - F_SETOWN = 0x6 - F_SETPROTECTIONCLASS = 0x40 - F_SETSIZE = 0x2b - F_SINGLE_WRITER = 0x4c - F_THAW_FS = 0x36 - F_TRANSCODEKEY = 0x4b - F_TRIM_ACTIVE_FILE = 0x64 - F_UNLCK = 0x2 - F_VOLPOSMODE = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_AAL5 = 0x31 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ATM = 0x25 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_CELLULAR = 0xff - IFT_CEPT = 0x13 - IFT_DS3 = 0x1e - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_ETHER = 0x6 - IFT_FAITH = 0x38 - IFT_FDDI = 0xf - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_GIF = 0x37 - IFT_HDH1822 = 0x3 - IFT_HIPPI = 0x2f - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IEEE1394 = 0x90 - IFT_IEEE8023ADLAG = 0x88 - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88026 = 0xa - IFT_L2VLAN = 0x87 - IFT_LAPB = 0x10 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_NSIP = 0x1b - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PDP = 0xff - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PKTAP = 0xfe - IFT_PPP = 0x17 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PTPSERIAL = 0x16 - IFT_RS232 = 0x21 - IFT_SDLC = 0x11 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_STARLAN = 0xb - IFT_STF = 0x39 - IFT_T1 = 0x12 - IFT_ULTRA = 0x1d - IFT_V35 = 0x2d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LINKLOCALNETNUM = 0xa9fe0000 - IN_LOOPBACKNET = 0x7f - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0xfe - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MEAS = 0x13 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEP = 0x21 - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_2292DSTOPTS = 0x17 - IPV6_2292HOPLIMIT = 0x14 - IPV6_2292HOPOPTS = 0x16 - IPV6_2292NEXTHOP = 0x15 - IPV6_2292PKTINFO = 0x13 - IPV6_2292PKTOPTIONS = 0x19 - IPV6_2292RTHDR = 0x18 - IPV6_BINDV6ONLY = 0x1b - IPV6_BOUND_IF = 0x7d - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOW_ECN_MASK = 0x300 - IPV6_FRAGTTL = 0x3c - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVTCLASS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x24 - IPV6_UNICAST_HOPS = 0x4 - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BLOCK_SOURCE = 0x48 - IP_BOUND_IF = 0x19 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FAITH = 0x16 - IP_FW_ADD = 0x28 - IP_FW_DEL = 0x29 - IP_FW_FLUSH = 0x2a - IP_FW_GET = 0x2c - IP_FW_RESETLOG = 0x2d - IP_FW_ZERO = 0x2b - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MF = 0x2000 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_IFINDEX = 0x42 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_NAT__XXX = 0x37 - IP_OFFMASK = 0x1fff - IP_OLD_FW_ADD = 0x32 - IP_OLD_FW_DEL = 0x33 - IP_OLD_FW_FLUSH = 0x34 - IP_OLD_FW_GET = 0x36 - IP_OLD_FW_RESETLOG = 0x38 - IP_OLD_FW_ZERO = 0x35 - IP_OPTIONS = 0x1 - IP_PKTINFO = 0x1a - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVPKTINFO = 0x1a - IP_RECVRETOPTS = 0x6 - IP_RECVTOS = 0x1b - IP_RECVTTL = 0x18 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_STRIPHDR = 0x17 - IP_TOS = 0x3 - IP_TRAFFIC_MGT_BACKGROUND = 0x41 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_CAN_REUSE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_FREE_REUSABLE = 0x7 - MADV_FREE_REUSE = 0x8 - MADV_NORMAL = 0x0 - MADV_PAGEOUT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MADV_ZERO_WIRED_PAGES = 0x6 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_JIT = 0x800 - MAP_NOCACHE = 0x400 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_RESERVED0080 = 0x80 - MAP_RESILIENT_CODESIGN = 0x2000 - MAP_RESILIENT_MEDIA = 0x4000 - MAP_SHARED = 0x1 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x400000 - MNT_CMDFLAGS = 0xf0000 - MNT_CPROTECT = 0x80 - MNT_DEFWRITE = 0x2000000 - MNT_DONTBROWSE = 0x100000 - MNT_DOVOLFS = 0x8000 - MNT_DWAIT = 0x4 - MNT_EXPORTED = 0x100 - MNT_FORCE = 0x80000 - MNT_IGNORE_OWNERSHIP = 0x200000 - MNT_JOURNALED = 0x800000 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NOATIME = 0x10000000 - MNT_NOBLOCK = 0x20000 - MNT_NODEV = 0x10 - MNT_NOEXEC = 0x4 - MNT_NOSUID = 0x8 - MNT_NOUSERXATTR = 0x1000000 - MNT_NOWAIT = 0x2 - MNT_QUARANTINE = 0x400 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UNKNOWNPERMISSIONS = 0x200000 - MNT_UPDATE = 0x10000 - MNT_VISFLAGMASK = 0x17f0f5ff - MNT_WAIT = 0x1 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_FLUSH = 0x400 - MSG_HAVEMORE = 0x2000 - MSG_HOLD = 0x800 - MSG_NEEDSA = 0x10000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_RCVMORE = 0x4000 - MSG_SEND = 0x1000 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITSTREAM = 0x200 - MS_ASYNC = 0x1 - MS_DEACTIVATE = 0x8 - MS_INVALIDATE = 0x2 - MS_KILLPAGES = 0x4 - MS_SYNC = 0x10 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_DUMP2 = 0x7 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLIST2 = 0x6 - NET_RT_MAXID = 0xa - NET_RT_STAT = 0x4 - NET_RT_TRASH = 0x5 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLDLY = 0x300 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ABSOLUTE = 0x8 - NOTE_ATTRIB = 0x8 - NOTE_BACKGROUND = 0x40 - NOTE_CHILD = 0x4 - NOTE_CRITICAL = 0x20 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXITSTATUS = 0x4000000 - NOTE_EXIT_CSERROR = 0x40000 - NOTE_EXIT_DECRYPTFAIL = 0x10000 - NOTE_EXIT_DETAIL = 0x2000000 - NOTE_EXIT_DETAIL_MASK = 0x70000 - NOTE_EXIT_MEMORY = 0x20000 - NOTE_EXIT_REPARENTED = 0x80000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FORK = 0x40000000 - NOTE_FUNLOCK = 0x100 - NOTE_LEEWAY = 0x10 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MACH_CONTINUOUS_TIME = 0x80 - NOTE_NONE = 0x80 - NOTE_NSECONDS = 0x4 - NOTE_OOB = 0x2 - NOTE_PCTRLMASK = -0x100000 - NOTE_PDATAMASK = 0xfffff - NOTE_REAP = 0x10000000 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_SIGNAL = 0x8000000 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x2 - NOTE_VM_ERROR = 0x10000000 - NOTE_VM_PRESSURE = 0x80000000 - NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 - NOTE_VM_PRESSURE_TERMINATE = 0x40000000 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFDEL = 0x20000 - OFILL = 0x80 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_ALERT = 0x20000000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x1000000 - O_CREAT = 0x200 - O_DIRECTORY = 0x100000 - O_DP_GETRAWENCRYPTED = 0x1 - O_DP_GETRAWUNENCRYPTED = 0x2 - O_DSYNC = 0x400000 - O_EVTONLY = 0x8000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x20000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_POPUP = 0x80000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYMLINK = 0x200000 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PT_ATTACH = 0xa - PT_ATTACHEXC = 0xe - PT_CONTINUE = 0x7 - PT_DENY_ATTACH = 0x1f - PT_DETACH = 0xb - PT_FIRSTMACH = 0x20 - PT_FORCEQUOTA = 0x1e - PT_KILL = 0x8 - PT_READ_D = 0x2 - PT_READ_I = 0x1 - PT_READ_U = 0x3 - PT_SIGEXC = 0xc - PT_STEP = 0x9 - PT_THUPDATE = 0xd - PT_TRACE_ME = 0x0 - PT_WRITE_D = 0x5 - PT_WRITE_I = 0x4 - PT_WRITE_U = 0x6 - RLIMIT_AS = 0x5 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_CPU_USAGE_MONITOR = 0x2 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONING = 0x100 - RTF_CONDEMNED = 0x2000000 - RTF_DELCLONE = 0x80 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_IFREF = 0x4000000 - RTF_IFSCOPE = 0x1000000 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_NOIFREF = 0x2000 - RTF_PINNED = 0x100000 - RTF_PRCLONING = 0x10000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_PROXY = 0x8000000 - RTF_REJECT = 0x8 - RTF_ROUTER = 0x10000000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_WASCLONED = 0x20000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_GET2 = 0x14 - RTM_IFINFO = 0xe - RTM_IFINFO2 = 0x12 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_NEWMADDR2 = 0x13 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SCM_TIMESTAMP_MONOTONIC = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCARPIPLL = 0xc0206928 - SIOCATMARK = 0x40047307 - SIOCAUTOADDR = 0xc0206926 - SIOCAUTONETMASK = 0x80206927 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFPHYADDR = 0x80206941 - SIOCGDRVSPEC = 0xc01c697b - SIOCGETVLAN = 0xc020697f - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFALTMTU = 0xc0206948 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBOND = 0xc0206947 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020695b - SIOCGIFCONF = 0xc0086924 - SIOCGIFDEVMTU = 0xc0206944 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFKPI = 0xc0206987 - SIOCGIFMAC = 0xc0206982 - SIOCGIFMEDIA = 0xc0286938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206940 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc020693f - SIOCGIFSTATUS = 0xc331693d - SIOCGIFVLAN = 0xc020697f - SIOCGIFWAKEFLAGS = 0xc0206988 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCIFCREATE = 0xc0206978 - SIOCIFCREATE2 = 0xc020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc00c6981 - SIOCRSLVMULTI = 0xc008693b - SIOCSDRVSPEC = 0x801c697b - SIOCSETVLAN = 0x8020697e - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFALTMTU = 0x80206945 - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBOND = 0x80206946 - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020695a - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFKPI = 0x80206986 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206983 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x8040693e - SIOCSIFPHYS = 0x80206936 - SIOCSIFVLAN = 0x8020697e - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_DONTTRUNC = 0x2000 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1010 - SO_LINGER = 0x80 - SO_LINGER_SEC = 0x1080 - SO_NETSVC_MARKING_LEVEL = 0x1119 - SO_NET_SERVICE_TYPE = 0x1116 - SO_NKE = 0x1021 - SO_NOADDRERR = 0x1023 - SO_NOSIGPIPE = 0x1022 - SO_NOTIFYCONFLICT = 0x1026 - SO_NP_EXTENSIONS = 0x1083 - SO_NREAD = 0x1020 - SO_NUMRCVPKT = 0x1112 - SO_NWRITE = 0x1024 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1011 - SO_RANDOMPORT = 0x1082 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_REUSESHAREUID = 0x1025 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TIMESTAMP_MONOTONIC = 0x800 - SO_TYPE = 0x1008 - SO_UPCALLCLOSEWAIT = 0x1027 - SO_USELOOPBACK = 0x40 - SO_WANTMORE = 0x4000 - SO_WANTOOBFLAG = 0x8000 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0x4 - TABDLY = 0xc04 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CONNECTIONTIMEOUT = 0x20 - TCP_CONNECTION_INFO = 0x106 - TCP_ENABLE_ECN = 0x104 - TCP_FASTOPEN = 0x105 - TCP_KEEPALIVE = 0x10 - TCP_KEEPCNT = 0x102 - TCP_KEEPINTVL = 0x101 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MINMSS = 0xd8 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_NOTSENT_LOWAT = 0x201 - TCP_RXT_CONNDROPTIME = 0x80 - TCP_RXT_FINDROP = 0x100 - TCP_SENDMOREACKS = 0x103 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40087458 - TIOCDRAIN = 0x2000745e - TIOCDSIMICROCODE = 0x20007455 - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGWINSZ = 0x40087468 - TIOCIXOFF = 0x20007480 - TIOCIXON = 0x20007481 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMODG = 0x40047403 - TIOCMODS = 0x80047404 - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTYGNAME = 0x40807453 - TIOCPTYGRANT = 0x20007454 - TIOCPTYUNLK = 0x20007452 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCONS = 0x20007463 - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2000745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40087459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VM_LOADAVG = 0x2 - VM_MACHFACTOR = 0x4 - VM_MAXID = 0x6 - VM_METER = 0x1 - VM_SWAPUSAGE = 0x5 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x10 - WCOREFLAG = 0x80 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOWAIT = 0x20 - WORDSIZE = 0x20 - WSTOPPED = 0x8 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADARCH = syscall.Errno(0x56) - EBADEXEC = syscall.Errno(0x55) - EBADF = syscall.Errno(0x9) - EBADMACHO = syscall.Errno(0x58) - EBADMSG = syscall.Errno(0x5e) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x59) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDEVERR = syscall.Errno(0x53) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x5a) - EILSEQ = syscall.Errno(0x5c) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x6a) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5f) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x60) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x61) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5b) - ENOPOLICY = syscall.Errno(0x67) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x62) - ENOSTR = syscall.Errno(0x63) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x68) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x66) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x69) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x64) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - EPWROFF = syscall.Errno(0x52) - EQFULL = syscall.Errno(0x6a) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHLIBVERS = syscall.Errno(0x57) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x65) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "resource busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "device power is off", - 83: "device error", - 84: "value too large to be stored in data type", - 85: "bad executable (or shared library)", - 86: "bad CPU type in executable", - 87: "shared library version mismatch", - 88: "malformed Mach-o file", - 89: "operation canceled", - 90: "identifier removed", - 91: "no message of desired type", - 92: "illegal byte sequence", - 93: "attribute not found", - 94: "bad message", - 95: "EMULTIHOP (Reserved)", - 96: "no message available on STREAM", - 97: "ENOLINK (Reserved)", - 98: "no STREAM resources", - 99: "not a STREAM", - 100: "protocol error", - 101: "STREAM ioctl timeout", - 102: "operation not supported on socket", - 103: "policy not found", - 104: "state not recoverable", - 105: "previous owner died", - 106: "interface output queue is full", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go deleted file mode 100644 index 1a51c96..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +++ /dev/null @@ -1,1769 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,darwin - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1c - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1e - AF_IPX = 0x17 - AF_ISDN = 0x1c - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x28 - AF_NATM = 0x1f - AF_NDRV = 0x1b - AF_NETBIOS = 0x21 - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PPP = 0x22 - AF_PUP = 0x4 - AF_RESERVED_36 = 0x24 - AF_ROUTE = 0x11 - AF_SIP = 0x18 - AF_SNA = 0xb - AF_SYSTEM = 0x20 - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_UTUN = 0x26 - ALTWERASE = 0x200 - ATTR_BIT_MAP_COUNT = 0x5 - ATTR_CMN_ACCESSMASK = 0x20000 - ATTR_CMN_ACCTIME = 0x1000 - ATTR_CMN_ADDEDTIME = 0x10000000 - ATTR_CMN_BKUPTIME = 0x2000 - ATTR_CMN_CHGTIME = 0x800 - ATTR_CMN_CRTIME = 0x200 - ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 - ATTR_CMN_DEVID = 0x2 - ATTR_CMN_DOCUMENT_ID = 0x100000 - ATTR_CMN_ERROR = 0x20000000 - ATTR_CMN_EXTENDED_SECURITY = 0x400000 - ATTR_CMN_FILEID = 0x2000000 - ATTR_CMN_FLAGS = 0x40000 - ATTR_CMN_FNDRINFO = 0x4000 - ATTR_CMN_FSID = 0x4 - ATTR_CMN_FULLPATH = 0x8000000 - ATTR_CMN_GEN_COUNT = 0x80000 - ATTR_CMN_GRPID = 0x10000 - ATTR_CMN_GRPUUID = 0x1000000 - ATTR_CMN_MODTIME = 0x400 - ATTR_CMN_NAME = 0x1 - ATTR_CMN_NAMEDATTRCOUNT = 0x80000 - ATTR_CMN_NAMEDATTRLIST = 0x100000 - ATTR_CMN_OBJID = 0x20 - ATTR_CMN_OBJPERMANENTID = 0x40 - ATTR_CMN_OBJTAG = 0x10 - ATTR_CMN_OBJTYPE = 0x8 - ATTR_CMN_OWNERID = 0x8000 - ATTR_CMN_PARENTID = 0x4000000 - ATTR_CMN_PAROBJID = 0x80 - ATTR_CMN_RETURNED_ATTRS = 0x80000000 - ATTR_CMN_SCRIPT = 0x100 - ATTR_CMN_SETMASK = 0x41c7ff00 - ATTR_CMN_USERACCESS = 0x200000 - ATTR_CMN_UUID = 0x800000 - ATTR_CMN_VALIDMASK = 0xffffffff - ATTR_CMN_VOLSETMASK = 0x6700 - ATTR_FILE_ALLOCSIZE = 0x4 - ATTR_FILE_CLUMPSIZE = 0x10 - ATTR_FILE_DATAALLOCSIZE = 0x400 - ATTR_FILE_DATAEXTENTS = 0x800 - ATTR_FILE_DATALENGTH = 0x200 - ATTR_FILE_DEVTYPE = 0x20 - ATTR_FILE_FILETYPE = 0x40 - ATTR_FILE_FORKCOUNT = 0x80 - ATTR_FILE_FORKLIST = 0x100 - ATTR_FILE_IOBLOCKSIZE = 0x8 - ATTR_FILE_LINKCOUNT = 0x1 - ATTR_FILE_RSRCALLOCSIZE = 0x2000 - ATTR_FILE_RSRCEXTENTS = 0x4000 - ATTR_FILE_RSRCLENGTH = 0x1000 - ATTR_FILE_SETMASK = 0x20 - ATTR_FILE_TOTALSIZE = 0x2 - ATTR_FILE_VALIDMASK = 0x37ff - ATTR_VOL_ALLOCATIONCLUMP = 0x40 - ATTR_VOL_ATTRIBUTES = 0x40000000 - ATTR_VOL_CAPABILITIES = 0x20000 - ATTR_VOL_DIRCOUNT = 0x400 - ATTR_VOL_ENCODINGSUSED = 0x10000 - ATTR_VOL_FILECOUNT = 0x200 - ATTR_VOL_FSTYPE = 0x1 - ATTR_VOL_INFO = 0x80000000 - ATTR_VOL_IOBLOCKSIZE = 0x80 - ATTR_VOL_MAXOBJCOUNT = 0x800 - ATTR_VOL_MINALLOCATION = 0x20 - ATTR_VOL_MOUNTEDDEVICE = 0x8000 - ATTR_VOL_MOUNTFLAGS = 0x4000 - ATTR_VOL_MOUNTPOINT = 0x1000 - ATTR_VOL_NAME = 0x2000 - ATTR_VOL_OBJCOUNT = 0x100 - ATTR_VOL_QUOTA_SIZE = 0x10000000 - ATTR_VOL_RESERVED_SIZE = 0x20000000 - ATTR_VOL_SETMASK = 0x80002000 - ATTR_VOL_SIGNATURE = 0x2 - ATTR_VOL_SIZE = 0x4 - ATTR_VOL_SPACEAVAIL = 0x10 - ATTR_VOL_SPACEFREE = 0x8 - ATTR_VOL_UUID = 0x40000 - ATTR_VOL_VALIDMASK = 0xf007ffff - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc00c4279 - BIOCGETIF = 0x4020426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044278 - BIOCSETF = 0x80104267 - BIOCSETFNR = 0x8010427e - BIOCSETIF = 0x8020426c - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_MONOTONIC_RAW_APPROX = 0x5 - CLOCK_PROCESS_CPUTIME_ID = 0xc - CLOCK_REALTIME = 0x0 - CLOCK_THREAD_CPUTIME_ID = 0x10 - CLOCK_UPTIME_RAW = 0x8 - CLOCK_UPTIME_RAW_APPROX = 0x9 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0xf5 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_EXCEPT = -0xf - EVFILT_FS = -0x9 - EVFILT_MACHPORT = -0x8 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xf - EVFILT_THREADMARKER = 0xf - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xa - EVFILT_VM = -0xc - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DISPATCH2 = 0x180 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG0 = 0x1000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_OOBAND = 0x2000 - EV_POLL = 0x1000 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EV_UDATA_SPECIFIC = 0x100 - EV_VANISHED = 0x200 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FSOPT_ATTR_CMN_EXTENDED = 0x20 - FSOPT_NOFOLLOW = 0x1 - FSOPT_NOINMEMUPDATE = 0x2 - FSOPT_PACK_INVAL_ATTRS = 0x8 - FSOPT_REPORT_FULLSIZE = 0x4 - F_ADDFILESIGS = 0x3d - F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 - F_ADDFILESIGS_RETURN = 0x61 - F_ADDSIGS = 0x3b - F_ALLOCATEALL = 0x4 - F_ALLOCATECONTIG = 0x2 - F_BARRIERFSYNC = 0x55 - F_CHECK_LV = 0x62 - F_CHKCLEAN = 0x29 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x43 - F_FINDSIGS = 0x4e - F_FLUSH_DATA = 0x28 - F_FREEZE_FS = 0x35 - F_FULLFSYNC = 0x33 - F_GETCODEDIR = 0x48 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETLKPID = 0x42 - F_GETNOSIGPIPE = 0x4a - F_GETOWN = 0x5 - F_GETPATH = 0x32 - F_GETPATH_MTMINFO = 0x47 - F_GETPROTECTIONCLASS = 0x3f - F_GETPROTECTIONLEVEL = 0x4d - F_GLOBAL_NOCACHE = 0x37 - F_LOG2PHYS = 0x31 - F_LOG2PHYS_EXT = 0x41 - F_NOCACHE = 0x30 - F_NODIRECT = 0x3e - F_OK = 0x0 - F_PATHPKG_CHECK = 0x34 - F_PEOFPOSMODE = 0x3 - F_PREALLOCATE = 0x2a - F_PUNCHHOLE = 0x63 - F_RDADVISE = 0x2c - F_RDAHEAD = 0x2d - F_RDLCK = 0x1 - F_SETBACKINGSTORE = 0x46 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETLKWTIMEOUT = 0xa - F_SETNOSIGPIPE = 0x49 - F_SETOWN = 0x6 - F_SETPROTECTIONCLASS = 0x40 - F_SETSIZE = 0x2b - F_SINGLE_WRITER = 0x4c - F_THAW_FS = 0x36 - F_TRANSCODEKEY = 0x4b - F_TRIM_ACTIVE_FILE = 0x64 - F_UNLCK = 0x2 - F_VOLPOSMODE = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_AAL5 = 0x31 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ATM = 0x25 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_CELLULAR = 0xff - IFT_CEPT = 0x13 - IFT_DS3 = 0x1e - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_ETHER = 0x6 - IFT_FAITH = 0x38 - IFT_FDDI = 0xf - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_GIF = 0x37 - IFT_HDH1822 = 0x3 - IFT_HIPPI = 0x2f - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IEEE1394 = 0x90 - IFT_IEEE8023ADLAG = 0x88 - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88026 = 0xa - IFT_L2VLAN = 0x87 - IFT_LAPB = 0x10 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_NSIP = 0x1b - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PDP = 0xff - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PKTAP = 0xfe - IFT_PPP = 0x17 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PTPSERIAL = 0x16 - IFT_RS232 = 0x21 - IFT_SDLC = 0x11 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_STARLAN = 0xb - IFT_STF = 0x39 - IFT_T1 = 0x12 - IFT_ULTRA = 0x1d - IFT_V35 = 0x2d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LINKLOCALNETNUM = 0xa9fe0000 - IN_LOOPBACKNET = 0x7f - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0xfe - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MEAS = 0x13 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEP = 0x21 - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_2292DSTOPTS = 0x17 - IPV6_2292HOPLIMIT = 0x14 - IPV6_2292HOPOPTS = 0x16 - IPV6_2292NEXTHOP = 0x15 - IPV6_2292PKTINFO = 0x13 - IPV6_2292PKTOPTIONS = 0x19 - IPV6_2292RTHDR = 0x18 - IPV6_BINDV6ONLY = 0x1b - IPV6_BOUND_IF = 0x7d - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOW_ECN_MASK = 0x300 - IPV6_FRAGTTL = 0x3c - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVTCLASS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x24 - IPV6_UNICAST_HOPS = 0x4 - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BLOCK_SOURCE = 0x48 - IP_BOUND_IF = 0x19 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FAITH = 0x16 - IP_FW_ADD = 0x28 - IP_FW_DEL = 0x29 - IP_FW_FLUSH = 0x2a - IP_FW_GET = 0x2c - IP_FW_RESETLOG = 0x2d - IP_FW_ZERO = 0x2b - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MF = 0x2000 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_IFINDEX = 0x42 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_NAT__XXX = 0x37 - IP_OFFMASK = 0x1fff - IP_OLD_FW_ADD = 0x32 - IP_OLD_FW_DEL = 0x33 - IP_OLD_FW_FLUSH = 0x34 - IP_OLD_FW_GET = 0x36 - IP_OLD_FW_RESETLOG = 0x38 - IP_OLD_FW_ZERO = 0x35 - IP_OPTIONS = 0x1 - IP_PKTINFO = 0x1a - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVPKTINFO = 0x1a - IP_RECVRETOPTS = 0x6 - IP_RECVTOS = 0x1b - IP_RECVTTL = 0x18 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_STRIPHDR = 0x17 - IP_TOS = 0x3 - IP_TRAFFIC_MGT_BACKGROUND = 0x41 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_CAN_REUSE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_FREE_REUSABLE = 0x7 - MADV_FREE_REUSE = 0x8 - MADV_NORMAL = 0x0 - MADV_PAGEOUT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MADV_ZERO_WIRED_PAGES = 0x6 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_JIT = 0x800 - MAP_NOCACHE = 0x400 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_RESERVED0080 = 0x80 - MAP_RESILIENT_CODESIGN = 0x2000 - MAP_RESILIENT_MEDIA = 0x4000 - MAP_SHARED = 0x1 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x400000 - MNT_CMDFLAGS = 0xf0000 - MNT_CPROTECT = 0x80 - MNT_DEFWRITE = 0x2000000 - MNT_DONTBROWSE = 0x100000 - MNT_DOVOLFS = 0x8000 - MNT_DWAIT = 0x4 - MNT_EXPORTED = 0x100 - MNT_FORCE = 0x80000 - MNT_IGNORE_OWNERSHIP = 0x200000 - MNT_JOURNALED = 0x800000 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NOATIME = 0x10000000 - MNT_NOBLOCK = 0x20000 - MNT_NODEV = 0x10 - MNT_NOEXEC = 0x4 - MNT_NOSUID = 0x8 - MNT_NOUSERXATTR = 0x1000000 - MNT_NOWAIT = 0x2 - MNT_QUARANTINE = 0x400 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UNKNOWNPERMISSIONS = 0x200000 - MNT_UPDATE = 0x10000 - MNT_VISFLAGMASK = 0x17f0f5ff - MNT_WAIT = 0x1 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_FLUSH = 0x400 - MSG_HAVEMORE = 0x2000 - MSG_HOLD = 0x800 - MSG_NEEDSA = 0x10000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_RCVMORE = 0x4000 - MSG_SEND = 0x1000 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITSTREAM = 0x200 - MS_ASYNC = 0x1 - MS_DEACTIVATE = 0x8 - MS_INVALIDATE = 0x2 - MS_KILLPAGES = 0x4 - MS_SYNC = 0x10 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_DUMP2 = 0x7 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLIST2 = 0x6 - NET_RT_MAXID = 0xa - NET_RT_STAT = 0x4 - NET_RT_TRASH = 0x5 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLDLY = 0x300 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ABSOLUTE = 0x8 - NOTE_ATTRIB = 0x8 - NOTE_BACKGROUND = 0x40 - NOTE_CHILD = 0x4 - NOTE_CRITICAL = 0x20 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXITSTATUS = 0x4000000 - NOTE_EXIT_CSERROR = 0x40000 - NOTE_EXIT_DECRYPTFAIL = 0x10000 - NOTE_EXIT_DETAIL = 0x2000000 - NOTE_EXIT_DETAIL_MASK = 0x70000 - NOTE_EXIT_MEMORY = 0x20000 - NOTE_EXIT_REPARENTED = 0x80000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FORK = 0x40000000 - NOTE_FUNLOCK = 0x100 - NOTE_LEEWAY = 0x10 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MACH_CONTINUOUS_TIME = 0x80 - NOTE_NONE = 0x80 - NOTE_NSECONDS = 0x4 - NOTE_OOB = 0x2 - NOTE_PCTRLMASK = -0x100000 - NOTE_PDATAMASK = 0xfffff - NOTE_REAP = 0x10000000 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_SIGNAL = 0x8000000 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x2 - NOTE_VM_ERROR = 0x10000000 - NOTE_VM_PRESSURE = 0x80000000 - NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 - NOTE_VM_PRESSURE_TERMINATE = 0x40000000 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFDEL = 0x20000 - OFILL = 0x80 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_ALERT = 0x20000000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x1000000 - O_CREAT = 0x200 - O_DIRECTORY = 0x100000 - O_DP_GETRAWENCRYPTED = 0x1 - O_DP_GETRAWUNENCRYPTED = 0x2 - O_DSYNC = 0x400000 - O_EVTONLY = 0x8000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x20000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_POPUP = 0x80000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYMLINK = 0x200000 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PT_ATTACH = 0xa - PT_ATTACHEXC = 0xe - PT_CONTINUE = 0x7 - PT_DENY_ATTACH = 0x1f - PT_DETACH = 0xb - PT_FIRSTMACH = 0x20 - PT_FORCEQUOTA = 0x1e - PT_KILL = 0x8 - PT_READ_D = 0x2 - PT_READ_I = 0x1 - PT_READ_U = 0x3 - PT_SIGEXC = 0xc - PT_STEP = 0x9 - PT_THUPDATE = 0xd - PT_TRACE_ME = 0x0 - PT_WRITE_D = 0x5 - PT_WRITE_I = 0x4 - PT_WRITE_U = 0x6 - RLIMIT_AS = 0x5 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_CPU_USAGE_MONITOR = 0x2 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONING = 0x100 - RTF_CONDEMNED = 0x2000000 - RTF_DELCLONE = 0x80 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_IFREF = 0x4000000 - RTF_IFSCOPE = 0x1000000 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_NOIFREF = 0x2000 - RTF_PINNED = 0x100000 - RTF_PRCLONING = 0x10000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_PROXY = 0x8000000 - RTF_REJECT = 0x8 - RTF_ROUTER = 0x10000000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_WASCLONED = 0x20000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_GET2 = 0x14 - RTM_IFINFO = 0xe - RTM_IFINFO2 = 0x12 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_NEWMADDR2 = 0x13 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SCM_TIMESTAMP_MONOTONIC = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCARPIPLL = 0xc0206928 - SIOCATMARK = 0x40047307 - SIOCAUTOADDR = 0xc0206926 - SIOCAUTONETMASK = 0x80206927 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFPHYADDR = 0x80206941 - SIOCGDRVSPEC = 0xc028697b - SIOCGETVLAN = 0xc020697f - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFALTMTU = 0xc0206948 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBOND = 0xc0206947 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020695b - SIOCGIFCONF = 0xc00c6924 - SIOCGIFDEVMTU = 0xc0206944 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFKPI = 0xc0206987 - SIOCGIFMAC = 0xc0206982 - SIOCGIFMEDIA = 0xc02c6938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206940 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc020693f - SIOCGIFSTATUS = 0xc331693d - SIOCGIFVLAN = 0xc020697f - SIOCGIFWAKEFLAGS = 0xc0206988 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCIFCREATE = 0xc0206978 - SIOCIFCREATE2 = 0xc020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106981 - SIOCRSLVMULTI = 0xc010693b - SIOCSDRVSPEC = 0x8028697b - SIOCSETVLAN = 0x8020697e - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFALTMTU = 0x80206945 - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBOND = 0x80206946 - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020695a - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFKPI = 0x80206986 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206983 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x8040693e - SIOCSIFPHYS = 0x80206936 - SIOCSIFVLAN = 0x8020697e - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_DONTTRUNC = 0x2000 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1010 - SO_LINGER = 0x80 - SO_LINGER_SEC = 0x1080 - SO_NETSVC_MARKING_LEVEL = 0x1119 - SO_NET_SERVICE_TYPE = 0x1116 - SO_NKE = 0x1021 - SO_NOADDRERR = 0x1023 - SO_NOSIGPIPE = 0x1022 - SO_NOTIFYCONFLICT = 0x1026 - SO_NP_EXTENSIONS = 0x1083 - SO_NREAD = 0x1020 - SO_NUMRCVPKT = 0x1112 - SO_NWRITE = 0x1024 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1011 - SO_RANDOMPORT = 0x1082 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_REUSESHAREUID = 0x1025 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TIMESTAMP_MONOTONIC = 0x800 - SO_TYPE = 0x1008 - SO_UPCALLCLOSEWAIT = 0x1027 - SO_USELOOPBACK = 0x40 - SO_WANTMORE = 0x4000 - SO_WANTOOBFLAG = 0x8000 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0x4 - TABDLY = 0xc04 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CONNECTIONTIMEOUT = 0x20 - TCP_CONNECTION_INFO = 0x106 - TCP_ENABLE_ECN = 0x104 - TCP_FASTOPEN = 0x105 - TCP_KEEPALIVE = 0x10 - TCP_KEEPCNT = 0x102 - TCP_KEEPINTVL = 0x101 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MINMSS = 0xd8 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_NOTSENT_LOWAT = 0x201 - TCP_RXT_CONNDROPTIME = 0x80 - TCP_RXT_FINDROP = 0x100 - TCP_SENDMOREACKS = 0x103 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40107458 - TIOCDRAIN = 0x2000745e - TIOCDSIMICROCODE = 0x20007455 - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x40487413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGWINSZ = 0x40087468 - TIOCIXOFF = 0x20007480 - TIOCIXON = 0x20007481 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMODG = 0x40047403 - TIOCMODS = 0x80047404 - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTYGNAME = 0x40807453 - TIOCPTYGRANT = 0x20007454 - TIOCPTYUNLK = 0x20007452 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCONS = 0x20007463 - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x80487414 - TIOCSETAF = 0x80487416 - TIOCSETAW = 0x80487415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2000745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VM_LOADAVG = 0x2 - VM_MACHFACTOR = 0x4 - VM_MAXID = 0x6 - VM_METER = 0x1 - VM_SWAPUSAGE = 0x5 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x10 - WCOREFLAG = 0x80 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOWAIT = 0x20 - WORDSIZE = 0x40 - WSTOPPED = 0x8 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADARCH = syscall.Errno(0x56) - EBADEXEC = syscall.Errno(0x55) - EBADF = syscall.Errno(0x9) - EBADMACHO = syscall.Errno(0x58) - EBADMSG = syscall.Errno(0x5e) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x59) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDEVERR = syscall.Errno(0x53) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x5a) - EILSEQ = syscall.Errno(0x5c) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x6a) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5f) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x60) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x61) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5b) - ENOPOLICY = syscall.Errno(0x67) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x62) - ENOSTR = syscall.Errno(0x63) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x68) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x66) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x69) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x64) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - EPWROFF = syscall.Errno(0x52) - EQFULL = syscall.Errno(0x6a) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHLIBVERS = syscall.Errno(0x57) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x65) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "resource busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "device power is off", - 83: "device error", - 84: "value too large to be stored in data type", - 85: "bad executable (or shared library)", - 86: "bad CPU type in executable", - 87: "shared library version mismatch", - 88: "malformed Mach-o file", - 89: "operation canceled", - 90: "identifier removed", - 91: "no message of desired type", - 92: "illegal byte sequence", - 93: "attribute not found", - 94: "bad message", - 95: "EMULTIHOP (Reserved)", - 96: "no message available on STREAM", - 97: "ENOLINK (Reserved)", - 98: "no STREAM resources", - 99: "not a STREAM", - 100: "protocol error", - 101: "STREAM ioctl timeout", - 102: "operation not supported on socket", - 103: "policy not found", - 104: "state not recoverable", - 105: "previous owner died", - 106: "interface output queue is full", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go deleted file mode 100644 index fa135b1..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go +++ /dev/null @@ -1,1769 +0,0 @@ -// mkerrors.sh -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,darwin - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1c - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1e - AF_IPX = 0x17 - AF_ISDN = 0x1c - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x28 - AF_NATM = 0x1f - AF_NDRV = 0x1b - AF_NETBIOS = 0x21 - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PPP = 0x22 - AF_PUP = 0x4 - AF_RESERVED_36 = 0x24 - AF_ROUTE = 0x11 - AF_SIP = 0x18 - AF_SNA = 0xb - AF_SYSTEM = 0x20 - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_UTUN = 0x26 - ALTWERASE = 0x200 - ATTR_BIT_MAP_COUNT = 0x5 - ATTR_CMN_ACCESSMASK = 0x20000 - ATTR_CMN_ACCTIME = 0x1000 - ATTR_CMN_ADDEDTIME = 0x10000000 - ATTR_CMN_BKUPTIME = 0x2000 - ATTR_CMN_CHGTIME = 0x800 - ATTR_CMN_CRTIME = 0x200 - ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 - ATTR_CMN_DEVID = 0x2 - ATTR_CMN_DOCUMENT_ID = 0x100000 - ATTR_CMN_ERROR = 0x20000000 - ATTR_CMN_EXTENDED_SECURITY = 0x400000 - ATTR_CMN_FILEID = 0x2000000 - ATTR_CMN_FLAGS = 0x40000 - ATTR_CMN_FNDRINFO = 0x4000 - ATTR_CMN_FSID = 0x4 - ATTR_CMN_FULLPATH = 0x8000000 - ATTR_CMN_GEN_COUNT = 0x80000 - ATTR_CMN_GRPID = 0x10000 - ATTR_CMN_GRPUUID = 0x1000000 - ATTR_CMN_MODTIME = 0x400 - ATTR_CMN_NAME = 0x1 - ATTR_CMN_NAMEDATTRCOUNT = 0x80000 - ATTR_CMN_NAMEDATTRLIST = 0x100000 - ATTR_CMN_OBJID = 0x20 - ATTR_CMN_OBJPERMANENTID = 0x40 - ATTR_CMN_OBJTAG = 0x10 - ATTR_CMN_OBJTYPE = 0x8 - ATTR_CMN_OWNERID = 0x8000 - ATTR_CMN_PARENTID = 0x4000000 - ATTR_CMN_PAROBJID = 0x80 - ATTR_CMN_RETURNED_ATTRS = 0x80000000 - ATTR_CMN_SCRIPT = 0x100 - ATTR_CMN_SETMASK = 0x41c7ff00 - ATTR_CMN_USERACCESS = 0x200000 - ATTR_CMN_UUID = 0x800000 - ATTR_CMN_VALIDMASK = 0xffffffff - ATTR_CMN_VOLSETMASK = 0x6700 - ATTR_FILE_ALLOCSIZE = 0x4 - ATTR_FILE_CLUMPSIZE = 0x10 - ATTR_FILE_DATAALLOCSIZE = 0x400 - ATTR_FILE_DATAEXTENTS = 0x800 - ATTR_FILE_DATALENGTH = 0x200 - ATTR_FILE_DEVTYPE = 0x20 - ATTR_FILE_FILETYPE = 0x40 - ATTR_FILE_FORKCOUNT = 0x80 - ATTR_FILE_FORKLIST = 0x100 - ATTR_FILE_IOBLOCKSIZE = 0x8 - ATTR_FILE_LINKCOUNT = 0x1 - ATTR_FILE_RSRCALLOCSIZE = 0x2000 - ATTR_FILE_RSRCEXTENTS = 0x4000 - ATTR_FILE_RSRCLENGTH = 0x1000 - ATTR_FILE_SETMASK = 0x20 - ATTR_FILE_TOTALSIZE = 0x2 - ATTR_FILE_VALIDMASK = 0x37ff - ATTR_VOL_ALLOCATIONCLUMP = 0x40 - ATTR_VOL_ATTRIBUTES = 0x40000000 - ATTR_VOL_CAPABILITIES = 0x20000 - ATTR_VOL_DIRCOUNT = 0x400 - ATTR_VOL_ENCODINGSUSED = 0x10000 - ATTR_VOL_FILECOUNT = 0x200 - ATTR_VOL_FSTYPE = 0x1 - ATTR_VOL_INFO = 0x80000000 - ATTR_VOL_IOBLOCKSIZE = 0x80 - ATTR_VOL_MAXOBJCOUNT = 0x800 - ATTR_VOL_MINALLOCATION = 0x20 - ATTR_VOL_MOUNTEDDEVICE = 0x8000 - ATTR_VOL_MOUNTFLAGS = 0x4000 - ATTR_VOL_MOUNTPOINT = 0x1000 - ATTR_VOL_NAME = 0x2000 - ATTR_VOL_OBJCOUNT = 0x100 - ATTR_VOL_QUOTA_SIZE = 0x10000000 - ATTR_VOL_RESERVED_SIZE = 0x20000000 - ATTR_VOL_SETMASK = 0x80002000 - ATTR_VOL_SIGNATURE = 0x2 - ATTR_VOL_SIZE = 0x4 - ATTR_VOL_SPACEAVAIL = 0x10 - ATTR_VOL_SPACEFREE = 0x8 - ATTR_VOL_UUID = 0x40000 - ATTR_VOL_VALIDMASK = 0xf007ffff - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc00c4279 - BIOCGETIF = 0x4020426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044278 - BIOCSETF = 0x80104267 - BIOCSETFNR = 0x8010427e - BIOCSETIF = 0x8020426c - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_MONOTONIC_RAW_APPROX = 0x5 - CLOCK_PROCESS_CPUTIME_ID = 0xc - CLOCK_REALTIME = 0x0 - CLOCK_THREAD_CPUTIME_ID = 0x10 - CLOCK_UPTIME_RAW = 0x8 - CLOCK_UPTIME_RAW_APPROX = 0x9 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0xf5 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_EXCEPT = -0xf - EVFILT_FS = -0x9 - EVFILT_MACHPORT = -0x8 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xf - EVFILT_THREADMARKER = 0xf - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xa - EVFILT_VM = -0xc - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DISPATCH2 = 0x180 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG0 = 0x1000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_OOBAND = 0x2000 - EV_POLL = 0x1000 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EV_UDATA_SPECIFIC = 0x100 - EV_VANISHED = 0x200 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FSOPT_ATTR_CMN_EXTENDED = 0x20 - FSOPT_NOFOLLOW = 0x1 - FSOPT_NOINMEMUPDATE = 0x2 - FSOPT_PACK_INVAL_ATTRS = 0x8 - FSOPT_REPORT_FULLSIZE = 0x4 - F_ADDFILESIGS = 0x3d - F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 - F_ADDFILESIGS_RETURN = 0x61 - F_ADDSIGS = 0x3b - F_ALLOCATEALL = 0x4 - F_ALLOCATECONTIG = 0x2 - F_BARRIERFSYNC = 0x55 - F_CHECK_LV = 0x62 - F_CHKCLEAN = 0x29 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x43 - F_FINDSIGS = 0x4e - F_FLUSH_DATA = 0x28 - F_FREEZE_FS = 0x35 - F_FULLFSYNC = 0x33 - F_GETCODEDIR = 0x48 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETLKPID = 0x42 - F_GETNOSIGPIPE = 0x4a - F_GETOWN = 0x5 - F_GETPATH = 0x32 - F_GETPATH_MTMINFO = 0x47 - F_GETPROTECTIONCLASS = 0x3f - F_GETPROTECTIONLEVEL = 0x4d - F_GLOBAL_NOCACHE = 0x37 - F_LOG2PHYS = 0x31 - F_LOG2PHYS_EXT = 0x41 - F_NOCACHE = 0x30 - F_NODIRECT = 0x3e - F_OK = 0x0 - F_PATHPKG_CHECK = 0x34 - F_PEOFPOSMODE = 0x3 - F_PREALLOCATE = 0x2a - F_PUNCHHOLE = 0x63 - F_RDADVISE = 0x2c - F_RDAHEAD = 0x2d - F_RDLCK = 0x1 - F_SETBACKINGSTORE = 0x46 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETLKWTIMEOUT = 0xa - F_SETNOSIGPIPE = 0x49 - F_SETOWN = 0x6 - F_SETPROTECTIONCLASS = 0x40 - F_SETSIZE = 0x2b - F_SINGLE_WRITER = 0x4c - F_THAW_FS = 0x36 - F_TRANSCODEKEY = 0x4b - F_TRIM_ACTIVE_FILE = 0x64 - F_UNLCK = 0x2 - F_VOLPOSMODE = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_AAL5 = 0x31 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ATM = 0x25 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_CELLULAR = 0xff - IFT_CEPT = 0x13 - IFT_DS3 = 0x1e - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_ETHER = 0x6 - IFT_FAITH = 0x38 - IFT_FDDI = 0xf - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_GIF = 0x37 - IFT_HDH1822 = 0x3 - IFT_HIPPI = 0x2f - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IEEE1394 = 0x90 - IFT_IEEE8023ADLAG = 0x88 - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88026 = 0xa - IFT_L2VLAN = 0x87 - IFT_LAPB = 0x10 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_NSIP = 0x1b - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PDP = 0xff - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PKTAP = 0xfe - IFT_PPP = 0x17 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PTPSERIAL = 0x16 - IFT_RS232 = 0x21 - IFT_SDLC = 0x11 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_STARLAN = 0xb - IFT_STF = 0x39 - IFT_T1 = 0x12 - IFT_ULTRA = 0x1d - IFT_V35 = 0x2d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LINKLOCALNETNUM = 0xa9fe0000 - IN_LOOPBACKNET = 0x7f - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0xfe - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MEAS = 0x13 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEP = 0x21 - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_2292DSTOPTS = 0x17 - IPV6_2292HOPLIMIT = 0x14 - IPV6_2292HOPOPTS = 0x16 - IPV6_2292NEXTHOP = 0x15 - IPV6_2292PKTINFO = 0x13 - IPV6_2292PKTOPTIONS = 0x19 - IPV6_2292RTHDR = 0x18 - IPV6_BINDV6ONLY = 0x1b - IPV6_BOUND_IF = 0x7d - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOW_ECN_MASK = 0x300 - IPV6_FRAGTTL = 0x3c - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVTCLASS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x24 - IPV6_UNICAST_HOPS = 0x4 - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BLOCK_SOURCE = 0x48 - IP_BOUND_IF = 0x19 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FAITH = 0x16 - IP_FW_ADD = 0x28 - IP_FW_DEL = 0x29 - IP_FW_FLUSH = 0x2a - IP_FW_GET = 0x2c - IP_FW_RESETLOG = 0x2d - IP_FW_ZERO = 0x2b - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MF = 0x2000 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_IFINDEX = 0x42 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_NAT__XXX = 0x37 - IP_OFFMASK = 0x1fff - IP_OLD_FW_ADD = 0x32 - IP_OLD_FW_DEL = 0x33 - IP_OLD_FW_FLUSH = 0x34 - IP_OLD_FW_GET = 0x36 - IP_OLD_FW_RESETLOG = 0x38 - IP_OLD_FW_ZERO = 0x35 - IP_OPTIONS = 0x1 - IP_PKTINFO = 0x1a - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVPKTINFO = 0x1a - IP_RECVRETOPTS = 0x6 - IP_RECVTOS = 0x1b - IP_RECVTTL = 0x18 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_STRIPHDR = 0x17 - IP_TOS = 0x3 - IP_TRAFFIC_MGT_BACKGROUND = 0x41 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_CAN_REUSE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_FREE_REUSABLE = 0x7 - MADV_FREE_REUSE = 0x8 - MADV_NORMAL = 0x0 - MADV_PAGEOUT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MADV_ZERO_WIRED_PAGES = 0x6 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_JIT = 0x800 - MAP_NOCACHE = 0x400 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_RESERVED0080 = 0x80 - MAP_RESILIENT_CODESIGN = 0x2000 - MAP_RESILIENT_MEDIA = 0x4000 - MAP_SHARED = 0x1 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x400000 - MNT_CMDFLAGS = 0xf0000 - MNT_CPROTECT = 0x80 - MNT_DEFWRITE = 0x2000000 - MNT_DONTBROWSE = 0x100000 - MNT_DOVOLFS = 0x8000 - MNT_DWAIT = 0x4 - MNT_EXPORTED = 0x100 - MNT_FORCE = 0x80000 - MNT_IGNORE_OWNERSHIP = 0x200000 - MNT_JOURNALED = 0x800000 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NOATIME = 0x10000000 - MNT_NOBLOCK = 0x20000 - MNT_NODEV = 0x10 - MNT_NOEXEC = 0x4 - MNT_NOSUID = 0x8 - MNT_NOUSERXATTR = 0x1000000 - MNT_NOWAIT = 0x2 - MNT_QUARANTINE = 0x400 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UNKNOWNPERMISSIONS = 0x200000 - MNT_UPDATE = 0x10000 - MNT_VISFLAGMASK = 0x17f0f5ff - MNT_WAIT = 0x1 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_FLUSH = 0x400 - MSG_HAVEMORE = 0x2000 - MSG_HOLD = 0x800 - MSG_NEEDSA = 0x10000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_RCVMORE = 0x4000 - MSG_SEND = 0x1000 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITSTREAM = 0x200 - MS_ASYNC = 0x1 - MS_DEACTIVATE = 0x8 - MS_INVALIDATE = 0x2 - MS_KILLPAGES = 0x4 - MS_SYNC = 0x10 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_DUMP2 = 0x7 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLIST2 = 0x6 - NET_RT_MAXID = 0xa - NET_RT_STAT = 0x4 - NET_RT_TRASH = 0x5 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLDLY = 0x300 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ABSOLUTE = 0x8 - NOTE_ATTRIB = 0x8 - NOTE_BACKGROUND = 0x40 - NOTE_CHILD = 0x4 - NOTE_CRITICAL = 0x20 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXITSTATUS = 0x4000000 - NOTE_EXIT_CSERROR = 0x40000 - NOTE_EXIT_DECRYPTFAIL = 0x10000 - NOTE_EXIT_DETAIL = 0x2000000 - NOTE_EXIT_DETAIL_MASK = 0x70000 - NOTE_EXIT_MEMORY = 0x20000 - NOTE_EXIT_REPARENTED = 0x80000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FORK = 0x40000000 - NOTE_FUNLOCK = 0x100 - NOTE_LEEWAY = 0x10 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MACH_CONTINUOUS_TIME = 0x80 - NOTE_NONE = 0x80 - NOTE_NSECONDS = 0x4 - NOTE_OOB = 0x2 - NOTE_PCTRLMASK = -0x100000 - NOTE_PDATAMASK = 0xfffff - NOTE_REAP = 0x10000000 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_SIGNAL = 0x8000000 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x2 - NOTE_VM_ERROR = 0x10000000 - NOTE_VM_PRESSURE = 0x80000000 - NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 - NOTE_VM_PRESSURE_TERMINATE = 0x40000000 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFDEL = 0x20000 - OFILL = 0x80 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_ALERT = 0x20000000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x1000000 - O_CREAT = 0x200 - O_DIRECTORY = 0x100000 - O_DP_GETRAWENCRYPTED = 0x1 - O_DP_GETRAWUNENCRYPTED = 0x2 - O_DSYNC = 0x400000 - O_EVTONLY = 0x8000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x20000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_POPUP = 0x80000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYMLINK = 0x200000 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PT_ATTACH = 0xa - PT_ATTACHEXC = 0xe - PT_CONTINUE = 0x7 - PT_DENY_ATTACH = 0x1f - PT_DETACH = 0xb - PT_FIRSTMACH = 0x20 - PT_FORCEQUOTA = 0x1e - PT_KILL = 0x8 - PT_READ_D = 0x2 - PT_READ_I = 0x1 - PT_READ_U = 0x3 - PT_SIGEXC = 0xc - PT_STEP = 0x9 - PT_THUPDATE = 0xd - PT_TRACE_ME = 0x0 - PT_WRITE_D = 0x5 - PT_WRITE_I = 0x4 - PT_WRITE_U = 0x6 - RLIMIT_AS = 0x5 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_CPU_USAGE_MONITOR = 0x2 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONING = 0x100 - RTF_CONDEMNED = 0x2000000 - RTF_DELCLONE = 0x80 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_IFREF = 0x4000000 - RTF_IFSCOPE = 0x1000000 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_NOIFREF = 0x2000 - RTF_PINNED = 0x100000 - RTF_PRCLONING = 0x10000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_PROXY = 0x8000000 - RTF_REJECT = 0x8 - RTF_ROUTER = 0x10000000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_WASCLONED = 0x20000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_GET2 = 0x14 - RTM_IFINFO = 0xe - RTM_IFINFO2 = 0x12 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_NEWMADDR2 = 0x13 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SCM_TIMESTAMP_MONOTONIC = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCARPIPLL = 0xc0206928 - SIOCATMARK = 0x40047307 - SIOCAUTOADDR = 0xc0206926 - SIOCAUTONETMASK = 0x80206927 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFPHYADDR = 0x80206941 - SIOCGDRVSPEC = 0xc028697b - SIOCGETVLAN = 0xc020697f - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFALTMTU = 0xc0206948 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBOND = 0xc0206947 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020695b - SIOCGIFCONF = 0xc00c6924 - SIOCGIFDEVMTU = 0xc0206944 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFKPI = 0xc0206987 - SIOCGIFMAC = 0xc0206982 - SIOCGIFMEDIA = 0xc02c6938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206940 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc020693f - SIOCGIFSTATUS = 0xc331693d - SIOCGIFVLAN = 0xc020697f - SIOCGIFWAKEFLAGS = 0xc0206988 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCIFCREATE = 0xc0206978 - SIOCIFCREATE2 = 0xc020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106981 - SIOCRSLVMULTI = 0xc010693b - SIOCSDRVSPEC = 0x8028697b - SIOCSETVLAN = 0x8020697e - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFALTMTU = 0x80206945 - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBOND = 0x80206946 - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020695a - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFKPI = 0x80206986 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206983 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x8040693e - SIOCSIFPHYS = 0x80206936 - SIOCSIFVLAN = 0x8020697e - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_DONTTRUNC = 0x2000 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1010 - SO_LINGER = 0x80 - SO_LINGER_SEC = 0x1080 - SO_NETSVC_MARKING_LEVEL = 0x1119 - SO_NET_SERVICE_TYPE = 0x1116 - SO_NKE = 0x1021 - SO_NOADDRERR = 0x1023 - SO_NOSIGPIPE = 0x1022 - SO_NOTIFYCONFLICT = 0x1026 - SO_NP_EXTENSIONS = 0x1083 - SO_NREAD = 0x1020 - SO_NUMRCVPKT = 0x1112 - SO_NWRITE = 0x1024 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1011 - SO_RANDOMPORT = 0x1082 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_REUSESHAREUID = 0x1025 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TIMESTAMP_MONOTONIC = 0x800 - SO_TYPE = 0x1008 - SO_UPCALLCLOSEWAIT = 0x1027 - SO_USELOOPBACK = 0x40 - SO_WANTMORE = 0x4000 - SO_WANTOOBFLAG = 0x8000 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0x4 - TABDLY = 0xc04 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CONNECTIONTIMEOUT = 0x20 - TCP_CONNECTION_INFO = 0x106 - TCP_ENABLE_ECN = 0x104 - TCP_FASTOPEN = 0x105 - TCP_KEEPALIVE = 0x10 - TCP_KEEPCNT = 0x102 - TCP_KEEPINTVL = 0x101 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MINMSS = 0xd8 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_NOTSENT_LOWAT = 0x201 - TCP_RXT_CONNDROPTIME = 0x80 - TCP_RXT_FINDROP = 0x100 - TCP_SENDMOREACKS = 0x103 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40107458 - TIOCDRAIN = 0x2000745e - TIOCDSIMICROCODE = 0x20007455 - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x40487413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGWINSZ = 0x40087468 - TIOCIXOFF = 0x20007480 - TIOCIXON = 0x20007481 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMODG = 0x40047403 - TIOCMODS = 0x80047404 - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTYGNAME = 0x40807453 - TIOCPTYGRANT = 0x20007454 - TIOCPTYUNLK = 0x20007452 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCONS = 0x20007463 - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x80487414 - TIOCSETAF = 0x80487416 - TIOCSETAW = 0x80487415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2000745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VM_LOADAVG = 0x2 - VM_MACHFACTOR = 0x4 - VM_MAXID = 0x6 - VM_METER = 0x1 - VM_SWAPUSAGE = 0x5 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x10 - WCOREFLAG = 0x80 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOWAIT = 0x20 - WORDSIZE = 0x40 - WSTOPPED = 0x8 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADARCH = syscall.Errno(0x56) - EBADEXEC = syscall.Errno(0x55) - EBADF = syscall.Errno(0x9) - EBADMACHO = syscall.Errno(0x58) - EBADMSG = syscall.Errno(0x5e) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x59) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDEVERR = syscall.Errno(0x53) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x5a) - EILSEQ = syscall.Errno(0x5c) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x6a) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5f) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x60) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x61) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5b) - ENOPOLICY = syscall.Errno(0x67) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x62) - ENOSTR = syscall.Errno(0x63) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x68) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x66) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x69) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x64) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - EPWROFF = syscall.Errno(0x52) - EQFULL = syscall.Errno(0x6a) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHLIBVERS = syscall.Errno(0x57) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x65) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "resource busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "device power is off", - 83: "device error", - 84: "value too large to be stored in data type", - 85: "bad executable (or shared library)", - 86: "bad CPU type in executable", - 87: "shared library version mismatch", - 88: "malformed Mach-o file", - 89: "operation canceled", - 90: "identifier removed", - 91: "no message of desired type", - 92: "illegal byte sequence", - 93: "attribute not found", - 94: "bad message", - 95: "EMULTIHOP (Reserved)", - 96: "no message available on STREAM", - 97: "ENOLINK (Reserved)", - 98: "no STREAM resources", - 99: "not a STREAM", - 100: "protocol error", - 101: "STREAM ioctl timeout", - 102: "operation not supported on socket", - 103: "policy not found", - 104: "state not recoverable", - 105: "previous owner died", - 106: "interface output queue is full", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go deleted file mode 100644 index 6419c65..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +++ /dev/null @@ -1,1769 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,darwin - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1c - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1e - AF_IPX = 0x17 - AF_ISDN = 0x1c - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x28 - AF_NATM = 0x1f - AF_NDRV = 0x1b - AF_NETBIOS = 0x21 - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PPP = 0x22 - AF_PUP = 0x4 - AF_RESERVED_36 = 0x24 - AF_ROUTE = 0x11 - AF_SIP = 0x18 - AF_SNA = 0xb - AF_SYSTEM = 0x20 - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_UTUN = 0x26 - ALTWERASE = 0x200 - ATTR_BIT_MAP_COUNT = 0x5 - ATTR_CMN_ACCESSMASK = 0x20000 - ATTR_CMN_ACCTIME = 0x1000 - ATTR_CMN_ADDEDTIME = 0x10000000 - ATTR_CMN_BKUPTIME = 0x2000 - ATTR_CMN_CHGTIME = 0x800 - ATTR_CMN_CRTIME = 0x200 - ATTR_CMN_DATA_PROTECT_FLAGS = 0x40000000 - ATTR_CMN_DEVID = 0x2 - ATTR_CMN_DOCUMENT_ID = 0x100000 - ATTR_CMN_ERROR = 0x20000000 - ATTR_CMN_EXTENDED_SECURITY = 0x400000 - ATTR_CMN_FILEID = 0x2000000 - ATTR_CMN_FLAGS = 0x40000 - ATTR_CMN_FNDRINFO = 0x4000 - ATTR_CMN_FSID = 0x4 - ATTR_CMN_FULLPATH = 0x8000000 - ATTR_CMN_GEN_COUNT = 0x80000 - ATTR_CMN_GRPID = 0x10000 - ATTR_CMN_GRPUUID = 0x1000000 - ATTR_CMN_MODTIME = 0x400 - ATTR_CMN_NAME = 0x1 - ATTR_CMN_NAMEDATTRCOUNT = 0x80000 - ATTR_CMN_NAMEDATTRLIST = 0x100000 - ATTR_CMN_OBJID = 0x20 - ATTR_CMN_OBJPERMANENTID = 0x40 - ATTR_CMN_OBJTAG = 0x10 - ATTR_CMN_OBJTYPE = 0x8 - ATTR_CMN_OWNERID = 0x8000 - ATTR_CMN_PARENTID = 0x4000000 - ATTR_CMN_PAROBJID = 0x80 - ATTR_CMN_RETURNED_ATTRS = 0x80000000 - ATTR_CMN_SCRIPT = 0x100 - ATTR_CMN_SETMASK = 0x41c7ff00 - ATTR_CMN_USERACCESS = 0x200000 - ATTR_CMN_UUID = 0x800000 - ATTR_CMN_VALIDMASK = 0xffffffff - ATTR_CMN_VOLSETMASK = 0x6700 - ATTR_FILE_ALLOCSIZE = 0x4 - ATTR_FILE_CLUMPSIZE = 0x10 - ATTR_FILE_DATAALLOCSIZE = 0x400 - ATTR_FILE_DATAEXTENTS = 0x800 - ATTR_FILE_DATALENGTH = 0x200 - ATTR_FILE_DEVTYPE = 0x20 - ATTR_FILE_FILETYPE = 0x40 - ATTR_FILE_FORKCOUNT = 0x80 - ATTR_FILE_FORKLIST = 0x100 - ATTR_FILE_IOBLOCKSIZE = 0x8 - ATTR_FILE_LINKCOUNT = 0x1 - ATTR_FILE_RSRCALLOCSIZE = 0x2000 - ATTR_FILE_RSRCEXTENTS = 0x4000 - ATTR_FILE_RSRCLENGTH = 0x1000 - ATTR_FILE_SETMASK = 0x20 - ATTR_FILE_TOTALSIZE = 0x2 - ATTR_FILE_VALIDMASK = 0x37ff - ATTR_VOL_ALLOCATIONCLUMP = 0x40 - ATTR_VOL_ATTRIBUTES = 0x40000000 - ATTR_VOL_CAPABILITIES = 0x20000 - ATTR_VOL_DIRCOUNT = 0x400 - ATTR_VOL_ENCODINGSUSED = 0x10000 - ATTR_VOL_FILECOUNT = 0x200 - ATTR_VOL_FSTYPE = 0x1 - ATTR_VOL_INFO = 0x80000000 - ATTR_VOL_IOBLOCKSIZE = 0x80 - ATTR_VOL_MAXOBJCOUNT = 0x800 - ATTR_VOL_MINALLOCATION = 0x20 - ATTR_VOL_MOUNTEDDEVICE = 0x8000 - ATTR_VOL_MOUNTFLAGS = 0x4000 - ATTR_VOL_MOUNTPOINT = 0x1000 - ATTR_VOL_NAME = 0x2000 - ATTR_VOL_OBJCOUNT = 0x100 - ATTR_VOL_QUOTA_SIZE = 0x10000000 - ATTR_VOL_RESERVED_SIZE = 0x20000000 - ATTR_VOL_SETMASK = 0x80002000 - ATTR_VOL_SIGNATURE = 0x2 - ATTR_VOL_SIZE = 0x4 - ATTR_VOL_SPACEAVAIL = 0x10 - ATTR_VOL_SPACEFREE = 0x8 - ATTR_VOL_UUID = 0x40000 - ATTR_VOL_VALIDMASK = 0xf007ffff - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc00c4279 - BIOCGETIF = 0x4020426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044278 - BIOCSETF = 0x80104267 - BIOCSETFNR = 0x8010427e - BIOCSETIF = 0x8020426c - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_MONOTONIC_RAW_APPROX = 0x5 - CLOCK_PROCESS_CPUTIME_ID = 0xc - CLOCK_REALTIME = 0x0 - CLOCK_THREAD_CPUTIME_ID = 0x10 - CLOCK_UPTIME_RAW = 0x8 - CLOCK_UPTIME_RAW_APPROX = 0x9 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0xf5 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_EXCEPT = -0xf - EVFILT_FS = -0x9 - EVFILT_MACHPORT = -0x8 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xf - EVFILT_THREADMARKER = 0xf - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xa - EVFILT_VM = -0xc - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DISPATCH2 = 0x180 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG0 = 0x1000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_OOBAND = 0x2000 - EV_POLL = 0x1000 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EV_UDATA_SPECIFIC = 0x100 - EV_VANISHED = 0x200 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FSOPT_ATTR_CMN_EXTENDED = 0x20 - FSOPT_NOFOLLOW = 0x1 - FSOPT_NOINMEMUPDATE = 0x2 - FSOPT_PACK_INVAL_ATTRS = 0x8 - FSOPT_REPORT_FULLSIZE = 0x4 - F_ADDFILESIGS = 0x3d - F_ADDFILESIGS_FOR_DYLD_SIM = 0x53 - F_ADDFILESIGS_RETURN = 0x61 - F_ADDSIGS = 0x3b - F_ALLOCATEALL = 0x4 - F_ALLOCATECONTIG = 0x2 - F_BARRIERFSYNC = 0x55 - F_CHECK_LV = 0x62 - F_CHKCLEAN = 0x29 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x43 - F_FINDSIGS = 0x4e - F_FLUSH_DATA = 0x28 - F_FREEZE_FS = 0x35 - F_FULLFSYNC = 0x33 - F_GETCODEDIR = 0x48 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETLKPID = 0x42 - F_GETNOSIGPIPE = 0x4a - F_GETOWN = 0x5 - F_GETPATH = 0x32 - F_GETPATH_MTMINFO = 0x47 - F_GETPROTECTIONCLASS = 0x3f - F_GETPROTECTIONLEVEL = 0x4d - F_GLOBAL_NOCACHE = 0x37 - F_LOG2PHYS = 0x31 - F_LOG2PHYS_EXT = 0x41 - F_NOCACHE = 0x30 - F_NODIRECT = 0x3e - F_OK = 0x0 - F_PATHPKG_CHECK = 0x34 - F_PEOFPOSMODE = 0x3 - F_PREALLOCATE = 0x2a - F_PUNCHHOLE = 0x63 - F_RDADVISE = 0x2c - F_RDAHEAD = 0x2d - F_RDLCK = 0x1 - F_SETBACKINGSTORE = 0x46 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETLKWTIMEOUT = 0xa - F_SETNOSIGPIPE = 0x49 - F_SETOWN = 0x6 - F_SETPROTECTIONCLASS = 0x40 - F_SETSIZE = 0x2b - F_SINGLE_WRITER = 0x4c - F_THAW_FS = 0x36 - F_TRANSCODEKEY = 0x4b - F_TRIM_ACTIVE_FILE = 0x64 - F_UNLCK = 0x2 - F_VOLPOSMODE = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_AAL5 = 0x31 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ATM = 0x25 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_CELLULAR = 0xff - IFT_CEPT = 0x13 - IFT_DS3 = 0x1e - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_ETHER = 0x6 - IFT_FAITH = 0x38 - IFT_FDDI = 0xf - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_GIF = 0x37 - IFT_HDH1822 = 0x3 - IFT_HIPPI = 0x2f - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IEEE1394 = 0x90 - IFT_IEEE8023ADLAG = 0x88 - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88026 = 0xa - IFT_L2VLAN = 0x87 - IFT_LAPB = 0x10 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_NSIP = 0x1b - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PDP = 0xff - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PKTAP = 0xfe - IFT_PPP = 0x17 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PTPSERIAL = 0x16 - IFT_RS232 = 0x21 - IFT_SDLC = 0x11 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_STARLAN = 0xb - IFT_STF = 0x39 - IFT_T1 = 0x12 - IFT_ULTRA = 0x1d - IFT_V35 = 0x2d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LINKLOCALNETNUM = 0xa9fe0000 - IN_LOOPBACKNET = 0x7f - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0xfe - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MEAS = 0x13 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEP = 0x21 - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_2292DSTOPTS = 0x17 - IPV6_2292HOPLIMIT = 0x14 - IPV6_2292HOPOPTS = 0x16 - IPV6_2292NEXTHOP = 0x15 - IPV6_2292PKTINFO = 0x13 - IPV6_2292PKTOPTIONS = 0x19 - IPV6_2292RTHDR = 0x18 - IPV6_BINDV6ONLY = 0x1b - IPV6_BOUND_IF = 0x7d - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOW_ECN_MASK = 0x300 - IPV6_FRAGTTL = 0x3c - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVTCLASS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x24 - IPV6_UNICAST_HOPS = 0x4 - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BLOCK_SOURCE = 0x48 - IP_BOUND_IF = 0x19 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FAITH = 0x16 - IP_FW_ADD = 0x28 - IP_FW_DEL = 0x29 - IP_FW_FLUSH = 0x2a - IP_FW_GET = 0x2c - IP_FW_RESETLOG = 0x2d - IP_FW_ZERO = 0x2b - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MF = 0x2000 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_IFINDEX = 0x42 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_NAT__XXX = 0x37 - IP_OFFMASK = 0x1fff - IP_OLD_FW_ADD = 0x32 - IP_OLD_FW_DEL = 0x33 - IP_OLD_FW_FLUSH = 0x34 - IP_OLD_FW_GET = 0x36 - IP_OLD_FW_RESETLOG = 0x38 - IP_OLD_FW_ZERO = 0x35 - IP_OPTIONS = 0x1 - IP_PKTINFO = 0x1a - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVPKTINFO = 0x1a - IP_RECVRETOPTS = 0x6 - IP_RECVTOS = 0x1b - IP_RECVTTL = 0x18 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_STRIPHDR = 0x17 - IP_TOS = 0x3 - IP_TRAFFIC_MGT_BACKGROUND = 0x41 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_CAN_REUSE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_FREE_REUSABLE = 0x7 - MADV_FREE_REUSE = 0x8 - MADV_NORMAL = 0x0 - MADV_PAGEOUT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MADV_ZERO_WIRED_PAGES = 0x6 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_JIT = 0x800 - MAP_NOCACHE = 0x400 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_RESERVED0080 = 0x80 - MAP_RESILIENT_CODESIGN = 0x2000 - MAP_RESILIENT_MEDIA = 0x4000 - MAP_SHARED = 0x1 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x400000 - MNT_CMDFLAGS = 0xf0000 - MNT_CPROTECT = 0x80 - MNT_DEFWRITE = 0x2000000 - MNT_DONTBROWSE = 0x100000 - MNT_DOVOLFS = 0x8000 - MNT_DWAIT = 0x4 - MNT_EXPORTED = 0x100 - MNT_FORCE = 0x80000 - MNT_IGNORE_OWNERSHIP = 0x200000 - MNT_JOURNALED = 0x800000 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NOATIME = 0x10000000 - MNT_NOBLOCK = 0x20000 - MNT_NODEV = 0x10 - MNT_NOEXEC = 0x4 - MNT_NOSUID = 0x8 - MNT_NOUSERXATTR = 0x1000000 - MNT_NOWAIT = 0x2 - MNT_QUARANTINE = 0x400 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UNKNOWNPERMISSIONS = 0x200000 - MNT_UPDATE = 0x10000 - MNT_VISFLAGMASK = 0x17f0f5ff - MNT_WAIT = 0x1 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_FLUSH = 0x400 - MSG_HAVEMORE = 0x2000 - MSG_HOLD = 0x800 - MSG_NEEDSA = 0x10000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_RCVMORE = 0x4000 - MSG_SEND = 0x1000 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITSTREAM = 0x200 - MS_ASYNC = 0x1 - MS_DEACTIVATE = 0x8 - MS_INVALIDATE = 0x2 - MS_KILLPAGES = 0x4 - MS_SYNC = 0x10 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_DUMP2 = 0x7 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLIST2 = 0x6 - NET_RT_MAXID = 0xa - NET_RT_STAT = 0x4 - NET_RT_TRASH = 0x5 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLDLY = 0x300 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ABSOLUTE = 0x8 - NOTE_ATTRIB = 0x8 - NOTE_BACKGROUND = 0x40 - NOTE_CHILD = 0x4 - NOTE_CRITICAL = 0x20 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXITSTATUS = 0x4000000 - NOTE_EXIT_CSERROR = 0x40000 - NOTE_EXIT_DECRYPTFAIL = 0x10000 - NOTE_EXIT_DETAIL = 0x2000000 - NOTE_EXIT_DETAIL_MASK = 0x70000 - NOTE_EXIT_MEMORY = 0x20000 - NOTE_EXIT_REPARENTED = 0x80000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FORK = 0x40000000 - NOTE_FUNLOCK = 0x100 - NOTE_LEEWAY = 0x10 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MACH_CONTINUOUS_TIME = 0x80 - NOTE_NONE = 0x80 - NOTE_NSECONDS = 0x4 - NOTE_OOB = 0x2 - NOTE_PCTRLMASK = -0x100000 - NOTE_PDATAMASK = 0xfffff - NOTE_REAP = 0x10000000 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_SIGNAL = 0x8000000 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x2 - NOTE_VM_ERROR = 0x10000000 - NOTE_VM_PRESSURE = 0x80000000 - NOTE_VM_PRESSURE_SUDDEN_TERMINATE = 0x20000000 - NOTE_VM_PRESSURE_TERMINATE = 0x40000000 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFDEL = 0x20000 - OFILL = 0x80 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_ALERT = 0x20000000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x1000000 - O_CREAT = 0x200 - O_DIRECTORY = 0x100000 - O_DP_GETRAWENCRYPTED = 0x1 - O_DP_GETRAWUNENCRYPTED = 0x2 - O_DSYNC = 0x400000 - O_EVTONLY = 0x8000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x20000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_POPUP = 0x80000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYMLINK = 0x200000 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PT_ATTACH = 0xa - PT_ATTACHEXC = 0xe - PT_CONTINUE = 0x7 - PT_DENY_ATTACH = 0x1f - PT_DETACH = 0xb - PT_FIRSTMACH = 0x20 - PT_FORCEQUOTA = 0x1e - PT_KILL = 0x8 - PT_READ_D = 0x2 - PT_READ_I = 0x1 - PT_READ_U = 0x3 - PT_SIGEXC = 0xc - PT_STEP = 0x9 - PT_THUPDATE = 0xd - PT_TRACE_ME = 0x0 - PT_WRITE_D = 0x5 - PT_WRITE_I = 0x4 - PT_WRITE_U = 0x6 - RLIMIT_AS = 0x5 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_CPU_USAGE_MONITOR = 0x2 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONING = 0x100 - RTF_CONDEMNED = 0x2000000 - RTF_DELCLONE = 0x80 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_IFREF = 0x4000000 - RTF_IFSCOPE = 0x1000000 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_NOIFREF = 0x2000 - RTF_PINNED = 0x100000 - RTF_PRCLONING = 0x10000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_PROXY = 0x8000000 - RTF_REJECT = 0x8 - RTF_ROUTER = 0x10000000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_WASCLONED = 0x20000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_GET2 = 0x14 - RTM_IFINFO = 0xe - RTM_IFINFO2 = 0x12 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_NEWMADDR2 = 0x13 - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SCM_TIMESTAMP_MONOTONIC = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCARPIPLL = 0xc0206928 - SIOCATMARK = 0x40047307 - SIOCAUTOADDR = 0xc0206926 - SIOCAUTONETMASK = 0x80206927 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFPHYADDR = 0x80206941 - SIOCGDRVSPEC = 0xc028697b - SIOCGETVLAN = 0xc020697f - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFALTMTU = 0xc0206948 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBOND = 0xc0206947 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020695b - SIOCGIFCONF = 0xc00c6924 - SIOCGIFDEVMTU = 0xc0206944 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFKPI = 0xc0206987 - SIOCGIFMAC = 0xc0206982 - SIOCGIFMEDIA = 0xc02c6938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206940 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc020693f - SIOCGIFSTATUS = 0xc331693d - SIOCGIFVLAN = 0xc020697f - SIOCGIFWAKEFLAGS = 0xc0206988 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCIFCREATE = 0xc0206978 - SIOCIFCREATE2 = 0xc020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106981 - SIOCRSLVMULTI = 0xc010693b - SIOCSDRVSPEC = 0x8028697b - SIOCSETVLAN = 0x8020697e - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFALTMTU = 0x80206945 - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBOND = 0x80206946 - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020695a - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFKPI = 0x80206986 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206983 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x8040693e - SIOCSIFPHYS = 0x80206936 - SIOCSIFVLAN = 0x8020697e - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_DONTTRUNC = 0x2000 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1010 - SO_LINGER = 0x80 - SO_LINGER_SEC = 0x1080 - SO_NETSVC_MARKING_LEVEL = 0x1119 - SO_NET_SERVICE_TYPE = 0x1116 - SO_NKE = 0x1021 - SO_NOADDRERR = 0x1023 - SO_NOSIGPIPE = 0x1022 - SO_NOTIFYCONFLICT = 0x1026 - SO_NP_EXTENSIONS = 0x1083 - SO_NREAD = 0x1020 - SO_NUMRCVPKT = 0x1112 - SO_NWRITE = 0x1024 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1011 - SO_RANDOMPORT = 0x1082 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_REUSESHAREUID = 0x1025 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TIMESTAMP_MONOTONIC = 0x800 - SO_TYPE = 0x1008 - SO_UPCALLCLOSEWAIT = 0x1027 - SO_USELOOPBACK = 0x40 - SO_WANTMORE = 0x4000 - SO_WANTOOBFLAG = 0x8000 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0x4 - TABDLY = 0xc04 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CONNECTIONTIMEOUT = 0x20 - TCP_CONNECTION_INFO = 0x106 - TCP_ENABLE_ECN = 0x104 - TCP_FASTOPEN = 0x105 - TCP_KEEPALIVE = 0x10 - TCP_KEEPCNT = 0x102 - TCP_KEEPINTVL = 0x101 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MINMSS = 0xd8 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_NOTSENT_LOWAT = 0x201 - TCP_RXT_CONNDROPTIME = 0x80 - TCP_RXT_FINDROP = 0x100 - TCP_SENDMOREACKS = 0x103 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40107458 - TIOCDRAIN = 0x2000745e - TIOCDSIMICROCODE = 0x20007455 - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x40487413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGWINSZ = 0x40087468 - TIOCIXOFF = 0x20007480 - TIOCIXON = 0x20007481 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMODG = 0x40047403 - TIOCMODS = 0x80047404 - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTYGNAME = 0x40807453 - TIOCPTYGRANT = 0x20007454 - TIOCPTYUNLK = 0x20007452 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCONS = 0x20007463 - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x80487414 - TIOCSETAF = 0x80487416 - TIOCSETAW = 0x80487415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2000745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VM_LOADAVG = 0x2 - VM_MACHFACTOR = 0x4 - VM_MAXID = 0x6 - VM_METER = 0x1 - VM_SWAPUSAGE = 0x5 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x10 - WCOREFLAG = 0x80 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOWAIT = 0x20 - WORDSIZE = 0x40 - WSTOPPED = 0x8 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADARCH = syscall.Errno(0x56) - EBADEXEC = syscall.Errno(0x55) - EBADF = syscall.Errno(0x9) - EBADMACHO = syscall.Errno(0x58) - EBADMSG = syscall.Errno(0x5e) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x59) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDEVERR = syscall.Errno(0x53) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x5a) - EILSEQ = syscall.Errno(0x5c) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x6a) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5f) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x60) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x61) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5b) - ENOPOLICY = syscall.Errno(0x67) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x62) - ENOSTR = syscall.Errno(0x63) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x68) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x66) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x69) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x64) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - EPWROFF = syscall.Errno(0x52) - EQFULL = syscall.Errno(0x6a) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHLIBVERS = syscall.Errno(0x57) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x65) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "resource busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "device power is off", - 83: "device error", - 84: "value too large to be stored in data type", - 85: "bad executable (or shared library)", - 86: "bad CPU type in executable", - 87: "shared library version mismatch", - 88: "malformed Mach-o file", - 89: "operation canceled", - 90: "identifier removed", - 91: "no message of desired type", - 92: "illegal byte sequence", - 93: "attribute not found", - 94: "bad message", - 95: "EMULTIHOP (Reserved)", - 96: "no message available on STREAM", - 97: "ENOLINK (Reserved)", - 98: "no STREAM resources", - 99: "not a STREAM", - 100: "protocol error", - 101: "STREAM ioctl timeout", - 102: "operation not supported on socket", - 103: "policy not found", - 104: "state not recoverable", - 105: "previous owner died", - 106: "interface output queue is full", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go deleted file mode 100644 index d960155..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +++ /dev/null @@ -1,1575 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,dragonfly - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ATM = 0x1e - AF_BLUETOOTH = 0x21 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x23 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1c - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x24 - AF_MPLS = 0x22 - AF_NATM = 0x1d - AF_NETBIOS = 0x6 - AF_NETGRAPH = 0x20 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SIP = 0x18 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ALTWERASE = 0x200 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0104279 - BIOCGETIF = 0x4020426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x2000427a - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044278 - BIOCSETF = 0x80104267 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x8010427b - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x8 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DEFAULTBUFSIZE = 0x1000 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MAX_CLONES = 0x80 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x4 - CLOCK_MONOTONIC_FAST = 0xc - CLOCK_MONOTONIC_PRECISE = 0xb - CLOCK_PROCESS_CPUTIME_ID = 0xf - CLOCK_PROF = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_FAST = 0xa - CLOCK_REALTIME_PRECISE = 0x9 - CLOCK_SECOND = 0xd - CLOCK_THREAD_CPUTIME_ID = 0xe - CLOCK_UPTIME = 0x5 - CLOCK_UPTIME_FAST = 0x8 - CLOCK_UPTIME_PRECISE = 0x7 - CLOCK_VIRTUAL = 0x1 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DOCSIS = 0x8f - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_REDBACK_SMARTEDGE = 0x20 - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DBF = 0xf - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_EXCEPT = -0x8 - EVFILT_FS = -0xa - EVFILT_MARKER = 0xf - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xa - EVFILT_TIMER = -0x7 - EVFILT_USER = -0x9 - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_NODATA = 0x1000 - EV_ONESHOT = 0x10 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTEXIT_LWP = 0x10000 - EXTEXIT_PROC = 0x0 - EXTEXIT_SETINT = 0x1 - EXTEXIT_SIMPLE = 0x0 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_DUP2FD = 0xa - F_DUP2FD_CLOEXEC = 0x12 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x11 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETOWN = 0x5 - F_OK = 0x0 - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x118e72 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MONITOR = 0x40000 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NPOLLING = 0x100000 - IFF_OACTIVE = 0x400 - IFF_OACTIVE_COMPAT = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_POLLING = 0x10000 - IFF_POLLING_COMPAT = 0x10000 - IFF_PPROMISC = 0x20000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_SMART = 0x20 - IFF_STATICARP = 0x80000 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf8 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xf3 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VOICEEM = 0x64 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CARP = 0x70 - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0xfe - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MEAS = 0x13 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MOBILE = 0x37 - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SDRP = 0x2a - IPPROTO_SEP = 0x21 - IPPROTO_SKIP = 0x39 - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TLSP = 0x38 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_UNKNOWN = 0x102 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_BINDV6ONLY = 0x1b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MINHLIM = 0x28 - IPV6_MMTU = 0x500 - IPV6_MSFILTER = 0x4a - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PKTOPTIONS = 0x34 - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_PREFER_TEMPADDR = 0x3f - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FAITH = 0x16 - IP_FW_ADD = 0x32 - IP_FW_DEL = 0x33 - IP_FW_FLUSH = 0x34 - IP_FW_GET = 0x36 - IP_FW_RESETLOG = 0x37 - IP_FW_X = 0x31 - IP_FW_ZERO = 0x35 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x42 - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVTTL = 0x41 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_AUTOSYNC = 0x7 - MADV_CONTROL_END = 0xb - MADV_CONTROL_START = 0xa - MADV_CORE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_INVAL = 0xa - MADV_NOCORE = 0x8 - MADV_NORMAL = 0x0 - MADV_NOSYNC = 0x6 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SETMAP = 0xb - MADV_WILLNEED = 0x3 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_NOCORE = 0x20000 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_NOSYNC = 0x800 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_SIZEALIGN = 0x40000 - MAP_STACK = 0x400 - MAP_TRYFIXED = 0x10000 - MAP_VPAGETABLE = 0x2000 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_CMSG_CLOEXEC = 0x1000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_FBLOCKING = 0x10000 - MSG_FMASK = 0xffff0000 - MSG_FNONBLOCKING = 0x20000 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_SYNC = 0x800 - MSG_TRUNC = 0x10 - MSG_UNUSED09 = 0x200 - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x0 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_MAXID = 0x4 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_OOB = 0x2 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x20000 - O_CREAT = 0x200 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x8000000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FAPPEND = 0x100000 - O_FASYNCWRITE = 0x800000 - O_FBLOCKING = 0x40000 - O_FMASK = 0xfc0000 - O_FNONBLOCKING = 0x80000 - O_FOFFSET = 0x200000 - O_FSYNC = 0x80 - O_FSYNCWRITE = 0x400000 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0xb - RTAX_MPLS1 = 0x8 - RTAX_MPLS2 = 0x9 - RTAX_MPLS3 = 0xa - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_MPLS1 = 0x100 - RTA_MPLS2 = 0x200 - RTA_MPLS3 = 0x400 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MPLSOPS = 0x1000000 - RTF_MULTICAST = 0x800000 - RTF_PINNED = 0x100000 - RTF_PRCLONING = 0x10000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_REJECT = 0x8 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_WASCLONED = 0x20000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x12 - RTM_IFANNOUNCE = 0x11 - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x6 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_IWCAPSEGS = 0x400 - RTV_IWMAXSEGS = 0x200 - RTV_MSL = 0x100 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCADDRT = 0x8040720a - SIOCAIFADDR = 0x8040691a - SIOCALIFADDR = 0x8118691b - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80206932 - SIOCDELRT = 0x8040720b - SIOCDIFADDR = 0x80206919 - SIOCDIFPHYADDR = 0x80206949 - SIOCDLIFADDR = 0x8118691d - SIOCGDRVSPEC = 0xc028697b - SIOCGETSGCNT = 0xc0207210 - SIOCGETVIFCNT = 0xc028720f - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020691f - SIOCGIFCONF = 0xc0106924 - SIOCGIFDATA = 0xc0206926 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc028698a - SIOCGIFINDEX = 0xc0206920 - SIOCGIFMEDIA = 0xc0306938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPOLLCPU = 0xc020697e - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFSTATUS = 0xc331693b - SIOCGIFTSOLEN = 0xc0206980 - SIOCGLIFADDR = 0xc118691c - SIOCGLIFPHYADDR = 0xc118694b - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGPRIVATE_0 = 0xc0206950 - SIOCGPRIVATE_1 = 0xc0206951 - SIOCIFCREATE = 0xc020697a - SIOCIFCREATE2 = 0xc020697c - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106978 - SIOCSDRVSPEC = 0x8028697b - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020691e - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNAME = 0x80206928 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPHYS = 0x80206936 - SIOCSIFPOLLCPU = 0x8020697d - SIOCSIFTSOLEN = 0x8020697f - SIOCSLIFPHYADDR = 0x8118694a - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_NONBLOCK = 0x20000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BROADCAST = 0x20 - SO_CPUHINT = 0x1030 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NOSIGPIPE = 0x800 - SO_OOBINLINE = 0x100 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDSPACE = 0x100a - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_FASTKEEP = 0x80 - TCP_KEEPCNT = 0x400 - TCP_KEEPIDLE = 0x100 - TCP_KEEPINIT = 0x20 - TCP_KEEPINTVL = 0x200 - TCP_MAXBURST = 0x4 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MINMSS = 0x100 - TCP_MIN_WINSHIFT = 0x5 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_SIGNATURE_ENABLE = 0x10 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40107458 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGSID = 0x40047463 - TIOCGSIZE = 0x40087468 - TIOCGWINSZ = 0x40087468 - TIOCISPTMASTER = 0x20007455 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMODG = 0x40047403 - TIOCMODS = 0x80047404 - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2000745f - TIOCSPGRP = 0x80047476 - TIOCSSIZE = 0x80087467 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VCHECKPT = 0x13 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VERASE2 = 0x7 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VM_BCACHE_SIZE_MAX = 0x0 - VM_SWZONE_SIZE_MAX = 0x4000000000 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x4 - WCOREFLAG = 0x80 - WLINUXCLONE = 0x80000000 - WNOHANG = 0x1 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EASYNC = syscall.Errno(0x63) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x59) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x55) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDOOFUS = syscall.Errno(0x58) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x56) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x63) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5a) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x57) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5b) - ENOMEDIUM = syscall.Errno(0x5d) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x5c) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUNUSED94 = syscall.Errno(0x5e) - EUNUSED95 = syscall.Errno(0x5f) - EUNUSED96 = syscall.Errno(0x60) - EUNUSED97 = syscall.Errno(0x61) - EUNUSED98 = syscall.Errno(0x62) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCKPT = syscall.Signal(0x21) - SIGCKPTEXIT = syscall.Signal(0x22) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "operation canceled", - 86: "illegal byte sequence", - 87: "attribute not found", - 88: "programming error", - 89: "bad message", - 90: "multihop attempted", - 91: "link has been severed", - 92: "protocol error", - 93: "no medium found", - 94: "unknown error: 94", - 95: "unknown error: 95", - 96: "unknown error: 96", - 97: "unknown error: 97", - 98: "unknown error: 98", - 99: "unknown error: 99", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "thread Scheduler", - 33: "checkPoint", - 34: "checkPointExit", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go deleted file mode 100644 index a8b0587..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +++ /dev/null @@ -1,1756 +0,0 @@ -// mkerrors.sh -m32 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,freebsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m32 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x23 - AF_ATM = 0x1e - AF_BLUETOOTH = 0x24 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1c - AF_INET6_SDP = 0x2a - AF_INET_SDP = 0x28 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x2a - AF_NATM = 0x1d - AF_NETBIOS = 0x6 - AF_NETGRAPH = 0x20 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SCLUSTER = 0x22 - AF_SIP = 0x18 - AF_SLOW = 0x21 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VENDOR00 = 0x27 - AF_VENDOR01 = 0x29 - AF_VENDOR02 = 0x2b - AF_VENDOR03 = 0x2d - AF_VENDOR04 = 0x2f - AF_VENDOR05 = 0x31 - AF_VENDOR06 = 0x33 - AF_VENDOR07 = 0x35 - AF_VENDOR08 = 0x37 - AF_VENDOR09 = 0x39 - AF_VENDOR10 = 0x3b - AF_VENDOR11 = 0x3d - AF_VENDOR12 = 0x3f - AF_VENDOR13 = 0x41 - AF_VENDOR14 = 0x43 - AF_VENDOR15 = 0x45 - AF_VENDOR16 = 0x47 - AF_VENDOR17 = 0x49 - AF_VENDOR18 = 0x4b - AF_VENDOR19 = 0x4d - AF_VENDOR20 = 0x4f - AF_VENDOR21 = 0x51 - AF_VENDOR22 = 0x53 - AF_VENDOR23 = 0x55 - AF_VENDOR24 = 0x57 - AF_VENDOR25 = 0x59 - AF_VENDOR26 = 0x5b - AF_VENDOR27 = 0x5d - AF_VENDOR28 = 0x5f - AF_VENDOR29 = 0x61 - AF_VENDOR30 = 0x63 - AF_VENDOR31 = 0x65 - AF_VENDOR32 = 0x67 - AF_VENDOR33 = 0x69 - AF_VENDOR34 = 0x6b - AF_VENDOR35 = 0x6d - AF_VENDOR36 = 0x6f - AF_VENDOR37 = 0x71 - AF_VENDOR38 = 0x73 - AF_VENDOR39 = 0x75 - AF_VENDOR40 = 0x77 - AF_VENDOR41 = 0x79 - AF_VENDOR42 = 0x7b - AF_VENDOR43 = 0x7d - AF_VENDOR44 = 0x7f - AF_VENDOR45 = 0x81 - AF_VENDOR46 = 0x83 - AF_VENDOR47 = 0x85 - ALTWERASE = 0x200 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427c - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRECTION = 0x40044276 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0084279 - BIOCGETBUFMODE = 0x4004427d - BIOCGETIF = 0x4020426b - BIOCGETZMAX = 0x4004427f - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4008426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCGTSTAMP = 0x40044283 - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x2000427a - BIOCPROMISC = 0x20004269 - BIOCROTZBUF = 0x400c4280 - BIOCSBLEN = 0xc0044266 - BIOCSDIRECTION = 0x80044277 - BIOCSDLT = 0x80044278 - BIOCSETBUFMODE = 0x8004427e - BIOCSETF = 0x80084267 - BIOCSETFNR = 0x80084282 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x8008427b - BIOCSETZBUF = 0x800c4281 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8008426d - BIOCSSEESENT = 0x80044277 - BIOCSTSTAMP = 0x80044284 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_BUFMODE_BUFFER = 0x1 - BPF_BUFMODE_ZBUF = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_T_BINTIME = 0x2 - BPF_T_BINTIME_FAST = 0x102 - BPF_T_BINTIME_MONOTONIC = 0x202 - BPF_T_BINTIME_MONOTONIC_FAST = 0x302 - BPF_T_FAST = 0x100 - BPF_T_FLAG_MASK = 0x300 - BPF_T_FORMAT_MASK = 0x3 - BPF_T_MICROTIME = 0x0 - BPF_T_MICROTIME_FAST = 0x100 - BPF_T_MICROTIME_MONOTONIC = 0x200 - BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 - BPF_T_MONOTONIC = 0x200 - BPF_T_MONOTONIC_FAST = 0x300 - BPF_T_NANOTIME = 0x1 - BPF_T_NANOTIME_FAST = 0x101 - BPF_T_NANOTIME_MONOTONIC = 0x201 - BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 - BPF_T_NONE = 0x3 - BPF_T_NORMAL = 0x0 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - CAP_ACCEPT = 0x200000020000000 - CAP_ACL_CHECK = 0x400000000010000 - CAP_ACL_DELETE = 0x400000000020000 - CAP_ACL_GET = 0x400000000040000 - CAP_ACL_SET = 0x400000000080000 - CAP_ALL0 = 0x20007ffffffffff - CAP_ALL1 = 0x4000000001fffff - CAP_BIND = 0x200000040000000 - CAP_BINDAT = 0x200008000000400 - CAP_CHFLAGSAT = 0x200000000001400 - CAP_CONNECT = 0x200000080000000 - CAP_CONNECTAT = 0x200010000000400 - CAP_CREATE = 0x200000000000040 - CAP_EVENT = 0x400000000000020 - CAP_EXTATTR_DELETE = 0x400000000001000 - CAP_EXTATTR_GET = 0x400000000002000 - CAP_EXTATTR_LIST = 0x400000000004000 - CAP_EXTATTR_SET = 0x400000000008000 - CAP_FCHDIR = 0x200000000000800 - CAP_FCHFLAGS = 0x200000000001000 - CAP_FCHMOD = 0x200000000002000 - CAP_FCHMODAT = 0x200000000002400 - CAP_FCHOWN = 0x200000000004000 - CAP_FCHOWNAT = 0x200000000004400 - CAP_FCNTL = 0x200000000008000 - CAP_FCNTL_ALL = 0x78 - CAP_FCNTL_GETFL = 0x8 - CAP_FCNTL_GETOWN = 0x20 - CAP_FCNTL_SETFL = 0x10 - CAP_FCNTL_SETOWN = 0x40 - CAP_FEXECVE = 0x200000000000080 - CAP_FLOCK = 0x200000000010000 - CAP_FPATHCONF = 0x200000000020000 - CAP_FSCK = 0x200000000040000 - CAP_FSTAT = 0x200000000080000 - CAP_FSTATAT = 0x200000000080400 - CAP_FSTATFS = 0x200000000100000 - CAP_FSYNC = 0x200000000000100 - CAP_FTRUNCATE = 0x200000000000200 - CAP_FUTIMES = 0x200000000200000 - CAP_FUTIMESAT = 0x200000000200400 - CAP_GETPEERNAME = 0x200000100000000 - CAP_GETSOCKNAME = 0x200000200000000 - CAP_GETSOCKOPT = 0x200000400000000 - CAP_IOCTL = 0x400000000000080 - CAP_IOCTLS_ALL = 0x7fffffff - CAP_KQUEUE = 0x400000000100040 - CAP_KQUEUE_CHANGE = 0x400000000100000 - CAP_KQUEUE_EVENT = 0x400000000000040 - CAP_LINKAT_SOURCE = 0x200020000000400 - CAP_LINKAT_TARGET = 0x200000000400400 - CAP_LISTEN = 0x200000800000000 - CAP_LOOKUP = 0x200000000000400 - CAP_MAC_GET = 0x400000000000001 - CAP_MAC_SET = 0x400000000000002 - CAP_MKDIRAT = 0x200000000800400 - CAP_MKFIFOAT = 0x200000001000400 - CAP_MKNODAT = 0x200000002000400 - CAP_MMAP = 0x200000000000010 - CAP_MMAP_R = 0x20000000000001d - CAP_MMAP_RW = 0x20000000000001f - CAP_MMAP_RWX = 0x20000000000003f - CAP_MMAP_RX = 0x20000000000003d - CAP_MMAP_W = 0x20000000000001e - CAP_MMAP_WX = 0x20000000000003e - CAP_MMAP_X = 0x20000000000003c - CAP_PDGETPID = 0x400000000000200 - CAP_PDKILL = 0x400000000000800 - CAP_PDWAIT = 0x400000000000400 - CAP_PEELOFF = 0x200001000000000 - CAP_POLL_EVENT = 0x400000000000020 - CAP_PREAD = 0x20000000000000d - CAP_PWRITE = 0x20000000000000e - CAP_READ = 0x200000000000001 - CAP_RECV = 0x200000000000001 - CAP_RENAMEAT_SOURCE = 0x200000004000400 - CAP_RENAMEAT_TARGET = 0x200040000000400 - CAP_RIGHTS_VERSION = 0x0 - CAP_RIGHTS_VERSION_00 = 0x0 - CAP_SEEK = 0x20000000000000c - CAP_SEEK_TELL = 0x200000000000004 - CAP_SEM_GETVALUE = 0x400000000000004 - CAP_SEM_POST = 0x400000000000008 - CAP_SEM_WAIT = 0x400000000000010 - CAP_SEND = 0x200000000000002 - CAP_SETSOCKOPT = 0x200002000000000 - CAP_SHUTDOWN = 0x200004000000000 - CAP_SOCK_CLIENT = 0x200007780000003 - CAP_SOCK_SERVER = 0x200007f60000003 - CAP_SYMLINKAT = 0x200000008000400 - CAP_TTYHOOK = 0x400000000000100 - CAP_UNLINKAT = 0x200000010000400 - CAP_UNUSED0_44 = 0x200080000000000 - CAP_UNUSED0_57 = 0x300000000000000 - CAP_UNUSED1_22 = 0x400000000200000 - CAP_UNUSED1_57 = 0x500000000000000 - CAP_WRITE = 0x200000000000002 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x4 - CLOCK_MONOTONIC_FAST = 0xc - CLOCK_MONOTONIC_PRECISE = 0xb - CLOCK_PROCESS_CPUTIME_ID = 0xf - CLOCK_PROF = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_FAST = 0xa - CLOCK_REALTIME_PRECISE = 0x9 - CLOCK_SECOND = 0xd - CLOCK_THREAD_CPUTIME_ID = 0xe - CLOCK_UPTIME = 0x5 - CLOCK_UPTIME_FAST = 0x8 - CLOCK_UPTIME_PRECISE = 0x7 - CLOCK_VIRTUAL = 0x1 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0x18 - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_BREDR_BB = 0xff - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_BLUETOOTH_LE_LL = 0xfb - DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 - DLT_BLUETOOTH_LINUX_MONITOR = 0xfe - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_EPON = 0x103 - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_INFINIBAND = 0xf7 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPMI_HPM_2 = 0x104 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x104 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NETLINK = 0xfd - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x79 - DLT_PKTAP = 0x102 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PROFIBUS_DL = 0x101 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_RTAC_SERIAL = 0xfa - DLT_SCCP = 0x8e - DLT_SCTP = 0xf8 - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USBPCAP = 0xf9 - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_WIRESHARK_UPPER_PDU = 0xfc - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_FS = -0x9 - EVFILT_LIO = -0xa - EVFILT_PROC = -0x5 - EVFILT_PROCDESC = -0x8 - EVFILT_READ = -0x1 - EVFILT_SENDFILE = -0xc - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xb - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DROP = 0x1000 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_FLAG2 = 0x4000 - EV_FORCEONESHOT = 0x100 - EV_ONESHOT = 0x10 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTATTR_NAMESPACE_EMPTY = 0x0 - EXTATTR_NAMESPACE_SYSTEM = 0x2 - EXTATTR_NAMESPACE_USER = 0x1 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_CANCEL = 0x5 - F_DUP2FD = 0xa - F_DUP2FD_CLOEXEC = 0x12 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x11 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0xb - F_GETOWN = 0x5 - F_OGETLK = 0x7 - F_OK = 0x0 - F_OSETLK = 0x8 - F_OSETLKW = 0x9 - F_RDAHEAD = 0x10 - F_RDLCK = 0x1 - F_READAHEAD = 0xf - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0xc - F_SETLKW = 0xd - F_SETLK_REMOTE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_UNLCKSYS = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x218f52 - IFF_CANTCONFIG = 0x10000 - IFF_DEBUG = 0x4 - IFF_DRV_OACTIVE = 0x400 - IFF_DRV_RUNNING = 0x40 - IFF_DYING = 0x200000 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MONITOR = 0x40000 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PPROMISC = 0x20000 - IFF_PROMISC = 0x100 - IFF_RENAMING = 0x400000 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_STATICARP = 0x80000 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_IEEE1394 = 0x90 - IFT_INFINIBAND = 0xc7 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_PPP = 0x17 - IFT_PROPVIRTUAL = 0x35 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_MASK = 0xfffffffe - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CARP = 0x70 - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0x102 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HIP = 0x8b - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MEAS = 0x13 - IPPROTO_MH = 0x87 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OLD_DIVERT = 0xfe - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_RESERVED_253 = 0xfd - IPPROTO_RESERVED_254 = 0xfe - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEND = 0x103 - IPPROTO_SEP = 0x21 - IPPROTO_SHIM6 = 0x8c - IPPROTO_SKIP = 0x39 - IPPROTO_SPACER = 0x7fff - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TLSP = 0x38 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_BINDANY = 0x40 - IPV6_BINDMULTI = 0x41 - IPV6_BINDV6ONLY = 0x1b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FLOWID = 0x43 - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOWTYPE = 0x44 - IPV6_FRAGTTL = 0x78 - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MSFILTER = 0x4a - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_PREFER_TEMPADDR = 0x3f - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVFLOWID = 0x46 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRSSBUCKETID = 0x47 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RSSBUCKETID = 0x45 - IPV6_RSS_LISTEN_BUCKET = 0x42 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BINDANY = 0x18 - IP_BINDMULTI = 0x19 - IP_BLOCK_SOURCE = 0x48 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DONTFRAG = 0x43 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET3 = 0x31 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FLOWID = 0x5a - IP_FLOWTYPE = 0x5b - IP_FW3 = 0x30 - IP_FW_ADD = 0x32 - IP_FW_DEL = 0x33 - IP_FW_FLUSH = 0x34 - IP_FW_GET = 0x36 - IP_FW_NAT_CFG = 0x38 - IP_FW_NAT_DEL = 0x39 - IP_FW_NAT_GET_CONFIG = 0x3a - IP_FW_NAT_GET_LOG = 0x3b - IP_FW_RESETLOG = 0x37 - IP_FW_TABLE_ADD = 0x28 - IP_FW_TABLE_DEL = 0x29 - IP_FW_TABLE_FLUSH = 0x2a - IP_FW_TABLE_GETSIZE = 0x2b - IP_FW_TABLE_LIST = 0x2c - IP_FW_ZERO = 0x35 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 - IP_MF = 0x2000 - IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_OFFMASK = 0x1fff - IP_ONESBCAST = 0x17 - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVFLOWID = 0x5d - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRSSBUCKETID = 0x5e - IP_RECVTOS = 0x44 - IP_RECVTTL = 0x41 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSSBUCKETID = 0x5c - IP_RSS_LISTEN_BUCKET = 0x1a - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_SENDSRCADDR = 0x7 - IP_TOS = 0x3 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_AUTOSYNC = 0x7 - MADV_CORE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_NOCORE = 0x8 - MADV_NORMAL = 0x0 - MADV_NOSYNC = 0x6 - MADV_PROTECT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MAP_ALIGNED_SUPER = 0x1000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_EXCL = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_NOCORE = 0x20000 - MAP_NOSYNC = 0x800 - MAP_PREFAULT_READ = 0x40000 - MAP_PRIVATE = 0x2 - MAP_RESERVED0020 = 0x20 - MAP_RESERVED0040 = 0x40 - MAP_RESERVED0080 = 0x80 - MAP_RESERVED0100 = 0x100 - MAP_SHARED = 0x1 - MAP_STACK = 0x400 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ACLS = 0x8000000 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x200000000 - MNT_BYFSID = 0x8000000 - MNT_CMDFLAGS = 0xd0f0000 - MNT_DEFEXPORTED = 0x200 - MNT_DELEXPORT = 0x20000 - MNT_EXKERB = 0x800 - MNT_EXPORTANON = 0x400 - MNT_EXPORTED = 0x100 - MNT_EXPUBLIC = 0x20000000 - MNT_EXRDONLY = 0x80 - MNT_FORCE = 0x80000 - MNT_GJOURNAL = 0x2000000 - MNT_IGNORE = 0x800000 - MNT_LAZY = 0x3 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NFS4ACLS = 0x10 - MNT_NOATIME = 0x10000000 - MNT_NOCLUSTERR = 0x40000000 - MNT_NOCLUSTERW = 0x80000000 - MNT_NOEXEC = 0x4 - MNT_NONBUSY = 0x4000000 - MNT_NOSUID = 0x8 - MNT_NOSYMFOLLOW = 0x400000 - MNT_NOWAIT = 0x2 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SNAPSHOT = 0x1000000 - MNT_SOFTDEP = 0x200000 - MNT_SUIDDIR = 0x100000 - MNT_SUJ = 0x100000000 - MNT_SUSPEND = 0x4 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e - MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff - MNT_WAIT = 0x1 - MSG_CMSG_CLOEXEC = 0x40000 - MSG_COMPAT = 0x8000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_NBIO = 0x4000 - MSG_NOSIGNAL = 0x20000 - MSG_NOTIFICATION = 0x2000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITFORONE = 0x80000 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x0 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLISTL = 0x5 - NET_RT_IFMALIST = 0x4 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_CLOSE = 0x100 - NOTE_CLOSE_WRITE = 0x200 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FILE_POLL = 0x2 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MSECONDS = 0x2 - NOTE_NSECONDS = 0x8 - NOTE_OPEN = 0x80 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_READ = 0x400 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x4 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x100000 - O_CREAT = 0x200 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x20000 - O_EXCL = 0x800 - O_EXEC = 0x40000 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_TTY_INIT = 0x80000 - O_VERIFY = 0x200000 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FIXEDMTU = 0x80000 - RTF_FMASK = 0x1004d808 - RTF_GATEWAY = 0x2 - RTF_GWFLAG_COMPAT = 0x80000000 - RTF_HOST = 0x4 - RTF_LLDATA = 0x400 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_PINNED = 0x100000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_REJECT = 0x8 - RTF_RNH_LOCKED = 0x40000000 - RTF_STATIC = 0x800 - RTF_STICKY = 0x10000000 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x12 - RTM_IFANNOUNCE = 0x11 - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RTV_WEIGHT = 0x100 - RT_ALL_FIBS = -0x1 - RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 - RT_DEFAULT_FIB = 0x0 - RT_HAS_GW = 0x80 - RT_HAS_HEADER = 0x10 - RT_HAS_HEADER_BIT = 0x4 - RT_L2_ME = 0x4 - RT_L2_ME_BIT = 0x2 - RT_LLE_CACHE = 0x100 - RT_MAY_LOOP = 0x8 - RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 - RT_REJECT = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_BINTIME = 0x4 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80246987 - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80246989 - SIOCDIFPHYADDR = 0x80206949 - SIOCGDRVSPEC = 0xc01c697b - SIOCGETSGCNT = 0xc0147210 - SIOCGETVIFCNT = 0xc014720f - SIOCGHIWAT = 0x40047301 - SIOCGI2C = 0xc020693d - SIOCGIFADDR = 0xc0206921 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020691f - SIOCGIFCONF = 0xc0086924 - SIOCGIFDESCR = 0xc020692a - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFIB = 0xc020695c - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc024698a - SIOCGIFGROUP = 0xc0246988 - SIOCGIFINDEX = 0xc0206920 - SIOCGIFMAC = 0xc0206926 - SIOCGIFMEDIA = 0xc0286938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFSTATUS = 0xc331693b - SIOCGIFXMEDIA = 0xc028698b - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGPRIVATE_0 = 0xc0206950 - SIOCGPRIVATE_1 = 0xc0206951 - SIOCGTUNFIB = 0xc020695e - SIOCIFCREATE = 0xc020697a - SIOCIFCREATE2 = 0xc020697c - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCSDRVSPEC = 0x801c697b - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020691e - SIOCSIFDESCR = 0x80206929 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFIB = 0x8020695d - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206927 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNAME = 0x80206928 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPHYS = 0x80206936 - SIOCSIFRVNET = 0xc020695b - SIOCSIFVNET = 0xc020695a - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSTUNFIB = 0x8020695f - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_NONBLOCK = 0x20000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BINTIME = 0x2000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1009 - SO_LINGER = 0x80 - SO_LISTENINCQLEN = 0x1013 - SO_LISTENQLEN = 0x1012 - SO_LISTENQLIMIT = 0x1011 - SO_NOSIGPIPE = 0x800 - SO_NO_DDP = 0x8000 - SO_NO_OFFLOAD = 0x4000 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1010 - SO_PROTOCOL = 0x1016 - SO_PROTOTYPE = 0x1016 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SETFIB = 0x1014 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SO_USER_COOKIE = 0x1015 - SO_VENDOR = 0x80000000 - TAB0 = 0x0 - TAB3 = 0x4 - TABDLY = 0x4 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CA_NAME_MAX = 0x10 - TCP_CCALGOOPT = 0x41 - TCP_CONGESTION = 0x40 - TCP_FASTOPEN = 0x401 - TCP_FUNCTION_BLK = 0x2000 - TCP_FUNCTION_NAME_LEN_MAX = 0x20 - TCP_INFO = 0x20 - TCP_KEEPCNT = 0x400 - TCP_KEEPIDLE = 0x100 - TCP_KEEPINIT = 0x80 - TCP_KEEPINTVL = 0x200 - TCP_MAXBURST = 0x4 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_PCAP_IN = 0x1000 - TCP_PCAP_OUT = 0x800 - TCP_VENDOR = 0x80000000 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGPTN = 0x4004740f - TIOCGSID = 0x40047463 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DCD = 0x40 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMASTER = 0x2000741c - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40087459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VERASE2 = 0x7 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x4 - WCOREFLAG = 0x80 - WEXITED = 0x10 - WLINUXCLONE = 0x80000000 - WNOHANG = 0x1 - WNOWAIT = 0x8 - WSTOPPED = 0x2 - WTRAPPED = 0x20 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x59) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x55) - ECAPMODE = syscall.Errno(0x5e) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDOOFUS = syscall.Errno(0x58) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x56) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5a) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x57) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCAPABLE = syscall.Errno(0x5d) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x5f) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x60) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x5c) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGLIBRT = syscall.Signal(0x21) - SIGLWP = syscall.Signal(0x20) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "operation canceled", - 86: "illegal byte sequence", - 87: "attribute not found", - 88: "programming error", - 89: "bad message", - 90: "multihop attempted", - 91: "link has been severed", - 92: "protocol error", - 93: "capabilities insufficient", - 94: "not permitted in capability mode", - 95: "state not recoverable", - 96: "previous owner died", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "unknown signal", - 33: "unknown signal", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go deleted file mode 100644 index cf5f012..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +++ /dev/null @@ -1,1757 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,freebsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x23 - AF_ATM = 0x1e - AF_BLUETOOTH = 0x24 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1c - AF_INET6_SDP = 0x2a - AF_INET_SDP = 0x28 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x2a - AF_NATM = 0x1d - AF_NETBIOS = 0x6 - AF_NETGRAPH = 0x20 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SCLUSTER = 0x22 - AF_SIP = 0x18 - AF_SLOW = 0x21 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VENDOR00 = 0x27 - AF_VENDOR01 = 0x29 - AF_VENDOR02 = 0x2b - AF_VENDOR03 = 0x2d - AF_VENDOR04 = 0x2f - AF_VENDOR05 = 0x31 - AF_VENDOR06 = 0x33 - AF_VENDOR07 = 0x35 - AF_VENDOR08 = 0x37 - AF_VENDOR09 = 0x39 - AF_VENDOR10 = 0x3b - AF_VENDOR11 = 0x3d - AF_VENDOR12 = 0x3f - AF_VENDOR13 = 0x41 - AF_VENDOR14 = 0x43 - AF_VENDOR15 = 0x45 - AF_VENDOR16 = 0x47 - AF_VENDOR17 = 0x49 - AF_VENDOR18 = 0x4b - AF_VENDOR19 = 0x4d - AF_VENDOR20 = 0x4f - AF_VENDOR21 = 0x51 - AF_VENDOR22 = 0x53 - AF_VENDOR23 = 0x55 - AF_VENDOR24 = 0x57 - AF_VENDOR25 = 0x59 - AF_VENDOR26 = 0x5b - AF_VENDOR27 = 0x5d - AF_VENDOR28 = 0x5f - AF_VENDOR29 = 0x61 - AF_VENDOR30 = 0x63 - AF_VENDOR31 = 0x65 - AF_VENDOR32 = 0x67 - AF_VENDOR33 = 0x69 - AF_VENDOR34 = 0x6b - AF_VENDOR35 = 0x6d - AF_VENDOR36 = 0x6f - AF_VENDOR37 = 0x71 - AF_VENDOR38 = 0x73 - AF_VENDOR39 = 0x75 - AF_VENDOR40 = 0x77 - AF_VENDOR41 = 0x79 - AF_VENDOR42 = 0x7b - AF_VENDOR43 = 0x7d - AF_VENDOR44 = 0x7f - AF_VENDOR45 = 0x81 - AF_VENDOR46 = 0x83 - AF_VENDOR47 = 0x85 - ALTWERASE = 0x200 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427c - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRECTION = 0x40044276 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0104279 - BIOCGETBUFMODE = 0x4004427d - BIOCGETIF = 0x4020426b - BIOCGETZMAX = 0x4008427f - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCGTSTAMP = 0x40044283 - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x2000427a - BIOCPROMISC = 0x20004269 - BIOCROTZBUF = 0x40184280 - BIOCSBLEN = 0xc0044266 - BIOCSDIRECTION = 0x80044277 - BIOCSDLT = 0x80044278 - BIOCSETBUFMODE = 0x8004427e - BIOCSETF = 0x80104267 - BIOCSETFNR = 0x80104282 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x8010427b - BIOCSETZBUF = 0x80184281 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCSTSTAMP = 0x80044284 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x8 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_BUFMODE_BUFFER = 0x1 - BPF_BUFMODE_ZBUF = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_T_BINTIME = 0x2 - BPF_T_BINTIME_FAST = 0x102 - BPF_T_BINTIME_MONOTONIC = 0x202 - BPF_T_BINTIME_MONOTONIC_FAST = 0x302 - BPF_T_FAST = 0x100 - BPF_T_FLAG_MASK = 0x300 - BPF_T_FORMAT_MASK = 0x3 - BPF_T_MICROTIME = 0x0 - BPF_T_MICROTIME_FAST = 0x100 - BPF_T_MICROTIME_MONOTONIC = 0x200 - BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 - BPF_T_MONOTONIC = 0x200 - BPF_T_MONOTONIC_FAST = 0x300 - BPF_T_NANOTIME = 0x1 - BPF_T_NANOTIME_FAST = 0x101 - BPF_T_NANOTIME_MONOTONIC = 0x201 - BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 - BPF_T_NONE = 0x3 - BPF_T_NORMAL = 0x0 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - CAP_ACCEPT = 0x200000020000000 - CAP_ACL_CHECK = 0x400000000010000 - CAP_ACL_DELETE = 0x400000000020000 - CAP_ACL_GET = 0x400000000040000 - CAP_ACL_SET = 0x400000000080000 - CAP_ALL0 = 0x20007ffffffffff - CAP_ALL1 = 0x4000000001fffff - CAP_BIND = 0x200000040000000 - CAP_BINDAT = 0x200008000000400 - CAP_CHFLAGSAT = 0x200000000001400 - CAP_CONNECT = 0x200000080000000 - CAP_CONNECTAT = 0x200010000000400 - CAP_CREATE = 0x200000000000040 - CAP_EVENT = 0x400000000000020 - CAP_EXTATTR_DELETE = 0x400000000001000 - CAP_EXTATTR_GET = 0x400000000002000 - CAP_EXTATTR_LIST = 0x400000000004000 - CAP_EXTATTR_SET = 0x400000000008000 - CAP_FCHDIR = 0x200000000000800 - CAP_FCHFLAGS = 0x200000000001000 - CAP_FCHMOD = 0x200000000002000 - CAP_FCHMODAT = 0x200000000002400 - CAP_FCHOWN = 0x200000000004000 - CAP_FCHOWNAT = 0x200000000004400 - CAP_FCNTL = 0x200000000008000 - CAP_FCNTL_ALL = 0x78 - CAP_FCNTL_GETFL = 0x8 - CAP_FCNTL_GETOWN = 0x20 - CAP_FCNTL_SETFL = 0x10 - CAP_FCNTL_SETOWN = 0x40 - CAP_FEXECVE = 0x200000000000080 - CAP_FLOCK = 0x200000000010000 - CAP_FPATHCONF = 0x200000000020000 - CAP_FSCK = 0x200000000040000 - CAP_FSTAT = 0x200000000080000 - CAP_FSTATAT = 0x200000000080400 - CAP_FSTATFS = 0x200000000100000 - CAP_FSYNC = 0x200000000000100 - CAP_FTRUNCATE = 0x200000000000200 - CAP_FUTIMES = 0x200000000200000 - CAP_FUTIMESAT = 0x200000000200400 - CAP_GETPEERNAME = 0x200000100000000 - CAP_GETSOCKNAME = 0x200000200000000 - CAP_GETSOCKOPT = 0x200000400000000 - CAP_IOCTL = 0x400000000000080 - CAP_IOCTLS_ALL = 0x7fffffffffffffff - CAP_KQUEUE = 0x400000000100040 - CAP_KQUEUE_CHANGE = 0x400000000100000 - CAP_KQUEUE_EVENT = 0x400000000000040 - CAP_LINKAT_SOURCE = 0x200020000000400 - CAP_LINKAT_TARGET = 0x200000000400400 - CAP_LISTEN = 0x200000800000000 - CAP_LOOKUP = 0x200000000000400 - CAP_MAC_GET = 0x400000000000001 - CAP_MAC_SET = 0x400000000000002 - CAP_MKDIRAT = 0x200000000800400 - CAP_MKFIFOAT = 0x200000001000400 - CAP_MKNODAT = 0x200000002000400 - CAP_MMAP = 0x200000000000010 - CAP_MMAP_R = 0x20000000000001d - CAP_MMAP_RW = 0x20000000000001f - CAP_MMAP_RWX = 0x20000000000003f - CAP_MMAP_RX = 0x20000000000003d - CAP_MMAP_W = 0x20000000000001e - CAP_MMAP_WX = 0x20000000000003e - CAP_MMAP_X = 0x20000000000003c - CAP_PDGETPID = 0x400000000000200 - CAP_PDKILL = 0x400000000000800 - CAP_PDWAIT = 0x400000000000400 - CAP_PEELOFF = 0x200001000000000 - CAP_POLL_EVENT = 0x400000000000020 - CAP_PREAD = 0x20000000000000d - CAP_PWRITE = 0x20000000000000e - CAP_READ = 0x200000000000001 - CAP_RECV = 0x200000000000001 - CAP_RENAMEAT_SOURCE = 0x200000004000400 - CAP_RENAMEAT_TARGET = 0x200040000000400 - CAP_RIGHTS_VERSION = 0x0 - CAP_RIGHTS_VERSION_00 = 0x0 - CAP_SEEK = 0x20000000000000c - CAP_SEEK_TELL = 0x200000000000004 - CAP_SEM_GETVALUE = 0x400000000000004 - CAP_SEM_POST = 0x400000000000008 - CAP_SEM_WAIT = 0x400000000000010 - CAP_SEND = 0x200000000000002 - CAP_SETSOCKOPT = 0x200002000000000 - CAP_SHUTDOWN = 0x200004000000000 - CAP_SOCK_CLIENT = 0x200007780000003 - CAP_SOCK_SERVER = 0x200007f60000003 - CAP_SYMLINKAT = 0x200000008000400 - CAP_TTYHOOK = 0x400000000000100 - CAP_UNLINKAT = 0x200000010000400 - CAP_UNUSED0_44 = 0x200080000000000 - CAP_UNUSED0_57 = 0x300000000000000 - CAP_UNUSED1_22 = 0x400000000200000 - CAP_UNUSED1_57 = 0x500000000000000 - CAP_WRITE = 0x200000000000002 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x4 - CLOCK_MONOTONIC_FAST = 0xc - CLOCK_MONOTONIC_PRECISE = 0xb - CLOCK_PROCESS_CPUTIME_ID = 0xf - CLOCK_PROF = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_FAST = 0xa - CLOCK_REALTIME_PRECISE = 0x9 - CLOCK_SECOND = 0xd - CLOCK_THREAD_CPUTIME_ID = 0xe - CLOCK_UPTIME = 0x5 - CLOCK_UPTIME_FAST = 0x8 - CLOCK_UPTIME_PRECISE = 0x7 - CLOCK_VIRTUAL = 0x1 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0x18 - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_BREDR_BB = 0xff - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_BLUETOOTH_LE_LL = 0xfb - DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 - DLT_BLUETOOTH_LINUX_MONITOR = 0xfe - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_EPON = 0x103 - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HHDLC = 0x79 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_INFINIBAND = 0xf7 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPMI_HPM_2 = 0x104 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x104 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NETLINK = 0xfd - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x79 - DLT_PKTAP = 0x102 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PROFIBUS_DL = 0x101 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RIO = 0x7c - DLT_RTAC_SERIAL = 0xfa - DLT_SCCP = 0x8e - DLT_SCTP = 0xf8 - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USBPCAP = 0xf9 - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WIHART = 0xdf - DLT_WIRESHARK_UPPER_PDU = 0xfc - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_FS = -0x9 - EVFILT_LIO = -0xa - EVFILT_PROC = -0x5 - EVFILT_PROCDESC = -0x8 - EVFILT_READ = -0x1 - EVFILT_SENDFILE = -0xc - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xb - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DROP = 0x1000 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_FLAG2 = 0x4000 - EV_FORCEONESHOT = 0x100 - EV_ONESHOT = 0x10 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTATTR_NAMESPACE_EMPTY = 0x0 - EXTATTR_NAMESPACE_SYSTEM = 0x2 - EXTATTR_NAMESPACE_USER = 0x1 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_CANCEL = 0x5 - F_DUP2FD = 0xa - F_DUP2FD_CLOEXEC = 0x12 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x11 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0xb - F_GETOWN = 0x5 - F_OGETLK = 0x7 - F_OK = 0x0 - F_OSETLK = 0x8 - F_OSETLKW = 0x9 - F_RDAHEAD = 0x10 - F_RDLCK = 0x1 - F_READAHEAD = 0xf - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0xc - F_SETLKW = 0xd - F_SETLK_REMOTE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_UNLCKSYS = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x218f52 - IFF_CANTCONFIG = 0x10000 - IFF_DEBUG = 0x4 - IFF_DRV_OACTIVE = 0x400 - IFF_DRV_RUNNING = 0x40 - IFF_DYING = 0x200000 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MONITOR = 0x40000 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PPROMISC = 0x20000 - IFF_PROMISC = 0x100 - IFF_RENAMING = 0x400000 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_STATICARP = 0x80000 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_IEEE1394 = 0x90 - IFT_INFINIBAND = 0xc7 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_PPP = 0x17 - IFT_PROPVIRTUAL = 0x35 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_MASK = 0xfffffffe - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CARP = 0x70 - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0x102 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HIP = 0x8b - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MEAS = 0x13 - IPPROTO_MH = 0x87 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OLD_DIVERT = 0xfe - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_RESERVED_253 = 0xfd - IPPROTO_RESERVED_254 = 0xfe - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEND = 0x103 - IPPROTO_SEP = 0x21 - IPPROTO_SHIM6 = 0x8c - IPPROTO_SKIP = 0x39 - IPPROTO_SPACER = 0x7fff - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TLSP = 0x38 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_BINDANY = 0x40 - IPV6_BINDMULTI = 0x41 - IPV6_BINDV6ONLY = 0x1b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FLOWID = 0x43 - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOWTYPE = 0x44 - IPV6_FRAGTTL = 0x78 - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MSFILTER = 0x4a - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_PREFER_TEMPADDR = 0x3f - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVFLOWID = 0x46 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRSSBUCKETID = 0x47 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RSSBUCKETID = 0x45 - IPV6_RSS_LISTEN_BUCKET = 0x42 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BINDANY = 0x18 - IP_BINDMULTI = 0x19 - IP_BLOCK_SOURCE = 0x48 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DONTFRAG = 0x43 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET3 = 0x31 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FLOWID = 0x5a - IP_FLOWTYPE = 0x5b - IP_FW3 = 0x30 - IP_FW_ADD = 0x32 - IP_FW_DEL = 0x33 - IP_FW_FLUSH = 0x34 - IP_FW_GET = 0x36 - IP_FW_NAT_CFG = 0x38 - IP_FW_NAT_DEL = 0x39 - IP_FW_NAT_GET_CONFIG = 0x3a - IP_FW_NAT_GET_LOG = 0x3b - IP_FW_RESETLOG = 0x37 - IP_FW_TABLE_ADD = 0x28 - IP_FW_TABLE_DEL = 0x29 - IP_FW_TABLE_FLUSH = 0x2a - IP_FW_TABLE_GETSIZE = 0x2b - IP_FW_TABLE_LIST = 0x2c - IP_FW_ZERO = 0x35 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 - IP_MF = 0x2000 - IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_OFFMASK = 0x1fff - IP_ONESBCAST = 0x17 - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVFLOWID = 0x5d - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRSSBUCKETID = 0x5e - IP_RECVTOS = 0x44 - IP_RECVTTL = 0x41 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSSBUCKETID = 0x5c - IP_RSS_LISTEN_BUCKET = 0x1a - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_SENDSRCADDR = 0x7 - IP_TOS = 0x3 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_AUTOSYNC = 0x7 - MADV_CORE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_NOCORE = 0x8 - MADV_NORMAL = 0x0 - MADV_NOSYNC = 0x6 - MADV_PROTECT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MAP_32BIT = 0x80000 - MAP_ALIGNED_SUPER = 0x1000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_EXCL = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_NOCORE = 0x20000 - MAP_NOSYNC = 0x800 - MAP_PREFAULT_READ = 0x40000 - MAP_PRIVATE = 0x2 - MAP_RESERVED0020 = 0x20 - MAP_RESERVED0040 = 0x40 - MAP_RESERVED0080 = 0x80 - MAP_RESERVED0100 = 0x100 - MAP_SHARED = 0x1 - MAP_STACK = 0x400 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ACLS = 0x8000000 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x200000000 - MNT_BYFSID = 0x8000000 - MNT_CMDFLAGS = 0xd0f0000 - MNT_DEFEXPORTED = 0x200 - MNT_DELEXPORT = 0x20000 - MNT_EXKERB = 0x800 - MNT_EXPORTANON = 0x400 - MNT_EXPORTED = 0x100 - MNT_EXPUBLIC = 0x20000000 - MNT_EXRDONLY = 0x80 - MNT_FORCE = 0x80000 - MNT_GJOURNAL = 0x2000000 - MNT_IGNORE = 0x800000 - MNT_LAZY = 0x3 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NFS4ACLS = 0x10 - MNT_NOATIME = 0x10000000 - MNT_NOCLUSTERR = 0x40000000 - MNT_NOCLUSTERW = 0x80000000 - MNT_NOEXEC = 0x4 - MNT_NONBUSY = 0x4000000 - MNT_NOSUID = 0x8 - MNT_NOSYMFOLLOW = 0x400000 - MNT_NOWAIT = 0x2 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SNAPSHOT = 0x1000000 - MNT_SOFTDEP = 0x200000 - MNT_SUIDDIR = 0x100000 - MNT_SUJ = 0x100000000 - MNT_SUSPEND = 0x4 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e - MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff - MNT_WAIT = 0x1 - MSG_CMSG_CLOEXEC = 0x40000 - MSG_COMPAT = 0x8000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_NBIO = 0x4000 - MSG_NOSIGNAL = 0x20000 - MSG_NOTIFICATION = 0x2000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITFORONE = 0x80000 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x0 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLISTL = 0x5 - NET_RT_IFMALIST = 0x4 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_CLOSE = 0x100 - NOTE_CLOSE_WRITE = 0x200 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FILE_POLL = 0x2 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MSECONDS = 0x2 - NOTE_NSECONDS = 0x8 - NOTE_OPEN = 0x80 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_READ = 0x400 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x4 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x100000 - O_CREAT = 0x200 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x20000 - O_EXCL = 0x800 - O_EXEC = 0x40000 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_TTY_INIT = 0x80000 - O_VERIFY = 0x200000 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FIXEDMTU = 0x80000 - RTF_FMASK = 0x1004d808 - RTF_GATEWAY = 0x2 - RTF_GWFLAG_COMPAT = 0x80000000 - RTF_HOST = 0x4 - RTF_LLDATA = 0x400 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_PINNED = 0x100000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_REJECT = 0x8 - RTF_RNH_LOCKED = 0x40000000 - RTF_STATIC = 0x800 - RTF_STICKY = 0x10000000 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x12 - RTM_IFANNOUNCE = 0x11 - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RTV_WEIGHT = 0x100 - RT_ALL_FIBS = -0x1 - RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 - RT_DEFAULT_FIB = 0x0 - RT_HAS_GW = 0x80 - RT_HAS_HEADER = 0x10 - RT_HAS_HEADER_BIT = 0x4 - RT_L2_ME = 0x4 - RT_L2_ME_BIT = 0x2 - RT_LLE_CACHE = 0x100 - RT_MAY_LOOP = 0x8 - RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 - RT_REJECT = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_BINTIME = 0x4 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80286987 - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80286989 - SIOCDIFPHYADDR = 0x80206949 - SIOCGDRVSPEC = 0xc028697b - SIOCGETSGCNT = 0xc0207210 - SIOCGETVIFCNT = 0xc028720f - SIOCGHIWAT = 0x40047301 - SIOCGI2C = 0xc020693d - SIOCGIFADDR = 0xc0206921 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020691f - SIOCGIFCONF = 0xc0106924 - SIOCGIFDESCR = 0xc020692a - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFIB = 0xc020695c - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc028698a - SIOCGIFGROUP = 0xc0286988 - SIOCGIFINDEX = 0xc0206920 - SIOCGIFMAC = 0xc0206926 - SIOCGIFMEDIA = 0xc0306938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFSTATUS = 0xc331693b - SIOCGIFXMEDIA = 0xc030698b - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGPRIVATE_0 = 0xc0206950 - SIOCGPRIVATE_1 = 0xc0206951 - SIOCGTUNFIB = 0xc020695e - SIOCIFCREATE = 0xc020697a - SIOCIFCREATE2 = 0xc020697c - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106978 - SIOCSDRVSPEC = 0x8028697b - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020691e - SIOCSIFDESCR = 0x80206929 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFIB = 0x8020695d - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206927 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNAME = 0x80206928 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPHYS = 0x80206936 - SIOCSIFRVNET = 0xc020695b - SIOCSIFVNET = 0xc020695a - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSTUNFIB = 0x8020695f - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_NONBLOCK = 0x20000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BINTIME = 0x2000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1009 - SO_LINGER = 0x80 - SO_LISTENINCQLEN = 0x1013 - SO_LISTENQLEN = 0x1012 - SO_LISTENQLIMIT = 0x1011 - SO_NOSIGPIPE = 0x800 - SO_NO_DDP = 0x8000 - SO_NO_OFFLOAD = 0x4000 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1010 - SO_PROTOCOL = 0x1016 - SO_PROTOTYPE = 0x1016 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SETFIB = 0x1014 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SO_USER_COOKIE = 0x1015 - SO_VENDOR = 0x80000000 - TAB0 = 0x0 - TAB3 = 0x4 - TABDLY = 0x4 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CA_NAME_MAX = 0x10 - TCP_CCALGOOPT = 0x41 - TCP_CONGESTION = 0x40 - TCP_FASTOPEN = 0x401 - TCP_FUNCTION_BLK = 0x2000 - TCP_FUNCTION_NAME_LEN_MAX = 0x20 - TCP_INFO = 0x20 - TCP_KEEPCNT = 0x400 - TCP_KEEPIDLE = 0x100 - TCP_KEEPINIT = 0x80 - TCP_KEEPINTVL = 0x200 - TCP_MAXBURST = 0x4 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_PCAP_IN = 0x1000 - TCP_PCAP_OUT = 0x800 - TCP_VENDOR = 0x80000000 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGPTN = 0x4004740f - TIOCGSID = 0x40047463 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DCD = 0x40 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMASTER = 0x2000741c - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VERASE2 = 0x7 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x4 - WCOREFLAG = 0x80 - WEXITED = 0x10 - WLINUXCLONE = 0x80000000 - WNOHANG = 0x1 - WNOWAIT = 0x8 - WSTOPPED = 0x2 - WTRAPPED = 0x20 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x59) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x55) - ECAPMODE = syscall.Errno(0x5e) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDOOFUS = syscall.Errno(0x58) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x56) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5a) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x57) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCAPABLE = syscall.Errno(0x5d) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x5f) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x60) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x5c) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGLIBRT = syscall.Signal(0x21) - SIGLWP = syscall.Signal(0x20) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "operation canceled", - 86: "illegal byte sequence", - 87: "attribute not found", - 88: "programming error", - 89: "bad message", - 90: "multihop attempted", - 91: "link has been severed", - 92: "protocol error", - 93: "capabilities insufficient", - 94: "not permitted in capability mode", - 95: "state not recoverable", - 96: "previous owner died", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "unknown signal", - 33: "unknown signal", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go deleted file mode 100644 index 9bbb90a..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +++ /dev/null @@ -1,1765 +0,0 @@ -// mkerrors.sh -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,freebsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x23 - AF_ATM = 0x1e - AF_BLUETOOTH = 0x24 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x25 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1c - AF_INET6_SDP = 0x2a - AF_INET_SDP = 0x28 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x2a - AF_NATM = 0x1d - AF_NETBIOS = 0x6 - AF_NETGRAPH = 0x20 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SCLUSTER = 0x22 - AF_SIP = 0x18 - AF_SLOW = 0x21 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VENDOR00 = 0x27 - AF_VENDOR01 = 0x29 - AF_VENDOR02 = 0x2b - AF_VENDOR03 = 0x2d - AF_VENDOR04 = 0x2f - AF_VENDOR05 = 0x31 - AF_VENDOR06 = 0x33 - AF_VENDOR07 = 0x35 - AF_VENDOR08 = 0x37 - AF_VENDOR09 = 0x39 - AF_VENDOR10 = 0x3b - AF_VENDOR11 = 0x3d - AF_VENDOR12 = 0x3f - AF_VENDOR13 = 0x41 - AF_VENDOR14 = 0x43 - AF_VENDOR15 = 0x45 - AF_VENDOR16 = 0x47 - AF_VENDOR17 = 0x49 - AF_VENDOR18 = 0x4b - AF_VENDOR19 = 0x4d - AF_VENDOR20 = 0x4f - AF_VENDOR21 = 0x51 - AF_VENDOR22 = 0x53 - AF_VENDOR23 = 0x55 - AF_VENDOR24 = 0x57 - AF_VENDOR25 = 0x59 - AF_VENDOR26 = 0x5b - AF_VENDOR27 = 0x5d - AF_VENDOR28 = 0x5f - AF_VENDOR29 = 0x61 - AF_VENDOR30 = 0x63 - AF_VENDOR31 = 0x65 - AF_VENDOR32 = 0x67 - AF_VENDOR33 = 0x69 - AF_VENDOR34 = 0x6b - AF_VENDOR35 = 0x6d - AF_VENDOR36 = 0x6f - AF_VENDOR37 = 0x71 - AF_VENDOR38 = 0x73 - AF_VENDOR39 = 0x75 - AF_VENDOR40 = 0x77 - AF_VENDOR41 = 0x79 - AF_VENDOR42 = 0x7b - AF_VENDOR43 = 0x7d - AF_VENDOR44 = 0x7f - AF_VENDOR45 = 0x81 - AF_VENDOR46 = 0x83 - AF_VENDOR47 = 0x85 - ALTWERASE = 0x200 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427c - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRECTION = 0x40044276 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0084279 - BIOCGETBUFMODE = 0x4004427d - BIOCGETIF = 0x4020426b - BIOCGETZMAX = 0x4004427f - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044272 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSEESENT = 0x40044276 - BIOCGSTATS = 0x4008426f - BIOCGTSTAMP = 0x40044283 - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x2000427a - BIOCPROMISC = 0x20004269 - BIOCROTZBUF = 0x400c4280 - BIOCSBLEN = 0xc0044266 - BIOCSDIRECTION = 0x80044277 - BIOCSDLT = 0x80044278 - BIOCSETBUFMODE = 0x8004427e - BIOCSETF = 0x80084267 - BIOCSETFNR = 0x80084282 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x8008427b - BIOCSETZBUF = 0x800c4281 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044273 - BIOCSRTIMEOUT = 0x8010426d - BIOCSSEESENT = 0x80044277 - BIOCSTSTAMP = 0x80044284 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_BUFMODE_BUFFER = 0x1 - BPF_BUFMODE_ZBUF = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x80000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_T_BINTIME = 0x2 - BPF_T_BINTIME_FAST = 0x102 - BPF_T_BINTIME_MONOTONIC = 0x202 - BPF_T_BINTIME_MONOTONIC_FAST = 0x302 - BPF_T_FAST = 0x100 - BPF_T_FLAG_MASK = 0x300 - BPF_T_FORMAT_MASK = 0x3 - BPF_T_MICROTIME = 0x0 - BPF_T_MICROTIME_FAST = 0x100 - BPF_T_MICROTIME_MONOTONIC = 0x200 - BPF_T_MICROTIME_MONOTONIC_FAST = 0x300 - BPF_T_MONOTONIC = 0x200 - BPF_T_MONOTONIC_FAST = 0x300 - BPF_T_NANOTIME = 0x1 - BPF_T_NANOTIME_FAST = 0x101 - BPF_T_NANOTIME_MONOTONIC = 0x201 - BPF_T_NANOTIME_MONOTONIC_FAST = 0x301 - BPF_T_NONE = 0x3 - BPF_T_NORMAL = 0x0 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - CAP_ACCEPT = 0x200000020000000 - CAP_ACL_CHECK = 0x400000000010000 - CAP_ACL_DELETE = 0x400000000020000 - CAP_ACL_GET = 0x400000000040000 - CAP_ACL_SET = 0x400000000080000 - CAP_ALL0 = 0x20007ffffffffff - CAP_ALL1 = 0x4000000001fffff - CAP_BIND = 0x200000040000000 - CAP_BINDAT = 0x200008000000400 - CAP_CHFLAGSAT = 0x200000000001400 - CAP_CONNECT = 0x200000080000000 - CAP_CONNECTAT = 0x200010000000400 - CAP_CREATE = 0x200000000000040 - CAP_EVENT = 0x400000000000020 - CAP_EXTATTR_DELETE = 0x400000000001000 - CAP_EXTATTR_GET = 0x400000000002000 - CAP_EXTATTR_LIST = 0x400000000004000 - CAP_EXTATTR_SET = 0x400000000008000 - CAP_FCHDIR = 0x200000000000800 - CAP_FCHFLAGS = 0x200000000001000 - CAP_FCHMOD = 0x200000000002000 - CAP_FCHMODAT = 0x200000000002400 - CAP_FCHOWN = 0x200000000004000 - CAP_FCHOWNAT = 0x200000000004400 - CAP_FCNTL = 0x200000000008000 - CAP_FCNTL_ALL = 0x78 - CAP_FCNTL_GETFL = 0x8 - CAP_FCNTL_GETOWN = 0x20 - CAP_FCNTL_SETFL = 0x10 - CAP_FCNTL_SETOWN = 0x40 - CAP_FEXECVE = 0x200000000000080 - CAP_FLOCK = 0x200000000010000 - CAP_FPATHCONF = 0x200000000020000 - CAP_FSCK = 0x200000000040000 - CAP_FSTAT = 0x200000000080000 - CAP_FSTATAT = 0x200000000080400 - CAP_FSTATFS = 0x200000000100000 - CAP_FSYNC = 0x200000000000100 - CAP_FTRUNCATE = 0x200000000000200 - CAP_FUTIMES = 0x200000000200000 - CAP_FUTIMESAT = 0x200000000200400 - CAP_GETPEERNAME = 0x200000100000000 - CAP_GETSOCKNAME = 0x200000200000000 - CAP_GETSOCKOPT = 0x200000400000000 - CAP_IOCTL = 0x400000000000080 - CAP_IOCTLS_ALL = 0x7fffffff - CAP_KQUEUE = 0x400000000100040 - CAP_KQUEUE_CHANGE = 0x400000000100000 - CAP_KQUEUE_EVENT = 0x400000000000040 - CAP_LINKAT_SOURCE = 0x200020000000400 - CAP_LINKAT_TARGET = 0x200000000400400 - CAP_LISTEN = 0x200000800000000 - CAP_LOOKUP = 0x200000000000400 - CAP_MAC_GET = 0x400000000000001 - CAP_MAC_SET = 0x400000000000002 - CAP_MKDIRAT = 0x200000000800400 - CAP_MKFIFOAT = 0x200000001000400 - CAP_MKNODAT = 0x200000002000400 - CAP_MMAP = 0x200000000000010 - CAP_MMAP_R = 0x20000000000001d - CAP_MMAP_RW = 0x20000000000001f - CAP_MMAP_RWX = 0x20000000000003f - CAP_MMAP_RX = 0x20000000000003d - CAP_MMAP_W = 0x20000000000001e - CAP_MMAP_WX = 0x20000000000003e - CAP_MMAP_X = 0x20000000000003c - CAP_PDGETPID = 0x400000000000200 - CAP_PDKILL = 0x400000000000800 - CAP_PDWAIT = 0x400000000000400 - CAP_PEELOFF = 0x200001000000000 - CAP_POLL_EVENT = 0x400000000000020 - CAP_PREAD = 0x20000000000000d - CAP_PWRITE = 0x20000000000000e - CAP_READ = 0x200000000000001 - CAP_RECV = 0x200000000000001 - CAP_RENAMEAT_SOURCE = 0x200000004000400 - CAP_RENAMEAT_TARGET = 0x200040000000400 - CAP_RIGHTS_VERSION = 0x0 - CAP_RIGHTS_VERSION_00 = 0x0 - CAP_SEEK = 0x20000000000000c - CAP_SEEK_TELL = 0x200000000000004 - CAP_SEM_GETVALUE = 0x400000000000004 - CAP_SEM_POST = 0x400000000000008 - CAP_SEM_WAIT = 0x400000000000010 - CAP_SEND = 0x200000000000002 - CAP_SETSOCKOPT = 0x200002000000000 - CAP_SHUTDOWN = 0x200004000000000 - CAP_SOCK_CLIENT = 0x200007780000003 - CAP_SOCK_SERVER = 0x200007f60000003 - CAP_SYMLINKAT = 0x200000008000400 - CAP_TTYHOOK = 0x400000000000100 - CAP_UNLINKAT = 0x200000010000400 - CAP_UNUSED0_44 = 0x200080000000000 - CAP_UNUSED0_57 = 0x300000000000000 - CAP_UNUSED1_22 = 0x400000000200000 - CAP_UNUSED1_57 = 0x500000000000000 - CAP_WRITE = 0x200000000000002 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLOCK_MONOTONIC = 0x4 - CLOCK_MONOTONIC_FAST = 0xc - CLOCK_MONOTONIC_PRECISE = 0xb - CLOCK_PROCESS_CPUTIME_ID = 0xf - CLOCK_PROF = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_FAST = 0xa - CLOCK_REALTIME_PRECISE = 0x9 - CLOCK_SECOND = 0xd - CLOCK_THREAD_CPUTIME_ID = 0xe - CLOCK_UPTIME = 0x5 - CLOCK_UPTIME_FAST = 0x8 - CLOCK_UPTIME_PRECISE = 0x7 - CLOCK_VIRTUAL = 0x1 - CREAD = 0x800 - CRTSCTS = 0x30000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0x18 - CTL_NET = 0x4 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_BREDR_BB = 0xff - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_BLUETOOTH_LE_LL = 0xfb - DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100 - DLT_BLUETOOTH_LINUX_MONITOR = 0xfe - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CHDLC = 0x68 - DLT_CISCO_IOS = 0x76 - DLT_CLASS_NETBSD_RAWAF = 0x2240000 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DBUS = 0xe7 - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_DVB_CI = 0xeb - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_EPON = 0x103 - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NOFCS = 0xe6 - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_INFINIBAND = 0xf7 - DLT_IPFILTER = 0x74 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPMI_HPM_2 = 0x104 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xf2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_ISO_14443 = 0x108 - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_ATM_CEMIC = 0xee - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FIBRECHANNEL = 0xea - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_SRX_E2E = 0xe9 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_JUNIPER_VS = 0xe8 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_PPP_WITHDIRECTION = 0xa6 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MATCHING_MAX = 0x109 - DLT_MATCHING_MIN = 0x68 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPEG_2_TS = 0xf3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_MUX27010 = 0xec - DLT_NETANALYZER = 0xf0 - DLT_NETANALYZER_TRANSPARENT = 0xf1 - DLT_NETLINK = 0xfd - DLT_NFC_LLCP = 0xf5 - DLT_NFLOG = 0xef - DLT_NG40 = 0xf4 - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x79 - DLT_PKTAP = 0x102 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0xe - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PPP_WITH_DIRECTION = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PROFIBUS_DL = 0x101 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RDS = 0x109 - DLT_REDBACK_SMARTEDGE = 0x20 - DLT_RIO = 0x7c - DLT_RTAC_SERIAL = 0xfa - DLT_SCCP = 0x8e - DLT_SCTP = 0xf8 - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xd - DLT_STANAG_5066_D_PDU = 0xed - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USBPCAP = 0xf9 - DLT_USB_FREEBSD = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_USER0 = 0x93 - DLT_USER1 = 0x94 - DLT_USER10 = 0x9d - DLT_USER11 = 0x9e - DLT_USER12 = 0x9f - DLT_USER13 = 0xa0 - DLT_USER14 = 0xa1 - DLT_USER15 = 0xa2 - DLT_USER2 = 0x95 - DLT_USER3 = 0x96 - DLT_USER4 = 0x97 - DLT_USER5 = 0x98 - DLT_USER6 = 0x99 - DLT_USER7 = 0x9a - DLT_USER8 = 0x9b - DLT_USER9 = 0x9c - DLT_WATTSTOPPER_DLM = 0x107 - DLT_WIHART = 0xdf - DLT_WIRESHARK_UPPER_PDU = 0xfc - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DLT_ZWAVE_R1_R2 = 0x105 - DLT_ZWAVE_R3 = 0x106 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EVFILT_AIO = -0x3 - EVFILT_FS = -0x9 - EVFILT_LIO = -0xa - EVFILT_PROC = -0x5 - EVFILT_PROCDESC = -0x8 - EVFILT_READ = -0x1 - EVFILT_SENDFILE = -0xc - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0xc - EVFILT_TIMER = -0x7 - EVFILT_USER = -0xb - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_DISPATCH = 0x80 - EV_DROP = 0x1000 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_FLAG2 = 0x4000 - EV_FORCEONESHOT = 0x100 - EV_ONESHOT = 0x10 - EV_RECEIPT = 0x40 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTATTR_NAMESPACE_EMPTY = 0x0 - EXTATTR_NAMESPACE_SYSTEM = 0x2 - EXTATTR_NAMESPACE_USER = 0x1 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_CANCEL = 0x5 - F_DUP2FD = 0xa - F_DUP2FD_CLOEXEC = 0x12 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x11 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0xb - F_GETOWN = 0x5 - F_OGETLK = 0x7 - F_OK = 0x0 - F_OSETLK = 0x8 - F_OSETLKW = 0x9 - F_RDAHEAD = 0x10 - F_RDLCK = 0x1 - F_READAHEAD = 0xf - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0xc - F_SETLKW = 0xd - F_SETLK_REMOTE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_UNLCKSYS = 0x4 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_ALTPHYS = 0x4000 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x218f52 - IFF_CANTCONFIG = 0x10000 - IFF_DEBUG = 0x4 - IFF_DRV_OACTIVE = 0x400 - IFF_DRV_RUNNING = 0x40 - IFF_DYING = 0x200000 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MONITOR = 0x40000 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PPROMISC = 0x20000 - IFF_PROMISC = 0x100 - IFF_RENAMING = 0x400000 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_STATICARP = 0x80000 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_BRIDGE = 0xd1 - IFT_CARP = 0xf8 - IFT_IEEE1394 = 0x90 - IFT_INFINIBAND = 0xc7 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_PPP = 0x17 - IFT_PROPVIRTUAL = 0x35 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_MASK = 0xfffffffe - IPPROTO_3PC = 0x22 - IPPROTO_ADFS = 0x44 - IPPROTO_AH = 0x33 - IPPROTO_AHIP = 0x3d - IPPROTO_APES = 0x63 - IPPROTO_ARGUS = 0xd - IPPROTO_AX25 = 0x5d - IPPROTO_BHA = 0x31 - IPPROTO_BLT = 0x1e - IPPROTO_BRSATMON = 0x4c - IPPROTO_CARP = 0x70 - IPPROTO_CFTP = 0x3e - IPPROTO_CHAOS = 0x10 - IPPROTO_CMTP = 0x26 - IPPROTO_CPHB = 0x49 - IPPROTO_CPNX = 0x48 - IPPROTO_DDP = 0x25 - IPPROTO_DGP = 0x56 - IPPROTO_DIVERT = 0x102 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_EMCON = 0xe - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GMTP = 0x64 - IPPROTO_GRE = 0x2f - IPPROTO_HELLO = 0x3f - IPPROTO_HIP = 0x8b - IPPROTO_HMP = 0x14 - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IDPR = 0x23 - IPPROTO_IDRP = 0x2d - IPPROTO_IGMP = 0x2 - IPPROTO_IGP = 0x55 - IPPROTO_IGRP = 0x58 - IPPROTO_IL = 0x28 - IPPROTO_INLSP = 0x34 - IPPROTO_INP = 0x20 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPCV = 0x47 - IPPROTO_IPEIP = 0x5e - IPPROTO_IPIP = 0x4 - IPPROTO_IPPC = 0x43 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IRTP = 0x1c - IPPROTO_KRYPTOLAN = 0x41 - IPPROTO_LARP = 0x5b - IPPROTO_LEAF1 = 0x19 - IPPROTO_LEAF2 = 0x1a - IPPROTO_MAX = 0x100 - IPPROTO_MEAS = 0x13 - IPPROTO_MH = 0x87 - IPPROTO_MHRP = 0x30 - IPPROTO_MICP = 0x5f - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_MUX = 0x12 - IPPROTO_ND = 0x4d - IPPROTO_NHRP = 0x36 - IPPROTO_NONE = 0x3b - IPPROTO_NSP = 0x1f - IPPROTO_NVPII = 0xb - IPPROTO_OLD_DIVERT = 0xfe - IPPROTO_OSPFIGP = 0x59 - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PGM = 0x71 - IPPROTO_PIGP = 0x9 - IPPROTO_PIM = 0x67 - IPPROTO_PRM = 0x15 - IPPROTO_PUP = 0xc - IPPROTO_PVP = 0x4b - IPPROTO_RAW = 0xff - IPPROTO_RCCMON = 0xa - IPPROTO_RDP = 0x1b - IPPROTO_RESERVED_253 = 0xfd - IPPROTO_RESERVED_254 = 0xfe - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_RVD = 0x42 - IPPROTO_SATEXPAK = 0x40 - IPPROTO_SATMON = 0x45 - IPPROTO_SCCSP = 0x60 - IPPROTO_SCTP = 0x84 - IPPROTO_SDRP = 0x2a - IPPROTO_SEND = 0x103 - IPPROTO_SEP = 0x21 - IPPROTO_SHIM6 = 0x8c - IPPROTO_SKIP = 0x39 - IPPROTO_SPACER = 0x7fff - IPPROTO_SRPC = 0x5a - IPPROTO_ST = 0x7 - IPPROTO_SVMTP = 0x52 - IPPROTO_SWIPE = 0x35 - IPPROTO_TCF = 0x57 - IPPROTO_TCP = 0x6 - IPPROTO_TLSP = 0x38 - IPPROTO_TP = 0x1d - IPPROTO_TPXX = 0x27 - IPPROTO_TRUNK1 = 0x17 - IPPROTO_TRUNK2 = 0x18 - IPPROTO_TTP = 0x54 - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPPROTO_VINES = 0x53 - IPPROTO_VISA = 0x46 - IPPROTO_VMTP = 0x51 - IPPROTO_WBEXPAK = 0x4f - IPPROTO_WBMON = 0x4e - IPPROTO_WSN = 0x4a - IPPROTO_XNET = 0xf - IPPROTO_XTP = 0x24 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_BINDANY = 0x40 - IPV6_BINDMULTI = 0x41 - IPV6_BINDV6ONLY = 0x1b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FLOWID = 0x43 - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FLOWTYPE = 0x44 - IPV6_FRAGTTL = 0x78 - IPV6_FW_ADD = 0x1e - IPV6_FW_DEL = 0x1f - IPV6_FW_FLUSH = 0x20 - IPV6_FW_GET = 0x22 - IPV6_FW_ZERO = 0x21 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXOPTHDR = 0x800 - IPV6_MAXPACKET = 0xffff - IPV6_MAX_GROUP_SRC_FILTER = 0x200 - IPV6_MAX_MEMBERSHIPS = 0xfff - IPV6_MAX_SOCK_SRC_FILTER = 0x80 - IPV6_MIN_MEMBERSHIPS = 0x1f - IPV6_MMTU = 0x500 - IPV6_MSFILTER = 0x4a - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_PREFER_TEMPADDR = 0x3f - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVFLOWID = 0x46 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRSSBUCKETID = 0x47 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RSSBUCKETID = 0x45 - IPV6_RSS_LISTEN_BUCKET = 0x42 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_ADD_SOURCE_MEMBERSHIP = 0x46 - IP_BINDANY = 0x18 - IP_BINDMULTI = 0x19 - IP_BLOCK_SOURCE = 0x48 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DONTFRAG = 0x43 - IP_DROP_MEMBERSHIP = 0xd - IP_DROP_SOURCE_MEMBERSHIP = 0x47 - IP_DUMMYNET3 = 0x31 - IP_DUMMYNET_CONFIGURE = 0x3c - IP_DUMMYNET_DEL = 0x3d - IP_DUMMYNET_FLUSH = 0x3e - IP_DUMMYNET_GET = 0x40 - IP_FLOWID = 0x5a - IP_FLOWTYPE = 0x5b - IP_FW3 = 0x30 - IP_FW_ADD = 0x32 - IP_FW_DEL = 0x33 - IP_FW_FLUSH = 0x34 - IP_FW_GET = 0x36 - IP_FW_NAT_CFG = 0x38 - IP_FW_NAT_DEL = 0x39 - IP_FW_NAT_GET_CONFIG = 0x3a - IP_FW_NAT_GET_LOG = 0x3b - IP_FW_RESETLOG = 0x37 - IP_FW_TABLE_ADD = 0x28 - IP_FW_TABLE_DEL = 0x29 - IP_FW_TABLE_FLUSH = 0x2a - IP_FW_TABLE_GETSIZE = 0x2b - IP_FW_TABLE_LIST = 0x2c - IP_FW_ZERO = 0x35 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x15 - IP_MAXPACKET = 0xffff - IP_MAX_GROUP_SRC_FILTER = 0x200 - IP_MAX_MEMBERSHIPS = 0xfff - IP_MAX_SOCK_MUTE_FILTER = 0x80 - IP_MAX_SOCK_SRC_FILTER = 0x80 - IP_MAX_SOURCE_FILTER = 0x400 - IP_MF = 0x2000 - IP_MINTTL = 0x42 - IP_MIN_MEMBERSHIPS = 0x1f - IP_MSFILTER = 0x4a - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_VIF = 0xe - IP_OFFMASK = 0x1fff - IP_ONESBCAST = 0x17 - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVFLOWID = 0x5d - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRSSBUCKETID = 0x5e - IP_RECVTOS = 0x44 - IP_RECVTTL = 0x41 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RSSBUCKETID = 0x5c - IP_RSS_LISTEN_BUCKET = 0x1a - IP_RSVP_OFF = 0x10 - IP_RSVP_ON = 0xf - IP_RSVP_VIF_OFF = 0x12 - IP_RSVP_VIF_ON = 0x11 - IP_SENDSRCADDR = 0x7 - IP_TOS = 0x3 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x49 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_AUTOSYNC = 0x7 - MADV_CORE = 0x9 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_NOCORE = 0x8 - MADV_NORMAL = 0x0 - MADV_NOSYNC = 0x6 - MADV_PROTECT = 0xa - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MAP_ALIGNED_SUPER = 0x1000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_EXCL = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GUARD = 0x2000 - MAP_HASSEMAPHORE = 0x200 - MAP_NOCORE = 0x20000 - MAP_NOSYNC = 0x800 - MAP_PREFAULT_READ = 0x40000 - MAP_PRIVATE = 0x2 - MAP_RESERVED0020 = 0x20 - MAP_RESERVED0040 = 0x40 - MAP_RESERVED0080 = 0x80 - MAP_RESERVED0100 = 0x100 - MAP_SHARED = 0x1 - MAP_STACK = 0x400 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MNT_ACLS = 0x8000000 - MNT_ASYNC = 0x40 - MNT_AUTOMOUNTED = 0x200000000 - MNT_BYFSID = 0x8000000 - MNT_CMDFLAGS = 0xd0f0000 - MNT_DEFEXPORTED = 0x200 - MNT_DELEXPORT = 0x20000 - MNT_EXKERB = 0x800 - MNT_EXPORTANON = 0x400 - MNT_EXPORTED = 0x100 - MNT_EXPUBLIC = 0x20000000 - MNT_EXRDONLY = 0x80 - MNT_FORCE = 0x80000 - MNT_GJOURNAL = 0x2000000 - MNT_IGNORE = 0x800000 - MNT_LAZY = 0x3 - MNT_LOCAL = 0x1000 - MNT_MULTILABEL = 0x4000000 - MNT_NFS4ACLS = 0x10 - MNT_NOATIME = 0x10000000 - MNT_NOCLUSTERR = 0x40000000 - MNT_NOCLUSTERW = 0x80000000 - MNT_NOEXEC = 0x4 - MNT_NONBUSY = 0x4000000 - MNT_NOSUID = 0x8 - MNT_NOSYMFOLLOW = 0x400000 - MNT_NOWAIT = 0x2 - MNT_QUOTA = 0x2000 - MNT_RDONLY = 0x1 - MNT_RELOAD = 0x40000 - MNT_ROOTFS = 0x4000 - MNT_SNAPSHOT = 0x1000000 - MNT_SOFTDEP = 0x200000 - MNT_SUIDDIR = 0x100000 - MNT_SUJ = 0x100000000 - MNT_SUSPEND = 0x4 - MNT_SYNCHRONOUS = 0x2 - MNT_UNION = 0x20 - MNT_UPDATE = 0x10000 - MNT_UPDATEMASK = 0x2d8d0807e - MNT_USER = 0x8000 - MNT_VISFLAGMASK = 0x3fef0ffff - MNT_WAIT = 0x1 - MSG_CMSG_CLOEXEC = 0x40000 - MSG_COMPAT = 0x8000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOF = 0x100 - MSG_EOR = 0x8 - MSG_NBIO = 0x4000 - MSG_NOSIGNAL = 0x20000 - MSG_NOTIFICATION = 0x2000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MSG_WAITFORONE = 0x80000 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x0 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_IFLISTL = 0x5 - NET_RT_IFMALIST = 0x4 - NOFLSH = 0x80000000 - NOKERNINFO = 0x2000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_CLOSE = 0x100 - NOTE_CLOSE_WRITE = 0x200 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FFAND = 0x40000000 - NOTE_FFCOPY = 0xc0000000 - NOTE_FFCTRLMASK = 0xc0000000 - NOTE_FFLAGSMASK = 0xffffff - NOTE_FFNOP = 0x0 - NOTE_FFOR = 0x80000000 - NOTE_FILE_POLL = 0x2 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_MSECONDS = 0x2 - NOTE_NSECONDS = 0x8 - NOTE_OPEN = 0x80 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_READ = 0x400 - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_SECONDS = 0x1 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRIGGER = 0x1000000 - NOTE_USECONDS = 0x4 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - OXTABS = 0x4 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x100000 - O_CREAT = 0x200 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x20000 - O_EXCL = 0x800 - O_EXEC = 0x40000 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_TTY_INIT = 0x80000 - O_VERIFY = 0x200000 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_MEMLOCK = 0x6 - RLIMIT_NOFILE = 0x8 - RLIMIT_NPROC = 0x7 - RLIMIT_RSS = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x8 - RTAX_NETMASK = 0x2 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FIXEDMTU = 0x80000 - RTF_FMASK = 0x1004d808 - RTF_GATEWAY = 0x2 - RTF_GWFLAG_COMPAT = 0x80000000 - RTF_HOST = 0x4 - RTF_LLDATA = 0x400 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MODIFIED = 0x20 - RTF_MULTICAST = 0x800000 - RTF_PINNED = 0x100000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x40000 - RTF_REJECT = 0x8 - RTF_RNH_LOCKED = 0x40000000 - RTF_STATIC = 0x800 - RTF_STICKY = 0x10000000 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DELMADDR = 0x10 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x12 - RTM_IFANNOUNCE = 0x11 - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_NEWMADDR = 0xf - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RTV_WEIGHT = 0x100 - RT_ALL_FIBS = -0x1 - RT_BLACKHOLE = 0x40 - RT_CACHING_CONTEXT = 0x1 - RT_DEFAULT_FIB = 0x0 - RT_HAS_GW = 0x80 - RT_HAS_HEADER = 0x10 - RT_HAS_HEADER_BIT = 0x4 - RT_L2_ME = 0x4 - RT_L2_ME_BIT = 0x2 - RT_LLE_CACHE = 0x100 - RT_MAY_LOOP = 0x8 - RT_MAY_LOOP_BIT = 0x3 - RT_NORTREF = 0x2 - RT_REJECT = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_BINTIME = 0x4 - SCM_CREDS = 0x3 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x2 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80246987 - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80246989 - SIOCDIFPHYADDR = 0x80206949 - SIOCGDRVSPEC = 0xc01c697b - SIOCGETSGCNT = 0xc0147210 - SIOCGETVIFCNT = 0xc014720f - SIOCGHIWAT = 0x40047301 - SIOCGHWADDR = 0xc020693e - SIOCGI2C = 0xc020693d - SIOCGIFADDR = 0xc0206921 - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCAP = 0xc020691f - SIOCGIFCONF = 0xc0086924 - SIOCGIFDESCR = 0xc020692a - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFIB = 0xc020695c - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc024698a - SIOCGIFGROUP = 0xc0246988 - SIOCGIFINDEX = 0xc0206920 - SIOCGIFMAC = 0xc0206926 - SIOCGIFMEDIA = 0xc0286938 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc0206933 - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPHYS = 0xc0206935 - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFSTATUS = 0xc331693b - SIOCGIFXMEDIA = 0xc028698b - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGPRIVATE_0 = 0xc0206950 - SIOCGPRIVATE_1 = 0xc0206951 - SIOCGTUNFIB = 0xc020695e - SIOCIFCREATE = 0xc020697a - SIOCIFCREATE2 = 0xc020697c - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCSDRVSPEC = 0x801c697b - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFCAP = 0x8020691e - SIOCSIFDESCR = 0x80206929 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFIB = 0x8020695d - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020693c - SIOCSIFMAC = 0x80206927 - SIOCSIFMEDIA = 0xc0206937 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x80206934 - SIOCSIFNAME = 0x80206928 - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPHYS = 0x80206936 - SIOCSIFRVNET = 0xc020695b - SIOCSIFVNET = 0xc020695a - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSTUNFIB = 0x8020695f - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_MAXADDRLEN = 0xff - SOCK_NONBLOCK = 0x20000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BINTIME = 0x2000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LABEL = 0x1009 - SO_LINGER = 0x80 - SO_LISTENINCQLEN = 0x1013 - SO_LISTENQLEN = 0x1012 - SO_LISTENQLIMIT = 0x1011 - SO_NOSIGPIPE = 0x800 - SO_NO_DDP = 0x8000 - SO_NO_OFFLOAD = 0x4000 - SO_OOBINLINE = 0x100 - SO_PEERLABEL = 0x1010 - SO_PROTOCOL = 0x1016 - SO_PROTOTYPE = 0x1016 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SETFIB = 0x1014 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_TIMESTAMP = 0x400 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SO_USER_COOKIE = 0x1015 - SO_VENDOR = 0x80000000 - TAB0 = 0x0 - TAB3 = 0x4 - TABDLY = 0x4 - TCIFLUSH = 0x1 - TCIOFF = 0x3 - TCIOFLUSH = 0x3 - TCION = 0x4 - TCOFLUSH = 0x2 - TCOOFF = 0x1 - TCOON = 0x2 - TCP_CA_NAME_MAX = 0x10 - TCP_CCALGOOPT = 0x41 - TCP_CONGESTION = 0x40 - TCP_FASTOPEN = 0x401 - TCP_FUNCTION_BLK = 0x2000 - TCP_FUNCTION_NAME_LEN_MAX = 0x20 - TCP_INFO = 0x20 - TCP_KEEPCNT = 0x400 - TCP_KEEPIDLE = 0x100 - TCP_KEEPINIT = 0x80 - TCP_KEEPINTVL = 0x200 - TCP_MAXBURST = 0x4 - TCP_MAXHLEN = 0x3c - TCP_MAXOLEN = 0x28 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x4 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCP_NOOPT = 0x8 - TCP_NOPUSH = 0x4 - TCP_PCAP_IN = 0x1000 - TCP_PCAP_OUT = 0x800 - TCP_VENDOR = 0x80000000 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLUSH = 0x80047410 - TIOCGDRAINWAIT = 0x40047456 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGPGRP = 0x40047477 - TIOCGPTN = 0x4004740f - TIOCGSID = 0x40047463 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGDTRWAIT = 0x4004745a - TIOCMGET = 0x4004746a - TIOCMSDTRWAIT = 0x8004745b - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DCD = 0x40 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMASTER = 0x2000741c - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDRAINWAIT = 0x80047457 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSIG = 0x2004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x20007465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCTIMESTAMP = 0x40107459 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VERASE2 = 0x7 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WCONTINUED = 0x4 - WCOREFLAG = 0x80 - WEXITED = 0x10 - WLINUXCLONE = 0x80000000 - WNOHANG = 0x1 - WNOWAIT = 0x8 - WSTOPPED = 0x2 - WTRAPPED = 0x20 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x59) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x55) - ECAPMODE = syscall.Errno(0x5e) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDOOFUS = syscall.Errno(0x58) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x56) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5a) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x57) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCAPABLE = syscall.Errno(0x5d) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTRECOVERABLE = syscall.Errno(0x5f) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EOWNERDEAD = syscall.Errno(0x60) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x5c) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGLIBRT = syscall.Signal(0x21) - SIGLWP = syscall.Signal(0x20) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "operation timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "operation canceled", - 86: "illegal byte sequence", - 87: "attribute not found", - 88: "programming error", - 89: "bad message", - 90: "multihop attempted", - 91: "link has been severed", - 92: "protocol error", - 93: "capabilities insufficient", - 94: "not permitted in capability mode", - 95: "state not recoverable", - 96: "previous owner died", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "suspended (signal)", - 18: "suspended", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "unknown signal", - 33: "unknown signal", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vendor/golang.org/x/sys/unix/zerrors_linux_386.go deleted file mode 100644 index 4fba476..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ /dev/null @@ -1,2266 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -m32 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x80041270 - BLKBSZSET = 0x40041271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80041272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xc - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0xd - F_SETLK64 = 0xd - F_SETLKW = 0xe - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_32BIT = 0x40 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x8000 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80042407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPXREGS = 0x12 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPXREGS = 0x13 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SINGLEBLOCK = 0x21 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1f - PTRACE_SYSEMU_SINGLESTEP = 0x20 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x100 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x400854d5 - TUNDETACHFILTER = 0x400854d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x800854db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETDEBUG = 0x400454c9 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x23) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go deleted file mode 100644 index 7e2a108..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ /dev/null @@ -1,2267 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_32BIT = 0x40 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ARCH_PRCTL = 0x1e - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPXREGS = 0x12 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPXREGS = 0x13 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SINGLEBLOCK = 0x21 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_SYSEMU = 0x1f - PTRACE_SYSEMU_SINGLESTEP = 0x20 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x100 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETDEBUG = 0x400454c9 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x23) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go deleted file mode 100644 index 250841b..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ /dev/null @@ -1,2271 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x80041270 - BLKBSZSET = 0x40041271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80041272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xc - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0xd - F_SETLK64 = 0xd - F_SETLKW = 0xe - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x20000 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80042407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETCRUNCHREGS = 0x19 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETHBPREGS = 0x1d - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVFPREGS = 0x1b - PTRACE_GETWMMXREGS = 0x12 - PTRACE_GET_THREAD_AREA = 0x16 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETCRUNCHREGS = 0x1a - PTRACE_SETFPREGS = 0xf - PTRACE_SETHBPREGS = 0x1e - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVFPREGS = 0x1c - PTRACE_SETWMMXREGS = 0x13 - PTRACE_SET_SYSCALL = 0x17 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PT_DATA_ADDR = 0x10004 - PT_TEXT_ADDR = 0x10000 - PT_TEXT_END_ADDR = 0x10008 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x100 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x400854d5 - TUNDETACHFILTER = 0x400854d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x800854db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETDEBUG = 0x400454c9 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x23) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go deleted file mode 100644 index f5d7856..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ /dev/null @@ -1,2257 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ESR_MAGIC = 0x45535201 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - EXTRA_MAGIC = 0x45585401 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x10000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x100 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETDEBUG = 0x400454c9 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x23) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go deleted file mode 100644 index f45492d..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ /dev/null @@ -1,2276 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x40041270 - BLKBSZSET = 0x80041271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40041272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x21 - F_GETLK64 = 0x21 - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x22 - F_SETLK64 = 0x22 - F_SETLKW = 0x23 - F_SETLKW64 = 0x23 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x2000 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40042407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x8000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x800854d5 - TUNDETACHFILTER = 0x800854d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x400854db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x7d) - EADDRNOTAVAIL = syscall.Errno(0x7e) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x95) - EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x51) - EBADMSG = syscall.Errno(0x4d) - EBADR = syscall.Errno(0x33) - EBADRQC = syscall.Errno(0x36) - EBADSLT = syscall.Errno(0x37) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x25) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x82) - ECONNREFUSED = syscall.Errno(0x92) - ECONNRESET = syscall.Errno(0x83) - EDEADLK = syscall.Errno(0x2d) - EDEADLOCK = syscall.Errno(0x38) - EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x93) - EHOSTUNREACH = syscall.Errno(0x94) - EHWPOISON = syscall.Errno(0xa8) - EIDRM = syscall.Errno(0x24) - EILSEQ = syscall.Errno(0x58) - EINIT = syscall.Errno(0x8d) - EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x8b) - EKEYEXPIRED = syscall.Errno(0xa2) - EKEYREJECTED = syscall.Errno(0xa4) - EKEYREVOKED = syscall.Errno(0xa3) - EL2HLT = syscall.Errno(0x2c) - EL2NSYNC = syscall.Errno(0x26) - EL3HLT = syscall.Errno(0x27) - EL3RST = syscall.Errno(0x28) - ELIBACC = syscall.Errno(0x53) - ELIBBAD = syscall.Errno(0x54) - ELIBEXEC = syscall.Errno(0x57) - ELIBMAX = syscall.Errno(0x56) - ELIBSCN = syscall.Errno(0x55) - ELNRNG = syscall.Errno(0x29) - ELOOP = syscall.Errno(0x5a) - EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x61) - EMULTIHOP = syscall.Errno(0x4a) - ENAMETOOLONG = syscall.Errno(0x4e) - ENAVAIL = syscall.Errno(0x8a) - ENETDOWN = syscall.Errno(0x7f) - ENETRESET = syscall.Errno(0x81) - ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x35) - ENOBUFS = syscall.Errno(0x84) - ENOCSI = syscall.Errno(0x2b) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0xa1) - ENOLCK = syscall.Errno(0x2e) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x23) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x5d) - ENOTNAM = syscall.Errno(0x89) - ENOTRECOVERABLE = syscall.Errno(0xa6) - ENOTSOCK = syscall.Errno(0x5f) - ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x7a) - EOVERFLOW = syscall.Errno(0x4f) - EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x78) - EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x52) - EREMDEV = syscall.Errno(0x8e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x8c) - ERESTART = syscall.Errno(0x5b) - ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x8f) - ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x97) - ESTRPIPE = syscall.Errno(0x5c) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x91) - ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x87) - EUNATCH = syscall.Errno(0x2a) - EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x34) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x12) - SIGCLD = syscall.Signal(0x12) - SIGCONT = syscall.Signal(0x19) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x16) - SIGPROF = syscall.Signal(0x1d) - SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x17) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x18) - SIGTTIN = syscall.Signal(0x1a) - SIGTTOU = syscall.Signal(0x1b) - SIGURG = syscall.Signal(0x15) - SIGUSR1 = syscall.Signal(0x10) - SIGUSR2 = syscall.Signal(0x11) - SIGVTALRM = syscall.Signal(0x1c) - SIGWINCH = syscall.Signal(0x14) - SIGXCPU = syscall.Signal(0x1e) - SIGXFSZ = syscall.Signal(0x1f) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "no message of desired type", - 36: "identifier removed", - 37: "channel number out of range", - 38: "level 2 not synchronized", - 39: "level 3 halted", - 40: "level 3 reset", - 41: "link number out of range", - 42: "protocol driver not attached", - 43: "no CSI structure available", - 44: "level 2 halted", - 45: "resource deadlock avoided", - 46: "no locks available", - 50: "invalid exchange", - 51: "invalid request descriptor", - 52: "exchange full", - 53: "no anode", - 54: "invalid request code", - 55: "invalid slot", - 56: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 73: "RFS specific error", - 74: "multihop attempted", - 77: "bad message", - 78: "file name too long", - 79: "value too large for defined data type", - 80: "name not unique on network", - 81: "file descriptor in bad state", - 82: "remote address changed", - 83: "can not access a needed shared library", - 84: "accessing a corrupted shared library", - 85: ".lib section in a.out corrupted", - 86: "attempting to link in too many shared libraries", - 87: "cannot exec a shared library directly", - 88: "invalid or incomplete multibyte or wide character", - 89: "function not implemented", - 90: "too many levels of symbolic links", - 91: "interrupted system call should be restarted", - 92: "streams pipe error", - 93: "directory not empty", - 94: "too many users", - 95: "socket operation on non-socket", - 96: "destination address required", - 97: "message too long", - 98: "protocol wrong type for socket", - 99: "protocol not available", - 120: "protocol not supported", - 121: "socket type not supported", - 122: "operation not supported", - 123: "protocol family not supported", - 124: "address family not supported by protocol", - 125: "address already in use", - 126: "cannot assign requested address", - 127: "network is down", - 128: "network is unreachable", - 129: "network dropped connection on reset", - 130: "software caused connection abort", - 131: "connection reset by peer", - 132: "no buffer space available", - 133: "transport endpoint is already connected", - 134: "transport endpoint is not connected", - 135: "structure needs cleaning", - 137: "not a XENIX named type file", - 138: "no XENIX semaphores available", - 139: "is a named type file", - 140: "remote I/O error", - 141: "unknown error 141", - 142: "unknown error 142", - 143: "cannot send after transport endpoint shutdown", - 144: "too many references: cannot splice", - 145: "connection timed out", - 146: "connection refused", - 147: "host is down", - 148: "no route to host", - 149: "operation already in progress", - 150: "operation now in progress", - 151: "stale file handle", - 158: "operation canceled", - 159: "no medium found", - 160: "wrong medium type", - 161: "required key not available", - 162: "key has expired", - 163: "key has been revoked", - 164: "key was rejected by service", - 165: "owner died", - 166: "state not recoverable", - 167: "operation not possible due to RF-kill", - 168: "memory page has hardware error", - 1133: "disk quota exceeded", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "user defined signal 1", - 17: "user defined signal 2", - 18: "child exited", - 19: "power failure", - 20: "window changed", - 21: "urgent I/O condition", - 22: "I/O possible", - 23: "stopped (signal)", - 24: "stopped", - 25: "continued", - 26: "stopped (tty input)", - 27: "stopped (tty output)", - 28: "virtual timer expired", - 29: "profiling timer expired", - 30: "CPU time limit exceeded", - 31: "file size limit exceeded", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go deleted file mode 100644 index f5a64fb..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ /dev/null @@ -1,2276 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xe - F_GETLK64 = 0xe - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x0 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x8000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x7d) - EADDRNOTAVAIL = syscall.Errno(0x7e) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x95) - EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x51) - EBADMSG = syscall.Errno(0x4d) - EBADR = syscall.Errno(0x33) - EBADRQC = syscall.Errno(0x36) - EBADSLT = syscall.Errno(0x37) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x25) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x82) - ECONNREFUSED = syscall.Errno(0x92) - ECONNRESET = syscall.Errno(0x83) - EDEADLK = syscall.Errno(0x2d) - EDEADLOCK = syscall.Errno(0x38) - EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x93) - EHOSTUNREACH = syscall.Errno(0x94) - EHWPOISON = syscall.Errno(0xa8) - EIDRM = syscall.Errno(0x24) - EILSEQ = syscall.Errno(0x58) - EINIT = syscall.Errno(0x8d) - EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x8b) - EKEYEXPIRED = syscall.Errno(0xa2) - EKEYREJECTED = syscall.Errno(0xa4) - EKEYREVOKED = syscall.Errno(0xa3) - EL2HLT = syscall.Errno(0x2c) - EL2NSYNC = syscall.Errno(0x26) - EL3HLT = syscall.Errno(0x27) - EL3RST = syscall.Errno(0x28) - ELIBACC = syscall.Errno(0x53) - ELIBBAD = syscall.Errno(0x54) - ELIBEXEC = syscall.Errno(0x57) - ELIBMAX = syscall.Errno(0x56) - ELIBSCN = syscall.Errno(0x55) - ELNRNG = syscall.Errno(0x29) - ELOOP = syscall.Errno(0x5a) - EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x61) - EMULTIHOP = syscall.Errno(0x4a) - ENAMETOOLONG = syscall.Errno(0x4e) - ENAVAIL = syscall.Errno(0x8a) - ENETDOWN = syscall.Errno(0x7f) - ENETRESET = syscall.Errno(0x81) - ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x35) - ENOBUFS = syscall.Errno(0x84) - ENOCSI = syscall.Errno(0x2b) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0xa1) - ENOLCK = syscall.Errno(0x2e) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x23) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x5d) - ENOTNAM = syscall.Errno(0x89) - ENOTRECOVERABLE = syscall.Errno(0xa6) - ENOTSOCK = syscall.Errno(0x5f) - ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x7a) - EOVERFLOW = syscall.Errno(0x4f) - EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x78) - EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x52) - EREMDEV = syscall.Errno(0x8e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x8c) - ERESTART = syscall.Errno(0x5b) - ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x8f) - ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x97) - ESTRPIPE = syscall.Errno(0x5c) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x91) - ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x87) - EUNATCH = syscall.Errno(0x2a) - EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x34) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x12) - SIGCLD = syscall.Signal(0x12) - SIGCONT = syscall.Signal(0x19) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x16) - SIGPROF = syscall.Signal(0x1d) - SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x17) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x18) - SIGTTIN = syscall.Signal(0x1a) - SIGTTOU = syscall.Signal(0x1b) - SIGURG = syscall.Signal(0x15) - SIGUSR1 = syscall.Signal(0x10) - SIGUSR2 = syscall.Signal(0x11) - SIGVTALRM = syscall.Signal(0x1c) - SIGWINCH = syscall.Signal(0x14) - SIGXCPU = syscall.Signal(0x1e) - SIGXFSZ = syscall.Signal(0x1f) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "no message of desired type", - 36: "identifier removed", - 37: "channel number out of range", - 38: "level 2 not synchronized", - 39: "level 3 halted", - 40: "level 3 reset", - 41: "link number out of range", - 42: "protocol driver not attached", - 43: "no CSI structure available", - 44: "level 2 halted", - 45: "resource deadlock avoided", - 46: "no locks available", - 50: "invalid exchange", - 51: "invalid request descriptor", - 52: "exchange full", - 53: "no anode", - 54: "invalid request code", - 55: "invalid slot", - 56: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 73: "RFS specific error", - 74: "multihop attempted", - 77: "bad message", - 78: "file name too long", - 79: "value too large for defined data type", - 80: "name not unique on network", - 81: "file descriptor in bad state", - 82: "remote address changed", - 83: "can not access a needed shared library", - 84: "accessing a corrupted shared library", - 85: ".lib section in a.out corrupted", - 86: "attempting to link in too many shared libraries", - 87: "cannot exec a shared library directly", - 88: "invalid or incomplete multibyte or wide character", - 89: "function not implemented", - 90: "too many levels of symbolic links", - 91: "interrupted system call should be restarted", - 92: "streams pipe error", - 93: "directory not empty", - 94: "too many users", - 95: "socket operation on non-socket", - 96: "destination address required", - 97: "message too long", - 98: "protocol wrong type for socket", - 99: "protocol not available", - 120: "protocol not supported", - 121: "socket type not supported", - 122: "operation not supported", - 123: "protocol family not supported", - 124: "address family not supported by protocol", - 125: "address already in use", - 126: "cannot assign requested address", - 127: "network is down", - 128: "network is unreachable", - 129: "network dropped connection on reset", - 130: "software caused connection abort", - 131: "connection reset by peer", - 132: "no buffer space available", - 133: "transport endpoint is already connected", - 134: "transport endpoint is not connected", - 135: "structure needs cleaning", - 137: "not a XENIX named type file", - 138: "no XENIX semaphores available", - 139: "is a named type file", - 140: "remote I/O error", - 141: "unknown error 141", - 142: "unknown error 142", - 143: "cannot send after transport endpoint shutdown", - 144: "too many references: cannot splice", - 145: "connection timed out", - 146: "connection refused", - 147: "host is down", - 148: "no route to host", - 149: "operation already in progress", - 150: "operation now in progress", - 151: "stale file handle", - 158: "operation canceled", - 159: "no medium found", - 160: "wrong medium type", - 161: "required key not available", - 162: "key has expired", - 163: "key has been revoked", - 164: "key was rejected by service", - 165: "owner died", - 166: "state not recoverable", - 167: "operation not possible due to RF-kill", - 168: "memory page has hardware error", - 1133: "disk quota exceeded", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "user defined signal 1", - 17: "user defined signal 2", - 18: "child exited", - 19: "power failure", - 20: "window changed", - 21: "urgent I/O condition", - 22: "I/O possible", - 23: "stopped (signal)", - 24: "stopped", - 25: "continued", - 26: "stopped (tty input)", - 27: "stopped (tty output)", - 28: "virtual timer expired", - 29: "profiling timer expired", - 30: "CPU time limit exceeded", - 31: "file size limit exceeded", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go deleted file mode 100644 index db6d556..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ /dev/null @@ -1,2276 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64le,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0xe - F_GETLK64 = 0xe - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x0 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x8000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x7d) - EADDRNOTAVAIL = syscall.Errno(0x7e) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x95) - EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x51) - EBADMSG = syscall.Errno(0x4d) - EBADR = syscall.Errno(0x33) - EBADRQC = syscall.Errno(0x36) - EBADSLT = syscall.Errno(0x37) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x25) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x82) - ECONNREFUSED = syscall.Errno(0x92) - ECONNRESET = syscall.Errno(0x83) - EDEADLK = syscall.Errno(0x2d) - EDEADLOCK = syscall.Errno(0x38) - EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x93) - EHOSTUNREACH = syscall.Errno(0x94) - EHWPOISON = syscall.Errno(0xa8) - EIDRM = syscall.Errno(0x24) - EILSEQ = syscall.Errno(0x58) - EINIT = syscall.Errno(0x8d) - EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x8b) - EKEYEXPIRED = syscall.Errno(0xa2) - EKEYREJECTED = syscall.Errno(0xa4) - EKEYREVOKED = syscall.Errno(0xa3) - EL2HLT = syscall.Errno(0x2c) - EL2NSYNC = syscall.Errno(0x26) - EL3HLT = syscall.Errno(0x27) - EL3RST = syscall.Errno(0x28) - ELIBACC = syscall.Errno(0x53) - ELIBBAD = syscall.Errno(0x54) - ELIBEXEC = syscall.Errno(0x57) - ELIBMAX = syscall.Errno(0x56) - ELIBSCN = syscall.Errno(0x55) - ELNRNG = syscall.Errno(0x29) - ELOOP = syscall.Errno(0x5a) - EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x61) - EMULTIHOP = syscall.Errno(0x4a) - ENAMETOOLONG = syscall.Errno(0x4e) - ENAVAIL = syscall.Errno(0x8a) - ENETDOWN = syscall.Errno(0x7f) - ENETRESET = syscall.Errno(0x81) - ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x35) - ENOBUFS = syscall.Errno(0x84) - ENOCSI = syscall.Errno(0x2b) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0xa1) - ENOLCK = syscall.Errno(0x2e) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x23) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x5d) - ENOTNAM = syscall.Errno(0x89) - ENOTRECOVERABLE = syscall.Errno(0xa6) - ENOTSOCK = syscall.Errno(0x5f) - ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x7a) - EOVERFLOW = syscall.Errno(0x4f) - EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x78) - EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x52) - EREMDEV = syscall.Errno(0x8e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x8c) - ERESTART = syscall.Errno(0x5b) - ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x8f) - ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x97) - ESTRPIPE = syscall.Errno(0x5c) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x91) - ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x87) - EUNATCH = syscall.Errno(0x2a) - EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x34) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x12) - SIGCLD = syscall.Signal(0x12) - SIGCONT = syscall.Signal(0x19) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x16) - SIGPROF = syscall.Signal(0x1d) - SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x17) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x18) - SIGTTIN = syscall.Signal(0x1a) - SIGTTOU = syscall.Signal(0x1b) - SIGURG = syscall.Signal(0x15) - SIGUSR1 = syscall.Signal(0x10) - SIGUSR2 = syscall.Signal(0x11) - SIGVTALRM = syscall.Signal(0x1c) - SIGWINCH = syscall.Signal(0x14) - SIGXCPU = syscall.Signal(0x1e) - SIGXFSZ = syscall.Signal(0x1f) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "no message of desired type", - 36: "identifier removed", - 37: "channel number out of range", - 38: "level 2 not synchronized", - 39: "level 3 halted", - 40: "level 3 reset", - 41: "link number out of range", - 42: "protocol driver not attached", - 43: "no CSI structure available", - 44: "level 2 halted", - 45: "resource deadlock avoided", - 46: "no locks available", - 50: "invalid exchange", - 51: "invalid request descriptor", - 52: "exchange full", - 53: "no anode", - 54: "invalid request code", - 55: "invalid slot", - 56: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 73: "RFS specific error", - 74: "multihop attempted", - 77: "bad message", - 78: "file name too long", - 79: "value too large for defined data type", - 80: "name not unique on network", - 81: "file descriptor in bad state", - 82: "remote address changed", - 83: "can not access a needed shared library", - 84: "accessing a corrupted shared library", - 85: ".lib section in a.out corrupted", - 86: "attempting to link in too many shared libraries", - 87: "cannot exec a shared library directly", - 88: "invalid or incomplete multibyte or wide character", - 89: "function not implemented", - 90: "too many levels of symbolic links", - 91: "interrupted system call should be restarted", - 92: "streams pipe error", - 93: "directory not empty", - 94: "too many users", - 95: "socket operation on non-socket", - 96: "destination address required", - 97: "message too long", - 98: "protocol wrong type for socket", - 99: "protocol not available", - 120: "protocol not supported", - 121: "socket type not supported", - 122: "operation not supported", - 123: "protocol family not supported", - 124: "address family not supported by protocol", - 125: "address already in use", - 126: "cannot assign requested address", - 127: "network is down", - 128: "network is unreachable", - 129: "network dropped connection on reset", - 130: "software caused connection abort", - 131: "connection reset by peer", - 132: "no buffer space available", - 133: "transport endpoint is already connected", - 134: "transport endpoint is not connected", - 135: "structure needs cleaning", - 137: "not a XENIX named type file", - 138: "no XENIX semaphores available", - 139: "is a named type file", - 140: "remote I/O error", - 141: "unknown error 141", - 142: "unknown error 142", - 143: "cannot send after transport endpoint shutdown", - 144: "too many references: cannot splice", - 145: "connection timed out", - 146: "connection refused", - 147: "host is down", - 148: "no route to host", - 149: "operation already in progress", - 150: "operation now in progress", - 151: "stale file handle", - 158: "operation canceled", - 159: "no medium found", - 160: "wrong medium type", - 161: "required key not available", - 162: "key has expired", - 163: "key has been revoked", - 164: "key was rejected by service", - 165: "owner died", - 166: "state not recoverable", - 167: "operation not possible due to RF-kill", - 168: "memory page has hardware error", - 1133: "disk quota exceeded", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "user defined signal 1", - 17: "user defined signal 2", - 18: "child exited", - 19: "power failure", - 20: "window changed", - 21: "urgent I/O condition", - 22: "I/O possible", - 23: "stopped (signal)", - 24: "stopped", - 25: "continued", - 26: "stopped (tty input)", - 27: "stopped (tty output)", - 28: "virtual timer expired", - 29: "profiling timer expired", - 30: "CPU time limit exceeded", - 31: "file size limit exceeded", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go deleted file mode 100644 index 4a62a55..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ /dev/null @@ -1,2276 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mipsle,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x40041270 - BLKBSZSET = 0x80041271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40041272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x80 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x21 - F_GETLK64 = 0x21 - F_GETOWN = 0x17 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x22 - F_SETLK64 = 0x22 - F_SETLKW = 0x23 - F_SETLKW64 = 0x23 - F_SETOWN = 0x18 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x100 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x80 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x800 - MAP_ANONYMOUS = 0x800 - MAP_DENYWRITE = 0x2000 - MAP_EXECUTABLE = 0x4000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x1000 - MAP_HUGETLB = 0x80000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x8000 - MAP_NONBLOCK = 0x20000 - MAP_NORESERVE = 0x400 - MAP_POPULATE = 0x10000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x800 - MAP_SHARED = 0x1 - MAP_STACK = 0x40000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x1000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x100 - O_DIRECT = 0x8000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x10 - O_EXCL = 0x400 - O_FSYNC = 0x4010 - O_LARGEFILE = 0x2000 - O_NDELAY = 0x80 - O_NOATIME = 0x40000 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x80 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x4010 - O_SYNC = 0x4010 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40042407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80042406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_THREAD_AREA = 0x19 - PTRACE_GET_THREAD_AREA_3264 = 0xc4 - PTRACE_GET_WATCH_REGS = 0xd0 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_3264 = 0xc1 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_3264 = 0xc0 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_3264 = 0xc3 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_3264 = 0xc2 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SET_THREAD_AREA = 0x1a - PTRACE_SET_WATCH_REGS = 0xd1 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x9 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x5 - RLIMIT_NPROC = 0x8 - RLIMIT_RSS = 0x7 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x40047307 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x40047309 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x467f - SIOCOUTQ = 0x7472 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x80047308 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x1 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x80 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x2 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1009 - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x11 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x12 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x1f - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_STYLE = 0x1008 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCGETS2 = 0x4030542a - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSBRKP = 0x5486 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETS2 = 0x8030542b - TCSETSF = 0x5410 - TCSETSF2 = 0x8030542d - TCSETSW = 0x540f - TCSETSW2 = 0x8030542c - TCXONC = 0x5406 - TIOCCBRK = 0x5428 - TIOCCONS = 0x80047478 - TIOCEXCL = 0x740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x5492 - TIOCGLCKTRMIOS = 0x548b - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x4020542e - TIOCGSERIAL = 0x5484 - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5481 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x467f - TIOCLINUX = 0x5483 - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMIWAIT = 0x5491 - TIOCMSET = 0x741a - TIOCM_CAR = 0x100 - TIOCM_CD = 0x100 - TIOCM_CTS = 0x40 - TIOCM_DSR = 0x400 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x200 - TIOCM_RNG = 0x200 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x20 - TIOCM_ST = 0x10 - TIOCNOTTY = 0x5471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7472 - TIOCPKT = 0x5470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x5480 - TIOCSERCONFIG = 0x5488 - TIOCSERGETLSR = 0x548e - TIOCSERGETMULTI = 0x548f - TIOCSERGSTRUCT = 0x548d - TIOCSERGWILD = 0x5489 - TIOCSERSETMULTI = 0x5490 - TIOCSERSWILD = 0x548a - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x548c - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0xc020542f - TIOCSSERIAL = 0x5485 - TIOCSSOFTCAR = 0x5482 - TIOCSTI = 0x5472 - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x8000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x800854d5 - TUNDETACHFILTER = 0x800854d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x400854db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x10 - VEOL = 0x11 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x20 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x7d) - EADDRNOTAVAIL = syscall.Errno(0x7e) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x95) - EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x51) - EBADMSG = syscall.Errno(0x4d) - EBADR = syscall.Errno(0x33) - EBADRQC = syscall.Errno(0x36) - EBADSLT = syscall.Errno(0x37) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x9e) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x25) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x82) - ECONNREFUSED = syscall.Errno(0x92) - ECONNRESET = syscall.Errno(0x83) - EDEADLK = syscall.Errno(0x2d) - EDEADLOCK = syscall.Errno(0x38) - EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x46d) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x93) - EHOSTUNREACH = syscall.Errno(0x94) - EHWPOISON = syscall.Errno(0xa8) - EIDRM = syscall.Errno(0x24) - EILSEQ = syscall.Errno(0x58) - EINIT = syscall.Errno(0x8d) - EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x8b) - EKEYEXPIRED = syscall.Errno(0xa2) - EKEYREJECTED = syscall.Errno(0xa4) - EKEYREVOKED = syscall.Errno(0xa3) - EL2HLT = syscall.Errno(0x2c) - EL2NSYNC = syscall.Errno(0x26) - EL3HLT = syscall.Errno(0x27) - EL3RST = syscall.Errno(0x28) - ELIBACC = syscall.Errno(0x53) - ELIBBAD = syscall.Errno(0x54) - ELIBEXEC = syscall.Errno(0x57) - ELIBMAX = syscall.Errno(0x56) - ELIBSCN = syscall.Errno(0x55) - ELNRNG = syscall.Errno(0x29) - ELOOP = syscall.Errno(0x5a) - EMEDIUMTYPE = syscall.Errno(0xa0) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x61) - EMULTIHOP = syscall.Errno(0x4a) - ENAMETOOLONG = syscall.Errno(0x4e) - ENAVAIL = syscall.Errno(0x8a) - ENETDOWN = syscall.Errno(0x7f) - ENETRESET = syscall.Errno(0x81) - ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x35) - ENOBUFS = syscall.Errno(0x84) - ENOCSI = syscall.Errno(0x2b) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0xa1) - ENOLCK = syscall.Errno(0x2e) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x9f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x23) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x59) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x5d) - ENOTNAM = syscall.Errno(0x89) - ENOTRECOVERABLE = syscall.Errno(0xa6) - ENOTSOCK = syscall.Errno(0x5f) - ENOTSUP = syscall.Errno(0x7a) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x7a) - EOVERFLOW = syscall.Errno(0x4f) - EOWNERDEAD = syscall.Errno(0xa5) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x78) - EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x52) - EREMDEV = syscall.Errno(0x8e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x8c) - ERESTART = syscall.Errno(0x5b) - ERFKILL = syscall.Errno(0xa7) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x8f) - ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x97) - ESTRPIPE = syscall.Errno(0x5c) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x91) - ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x87) - EUNATCH = syscall.Errno(0x2a) - EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x34) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x12) - SIGCLD = syscall.Signal(0x12) - SIGCONT = syscall.Signal(0x19) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x16) - SIGPROF = syscall.Signal(0x1d) - SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x17) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x18) - SIGTTIN = syscall.Signal(0x1a) - SIGTTOU = syscall.Signal(0x1b) - SIGURG = syscall.Signal(0x15) - SIGUSR1 = syscall.Signal(0x10) - SIGUSR2 = syscall.Signal(0x11) - SIGVTALRM = syscall.Signal(0x1c) - SIGWINCH = syscall.Signal(0x14) - SIGXCPU = syscall.Signal(0x1e) - SIGXFSZ = syscall.Signal(0x1f) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "no message of desired type", - 36: "identifier removed", - 37: "channel number out of range", - 38: "level 2 not synchronized", - 39: "level 3 halted", - 40: "level 3 reset", - 41: "link number out of range", - 42: "protocol driver not attached", - 43: "no CSI structure available", - 44: "level 2 halted", - 45: "resource deadlock avoided", - 46: "no locks available", - 50: "invalid exchange", - 51: "invalid request descriptor", - 52: "exchange full", - 53: "no anode", - 54: "invalid request code", - 55: "invalid slot", - 56: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 73: "RFS specific error", - 74: "multihop attempted", - 77: "bad message", - 78: "file name too long", - 79: "value too large for defined data type", - 80: "name not unique on network", - 81: "file descriptor in bad state", - 82: "remote address changed", - 83: "can not access a needed shared library", - 84: "accessing a corrupted shared library", - 85: ".lib section in a.out corrupted", - 86: "attempting to link in too many shared libraries", - 87: "cannot exec a shared library directly", - 88: "invalid or incomplete multibyte or wide character", - 89: "function not implemented", - 90: "too many levels of symbolic links", - 91: "interrupted system call should be restarted", - 92: "streams pipe error", - 93: "directory not empty", - 94: "too many users", - 95: "socket operation on non-socket", - 96: "destination address required", - 97: "message too long", - 98: "protocol wrong type for socket", - 99: "protocol not available", - 120: "protocol not supported", - 121: "socket type not supported", - 122: "operation not supported", - 123: "protocol family not supported", - 124: "address family not supported by protocol", - 125: "address already in use", - 126: "cannot assign requested address", - 127: "network is down", - 128: "network is unreachable", - 129: "network dropped connection on reset", - 130: "software caused connection abort", - 131: "connection reset by peer", - 132: "no buffer space available", - 133: "transport endpoint is already connected", - 134: "transport endpoint is not connected", - 135: "structure needs cleaning", - 137: "not a XENIX named type file", - 138: "no XENIX semaphores available", - 139: "is a named type file", - 140: "remote I/O error", - 141: "unknown error 141", - 142: "unknown error 142", - 143: "cannot send after transport endpoint shutdown", - 144: "too many references: cannot splice", - 145: "connection timed out", - 146: "connection refused", - 147: "host is down", - 148: "no route to host", - 149: "operation already in progress", - 150: "operation now in progress", - 151: "stale file handle", - 158: "operation canceled", - 159: "no medium found", - 160: "wrong medium type", - 161: "required key not available", - 162: "key has expired", - 163: "key has been revoked", - 164: "key was rejected by service", - 165: "owner died", - 166: "state not recoverable", - 167: "operation not possible due to RF-kill", - 168: "memory page has hardware error", - 1133: "disk quota exceeded", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "user defined signal 1", - 17: "user defined signal 2", - 18: "child exited", - 19: "power failure", - 20: "window changed", - 21: "urgent I/O condition", - 22: "I/O possible", - 23: "stopped (signal)", - 24: "stopped", - 25: "continued", - 26: "stopped (tty input)", - 27: "stopped (tty output)", - 28: "virtual timer expired", - 29: "profiling timer expired", - 30: "CPU time limit exceeded", - 31: "file size limit exceeded", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go deleted file mode 100644 index 5e1e81e..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ /dev/null @@ -1,2329 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x17 - B110 = 0x3 - B115200 = 0x11 - B1152000 = 0x18 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x19 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x1a - B230400 = 0x12 - B2400 = 0xb - B2500000 = 0x1b - B300 = 0x7 - B3000000 = 0x1c - B3500000 = 0x1d - B38400 = 0xf - B4000000 = 0x1e - B460800 = 0x13 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x14 - B57600 = 0x10 - B576000 = 0x15 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x16 - B9600 = 0xd - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1f - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0xff - CBAUDEX = 0x0 - CFLUSH = 0xf - CIBAUD = 0xff0000 - CLOCAL = 0x8000 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIGNAL = 0xff - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0xd - F_SETLKW = 0x7 - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x4000 - IBSHIFT = 0x10 - ICANON = 0x100 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x400 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x80 - ISTRIP = 0x20 - IUCLC = 0x1000 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x80 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x300 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80000000 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x4 - ONLCR = 0x2 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x20000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x1000 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_SAO = 0x10 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETEVRREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVRREGS = 0x12 - PTRACE_GETVSRREGS = 0x1b - PTRACE_GET_DEBUGREG = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETEVRREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVRREGS = 0x13 - PTRACE_SETVSRREGS = 0x1c - PTRACE_SET_DEBUGREG = 0x1a - PTRACE_SINGLEBLOCK = 0x100 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PT_CCR = 0x26 - PT_CTR = 0x23 - PT_DAR = 0x29 - PT_DSCR = 0x2c - PT_DSISR = 0x2a - PT_FPR0 = 0x30 - PT_FPSCR = 0x50 - PT_LNK = 0x24 - PT_MSR = 0x21 - PT_NIP = 0x20 - PT_ORIG_R3 = 0x22 - PT_R0 = 0x0 - PT_R1 = 0x1 - PT_R10 = 0xa - PT_R11 = 0xb - PT_R12 = 0xc - PT_R13 = 0xd - PT_R14 = 0xe - PT_R15 = 0xf - PT_R16 = 0x10 - PT_R17 = 0x11 - PT_R18 = 0x12 - PT_R19 = 0x13 - PT_R2 = 0x2 - PT_R20 = 0x14 - PT_R21 = 0x15 - PT_R22 = 0x16 - PT_R23 = 0x17 - PT_R24 = 0x18 - PT_R25 = 0x19 - PT_R26 = 0x1a - PT_R27 = 0x1b - PT_R28 = 0x1c - PT_R29 = 0x1d - PT_R3 = 0x3 - PT_R30 = 0x1e - PT_R31 = 0x1f - PT_R4 = 0x4 - PT_R5 = 0x5 - PT_R6 = 0x6 - PT_R7 = 0x7 - PT_R8 = 0x8 - PT_R9 = 0x9 - PT_REGS_COUNT = 0x2c - PT_RESULT = 0x2b - PT_SOFTE = 0x27 - PT_TRAP = 0x28 - PT_VR0 = 0x52 - PT_VRSAVE = 0x94 - PT_VSCR = 0x93 - PT_VSR0 = 0x96 - PT_VSR31 = 0xd4 - PT_XER = 0x25 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x14 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x15 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x10 - SO_RCVTIMEO = 0x12 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x11 - SO_SNDTIMEO = 0x13 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0xc00 - TABDLY = 0xc00 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x2000741f - TCGETA = 0x40147417 - TCGETS = 0x402c7413 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x2000741d - TCSBRKP = 0x5425 - TCSETA = 0x80147418 - TCSETAF = 0x8014741c - TCSETAW = 0x80147419 - TCSETS = 0x802c7414 - TCSETSF = 0x802c7416 - TCSETSW = 0x802c7415 - TCXONC = 0x2000741e - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x40045432 - TIOCGETC = 0x40067412 - TIOCGETD = 0x5424 - TIOCGETP = 0x40067408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGLTC = 0x40067474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_LOOP = 0x8000 - TIOCM_OUT1 = 0x2000 - TIOCM_OUT2 = 0x4000 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETC = 0x80067411 - TIOCSETD = 0x5423 - TIOCSETN = 0x8006740a - TIOCSETP = 0x80067409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSLTC = 0x80067475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTART = 0x2000746e - TIOCSTI = 0x5412 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x400000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0x10 - VEOF = 0x4 - VEOL = 0x6 - VEOL2 = 0x8 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x5 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xb - VSTART = 0xd - VSTOP = 0xe - VSUSP = 0xc - VSWTC = 0x9 - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x7 - VWERASE = 0xa - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4000 - XTABS = 0xc00 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x3a) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 58: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go deleted file mode 100644 index 6a80324..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ /dev/null @@ -1,2329 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64le,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x17 - B110 = 0x3 - B115200 = 0x11 - B1152000 = 0x18 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x19 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x1a - B230400 = 0x12 - B2400 = 0xb - B2500000 = 0x1b - B300 = 0x7 - B3000000 = 0x1c - B3500000 = 0x1d - B38400 = 0xf - B4000000 = 0x1e - B460800 = 0x13 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x14 - B57600 = 0x10 - B576000 = 0x15 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x16 - B9600 = 0xd - BLKBSZGET = 0x40081270 - BLKBSZSET = 0x80081271 - BLKFLSBUF = 0x20001261 - BLKFRAGET = 0x20001265 - BLKFRASET = 0x20001264 - BLKGETSIZE = 0x20001260 - BLKGETSIZE64 = 0x40081272 - BLKPBSZGET = 0x2000127b - BLKRAGET = 0x20001263 - BLKRASET = 0x20001262 - BLKROGET = 0x2000125e - BLKROSET = 0x2000125d - BLKRRPART = 0x2000125f - BLKSECTGET = 0x20001267 - BLKSECTSET = 0x20001266 - BLKSSZGET = 0x20001268 - BOTHER = 0x1f - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x8000 - BSDLY = 0x8000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0xff - CBAUDEX = 0x0 - CFLUSH = 0xf - CIBAUD = 0xff0000 - CLOCAL = 0x8000 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x1000 - CR2 = 0x2000 - CR3 = 0x3000 - CRDLY = 0x3000 - CREAD = 0x800 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIGNAL = 0xff - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x4000 - FFDLY = 0x4000 - FLUSHO = 0x800000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0xc - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0xd - F_SETLKW = 0x7 - F_SETLKW64 = 0xe - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x4000 - IBSHIFT = 0x10 - ICANON = 0x100 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x400 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x80 - ISTRIP = 0x20 - IUCLC = 0x1000 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x80 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NL2 = 0x200 - NL3 = 0x300 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x300 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80000000 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x4 - ONLCR = 0x2 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x20000 - O_DIRECTORY = 0x4000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x8000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x404000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x1000 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PERF_EVENT_IOC_DISABLE = 0x20002401 - PERF_EVENT_IOC_ENABLE = 0x20002400 - PERF_EVENT_IOC_ID = 0x40082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409 - PERF_EVENT_IOC_PERIOD = 0x80082404 - PERF_EVENT_IOC_REFRESH = 0x20002402 - PERF_EVENT_IOC_RESET = 0x20002403 - PERF_EVENT_IOC_SET_BPF = 0x80042408 - PERF_EVENT_IOC_SET_FILTER = 0x80082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x20002405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_SAO = 0x10 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETEVRREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GETVRREGS = 0x12 - PTRACE_GETVSRREGS = 0x1b - PTRACE_GET_DEBUGREG = 0x19 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETEVRREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SETVRREGS = 0x13 - PTRACE_SETVSRREGS = 0x1c - PTRACE_SET_DEBUGREG = 0x1a - PTRACE_SINGLEBLOCK = 0x100 - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PT_CCR = 0x26 - PT_CTR = 0x23 - PT_DAR = 0x29 - PT_DSCR = 0x2c - PT_DSISR = 0x2a - PT_FPR0 = 0x30 - PT_FPSCR = 0x50 - PT_LNK = 0x24 - PT_MSR = 0x21 - PT_NIP = 0x20 - PT_ORIG_R3 = 0x22 - PT_R0 = 0x0 - PT_R1 = 0x1 - PT_R10 = 0xa - PT_R11 = 0xb - PT_R12 = 0xc - PT_R13 = 0xd - PT_R14 = 0xe - PT_R15 = 0xf - PT_R16 = 0x10 - PT_R17 = 0x11 - PT_R18 = 0x12 - PT_R19 = 0x13 - PT_R2 = 0x2 - PT_R20 = 0x14 - PT_R21 = 0x15 - PT_R22 = 0x16 - PT_R23 = 0x17 - PT_R24 = 0x18 - PT_R25 = 0x19 - PT_R26 = 0x1a - PT_R27 = 0x1b - PT_R28 = 0x1c - PT_R29 = 0x1d - PT_R3 = 0x3 - PT_R30 = 0x1e - PT_R31 = 0x1f - PT_R4 = 0x4 - PT_R5 = 0x5 - PT_R6 = 0x6 - PT_R7 = 0x7 - PT_R8 = 0x8 - PT_R9 = 0x9 - PT_REGS_COUNT = 0x2c - PT_RESULT = 0x2b - PT_SOFTE = 0x27 - PT_TRAP = 0x28 - PT_VR0 = 0x52 - PT_VRSAVE = 0x94 - PT_VSCR = 0x93 - PT_VSR0 = 0x96 - PT_VSR31 = 0xd4 - PT_XER = 0x25 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x14 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x15 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x10 - SO_RCVTIMEO = 0x12 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x11 - SO_SNDTIMEO = 0x13 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x400 - TAB2 = 0x800 - TAB3 = 0xc00 - TABDLY = 0xc00 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x2000741f - TCGETA = 0x40147417 - TCGETS = 0x402c7413 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x2000741d - TCSBRKP = 0x5425 - TCSETA = 0x80147418 - TCSETAF = 0x8014741c - TCSETAW = 0x80147419 - TCSETS = 0x802c7414 - TCSETSF = 0x802c7416 - TCSETSW = 0x802c7415 - TCXONC = 0x2000741e - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x40045432 - TIOCGETC = 0x40067412 - TIOCGETD = 0x5424 - TIOCGETP = 0x40067408 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGLTC = 0x40067474 - TIOCGPGRP = 0x40047477 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40045430 - TIOCGPTPEER = 0x20005441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_LOOP = 0x8000 - TIOCM_OUT1 = 0x2000 - TIOCM_OUT2 = 0x4000 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETC = 0x80067411 - TIOCSETD = 0x5423 - TIOCSETN = 0x8006740a - TIOCSETP = 0x80067409 - TIOCSIG = 0x80045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSLTC = 0x80067475 - TIOCSPGRP = 0x80047476 - TIOCSPTLCK = 0x80045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTART = 0x2000746e - TIOCSTI = 0x5412 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x400000 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0x10 - VEOF = 0x4 - VEOL = 0x6 - VEOL2 = 0x8 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x5 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xb - VSTART = 0xd - VSTOP = 0xe - VSUSP = 0xc - VSWTC = 0x9 - VT0 = 0x0 - VT1 = 0x10000 - VTDLY = 0x10000 - VTIME = 0x7 - VWERASE = 0xa - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x40045702 - WDIOC_GETPRETIMEOUT = 0x40045709 - WDIOC_GETSTATUS = 0x40045701 - WDIOC_GETSUPPORT = 0x40285700 - WDIOC_GETTEMP = 0x40045703 - WDIOC_GETTIMELEFT = 0x4004570a - WDIOC_GETTIMEOUT = 0x40045707 - WDIOC_KEEPALIVE = 0x40045705 - WDIOC_SETOPTIONS = 0x40045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4000 - XTABS = 0xc00 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x3a) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 58: "file locking deadlock error", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go deleted file mode 100644 index af5a895..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ /dev/null @@ -1,2328 +0,0 @@ -// mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build s390x,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2c - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_QIPCRTR = 0x2a - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SMC = 0x2b - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_VSOCKMON = 0x33a - ARPHRD_X25 = 0x10f - B0 = 0x0 - B1000000 = 0x1008 - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x1009 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100a - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100b - B230400 = 0x1003 - B2400 = 0xb - B2500000 = 0x100c - B300 = 0x7 - B3000000 = 0x100d - B3500000 = 0x100e - B38400 = 0xf - B4000000 = 0x100f - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x1005 - B57600 = 0x1001 - B576000 = 0x1006 - B600 = 0x8 - B75 = 0x2 - B921600 = 0x1007 - B9600 = 0xd - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKPBSZGET = 0x127b - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RAW_FILTER_MAX = 0x200 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EFD_CLOEXEC = 0x80000 - EFD_NONBLOCK = 0x800 - EFD_SEMAPHORE = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x80000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IBOE = 0x8915 - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_NCSI = 0x88f8 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_UNSHARE_RANGE = 0x40 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x1000 - FS_ENCRYPTION_MODE_AES_128_CBC = 0x5 - FS_ENCRYPTION_MODE_AES_128_CTS = 0x6 - FS_ENCRYPTION_MODE_AES_256_CBC = 0x3 - FS_ENCRYPTION_MODE_AES_256_CTS = 0x4 - FS_ENCRYPTION_MODE_AES_256_GCM = 0x2 - FS_ENCRYPTION_MODE_AES_256_XTS = 0x1 - FS_ENCRYPTION_MODE_INVALID = 0x0 - FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615 - FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614 - FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613 - FS_KEY_DESCRIPTOR_SIZE = 0x8 - FS_KEY_DESC_PREFIX = "fscrypt:" - FS_KEY_DESC_PREFIX_SIZE = 0x8 - FS_MAX_KEY_SIZE = 0x40 - FS_POLICY_FLAGS_PAD_16 = 0x2 - FS_POLICY_FLAGS_PAD_32 = 0x3 - FS_POLICY_FLAGS_PAD_4 = 0x0 - FS_POLICY_FLAGS_PAD_8 = 0x1 - FS_POLICY_FLAGS_PAD_MASK = 0x3 - FS_POLICY_FLAGS_VALID = 0x3 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x5 - F_GETLK64 = 0x5 - F_GETOWN = 0x9 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x0 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETOWN = 0x8 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x2 - F_WRLCK = 0x1 - GENL_ADMIN_PERM = 0x1 - GENL_CMD_CAP_DO = 0x2 - GENL_CMD_CAP_DUMP = 0x4 - GENL_CMD_CAP_HASPOL = 0x8 - GENL_HDRLEN = 0x4 - GENL_ID_CTRL = 0x10 - GENL_ID_PMCRAID = 0x12 - GENL_ID_VFS_DQUOT = 0x11 - GENL_MAX_ID = 0x3ff - GENL_MIN_ID = 0x10 - GENL_NAMSIZ = 0x10 - GENL_START_ALLOC = 0x13 - GENL_UNS_ADMIN_PERM = 0x10 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x80000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x800 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADDR_PREFERENCES = 0x48 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_AUTOFLOWLABEL = 0x46 - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MINHOPCOUNT = 0x49 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_ORIGDSTADDR = 0x4a - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVFRAGSIZE = 0x4d - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVORIGDSTADDR = 0x4a - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_TRANSPARENT = 0x4b - IPV6_UNICAST_HOPS = 0x10 - IPV6_UNICAST_IF = 0x4c - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVFRAGSIZE = 0x19 - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - KEYCTL_ASSUME_AUTHORITY = 0x10 - KEYCTL_CHOWN = 0x4 - KEYCTL_CLEAR = 0x7 - KEYCTL_DESCRIBE = 0x6 - KEYCTL_DH_COMPUTE = 0x17 - KEYCTL_GET_KEYRING_ID = 0x0 - KEYCTL_GET_PERSISTENT = 0x16 - KEYCTL_GET_SECURITY = 0x11 - KEYCTL_INSTANTIATE = 0xc - KEYCTL_INSTANTIATE_IOV = 0x14 - KEYCTL_INVALIDATE = 0x15 - KEYCTL_JOIN_SESSION_KEYRING = 0x1 - KEYCTL_LINK = 0x8 - KEYCTL_NEGATE = 0xd - KEYCTL_READ = 0xb - KEYCTL_REJECT = 0x13 - KEYCTL_RESTRICT_KEYRING = 0x1d - KEYCTL_REVOKE = 0x3 - KEYCTL_SEARCH = 0xa - KEYCTL_SESSION_TO_PARENT = 0x12 - KEYCTL_SETPERM = 0x5 - KEYCTL_SET_REQKEY_KEYRING = 0xe - KEYCTL_SET_TIMEOUT = 0xf - KEYCTL_UNLINK = 0x9 - KEYCTL_UPDATE = 0x2 - KEY_REQKEY_DEFL_DEFAULT = 0x0 - KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6 - KEY_REQKEY_DEFL_NO_CHANGE = -0x1 - KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2 - KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7 - KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3 - KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1 - KEY_REQKEY_DEFL_USER_KEYRING = 0x4 - KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5 - KEY_SPEC_GROUP_KEYRING = -0x6 - KEY_SPEC_PROCESS_KEYRING = -0x2 - KEY_SPEC_REQKEY_AUTH_KEY = -0x7 - KEY_SPEC_REQUESTOR_KEYRING = -0x8 - KEY_SPEC_SESSION_KEYRING = -0x3 - KEY_SPEC_THREAD_KEYRING = -0x1 - KEY_SPEC_USER_KEYRING = -0x4 - KEY_SPEC_USER_SESSION_KEYRING = -0x5 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x100 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x2000 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x4000 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MCL_ONFAULT = 0x4 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_BORN = 0x20000000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOREMOTELOCK = 0x8000000 - MS_NOSEC = 0x10000000 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SUBMOUNT = 0x4000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - MS_VERBOSE = 0x8000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_EXT_ACK = 0xb - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SMC = 0x16 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_ACK_TLVS = 0x200 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CAPPED = 0x100 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x400 - O_ASYNC = 0x2000 - O_CLOEXEC = 0x80000 - O_CREAT = 0x40 - O_DIRECT = 0x4000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x1000 - O_EXCL = 0x80 - O_FSYNC = 0x101000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x800 - O_NOATIME = 0x40000 - O_NOCTTY = 0x100 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x800 - O_PATH = 0x200000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x101000 - O_SYNC = 0x101000 - O_TMPFILE = 0x410000 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_FLAG_UNIQUEID = 0x2000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PERF_EVENT_IOC_DISABLE = 0x2401 - PERF_EVENT_IOC_ENABLE = 0x2400 - PERF_EVENT_IOC_ID = 0x80082407 - PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409 - PERF_EVENT_IOC_PERIOD = 0x40082404 - PERF_EVENT_IOC_REFRESH = 0x2402 - PERF_EVENT_IOC_RESET = 0x2403 - PERF_EVENT_IOC_SET_BPF = 0x40042408 - PERF_EVENT_IOC_SET_FILTER = 0x40082406 - PERF_EVENT_IOC_SET_OUTPUT = 0x2405 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = 0xffffffffffffffff - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_DISABLE_TE = 0x5010 - PTRACE_ENABLE_TE = 0x5009 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETREGS = 0xc - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_GET_LAST_BREAK = 0x5006 - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_OLDSETOPTIONS = 0x15 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKDATA_AREA = 0x5003 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKTEXT_AREA = 0x5002 - PTRACE_PEEKUSR = 0x3 - PTRACE_PEEKUSR_AREA = 0x5000 - PTRACE_PEEK_SYSTEM_CALL = 0x5007 - PTRACE_POKEDATA = 0x5 - PTRACE_POKEDATA_AREA = 0x5005 - PTRACE_POKETEXT = 0x4 - PTRACE_POKETEXT_AREA = 0x5004 - PTRACE_POKEUSR = 0x6 - PTRACE_POKEUSR_AREA = 0x5001 - PTRACE_POKE_SYSTEM_CALL = 0x5008 - PTRACE_PROT = 0x15 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLEBLOCK = 0xc - PTRACE_SINGLESTEP = 0x9 - PTRACE_SYSCALL = 0x18 - PTRACE_TE_ABORT_RAND = 0x5011 - PTRACE_TRACEME = 0x0 - PT_ACR0 = 0x90 - PT_ACR1 = 0x94 - PT_ACR10 = 0xb8 - PT_ACR11 = 0xbc - PT_ACR12 = 0xc0 - PT_ACR13 = 0xc4 - PT_ACR14 = 0xc8 - PT_ACR15 = 0xcc - PT_ACR2 = 0x98 - PT_ACR3 = 0x9c - PT_ACR4 = 0xa0 - PT_ACR5 = 0xa4 - PT_ACR6 = 0xa8 - PT_ACR7 = 0xac - PT_ACR8 = 0xb0 - PT_ACR9 = 0xb4 - PT_CR_10 = 0x168 - PT_CR_11 = 0x170 - PT_CR_9 = 0x160 - PT_ENDREGS = 0x1af - PT_FPC = 0xd8 - PT_FPR0 = 0xe0 - PT_FPR1 = 0xe8 - PT_FPR10 = 0x130 - PT_FPR11 = 0x138 - PT_FPR12 = 0x140 - PT_FPR13 = 0x148 - PT_FPR14 = 0x150 - PT_FPR15 = 0x158 - PT_FPR2 = 0xf0 - PT_FPR3 = 0xf8 - PT_FPR4 = 0x100 - PT_FPR5 = 0x108 - PT_FPR6 = 0x110 - PT_FPR7 = 0x118 - PT_FPR8 = 0x120 - PT_FPR9 = 0x128 - PT_GPR0 = 0x10 - PT_GPR1 = 0x18 - PT_GPR10 = 0x60 - PT_GPR11 = 0x68 - PT_GPR12 = 0x70 - PT_GPR13 = 0x78 - PT_GPR14 = 0x80 - PT_GPR15 = 0x88 - PT_GPR2 = 0x20 - PT_GPR3 = 0x28 - PT_GPR4 = 0x30 - PT_GPR5 = 0x38 - PT_GPR6 = 0x40 - PT_GPR7 = 0x48 - PT_GPR8 = 0x50 - PT_GPR9 = 0x58 - PT_IEEE_IP = 0x1a8 - PT_LASTOFF = 0x1a8 - PT_ORIGGPR2 = 0xd0 - PT_PSWADDR = 0x8 - PT_PSWMASK = 0x0 - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_LOCKS = 0xa - RLIMIT_MEMLOCK = 0x8 - RLIMIT_MSGQUEUE = 0xc - RLIMIT_NICE = 0xd - RLIMIT_NOFILE = 0x7 - RLIMIT_NPROC = 0x6 - RLIMIT_RSS = 0x5 - RLIMIT_RTPRIO = 0xe - RLIMIT_RTTIME = 0xf - RLIMIT_SIGPENDING = 0xb - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0xffffffffffffffff - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x1a - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNETCONF = 0x51 - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_FIB_MATCH = 0x2000 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x63 - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWCACHEREPORT = 0x60 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x15 - RTM_NR_MSGTYPES = 0x54 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x19 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTNH_F_UNRESOLVED = 0x20 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x25 - SCM_TIMESTAMPING_OPT_STATS = 0x36 - SCM_TIMESTAMPING_PKTINFO = 0x3a - SCM_TIMESTAMPNS = 0x23 - SCM_WIFI_STATUS = 0x29 - SECCOMP_MODE_DISABLED = 0x0 - SECCOMP_MODE_FILTER = 0x2 - SECCOMP_MODE_STRICT = 0x1 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSKNS = 0x894c - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x541b - SIOCOUTQ = 0x5411 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x80000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_IOC_TYPE = 0x89 - SOCK_NONBLOCK = 0x800 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_CAN_BASE = 0x64 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0x1 - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x1e - SO_ATTACH_BPF = 0x32 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x33 - SO_ATTACH_REUSEPORT_EBPF = 0x34 - SO_BINDTODEVICE = 0x19 - SO_BPF_EXTENSIONS = 0x30 - SO_BROADCAST = 0x6 - SO_BSDCOMPAT = 0xe - SO_BUSY_POLL = 0x2e - SO_CNX_ADVICE = 0x35 - SO_COOKIE = 0x39 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x27 - SO_DONTROUTE = 0x5 - SO_ERROR = 0x4 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x31 - SO_INCOMING_NAPI_ID = 0x38 - SO_KEEPALIVE = 0x9 - SO_LINGER = 0xd - SO_LOCK_FILTER = 0x2c - SO_MARK = 0x24 - SO_MAX_PACING_RATE = 0x2f - SO_MEMINFO = 0x37 - SO_NOFCS = 0x2b - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0xa - SO_PASSCRED = 0x10 - SO_PASSSEC = 0x22 - SO_PEEK_OFF = 0x2a - SO_PEERCRED = 0x11 - SO_PEERGROUPS = 0x3b - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1f - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x26 - SO_RCVBUF = 0x8 - SO_RCVBUFFORCE = 0x21 - SO_RCVLOWAT = 0x12 - SO_RCVTIMEO = 0x14 - SO_REUSEADDR = 0x2 - SO_REUSEPORT = 0xf - SO_RXQ_OVFL = 0x28 - SO_SECURITY_AUTHENTICATION = 0x16 - SO_SECURITY_ENCRYPTION_NETWORK = 0x18 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17 - SO_SELECT_ERR_QUEUE = 0x2d - SO_SNDBUF = 0x7 - SO_SNDBUFFORCE = 0x20 - SO_SNDLOWAT = 0x13 - SO_SNDTIMEO = 0x15 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x25 - SO_TIMESTAMPNS = 0x23 - SO_TYPE = 0x3 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x29 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - STATX_ALL = 0xfff - STATX_ATIME = 0x20 - STATX_ATTR_APPEND = 0x20 - STATX_ATTR_AUTOMOUNT = 0x1000 - STATX_ATTR_COMPRESSED = 0x4 - STATX_ATTR_ENCRYPTED = 0x800 - STATX_ATTR_IMMUTABLE = 0x10 - STATX_ATTR_NODUMP = 0x40 - STATX_BASIC_STATS = 0x7ff - STATX_BLOCKS = 0x400 - STATX_BTIME = 0x800 - STATX_CTIME = 0x80 - STATX_GID = 0x10 - STATX_INO = 0x100 - STATX_MODE = 0x2 - STATX_MTIME = 0x40 - STATX_NLINK = 0x4 - STATX_SIZE = 0x200 - STATX_TYPE = 0x1 - STATX_UID = 0x8 - STATX__RESERVED = 0x80000000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TASKSTATS_CMD_ATTR_MAX = 0x4 - TASKSTATS_CMD_MAX = 0x2 - TASKSTATS_GENL_NAME = "TASKSTATS" - TASKSTATS_GENL_VERSION = 0x1 - TASKSTATS_TYPE_MAX = 0x6 - TASKSTATS_VERSION = 0x8 - TCFLSH = 0x540b - TCGETA = 0x5405 - TCGETS = 0x5401 - TCGETS2 = 0x802c542a - TCGETX = 0x5432 - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_FASTOPEN_CONNECT = 0x1e - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_REPAIR_WINDOW = 0x1d - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x5409 - TCSBRKP = 0x5425 - TCSETA = 0x5406 - TCSETAF = 0x5408 - TCSETAW = 0x5407 - TCSETS = 0x5402 - TCSETS2 = 0x402c542b - TCSETSF = 0x5404 - TCSETSF2 = 0x402c542d - TCSETSW = 0x5403 - TCSETSW2 = 0x402c542c - TCSETX = 0x5433 - TCSETXF = 0x5434 - TCSETXW = 0x5435 - TCXONC = 0x540a - TIOCCBRK = 0x5428 - TIOCCONS = 0x541d - TIOCEXCL = 0x540c - TIOCGDEV = 0x80045432 - TIOCGETD = 0x5424 - TIOCGEXCL = 0x80045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x540f - TIOCGPKT = 0x80045438 - TIOCGPTLCK = 0x80045439 - TIOCGPTN = 0x80045430 - TIOCGPTPEER = 0x5441 - TIOCGRS485 = 0x542e - TIOCGSERIAL = 0x541e - TIOCGSID = 0x5429 - TIOCGSOFTCAR = 0x5419 - TIOCGWINSZ = 0x5413 - TIOCINQ = 0x541b - TIOCLINUX = 0x541c - TIOCMBIC = 0x5417 - TIOCMBIS = 0x5416 - TIOCMGET = 0x5415 - TIOCMIWAIT = 0x545c - TIOCMSET = 0x5418 - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x5422 - TIOCNXCL = 0x540d - TIOCOUTQ = 0x5411 - TIOCPKT = 0x5420 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x5427 - TIOCSCTTY = 0x540e - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x5423 - TIOCSIG = 0x40045436 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x5410 - TIOCSPTLCK = 0x40045431 - TIOCSRS485 = 0x542f - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x541a - TIOCSTI = 0x5412 - TIOCSWINSZ = 0x5414 - TIOCVHANGUP = 0x5437 - TOSTOP = 0x100 - TS_COMM_LEN = 0x20 - TUNATTACHFILTER = 0x401054d5 - TUNDETACHFILTER = 0x401054d6 - TUNGETFEATURES = 0x800454cf - TUNGETFILTER = 0x801054db - TUNGETIFF = 0x800454d2 - TUNGETSNDBUF = 0x800454d3 - TUNGETVNETBE = 0x800454df - TUNGETVNETHDRSZ = 0x800454d7 - TUNGETVNETLE = 0x800454dd - TUNSETDEBUG = 0x400454c9 - TUNSETGROUP = 0x400454ce - TUNSETIFF = 0x400454ca - TUNSETIFINDEX = 0x400454da - TUNSETLINK = 0x400454cd - TUNSETNOCSUM = 0x400454c8 - TUNSETOFFLOAD = 0x400454d0 - TUNSETOWNER = 0x400454cc - TUNSETPERSIST = 0x400454cb - TUNSETQUEUE = 0x400454d9 - TUNSETSNDBUF = 0x400454d4 - TUNSETTXFILTER = 0x400454d1 - TUNSETVNETBE = 0x400454de - TUNSETVNETHDRSZ = 0x400454d8 - TUNSETVNETLE = 0x400454dc - UMOUNT_NOFOLLOW = 0x8 - UTIME_NOW = 0x3fffffff - UTIME_OMIT = 0x3ffffffe - VDISCARD = 0xd - VEOF = 0x4 - VEOL = 0xb - VEOL2 = 0x10 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x6 - VM_SOCKETS_INVALID_VERSION = 0xffffffff - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WDIOC_GETBOOTSTATUS = 0x80045702 - WDIOC_GETPRETIMEOUT = 0x80045709 - WDIOC_GETSTATUS = 0x80045701 - WDIOC_GETSUPPORT = 0x80285700 - WDIOC_GETTEMP = 0x80045703 - WDIOC_GETTIMELEFT = 0x8004570a - WDIOC_GETTIMEOUT = 0x80045707 - WDIOC_KEEPALIVE = 0x80045705 - WDIOC_SETOPTIONS = 0x80045704 - WDIOC_SETPRETIMEOUT = 0xc0045708 - WDIOC_SETTIMEOUT = 0xc0045706 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XATTR_CREATE = 0x1 - XATTR_REPLACE = 0x2 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x62) - EADDRNOTAVAIL = syscall.Errno(0x63) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x61) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x72) - EBADE = syscall.Errno(0x34) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x4d) - EBADMSG = syscall.Errno(0x4a) - EBADR = syscall.Errno(0x35) - EBADRQC = syscall.Errno(0x38) - EBADSLT = syscall.Errno(0x39) - EBFONT = syscall.Errno(0x3b) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7d) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x2c) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x67) - ECONNREFUSED = syscall.Errno(0x6f) - ECONNRESET = syscall.Errno(0x68) - EDEADLK = syscall.Errno(0x23) - EDEADLOCK = syscall.Errno(0x23) - EDESTADDRREQ = syscall.Errno(0x59) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x49) - EDQUOT = syscall.Errno(0x7a) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x70) - EHOSTUNREACH = syscall.Errno(0x71) - EHWPOISON = syscall.Errno(0x85) - EIDRM = syscall.Errno(0x2b) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x73) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x6a) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x7f) - EKEYREJECTED = syscall.Errno(0x81) - EKEYREVOKED = syscall.Errno(0x80) - EL2HLT = syscall.Errno(0x33) - EL2NSYNC = syscall.Errno(0x2d) - EL3HLT = syscall.Errno(0x2e) - EL3RST = syscall.Errno(0x2f) - ELIBACC = syscall.Errno(0x4f) - ELIBBAD = syscall.Errno(0x50) - ELIBEXEC = syscall.Errno(0x53) - ELIBMAX = syscall.Errno(0x52) - ELIBSCN = syscall.Errno(0x51) - ELNRNG = syscall.Errno(0x30) - ELOOP = syscall.Errno(0x28) - EMEDIUMTYPE = syscall.Errno(0x7c) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x5a) - EMULTIHOP = syscall.Errno(0x48) - ENAMETOOLONG = syscall.Errno(0x24) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x64) - ENETRESET = syscall.Errno(0x66) - ENETUNREACH = syscall.Errno(0x65) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x37) - ENOBUFS = syscall.Errno(0x69) - ENOCSI = syscall.Errno(0x32) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x7e) - ENOLCK = syscall.Errno(0x25) - ENOLINK = syscall.Errno(0x43) - ENOMEDIUM = syscall.Errno(0x7b) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x2a) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x5c) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x26) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x6b) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x27) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x83) - ENOTSOCK = syscall.Errno(0x58) - ENOTSUP = syscall.Errno(0x5f) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x4c) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x5f) - EOVERFLOW = syscall.Errno(0x4b) - EOWNERDEAD = syscall.Errno(0x82) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x60) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x5d) - EPROTOTYPE = syscall.Errno(0x5b) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x4e) - EREMOTE = syscall.Errno(0x42) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x55) - ERFKILL = syscall.Errno(0x84) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x6c) - ESOCKTNOSUPPORT = syscall.Errno(0x5e) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x74) - ESTRPIPE = syscall.Errno(0x56) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x6e) - ETOOMANYREFS = syscall.Errno(0x6d) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x31) - EUSERS = syscall.Errno(0x57) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x36) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0x7) - SIGCHLD = syscall.Signal(0x11) - SIGCLD = syscall.Signal(0x11) - SIGCONT = syscall.Signal(0x12) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x1d) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x1d) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1e) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTKFLT = syscall.Signal(0x10) - SIGSTOP = syscall.Signal(0x13) - SIGSYS = syscall.Signal(0x1f) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x14) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x17) - SIGUSR1 = syscall.Signal(0xa) - SIGUSR2 = syscall.Signal(0xc) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 35: "resource deadlock avoided", - 36: "file name too long", - 37: "no locks available", - 38: "function not implemented", - 39: "directory not empty", - 40: "too many levels of symbolic links", - 42: "no message of desired type", - 43: "identifier removed", - 44: "channel number out of range", - 45: "level 2 not synchronized", - 46: "level 3 halted", - 47: "level 3 reset", - 48: "link number out of range", - 49: "protocol driver not attached", - 50: "no CSI structure available", - 51: "level 2 halted", - 52: "invalid exchange", - 53: "invalid request descriptor", - 54: "exchange full", - 55: "no anode", - 56: "invalid request code", - 57: "invalid slot", - 59: "bad font file format", - 60: "device not a stream", - 61: "no data available", - 62: "timer expired", - 63: "out of streams resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "multihop attempted", - 73: "RFS specific error", - 74: "bad message", - 75: "value too large for defined data type", - 76: "name not unique on network", - 77: "file descriptor in bad state", - 78: "remote address changed", - 79: "can not access a needed shared library", - 80: "accessing a corrupted shared library", - 81: ".lib section in a.out corrupted", - 82: "attempting to link in too many shared libraries", - 83: "cannot exec a shared library directly", - 84: "invalid or incomplete multibyte or wide character", - 85: "interrupted system call should be restarted", - 86: "streams pipe error", - 87: "too many users", - 88: "socket operation on non-socket", - 89: "destination address required", - 90: "message too long", - 91: "protocol wrong type for socket", - 92: "protocol not available", - 93: "protocol not supported", - 94: "socket type not supported", - 95: "operation not supported", - 96: "protocol family not supported", - 97: "address family not supported by protocol", - 98: "address already in use", - 99: "cannot assign requested address", - 100: "network is down", - 101: "network is unreachable", - 102: "network dropped connection on reset", - 103: "software caused connection abort", - 104: "connection reset by peer", - 105: "no buffer space available", - 106: "transport endpoint is already connected", - 107: "transport endpoint is not connected", - 108: "cannot send after transport endpoint shutdown", - 109: "too many references: cannot splice", - 110: "connection timed out", - 111: "connection refused", - 112: "host is down", - 113: "no route to host", - 114: "operation already in progress", - 115: "operation now in progress", - 116: "stale file handle", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "disk quota exceeded", - 123: "no medium found", - 124: "wrong medium type", - 125: "operation canceled", - 126: "required key not available", - 127: "key has expired", - 128: "key has been revoked", - 129: "key was rejected by service", - 130: "owner died", - 131: "state not recoverable", - 132: "operation not possible due to RF-kill", - 133: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "stack fault", - 17: "child exited", - 18: "continued", - 19: "stopped (signal)", - 20: "stopped", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "urgent I/O condition", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "I/O possible", - 30: "power failure", - 31: "bad system call", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go deleted file mode 100644 index 95de199..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ /dev/null @@ -1,2142 +0,0 @@ -// mkerrors.sh -m64 -// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT - -// +build sparc64,linux - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_ALG = 0x26 - AF_APPLETALK = 0x5 - AF_ASH = 0x12 - AF_ATMPVC = 0x8 - AF_ATMSVC = 0x14 - AF_AX25 = 0x3 - AF_BLUETOOTH = 0x1f - AF_BRIDGE = 0x7 - AF_CAIF = 0x25 - AF_CAN = 0x1d - AF_DECnet = 0xc - AF_ECONET = 0x13 - AF_FILE = 0x1 - AF_IB = 0x1b - AF_IEEE802154 = 0x24 - AF_INET = 0x2 - AF_INET6 = 0xa - AF_IPX = 0x4 - AF_IRDA = 0x17 - AF_ISDN = 0x22 - AF_IUCV = 0x20 - AF_KCM = 0x29 - AF_KEY = 0xf - AF_LLC = 0x1a - AF_LOCAL = 0x1 - AF_MAX = 0x2a - AF_MPLS = 0x1c - AF_NETBEUI = 0xd - AF_NETLINK = 0x10 - AF_NETROM = 0x6 - AF_NFC = 0x27 - AF_PACKET = 0x11 - AF_PHONET = 0x23 - AF_PPPOX = 0x18 - AF_RDS = 0x15 - AF_ROSE = 0xb - AF_ROUTE = 0x10 - AF_RXRPC = 0x21 - AF_SECURITY = 0xe - AF_SNA = 0x16 - AF_TIPC = 0x1e - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_VSOCK = 0x28 - AF_WANPIPE = 0x19 - AF_X25 = 0x9 - ALG_OP_DECRYPT = 0x0 - ALG_OP_ENCRYPT = 0x1 - ALG_SET_AEAD_ASSOCLEN = 0x4 - ALG_SET_AEAD_AUTHSIZE = 0x5 - ALG_SET_IV = 0x2 - ALG_SET_KEY = 0x1 - ALG_SET_OP = 0x3 - ARPHRD_6LOWPAN = 0x339 - ARPHRD_ADAPT = 0x108 - ARPHRD_APPLETLK = 0x8 - ARPHRD_ARCNET = 0x7 - ARPHRD_ASH = 0x30d - ARPHRD_ATM = 0x13 - ARPHRD_AX25 = 0x3 - ARPHRD_BIF = 0x307 - ARPHRD_CAIF = 0x336 - ARPHRD_CAN = 0x118 - ARPHRD_CHAOS = 0x5 - ARPHRD_CISCO = 0x201 - ARPHRD_CSLIP = 0x101 - ARPHRD_CSLIP6 = 0x103 - ARPHRD_DDCMP = 0x205 - ARPHRD_DLCI = 0xf - ARPHRD_ECONET = 0x30e - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_EUI64 = 0x1b - ARPHRD_FCAL = 0x311 - ARPHRD_FCFABRIC = 0x313 - ARPHRD_FCPL = 0x312 - ARPHRD_FCPP = 0x310 - ARPHRD_FDDI = 0x306 - ARPHRD_FRAD = 0x302 - ARPHRD_HDLC = 0x201 - ARPHRD_HIPPI = 0x30c - ARPHRD_HWX25 = 0x110 - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IEEE80211 = 0x321 - ARPHRD_IEEE80211_PRISM = 0x322 - ARPHRD_IEEE80211_RADIOTAP = 0x323 - ARPHRD_IEEE802154 = 0x324 - ARPHRD_IEEE802154_MONITOR = 0x325 - ARPHRD_IEEE802_TR = 0x320 - ARPHRD_INFINIBAND = 0x20 - ARPHRD_IP6GRE = 0x337 - ARPHRD_IPDDP = 0x309 - ARPHRD_IPGRE = 0x30a - ARPHRD_IRDA = 0x30f - ARPHRD_LAPB = 0x204 - ARPHRD_LOCALTLK = 0x305 - ARPHRD_LOOPBACK = 0x304 - ARPHRD_METRICOM = 0x17 - ARPHRD_NETLINK = 0x338 - ARPHRD_NETROM = 0x0 - ARPHRD_NONE = 0xfffe - ARPHRD_PHONET = 0x334 - ARPHRD_PHONET_PIPE = 0x335 - ARPHRD_PIMREG = 0x30b - ARPHRD_PPP = 0x200 - ARPHRD_PRONET = 0x4 - ARPHRD_RAWHDLC = 0x206 - ARPHRD_ROSE = 0x10e - ARPHRD_RSRVD = 0x104 - ARPHRD_SIT = 0x308 - ARPHRD_SKIP = 0x303 - ARPHRD_SLIP = 0x100 - ARPHRD_SLIP6 = 0x102 - ARPHRD_TUNNEL = 0x300 - ARPHRD_TUNNEL6 = 0x301 - ARPHRD_VOID = 0xffff - ARPHRD_X25 = 0x10f - ASI_LEON_DFLUSH = 0x11 - ASI_LEON_IFLUSH = 0x10 - ASI_LEON_MMUFLUSH = 0x18 - B0 = 0x0 - B1000000 = 0x100c - B110 = 0x3 - B115200 = 0x1002 - B1152000 = 0x100d - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B1500000 = 0x100e - B153600 = 0x1006 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B2000000 = 0x100f - B230400 = 0x1003 - B2400 = 0xb - B300 = 0x7 - B307200 = 0x1007 - B38400 = 0xf - B460800 = 0x1004 - B4800 = 0xc - B50 = 0x1 - B500000 = 0x100a - B57600 = 0x1001 - B576000 = 0x100b - B600 = 0x8 - B614400 = 0x1008 - B75 = 0x2 - B76800 = 0x1005 - B921600 = 0x1009 - B9600 = 0xd - BLKBSZGET = 0x80081270 - BLKBSZSET = 0x40081271 - BLKFLSBUF = 0x1261 - BLKFRAGET = 0x1265 - BLKFRASET = 0x1264 - BLKGETSIZE = 0x1260 - BLKGETSIZE64 = 0x80081272 - BLKRAGET = 0x1263 - BLKRASET = 0x1262 - BLKROGET = 0x125e - BLKROSET = 0x125d - BLKRRPART = 0x125f - BLKSECTGET = 0x1267 - BLKSECTSET = 0x1266 - BLKSSZGET = 0x1268 - BOTHER = 0x1000 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LL_OFF = -0x200000 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXINSNS = 0x1000 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MOD = 0x90 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_NET_OFF = -0x100000 - BPF_OR = 0x40 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BPF_XOR = 0xa0 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CAN_BCM = 0x2 - CAN_EFF_FLAG = 0x80000000 - CAN_EFF_ID_BITS = 0x1d - CAN_EFF_MASK = 0x1fffffff - CAN_ERR_FLAG = 0x20000000 - CAN_ERR_MASK = 0x1fffffff - CAN_INV_FILTER = 0x20000000 - CAN_ISOTP = 0x6 - CAN_MAX_DLC = 0x8 - CAN_MAX_DLEN = 0x8 - CAN_MCNET = 0x5 - CAN_MTU = 0x10 - CAN_NPROTO = 0x7 - CAN_RAW = 0x1 - CAN_RTR_FLAG = 0x40000000 - CAN_SFF_ID_BITS = 0xb - CAN_SFF_MASK = 0x7ff - CAN_TP16 = 0x3 - CAN_TP20 = 0x4 - CBAUD = 0x100f - CBAUDEX = 0x1000 - CFLUSH = 0xf - CIBAUD = 0x100f0000 - CLOCAL = 0x800 - CLOCK_BOOTTIME = 0x7 - CLOCK_BOOTTIME_ALARM = 0x9 - CLOCK_DEFAULT = 0x0 - CLOCK_EXT = 0x1 - CLOCK_INT = 0x2 - CLOCK_MONOTONIC = 0x1 - CLOCK_MONOTONIC_COARSE = 0x6 - CLOCK_MONOTONIC_RAW = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x2 - CLOCK_REALTIME = 0x0 - CLOCK_REALTIME_ALARM = 0x8 - CLOCK_REALTIME_COARSE = 0x5 - CLOCK_TAI = 0xb - CLOCK_THREAD_CPUTIME_ID = 0x3 - CLOCK_TXFROMRX = 0x4 - CLOCK_TXINT = 0x3 - CLONE_CHILD_CLEARTID = 0x200000 - CLONE_CHILD_SETTID = 0x1000000 - CLONE_DETACHED = 0x400000 - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_IO = 0x80000000 - CLONE_NEWCGROUP = 0x2000000 - CLONE_NEWIPC = 0x8000000 - CLONE_NEWNET = 0x40000000 - CLONE_NEWNS = 0x20000 - CLONE_NEWPID = 0x20000000 - CLONE_NEWUSER = 0x10000000 - CLONE_NEWUTS = 0x4000000 - CLONE_PARENT = 0x8000 - CLONE_PARENT_SETTID = 0x100000 - CLONE_PTRACE = 0x2000 - CLONE_SETTLS = 0x80000 - CLONE_SIGHAND = 0x800 - CLONE_SYSVSEM = 0x40000 - CLONE_THREAD = 0x10000 - CLONE_UNTRACED = 0x800000 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CMSPAR = 0x40000000 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIGNAL = 0xff - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x0 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EMT_TAGOVF = 0x1 - ENCODING_DEFAULT = 0x0 - ENCODING_FM_MARK = 0x3 - ENCODING_FM_SPACE = 0x4 - ENCODING_MANCHESTER = 0x5 - ENCODING_NRZ = 0x1 - ENCODING_NRZI = 0x2 - EPOLLERR = 0x8 - EPOLLET = 0x80000000 - EPOLLEXCLUSIVE = 0x10000000 - EPOLLHUP = 0x10 - EPOLLIN = 0x1 - EPOLLMSG = 0x400 - EPOLLONESHOT = 0x40000000 - EPOLLOUT = 0x4 - EPOLLPRI = 0x2 - EPOLLRDBAND = 0x80 - EPOLLRDHUP = 0x2000 - EPOLLRDNORM = 0x40 - EPOLLWAKEUP = 0x20000000 - EPOLLWRBAND = 0x200 - EPOLLWRNORM = 0x100 - EPOLL_CLOEXEC = 0x400000 - EPOLL_CTL_ADD = 0x1 - EPOLL_CTL_DEL = 0x2 - EPOLL_CTL_MOD = 0x3 - ETH_P_1588 = 0x88f7 - ETH_P_8021AD = 0x88a8 - ETH_P_8021AH = 0x88e7 - ETH_P_8021Q = 0x8100 - ETH_P_80221 = 0x8917 - ETH_P_802_2 = 0x4 - ETH_P_802_3 = 0x1 - ETH_P_802_3_MIN = 0x600 - ETH_P_802_EX1 = 0x88b5 - ETH_P_AARP = 0x80f3 - ETH_P_AF_IUCV = 0xfbfb - ETH_P_ALL = 0x3 - ETH_P_AOE = 0x88a2 - ETH_P_ARCNET = 0x1a - ETH_P_ARP = 0x806 - ETH_P_ATALK = 0x809b - ETH_P_ATMFATE = 0x8884 - ETH_P_ATMMPOA = 0x884c - ETH_P_AX25 = 0x2 - ETH_P_BATMAN = 0x4305 - ETH_P_BPQ = 0x8ff - ETH_P_CAIF = 0xf7 - ETH_P_CAN = 0xc - ETH_P_CANFD = 0xd - ETH_P_CONTROL = 0x16 - ETH_P_CUST = 0x6006 - ETH_P_DDCMP = 0x6 - ETH_P_DEC = 0x6000 - ETH_P_DIAG = 0x6005 - ETH_P_DNA_DL = 0x6001 - ETH_P_DNA_RC = 0x6002 - ETH_P_DNA_RT = 0x6003 - ETH_P_DSA = 0x1b - ETH_P_ECONET = 0x18 - ETH_P_EDSA = 0xdada - ETH_P_FCOE = 0x8906 - ETH_P_FIP = 0x8914 - ETH_P_HDLC = 0x19 - ETH_P_HSR = 0x892f - ETH_P_IEEE802154 = 0xf6 - ETH_P_IEEEPUP = 0xa00 - ETH_P_IEEEPUPAT = 0xa01 - ETH_P_IP = 0x800 - ETH_P_IPV6 = 0x86dd - ETH_P_IPX = 0x8137 - ETH_P_IRDA = 0x17 - ETH_P_LAT = 0x6004 - ETH_P_LINK_CTL = 0x886c - ETH_P_LOCALTALK = 0x9 - ETH_P_LOOP = 0x60 - ETH_P_LOOPBACK = 0x9000 - ETH_P_MACSEC = 0x88e5 - ETH_P_MOBITEX = 0x15 - ETH_P_MPLS_MC = 0x8848 - ETH_P_MPLS_UC = 0x8847 - ETH_P_MVRP = 0x88f5 - ETH_P_PAE = 0x888e - ETH_P_PAUSE = 0x8808 - ETH_P_PHONET = 0xf5 - ETH_P_PPPTALK = 0x10 - ETH_P_PPP_DISC = 0x8863 - ETH_P_PPP_MP = 0x8 - ETH_P_PPP_SES = 0x8864 - ETH_P_PRP = 0x88fb - ETH_P_PUP = 0x200 - ETH_P_PUPAT = 0x201 - ETH_P_QINQ1 = 0x9100 - ETH_P_QINQ2 = 0x9200 - ETH_P_QINQ3 = 0x9300 - ETH_P_RARP = 0x8035 - ETH_P_SCA = 0x6007 - ETH_P_SLOW = 0x8809 - ETH_P_SNAP = 0x5 - ETH_P_TDLS = 0x890d - ETH_P_TEB = 0x6558 - ETH_P_TIPC = 0x88ca - ETH_P_TRAILER = 0x1c - ETH_P_TR_802_2 = 0x11 - ETH_P_TSN = 0x22f0 - ETH_P_WAN_PPP = 0x7 - ETH_P_WCCP = 0x883e - ETH_P_X25 = 0x805 - ETH_P_XDSA = 0xf8 - EXTA = 0xe - EXTB = 0xf - EXTPROC = 0x10000 - FALLOC_FL_COLLAPSE_RANGE = 0x8 - FALLOC_FL_INSERT_RANGE = 0x20 - FALLOC_FL_KEEP_SIZE = 0x1 - FALLOC_FL_NO_HIDE_STALE = 0x4 - FALLOC_FL_PUNCH_HOLE = 0x2 - FALLOC_FL_ZERO_RANGE = 0x10 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHO = 0x2000 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x406 - F_EXLCK = 0x4 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLEASE = 0x401 - F_GETLK = 0x7 - F_GETLK64 = 0x7 - F_GETOWN = 0x5 - F_GETOWN_EX = 0x10 - F_GETPIPE_SZ = 0x408 - F_GETSIG = 0xb - F_LOCK = 0x1 - F_NOTIFY = 0x402 - F_OFD_GETLK = 0x24 - F_OFD_SETLK = 0x25 - F_OFD_SETLKW = 0x26 - F_OK = 0x0 - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLEASE = 0x400 - F_SETLK = 0x8 - F_SETLK64 = 0x8 - F_SETLKW = 0x9 - F_SETLKW64 = 0x9 - F_SETOWN = 0x6 - F_SETOWN_EX = 0xf - F_SETPIPE_SZ = 0x407 - F_SETSIG = 0xa - F_SHLCK = 0x8 - F_TEST = 0x3 - F_TLOCK = 0x2 - F_ULOCK = 0x0 - F_UNLCK = 0x3 - F_WRLCK = 0x2 - GRND_NONBLOCK = 0x1 - GRND_RANDOM = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICMPV6_FILTER = 0x1 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFA_F_DADFAILED = 0x8 - IFA_F_DEPRECATED = 0x20 - IFA_F_HOMEADDRESS = 0x10 - IFA_F_MANAGETEMPADDR = 0x100 - IFA_F_MCAUTOJOIN = 0x400 - IFA_F_NODAD = 0x2 - IFA_F_NOPREFIXROUTE = 0x200 - IFA_F_OPTIMISTIC = 0x4 - IFA_F_PERMANENT = 0x80 - IFA_F_SECONDARY = 0x1 - IFA_F_STABLE_PRIVACY = 0x800 - IFA_F_TEMPORARY = 0x1 - IFA_F_TENTATIVE = 0x40 - IFA_MAX = 0x8 - IFF_ALLMULTI = 0x200 - IFF_ATTACH_QUEUE = 0x200 - IFF_AUTOMEDIA = 0x4000 - IFF_BROADCAST = 0x2 - IFF_DEBUG = 0x4 - IFF_DETACH_QUEUE = 0x400 - IFF_DORMANT = 0x20000 - IFF_DYNAMIC = 0x8000 - IFF_ECHO = 0x40000 - IFF_LOOPBACK = 0x8 - IFF_LOWER_UP = 0x10000 - IFF_MASTER = 0x400 - IFF_MULTICAST = 0x1000 - IFF_MULTI_QUEUE = 0x100 - IFF_NOARP = 0x80 - IFF_NOFILTER = 0x1000 - IFF_NOTRAILERS = 0x20 - IFF_NO_PI = 0x1000 - IFF_ONE_QUEUE = 0x2000 - IFF_PERSIST = 0x800 - IFF_POINTOPOINT = 0x10 - IFF_PORTSEL = 0x2000 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SLAVE = 0x800 - IFF_TAP = 0x2 - IFF_TUN = 0x1 - IFF_TUN_EXCL = 0x8000 - IFF_UP = 0x1 - IFF_VNET_HDR = 0x4000 - IFF_VOLATILE = 0x70c5a - IFNAMSIZ = 0x10 - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_ACCESS = 0x1 - IN_ALL_EVENTS = 0xfff - IN_ATTRIB = 0x4 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLOEXEC = 0x400000 - IN_CLOSE = 0x18 - IN_CLOSE_NOWRITE = 0x10 - IN_CLOSE_WRITE = 0x8 - IN_CREATE = 0x100 - IN_DELETE = 0x200 - IN_DELETE_SELF = 0x400 - IN_DONT_FOLLOW = 0x2000000 - IN_EXCL_UNLINK = 0x4000000 - IN_IGNORED = 0x8000 - IN_ISDIR = 0x40000000 - IN_LOOPBACKNET = 0x7f - IN_MASK_ADD = 0x20000000 - IN_MODIFY = 0x2 - IN_MOVE = 0xc0 - IN_MOVED_FROM = 0x40 - IN_MOVED_TO = 0x80 - IN_MOVE_SELF = 0x800 - IN_NONBLOCK = 0x4000 - IN_ONESHOT = 0x80000000 - IN_ONLYDIR = 0x1000000 - IN_OPEN = 0x20 - IN_Q_OVERFLOW = 0x4000 - IN_UNMOUNT = 0x2000 - IPPROTO_AH = 0x33 - IPPROTO_BEETPH = 0x5e - IPPROTO_COMP = 0x6c - IPPROTO_DCCP = 0x21 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPIP = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MH = 0x87 - IPPROTO_MPLS = 0x89 - IPPROTO_MTP = 0x5c - IPPROTO_NONE = 0x3b - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_UDPLITE = 0x88 - IPV6_2292DSTOPTS = 0x4 - IPV6_2292HOPLIMIT = 0x8 - IPV6_2292HOPOPTS = 0x3 - IPV6_2292PKTINFO = 0x2 - IPV6_2292PKTOPTIONS = 0x6 - IPV6_2292RTHDR = 0x5 - IPV6_ADDRFORM = 0x1 - IPV6_ADD_MEMBERSHIP = 0x14 - IPV6_AUTHHDR = 0xa - IPV6_CHECKSUM = 0x7 - IPV6_DONTFRAG = 0x3e - IPV6_DROP_MEMBERSHIP = 0x15 - IPV6_DSTOPTS = 0x3b - IPV6_HDRINCL = 0x24 - IPV6_HOPLIMIT = 0x34 - IPV6_HOPOPTS = 0x36 - IPV6_IPSEC_POLICY = 0x22 - IPV6_JOIN_ANYCAST = 0x1b - IPV6_JOIN_GROUP = 0x14 - IPV6_LEAVE_ANYCAST = 0x1c - IPV6_LEAVE_GROUP = 0x15 - IPV6_MTU = 0x18 - IPV6_MTU_DISCOVER = 0x17 - IPV6_MULTICAST_HOPS = 0x12 - IPV6_MULTICAST_IF = 0x11 - IPV6_MULTICAST_LOOP = 0x13 - IPV6_NEXTHOP = 0x9 - IPV6_PATHMTU = 0x3d - IPV6_PKTINFO = 0x32 - IPV6_PMTUDISC_DO = 0x2 - IPV6_PMTUDISC_DONT = 0x0 - IPV6_PMTUDISC_INTERFACE = 0x4 - IPV6_PMTUDISC_OMIT = 0x5 - IPV6_PMTUDISC_PROBE = 0x3 - IPV6_PMTUDISC_WANT = 0x1 - IPV6_RECVDSTOPTS = 0x3a - IPV6_RECVERR = 0x19 - IPV6_RECVHOPLIMIT = 0x33 - IPV6_RECVHOPOPTS = 0x35 - IPV6_RECVPATHMTU = 0x3c - IPV6_RECVPKTINFO = 0x31 - IPV6_RECVRTHDR = 0x38 - IPV6_RECVTCLASS = 0x42 - IPV6_ROUTER_ALERT = 0x16 - IPV6_RTHDR = 0x39 - IPV6_RTHDRDSTOPTS = 0x37 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_RXDSTOPTS = 0x3b - IPV6_RXHOPOPTS = 0x36 - IPV6_TCLASS = 0x43 - IPV6_UNICAST_HOPS = 0x10 - IPV6_V6ONLY = 0x1a - IPV6_XFRM_POLICY = 0x23 - IP_ADD_MEMBERSHIP = 0x23 - IP_ADD_SOURCE_MEMBERSHIP = 0x27 - IP_BIND_ADDRESS_NO_PORT = 0x18 - IP_BLOCK_SOURCE = 0x26 - IP_CHECKSUM = 0x17 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0x24 - IP_DROP_SOURCE_MEMBERSHIP = 0x28 - IP_FREEBIND = 0xf - IP_HDRINCL = 0x3 - IP_IPSEC_POLICY = 0x10 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINTTL = 0x15 - IP_MSFILTER = 0x29 - IP_MSS = 0x240 - IP_MTU = 0xe - IP_MTU_DISCOVER = 0xa - IP_MULTICAST_ALL = 0x31 - IP_MULTICAST_IF = 0x20 - IP_MULTICAST_LOOP = 0x22 - IP_MULTICAST_TTL = 0x21 - IP_NODEFRAG = 0x16 - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x4 - IP_ORIGDSTADDR = 0x14 - IP_PASSSEC = 0x12 - IP_PKTINFO = 0x8 - IP_PKTOPTIONS = 0x9 - IP_PMTUDISC = 0xa - IP_PMTUDISC_DO = 0x2 - IP_PMTUDISC_DONT = 0x0 - IP_PMTUDISC_INTERFACE = 0x4 - IP_PMTUDISC_OMIT = 0x5 - IP_PMTUDISC_PROBE = 0x3 - IP_PMTUDISC_WANT = 0x1 - IP_RECVERR = 0xb - IP_RECVOPTS = 0x6 - IP_RECVORIGDSTADDR = 0x14 - IP_RECVRETOPTS = 0x7 - IP_RECVTOS = 0xd - IP_RECVTTL = 0xc - IP_RETOPTS = 0x7 - IP_RF = 0x8000 - IP_ROUTER_ALERT = 0x5 - IP_TOS = 0x1 - IP_TRANSPARENT = 0x13 - IP_TTL = 0x2 - IP_UNBLOCK_SOURCE = 0x25 - IP_UNICAST_IF = 0x32 - IP_XFRM_POLICY = 0x11 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IUTF8 = 0x4000 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - LINUX_REBOOT_CMD_CAD_OFF = 0x0 - LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef - LINUX_REBOOT_CMD_HALT = 0xcdef0123 - LINUX_REBOOT_CMD_KEXEC = 0x45584543 - LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc - LINUX_REBOOT_CMD_RESTART = 0x1234567 - LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4 - LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2 - LINUX_REBOOT_MAGIC1 = 0xfee1dead - LINUX_REBOOT_MAGIC2 = 0x28121969 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DODUMP = 0x11 - MADV_DOFORK = 0xb - MADV_DONTDUMP = 0x10 - MADV_DONTFORK = 0xa - MADV_DONTNEED = 0x4 - MADV_FREE = 0x8 - MADV_HUGEPAGE = 0xe - MADV_HWPOISON = 0x64 - MADV_MERGEABLE = 0xc - MADV_NOHUGEPAGE = 0xf - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_REMOVE = 0x9 - MADV_SEQUENTIAL = 0x2 - MADV_UNMERGEABLE = 0xd - MADV_WILLNEED = 0x3 - MAP_ANON = 0x20 - MAP_ANONYMOUS = 0x20 - MAP_DENYWRITE = 0x800 - MAP_EXECUTABLE = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_GROWSDOWN = 0x200 - MAP_HUGETLB = 0x40000 - MAP_HUGE_MASK = 0x3f - MAP_HUGE_SHIFT = 0x1a - MAP_LOCKED = 0x100 - MAP_NONBLOCK = 0x10000 - MAP_NORESERVE = 0x40 - MAP_POPULATE = 0x8000 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_STACK = 0x20000 - MAP_TYPE = 0xf - MCL_CURRENT = 0x2000 - MCL_FUTURE = 0x4000 - MCL_ONFAULT = 0x8000 - MNT_DETACH = 0x2 - MNT_EXPIRE = 0x4 - MNT_FORCE = 0x1 - MSG_BATCH = 0x40000 - MSG_CMSG_CLOEXEC = 0x40000000 - MSG_CONFIRM = 0x800 - MSG_CTRUNC = 0x8 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x40 - MSG_EOR = 0x80 - MSG_ERRQUEUE = 0x2000 - MSG_FASTOPEN = 0x20000000 - MSG_FIN = 0x200 - MSG_MORE = 0x8000 - MSG_NOSIGNAL = 0x4000 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_PROXY = 0x10 - MSG_RST = 0x1000 - MSG_SYN = 0x400 - MSG_TRUNC = 0x20 - MSG_TRYHARD = 0x4 - MSG_WAITALL = 0x100 - MSG_WAITFORONE = 0x10000 - MS_ACTIVE = 0x40000000 - MS_ASYNC = 0x1 - MS_BIND = 0x1000 - MS_DIRSYNC = 0x80 - MS_INVALIDATE = 0x2 - MS_I_VERSION = 0x800000 - MS_KERNMOUNT = 0x400000 - MS_LAZYTIME = 0x2000000 - MS_MANDLOCK = 0x40 - MS_MGC_MSK = 0xffff0000 - MS_MGC_VAL = 0xc0ed0000 - MS_MOVE = 0x2000 - MS_NOATIME = 0x400 - MS_NODEV = 0x4 - MS_NODIRATIME = 0x800 - MS_NOEXEC = 0x8 - MS_NOSUID = 0x2 - MS_NOUSER = -0x80000000 - MS_POSIXACL = 0x10000 - MS_PRIVATE = 0x40000 - MS_RDONLY = 0x1 - MS_REC = 0x4000 - MS_RELATIME = 0x200000 - MS_REMOUNT = 0x20 - MS_RMT_MASK = 0x2800051 - MS_SHARED = 0x100000 - MS_SILENT = 0x8000 - MS_SLAVE = 0x80000 - MS_STRICTATIME = 0x1000000 - MS_SYNC = 0x4 - MS_SYNCHRONOUS = 0x10 - MS_UNBINDABLE = 0x20000 - NAME_MAX = 0xff - NETLINK_ADD_MEMBERSHIP = 0x1 - NETLINK_AUDIT = 0x9 - NETLINK_BROADCAST_ERROR = 0x4 - NETLINK_CAP_ACK = 0xa - NETLINK_CONNECTOR = 0xb - NETLINK_CRYPTO = 0x15 - NETLINK_DNRTMSG = 0xe - NETLINK_DROP_MEMBERSHIP = 0x2 - NETLINK_ECRYPTFS = 0x13 - NETLINK_FIB_LOOKUP = 0xa - NETLINK_FIREWALL = 0x3 - NETLINK_GENERIC = 0x10 - NETLINK_INET_DIAG = 0x4 - NETLINK_IP6_FW = 0xd - NETLINK_ISCSI = 0x8 - NETLINK_KOBJECT_UEVENT = 0xf - NETLINK_LISTEN_ALL_NSID = 0x8 - NETLINK_LIST_MEMBERSHIPS = 0x9 - NETLINK_NETFILTER = 0xc - NETLINK_NFLOG = 0x5 - NETLINK_NO_ENOBUFS = 0x5 - NETLINK_PKTINFO = 0x3 - NETLINK_RDMA = 0x14 - NETLINK_ROUTE = 0x0 - NETLINK_RX_RING = 0x6 - NETLINK_SCSITRANSPORT = 0x12 - NETLINK_SELINUX = 0x7 - NETLINK_SOCK_DIAG = 0x4 - NETLINK_TX_RING = 0x7 - NETLINK_UNUSED = 0x1 - NETLINK_USERSOCK = 0x2 - NETLINK_XFRM = 0x6 - NL0 = 0x0 - NL1 = 0x100 - NLA_ALIGNTO = 0x4 - NLA_F_NESTED = 0x8000 - NLA_F_NET_BYTEORDER = 0x4000 - NLA_HDRLEN = 0x4 - NLDLY = 0x100 - NLMSG_ALIGNTO = 0x4 - NLMSG_DONE = 0x3 - NLMSG_ERROR = 0x2 - NLMSG_HDRLEN = 0x10 - NLMSG_MIN_TYPE = 0x10 - NLMSG_NOOP = 0x1 - NLMSG_OVERRUN = 0x4 - NLM_F_ACK = 0x4 - NLM_F_APPEND = 0x800 - NLM_F_ATOMIC = 0x400 - NLM_F_CREATE = 0x400 - NLM_F_DUMP = 0x300 - NLM_F_DUMP_FILTERED = 0x20 - NLM_F_DUMP_INTR = 0x10 - NLM_F_ECHO = 0x8 - NLM_F_EXCL = 0x200 - NLM_F_MATCH = 0x200 - NLM_F_MULTI = 0x2 - NLM_F_REPLACE = 0x100 - NLM_F_REQUEST = 0x1 - NLM_F_ROOT = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x400000 - O_CREAT = 0x200 - O_DIRECT = 0x100000 - O_DIRECTORY = 0x10000 - O_DSYNC = 0x2000 - O_EXCL = 0x800 - O_FSYNC = 0x802000 - O_LARGEFILE = 0x0 - O_NDELAY = 0x4004 - O_NOATIME = 0x200000 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x20000 - O_NONBLOCK = 0x4000 - O_PATH = 0x1000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x802000 - O_SYNC = 0x802000 - O_TMPFILE = 0x2010000 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PACKET_ADD_MEMBERSHIP = 0x1 - PACKET_AUXDATA = 0x8 - PACKET_BROADCAST = 0x1 - PACKET_COPY_THRESH = 0x7 - PACKET_DROP_MEMBERSHIP = 0x2 - PACKET_FANOUT = 0x12 - PACKET_FANOUT_CBPF = 0x6 - PACKET_FANOUT_CPU = 0x2 - PACKET_FANOUT_DATA = 0x16 - PACKET_FANOUT_EBPF = 0x7 - PACKET_FANOUT_FLAG_DEFRAG = 0x8000 - PACKET_FANOUT_FLAG_ROLLOVER = 0x1000 - PACKET_FANOUT_HASH = 0x0 - PACKET_FANOUT_LB = 0x1 - PACKET_FANOUT_QM = 0x5 - PACKET_FANOUT_RND = 0x4 - PACKET_FANOUT_ROLLOVER = 0x3 - PACKET_FASTROUTE = 0x6 - PACKET_HDRLEN = 0xb - PACKET_HOST = 0x0 - PACKET_KERNEL = 0x7 - PACKET_LOOPBACK = 0x5 - PACKET_LOSS = 0xe - PACKET_MR_ALLMULTI = 0x2 - PACKET_MR_MULTICAST = 0x0 - PACKET_MR_PROMISC = 0x1 - PACKET_MR_UNICAST = 0x3 - PACKET_MULTICAST = 0x2 - PACKET_ORIGDEV = 0x9 - PACKET_OTHERHOST = 0x3 - PACKET_OUTGOING = 0x4 - PACKET_QDISC_BYPASS = 0x14 - PACKET_RECV_OUTPUT = 0x3 - PACKET_RESERVE = 0xc - PACKET_ROLLOVER_STATS = 0x15 - PACKET_RX_RING = 0x5 - PACKET_STATISTICS = 0x6 - PACKET_TIMESTAMP = 0x11 - PACKET_TX_HAS_OFF = 0x13 - PACKET_TX_RING = 0xd - PACKET_TX_TIMESTAMP = 0x10 - PACKET_USER = 0x6 - PACKET_VERSION = 0xa - PACKET_VNET_HDR = 0xf - PARENB = 0x100 - PARITY_CRC16_PR0 = 0x2 - PARITY_CRC16_PR0_CCITT = 0x4 - PARITY_CRC16_PR1 = 0x3 - PARITY_CRC16_PR1_CCITT = 0x5 - PARITY_CRC32_PR0_CCITT = 0x6 - PARITY_CRC32_PR1_CCITT = 0x7 - PARITY_DEFAULT = 0x0 - PARITY_NONE = 0x1 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_GROWSDOWN = 0x1000000 - PROT_GROWSUP = 0x2000000 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PR_CAPBSET_DROP = 0x18 - PR_CAPBSET_READ = 0x17 - PR_CAP_AMBIENT = 0x2f - PR_CAP_AMBIENT_CLEAR_ALL = 0x4 - PR_CAP_AMBIENT_IS_SET = 0x1 - PR_CAP_AMBIENT_LOWER = 0x3 - PR_CAP_AMBIENT_RAISE = 0x2 - PR_ENDIAN_BIG = 0x0 - PR_ENDIAN_LITTLE = 0x1 - PR_ENDIAN_PPC_LITTLE = 0x2 - PR_FPEMU_NOPRINT = 0x1 - PR_FPEMU_SIGFPE = 0x2 - PR_FP_EXC_ASYNC = 0x2 - PR_FP_EXC_DISABLED = 0x0 - PR_FP_EXC_DIV = 0x10000 - PR_FP_EXC_INV = 0x100000 - PR_FP_EXC_NONRECOV = 0x1 - PR_FP_EXC_OVF = 0x20000 - PR_FP_EXC_PRECISE = 0x3 - PR_FP_EXC_RES = 0x80000 - PR_FP_EXC_SW_ENABLE = 0x80 - PR_FP_EXC_UND = 0x40000 - PR_FP_MODE_FR = 0x1 - PR_FP_MODE_FRE = 0x2 - PR_GET_CHILD_SUBREAPER = 0x25 - PR_GET_DUMPABLE = 0x3 - PR_GET_ENDIAN = 0x13 - PR_GET_FPEMU = 0x9 - PR_GET_FPEXC = 0xb - PR_GET_FP_MODE = 0x2e - PR_GET_KEEPCAPS = 0x7 - PR_GET_NAME = 0x10 - PR_GET_NO_NEW_PRIVS = 0x27 - PR_GET_PDEATHSIG = 0x2 - PR_GET_SECCOMP = 0x15 - PR_GET_SECUREBITS = 0x1b - PR_GET_THP_DISABLE = 0x2a - PR_GET_TID_ADDRESS = 0x28 - PR_GET_TIMERSLACK = 0x1e - PR_GET_TIMING = 0xd - PR_GET_TSC = 0x19 - PR_GET_UNALIGN = 0x5 - PR_MCE_KILL = 0x21 - PR_MCE_KILL_CLEAR = 0x0 - PR_MCE_KILL_DEFAULT = 0x2 - PR_MCE_KILL_EARLY = 0x1 - PR_MCE_KILL_GET = 0x22 - PR_MCE_KILL_LATE = 0x0 - PR_MCE_KILL_SET = 0x1 - PR_MPX_DISABLE_MANAGEMENT = 0x2c - PR_MPX_ENABLE_MANAGEMENT = 0x2b - PR_SET_CHILD_SUBREAPER = 0x24 - PR_SET_DUMPABLE = 0x4 - PR_SET_ENDIAN = 0x14 - PR_SET_FPEMU = 0xa - PR_SET_FPEXC = 0xc - PR_SET_FP_MODE = 0x2d - PR_SET_KEEPCAPS = 0x8 - PR_SET_MM = 0x23 - PR_SET_MM_ARG_END = 0x9 - PR_SET_MM_ARG_START = 0x8 - PR_SET_MM_AUXV = 0xc - PR_SET_MM_BRK = 0x7 - PR_SET_MM_END_CODE = 0x2 - PR_SET_MM_END_DATA = 0x4 - PR_SET_MM_ENV_END = 0xb - PR_SET_MM_ENV_START = 0xa - PR_SET_MM_EXE_FILE = 0xd - PR_SET_MM_MAP = 0xe - PR_SET_MM_MAP_SIZE = 0xf - PR_SET_MM_START_BRK = 0x6 - PR_SET_MM_START_CODE = 0x1 - PR_SET_MM_START_DATA = 0x3 - PR_SET_MM_START_STACK = 0x5 - PR_SET_NAME = 0xf - PR_SET_NO_NEW_PRIVS = 0x26 - PR_SET_PDEATHSIG = 0x1 - PR_SET_PTRACER = 0x59616d61 - PR_SET_PTRACER_ANY = -0x1 - PR_SET_SECCOMP = 0x16 - PR_SET_SECUREBITS = 0x1c - PR_SET_THP_DISABLE = 0x29 - PR_SET_TIMERSLACK = 0x1d - PR_SET_TIMING = 0xe - PR_SET_TSC = 0x1a - PR_SET_UNALIGN = 0x6 - PR_TASK_PERF_EVENTS_DISABLE = 0x1f - PR_TASK_PERF_EVENTS_ENABLE = 0x20 - PR_TIMING_STATISTICAL = 0x0 - PR_TIMING_TIMESTAMP = 0x1 - PR_TSC_ENABLE = 0x1 - PR_TSC_SIGSEGV = 0x2 - PR_UNALIGN_NOPRINT = 0x1 - PR_UNALIGN_SIGBUS = 0x2 - PTRACE_ATTACH = 0x10 - PTRACE_CONT = 0x7 - PTRACE_DETACH = 0x11 - PTRACE_EVENT_CLONE = 0x3 - PTRACE_EVENT_EXEC = 0x4 - PTRACE_EVENT_EXIT = 0x6 - PTRACE_EVENT_FORK = 0x1 - PTRACE_EVENT_SECCOMP = 0x7 - PTRACE_EVENT_STOP = 0x80 - PTRACE_EVENT_VFORK = 0x2 - PTRACE_EVENT_VFORK_DONE = 0x5 - PTRACE_GETEVENTMSG = 0x4201 - PTRACE_GETFPAREGS = 0x14 - PTRACE_GETFPREGS = 0xe - PTRACE_GETFPREGS64 = 0x19 - PTRACE_GETREGS = 0xc - PTRACE_GETREGS64 = 0x16 - PTRACE_GETREGSET = 0x4204 - PTRACE_GETSIGINFO = 0x4202 - PTRACE_GETSIGMASK = 0x420a - PTRACE_INTERRUPT = 0x4207 - PTRACE_KILL = 0x8 - PTRACE_LISTEN = 0x4208 - PTRACE_O_EXITKILL = 0x100000 - PTRACE_O_MASK = 0x3000ff - PTRACE_O_SUSPEND_SECCOMP = 0x200000 - PTRACE_O_TRACECLONE = 0x8 - PTRACE_O_TRACEEXEC = 0x10 - PTRACE_O_TRACEEXIT = 0x40 - PTRACE_O_TRACEFORK = 0x2 - PTRACE_O_TRACESECCOMP = 0x80 - PTRACE_O_TRACESYSGOOD = 0x1 - PTRACE_O_TRACEVFORK = 0x4 - PTRACE_O_TRACEVFORKDONE = 0x20 - PTRACE_PEEKDATA = 0x2 - PTRACE_PEEKSIGINFO = 0x4209 - PTRACE_PEEKSIGINFO_SHARED = 0x1 - PTRACE_PEEKTEXT = 0x1 - PTRACE_PEEKUSR = 0x3 - PTRACE_POKEDATA = 0x5 - PTRACE_POKETEXT = 0x4 - PTRACE_POKEUSR = 0x6 - PTRACE_READDATA = 0x10 - PTRACE_READTEXT = 0x12 - PTRACE_SECCOMP_GET_FILTER = 0x420c - PTRACE_SEIZE = 0x4206 - PTRACE_SETFPAREGS = 0x15 - PTRACE_SETFPREGS = 0xf - PTRACE_SETFPREGS64 = 0x1a - PTRACE_SETOPTIONS = 0x4200 - PTRACE_SETREGS = 0xd - PTRACE_SETREGS64 = 0x17 - PTRACE_SETREGSET = 0x4205 - PTRACE_SETSIGINFO = 0x4203 - PTRACE_SETSIGMASK = 0x420b - PTRACE_SINGLESTEP = 0x9 - PTRACE_SPARC_DETACH = 0xb - PTRACE_SYSCALL = 0x18 - PTRACE_TRACEME = 0x0 - PTRACE_WRITEDATA = 0x11 - PTRACE_WRITETEXT = 0x13 - PT_FP = 0x48 - PT_G0 = 0x10 - PT_G1 = 0x14 - PT_G2 = 0x18 - PT_G3 = 0x1c - PT_G4 = 0x20 - PT_G5 = 0x24 - PT_G6 = 0x28 - PT_G7 = 0x2c - PT_I0 = 0x30 - PT_I1 = 0x34 - PT_I2 = 0x38 - PT_I3 = 0x3c - PT_I4 = 0x40 - PT_I5 = 0x44 - PT_I6 = 0x48 - PT_I7 = 0x4c - PT_NPC = 0x8 - PT_PC = 0x4 - PT_PSR = 0x0 - PT_REGS_MAGIC = 0x57ac6c00 - PT_TNPC = 0x90 - PT_TPC = 0x88 - PT_TSTATE = 0x80 - PT_V9_FP = 0x70 - PT_V9_G0 = 0x0 - PT_V9_G1 = 0x8 - PT_V9_G2 = 0x10 - PT_V9_G3 = 0x18 - PT_V9_G4 = 0x20 - PT_V9_G5 = 0x28 - PT_V9_G6 = 0x30 - PT_V9_G7 = 0x38 - PT_V9_I0 = 0x40 - PT_V9_I1 = 0x48 - PT_V9_I2 = 0x50 - PT_V9_I3 = 0x58 - PT_V9_I4 = 0x60 - PT_V9_I5 = 0x68 - PT_V9_I6 = 0x70 - PT_V9_I7 = 0x78 - PT_V9_MAGIC = 0x9c - PT_V9_TNPC = 0x90 - PT_V9_TPC = 0x88 - PT_V9_TSTATE = 0x80 - PT_V9_Y = 0x98 - PT_WIM = 0x10 - PT_Y = 0xc - RLIMIT_AS = 0x9 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x6 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = -0x1 - RTAX_ADVMSS = 0x8 - RTAX_CC_ALGO = 0x10 - RTAX_CWND = 0x7 - RTAX_FEATURES = 0xc - RTAX_FEATURE_ALLFRAG = 0x8 - RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf - RTAX_FEATURE_SACK = 0x2 - RTAX_FEATURE_TIMESTAMP = 0x4 - RTAX_HOPLIMIT = 0xa - RTAX_INITCWND = 0xb - RTAX_INITRWND = 0xe - RTAX_LOCK = 0x1 - RTAX_MAX = 0x10 - RTAX_MTU = 0x2 - RTAX_QUICKACK = 0xf - RTAX_REORDERING = 0x9 - RTAX_RTO_MIN = 0xd - RTAX_RTT = 0x4 - RTAX_RTTVAR = 0x5 - RTAX_SSTHRESH = 0x6 - RTAX_UNSPEC = 0x0 - RTAX_WINDOW = 0x3 - RTA_ALIGNTO = 0x4 - RTA_MAX = 0x18 - RTCF_DIRECTSRC = 0x4000000 - RTCF_DOREDIRECT = 0x1000000 - RTCF_LOG = 0x2000000 - RTCF_MASQ = 0x400000 - RTCF_NAT = 0x800000 - RTCF_VALVE = 0x200000 - RTF_ADDRCLASSMASK = 0xf8000000 - RTF_ADDRCONF = 0x40000 - RTF_ALLONLINK = 0x20000 - RTF_BROADCAST = 0x10000000 - RTF_CACHE = 0x1000000 - RTF_DEFAULT = 0x10000 - RTF_DYNAMIC = 0x10 - RTF_FLOW = 0x2000000 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INTERFACE = 0x40000000 - RTF_IRTT = 0x100 - RTF_LINKRT = 0x100000 - RTF_LOCAL = 0x80000000 - RTF_MODIFIED = 0x20 - RTF_MSS = 0x40 - RTF_MTU = 0x40 - RTF_MULTICAST = 0x20000000 - RTF_NAT = 0x8000000 - RTF_NOFORWARD = 0x1000 - RTF_NONEXTHOP = 0x200000 - RTF_NOPMTUDISC = 0x4000 - RTF_POLICY = 0x4000000 - RTF_REINSTATE = 0x8 - RTF_REJECT = 0x200 - RTF_STATIC = 0x400 - RTF_THROW = 0x2000 - RTF_UP = 0x1 - RTF_WINDOW = 0x80 - RTF_XRESOLVE = 0x800 - RTM_BASE = 0x10 - RTM_DELACTION = 0x31 - RTM_DELADDR = 0x15 - RTM_DELADDRLABEL = 0x49 - RTM_DELLINK = 0x11 - RTM_DELMDB = 0x55 - RTM_DELNEIGH = 0x1d - RTM_DELNSID = 0x59 - RTM_DELQDISC = 0x25 - RTM_DELROUTE = 0x19 - RTM_DELRULE = 0x21 - RTM_DELTCLASS = 0x29 - RTM_DELTFILTER = 0x2d - RTM_F_CLONED = 0x200 - RTM_F_EQUALIZE = 0x400 - RTM_F_LOOKUP_TABLE = 0x1000 - RTM_F_NOTIFY = 0x100 - RTM_F_PREFIX = 0x800 - RTM_GETACTION = 0x32 - RTM_GETADDR = 0x16 - RTM_GETADDRLABEL = 0x4a - RTM_GETANYCAST = 0x3e - RTM_GETDCB = 0x4e - RTM_GETLINK = 0x12 - RTM_GETMDB = 0x56 - RTM_GETMULTICAST = 0x3a - RTM_GETNEIGH = 0x1e - RTM_GETNEIGHTBL = 0x42 - RTM_GETNETCONF = 0x52 - RTM_GETNSID = 0x5a - RTM_GETQDISC = 0x26 - RTM_GETROUTE = 0x1a - RTM_GETRULE = 0x22 - RTM_GETSTATS = 0x5e - RTM_GETTCLASS = 0x2a - RTM_GETTFILTER = 0x2e - RTM_MAX = 0x5f - RTM_NEWACTION = 0x30 - RTM_NEWADDR = 0x14 - RTM_NEWADDRLABEL = 0x48 - RTM_NEWLINK = 0x10 - RTM_NEWMDB = 0x54 - RTM_NEWNDUSEROPT = 0x44 - RTM_NEWNEIGH = 0x1c - RTM_NEWNEIGHTBL = 0x40 - RTM_NEWNETCONF = 0x50 - RTM_NEWNSID = 0x58 - RTM_NEWPREFIX = 0x34 - RTM_NEWQDISC = 0x24 - RTM_NEWROUTE = 0x18 - RTM_NEWRULE = 0x20 - RTM_NEWSTATS = 0x5c - RTM_NEWTCLASS = 0x28 - RTM_NEWTFILTER = 0x2c - RTM_NR_FAMILIES = 0x14 - RTM_NR_MSGTYPES = 0x50 - RTM_SETDCB = 0x4f - RTM_SETLINK = 0x13 - RTM_SETNEIGHTBL = 0x43 - RTNH_ALIGNTO = 0x4 - RTNH_COMPARE_MASK = 0x11 - RTNH_F_DEAD = 0x1 - RTNH_F_LINKDOWN = 0x10 - RTNH_F_OFFLOAD = 0x8 - RTNH_F_ONLINK = 0x4 - RTNH_F_PERVASIVE = 0x2 - RTN_MAX = 0xb - RTPROT_BABEL = 0x2a - RTPROT_BIRD = 0xc - RTPROT_BOOT = 0x3 - RTPROT_DHCP = 0x10 - RTPROT_DNROUTED = 0xd - RTPROT_GATED = 0x8 - RTPROT_KERNEL = 0x2 - RTPROT_MROUTED = 0x11 - RTPROT_MRT = 0xa - RTPROT_NTK = 0xf - RTPROT_RA = 0x9 - RTPROT_REDIRECT = 0x1 - RTPROT_STATIC = 0x4 - RTPROT_UNSPEC = 0x0 - RTPROT_XORP = 0xe - RTPROT_ZEBRA = 0xb - RT_CLASS_DEFAULT = 0xfd - RT_CLASS_LOCAL = 0xff - RT_CLASS_MAIN = 0xfe - RT_CLASS_MAX = 0xff - RT_CLASS_UNSPEC = 0x0 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_CREDENTIALS = 0x2 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x1d - SCM_TIMESTAMPING = 0x23 - SCM_TIMESTAMPNS = 0x21 - SCM_WIFI_STATUS = 0x25 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDDLCI = 0x8980 - SIOCADDMULTI = 0x8931 - SIOCADDRT = 0x890b - SIOCATMARK = 0x8905 - SIOCBONDCHANGEACTIVE = 0x8995 - SIOCBONDENSLAVE = 0x8990 - SIOCBONDINFOQUERY = 0x8994 - SIOCBONDRELEASE = 0x8991 - SIOCBONDSETHWADDR = 0x8992 - SIOCBONDSLAVEINFOQUERY = 0x8993 - SIOCBRADDBR = 0x89a0 - SIOCBRADDIF = 0x89a2 - SIOCBRDELBR = 0x89a1 - SIOCBRDELIF = 0x89a3 - SIOCDARP = 0x8953 - SIOCDELDLCI = 0x8981 - SIOCDELMULTI = 0x8932 - SIOCDELRT = 0x890c - SIOCDEVPRIVATE = 0x89f0 - SIOCDIFADDR = 0x8936 - SIOCDRARP = 0x8960 - SIOCETHTOOL = 0x8946 - SIOCGARP = 0x8954 - SIOCGHWTSTAMP = 0x89b1 - SIOCGIFADDR = 0x8915 - SIOCGIFBR = 0x8940 - SIOCGIFBRDADDR = 0x8919 - SIOCGIFCONF = 0x8912 - SIOCGIFCOUNT = 0x8938 - SIOCGIFDSTADDR = 0x8917 - SIOCGIFENCAP = 0x8925 - SIOCGIFFLAGS = 0x8913 - SIOCGIFHWADDR = 0x8927 - SIOCGIFINDEX = 0x8933 - SIOCGIFMAP = 0x8970 - SIOCGIFMEM = 0x891f - SIOCGIFMETRIC = 0x891d - SIOCGIFMTU = 0x8921 - SIOCGIFNAME = 0x8910 - SIOCGIFNETMASK = 0x891b - SIOCGIFPFLAGS = 0x8935 - SIOCGIFSLAVE = 0x8929 - SIOCGIFTXQLEN = 0x8942 - SIOCGIFVLAN = 0x8982 - SIOCGMIIPHY = 0x8947 - SIOCGMIIREG = 0x8948 - SIOCGPGRP = 0x8904 - SIOCGRARP = 0x8961 - SIOCGSTAMP = 0x8906 - SIOCGSTAMPNS = 0x8907 - SIOCINQ = 0x4004667f - SIOCOUTQ = 0x40047473 - SIOCOUTQNSD = 0x894b - SIOCPROTOPRIVATE = 0x89e0 - SIOCRTMSG = 0x890d - SIOCSARP = 0x8955 - SIOCSHWTSTAMP = 0x89b0 - SIOCSIFADDR = 0x8916 - SIOCSIFBR = 0x8941 - SIOCSIFBRDADDR = 0x891a - SIOCSIFDSTADDR = 0x8918 - SIOCSIFENCAP = 0x8926 - SIOCSIFFLAGS = 0x8914 - SIOCSIFHWADDR = 0x8924 - SIOCSIFHWBROADCAST = 0x8937 - SIOCSIFLINK = 0x8911 - SIOCSIFMAP = 0x8971 - SIOCSIFMEM = 0x8920 - SIOCSIFMETRIC = 0x891e - SIOCSIFMTU = 0x8922 - SIOCSIFNAME = 0x8923 - SIOCSIFNETMASK = 0x891c - SIOCSIFPFLAGS = 0x8934 - SIOCSIFSLAVE = 0x8930 - SIOCSIFTXQLEN = 0x8943 - SIOCSIFVLAN = 0x8983 - SIOCSMIIREG = 0x8949 - SIOCSPGRP = 0x8902 - SIOCSRARP = 0x8962 - SIOCWANDEV = 0x894a - SOCK_CLOEXEC = 0x400000 - SOCK_DCCP = 0x6 - SOCK_DGRAM = 0x2 - SOCK_NONBLOCK = 0x4000 - SOCK_PACKET = 0xa - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_AAL = 0x109 - SOL_ALG = 0x117 - SOL_ATM = 0x108 - SOL_CAIF = 0x116 - SOL_DCCP = 0x10d - SOL_DECNET = 0x105 - SOL_ICMPV6 = 0x3a - SOL_IP = 0x0 - SOL_IPV6 = 0x29 - SOL_IRDA = 0x10a - SOL_IUCV = 0x115 - SOL_KCM = 0x119 - SOL_LLC = 0x10c - SOL_NETBEUI = 0x10b - SOL_NETLINK = 0x10e - SOL_NFC = 0x118 - SOL_PACKET = 0x107 - SOL_PNPIPE = 0x113 - SOL_PPPOL2TP = 0x111 - SOL_RAW = 0xff - SOL_RDS = 0x114 - SOL_RXRPC = 0x110 - SOL_SOCKET = 0xffff - SOL_TCP = 0x6 - SOL_TIPC = 0x10f - SOL_X25 = 0x106 - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x8000 - SO_ATTACH_BPF = 0x34 - SO_ATTACH_FILTER = 0x1a - SO_ATTACH_REUSEPORT_CBPF = 0x35 - SO_ATTACH_REUSEPORT_EBPF = 0x36 - SO_BINDTODEVICE = 0xd - SO_BPF_EXTENSIONS = 0x32 - SO_BROADCAST = 0x20 - SO_BSDCOMPAT = 0x400 - SO_BUSY_POLL = 0x30 - SO_CNX_ADVICE = 0x37 - SO_DEBUG = 0x1 - SO_DETACH_BPF = 0x1b - SO_DETACH_FILTER = 0x1b - SO_DOMAIN = 0x1029 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_GET_FILTER = 0x1a - SO_INCOMING_CPU = 0x33 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOCK_FILTER = 0x28 - SO_MARK = 0x22 - SO_MAX_PACING_RATE = 0x31 - SO_NOFCS = 0x27 - SO_NO_CHECK = 0xb - SO_OOBINLINE = 0x100 - SO_PASSCRED = 0x2 - SO_PASSSEC = 0x1f - SO_PEEK_OFF = 0x26 - SO_PEERCRED = 0x40 - SO_PEERNAME = 0x1c - SO_PEERSEC = 0x1e - SO_PRIORITY = 0xc - SO_PROTOCOL = 0x1028 - SO_RCVBUF = 0x1002 - SO_RCVBUFFORCE = 0x100b - SO_RCVLOWAT = 0x800 - SO_RCVTIMEO = 0x2000 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RXQ_OVFL = 0x24 - SO_SECURITY_AUTHENTICATION = 0x5001 - SO_SECURITY_ENCRYPTION_NETWORK = 0x5004 - SO_SECURITY_ENCRYPTION_TRANSPORT = 0x5002 - SO_SELECT_ERR_QUEUE = 0x29 - SO_SNDBUF = 0x1001 - SO_SNDBUFFORCE = 0x100a - SO_SNDLOWAT = 0x1000 - SO_SNDTIMEO = 0x4000 - SO_TIMESTAMP = 0x1d - SO_TIMESTAMPING = 0x23 - SO_TIMESTAMPNS = 0x21 - SO_TYPE = 0x1008 - SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2 - SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1 - SO_VM_SOCKETS_BUFFER_SIZE = 0x0 - SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6 - SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7 - SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3 - SO_VM_SOCKETS_TRUSTED = 0x5 - SO_WIFI_STATUS = 0x25 - SPLICE_F_GIFT = 0x8 - SPLICE_F_MORE = 0x4 - SPLICE_F_MOVE = 0x1 - SPLICE_F_NONBLOCK = 0x2 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TCFLSH = 0x20005407 - TCGETA = 0x40125401 - TCGETS = 0x40245408 - TCGETS2 = 0x402c540c - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_CC_INFO = 0x1a - TCP_CONGESTION = 0xd - TCP_COOKIE_IN_ALWAYS = 0x1 - TCP_COOKIE_MAX = 0x10 - TCP_COOKIE_MIN = 0x8 - TCP_COOKIE_OUT_NEVER = 0x2 - TCP_COOKIE_PAIR_SIZE = 0x20 - TCP_COOKIE_TRANSACTIONS = 0xf - TCP_CORK = 0x3 - TCP_DEFER_ACCEPT = 0x9 - TCP_FASTOPEN = 0x17 - TCP_INFO = 0xb - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x4 - TCP_KEEPINTVL = 0x5 - TCP_LINGER2 = 0x8 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0xe - TCP_MD5SIG_MAXKEYLEN = 0x50 - TCP_MSS = 0x200 - TCP_MSS_DEFAULT = 0x218 - TCP_MSS_DESIRED = 0x4c4 - TCP_NODELAY = 0x1 - TCP_NOTSENT_LOWAT = 0x19 - TCP_QUEUE_SEQ = 0x15 - TCP_QUICKACK = 0xc - TCP_REPAIR = 0x13 - TCP_REPAIR_OPTIONS = 0x16 - TCP_REPAIR_QUEUE = 0x14 - TCP_SAVED_SYN = 0x1c - TCP_SAVE_SYN = 0x1b - TCP_SYNCNT = 0x7 - TCP_S_DATA_IN = 0x4 - TCP_S_DATA_OUT = 0x8 - TCP_THIN_DUPACK = 0x11 - TCP_THIN_LINEAR_TIMEOUTS = 0x10 - TCP_TIMESTAMP = 0x18 - TCP_USER_TIMEOUT = 0x12 - TCP_WINDOW_CLAMP = 0xa - TCSAFLUSH = 0x2 - TCSBRK = 0x20005405 - TCSBRKP = 0x5425 - TCSETA = 0x80125402 - TCSETAF = 0x80125404 - TCSETAW = 0x80125403 - TCSETS = 0x80245409 - TCSETS2 = 0x802c540d - TCSETSF = 0x8024540b - TCSETSF2 = 0x802c540f - TCSETSW = 0x8024540a - TCSETSW2 = 0x802c540e - TCXONC = 0x20005406 - TIOCCBRK = 0x2000747a - TIOCCONS = 0x20007424 - TIOCEXCL = 0x2000740d - TIOCGDEV = 0x40045432 - TIOCGETD = 0x40047400 - TIOCGEXCL = 0x40045440 - TIOCGICOUNT = 0x545d - TIOCGLCKTRMIOS = 0x5456 - TIOCGPGRP = 0x40047483 - TIOCGPKT = 0x40045438 - TIOCGPTLCK = 0x40045439 - TIOCGPTN = 0x40047486 - TIOCGRS485 = 0x40205441 - TIOCGSERIAL = 0x541e - TIOCGSID = 0x40047485 - TIOCGSOFTCAR = 0x40047464 - TIOCGWINSZ = 0x40087468 - TIOCINQ = 0x4004667f - TIOCLINUX = 0x541c - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMIWAIT = 0x545c - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_LOOP = 0x8000 - TIOCM_OUT1 = 0x2000 - TIOCM_OUT2 = 0x4000 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007484 - TIOCSERCONFIG = 0x5453 - TIOCSERGETLSR = 0x5459 - TIOCSERGETMULTI = 0x545a - TIOCSERGSTRUCT = 0x5458 - TIOCSERGWILD = 0x5454 - TIOCSERSETMULTI = 0x545b - TIOCSERSWILD = 0x5455 - TIOCSER_TEMT = 0x1 - TIOCSETD = 0x80047401 - TIOCSIG = 0x80047488 - TIOCSLCKTRMIOS = 0x5457 - TIOCSPGRP = 0x80047482 - TIOCSPTLCK = 0x80047487 - TIOCSRS485 = 0xc0205442 - TIOCSSERIAL = 0x541f - TIOCSSOFTCAR = 0x80047465 - TIOCSTART = 0x2000746e - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCVHANGUP = 0x20005437 - TOSTOP = 0x100 - TUNATTACHFILTER = 0x801054d5 - TUNDETACHFILTER = 0x801054d6 - TUNGETFEATURES = 0x400454cf - TUNGETFILTER = 0x401054db - TUNGETIFF = 0x400454d2 - TUNGETSNDBUF = 0x400454d3 - TUNGETVNETBE = 0x400454df - TUNGETVNETHDRSZ = 0x400454d7 - TUNGETVNETLE = 0x400454dd - TUNSETDEBUG = 0x800454c9 - TUNSETGROUP = 0x800454ce - TUNSETIFF = 0x800454ca - TUNSETIFINDEX = 0x800454da - TUNSETLINK = 0x800454cd - TUNSETNOCSUM = 0x800454c8 - TUNSETOFFLOAD = 0x800454d0 - TUNSETOWNER = 0x800454cc - TUNSETPERSIST = 0x800454cb - TUNSETQUEUE = 0x800454d9 - TUNSETSNDBUF = 0x800454d4 - TUNSETTXFILTER = 0x800454d1 - TUNSETVNETBE = 0x800454de - TUNSETVNETHDRSZ = 0x800454d8 - TUNSETVNETLE = 0x800454dc - VDISCARD = 0xd - VDSUSP = 0xb - VEOF = 0x4 - VEOL = 0x5 - VEOL2 = 0x6 - VERASE = 0x2 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMADDR_CID_ANY = 0xffffffff - VMADDR_CID_HOST = 0x2 - VMADDR_CID_HYPERVISOR = 0x0 - VMADDR_CID_RESERVED = 0x1 - VMADDR_PORT_ANY = 0xffffffff - VMIN = 0x4 - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTOP = 0x9 - VSUSP = 0xa - VSWTC = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WALL = 0x40000000 - WCLONE = 0x80000000 - WCONTINUED = 0x8 - WEXITED = 0x4 - WNOHANG = 0x1 - WNOTHREAD = 0x20000000 - WNOWAIT = 0x1000000 - WORDSIZE = 0x40 - WRAP = 0x20000 - WSTOPPED = 0x2 - WUNTRACED = 0x2 - XCASE = 0x4 - XTABS = 0x1800 - __TIOCFLUSH = 0x80047410 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EADV = syscall.Errno(0x53) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x25) - EBADE = syscall.Errno(0x66) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x5d) - EBADMSG = syscall.Errno(0x4c) - EBADR = syscall.Errno(0x67) - EBADRQC = syscall.Errno(0x6a) - EBADSLT = syscall.Errno(0x6b) - EBFONT = syscall.Errno(0x6d) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x7f) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x5e) - ECOMM = syscall.Errno(0x55) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0x4e) - EDEADLOCK = syscall.Errno(0x6c) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDOTDOT = syscall.Errno(0x58) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EHWPOISON = syscall.Errno(0x87) - EIDRM = syscall.Errno(0x4d) - EILSEQ = syscall.Errno(0x7a) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - EISNAM = syscall.Errno(0x78) - EKEYEXPIRED = syscall.Errno(0x81) - EKEYREJECTED = syscall.Errno(0x83) - EKEYREVOKED = syscall.Errno(0x82) - EL2HLT = syscall.Errno(0x65) - EL2NSYNC = syscall.Errno(0x5f) - EL3HLT = syscall.Errno(0x60) - EL3RST = syscall.Errno(0x61) - ELIBACC = syscall.Errno(0x72) - ELIBBAD = syscall.Errno(0x70) - ELIBEXEC = syscall.Errno(0x6e) - ELIBMAX = syscall.Errno(0x7b) - ELIBSCN = syscall.Errno(0x7c) - ELNRNG = syscall.Errno(0x62) - ELOOP = syscall.Errno(0x3e) - EMEDIUMTYPE = syscall.Errno(0x7e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x57) - ENAMETOOLONG = syscall.Errno(0x3f) - ENAVAIL = syscall.Errno(0x77) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x69) - ENOBUFS = syscall.Errno(0x37) - ENOCSI = syscall.Errno(0x64) - ENODATA = syscall.Errno(0x6f) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOKEY = syscall.Errno(0x80) - ENOLCK = syscall.Errno(0x4f) - ENOLINK = syscall.Errno(0x52) - ENOMEDIUM = syscall.Errno(0x7d) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x4b) - ENONET = syscall.Errno(0x50) - ENOPKG = syscall.Errno(0x71) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x4a) - ENOSTR = syscall.Errno(0x48) - ENOSYS = syscall.Errno(0x5a) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTNAM = syscall.Errno(0x76) - ENOTRECOVERABLE = syscall.Errno(0x85) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x2d) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x73) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x5c) - EOWNERDEAD = syscall.Errno(0x84) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROTO = syscall.Errno(0x56) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x59) - EREMOTE = syscall.Errno(0x47) - EREMOTEIO = syscall.Errno(0x79) - ERESTART = syscall.Errno(0x74) - ERFKILL = syscall.Errno(0x86) - EROFS = syscall.Errno(0x1e) - ERREMOTE = syscall.Errno(0x51) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x54) - ESTALE = syscall.Errno(0x46) - ESTRPIPE = syscall.Errno(0x5b) - ETIME = syscall.Errno(0x49) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUCLEAN = syscall.Errno(0x75) - EUNATCH = syscall.Errno(0x63) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x68) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGLOST = syscall.Signal(0x1d) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x17) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x1d) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "no such device or address", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device or resource busy", - 17: "file exists", - 18: "invalid cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "numerical result out of range", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol", - 48: "address already in use", - 49: "cannot assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "transport endpoint is already connected", - 57: "transport endpoint is not connected", - 58: "cannot send after transport endpoint shutdown", - 59: "too many references: cannot splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disk quota exceeded", - 70: "stale file handle", - 71: "object is remote", - 72: "device not a stream", - 73: "timer expired", - 74: "out of streams resources", - 75: "no message of desired type", - 76: "bad message", - 77: "identifier removed", - 78: "resource deadlock avoided", - 79: "no locks available", - 80: "machine is not on the network", - 81: "unknown error 81", - 82: "link has been severed", - 83: "advertise error", - 84: "srmount error", - 85: "communication error on send", - 86: "protocol error", - 87: "multihop attempted", - 88: "RFS specific error", - 89: "remote address changed", - 90: "function not implemented", - 91: "streams pipe error", - 92: "value too large for defined data type", - 93: "file descriptor in bad state", - 94: "channel number out of range", - 95: "level 2 not synchronized", - 96: "level 3 halted", - 97: "level 3 reset", - 98: "link number out of range", - 99: "protocol driver not attached", - 100: "no CSI structure available", - 101: "level 2 halted", - 102: "invalid exchange", - 103: "invalid request descriptor", - 104: "exchange full", - 105: "no anode", - 106: "invalid request code", - 107: "invalid slot", - 108: "file locking deadlock error", - 109: "bad font file format", - 110: "cannot exec a shared library directly", - 111: "no data available", - 112: "accessing a corrupted shared library", - 113: "package not installed", - 114: "can not access a needed shared library", - 115: "name not unique on network", - 116: "interrupted system call should be restarted", - 117: "structure needs cleaning", - 118: "not a XENIX named type file", - 119: "no XENIX semaphores available", - 120: "is a named type file", - 121: "remote I/O error", - 122: "invalid or incomplete multibyte or wide character", - 123: "attempting to link in too many shared libraries", - 124: ".lib section in a.out corrupted", - 125: "no medium found", - 126: "wrong medium type", - 127: "operation canceled", - 128: "required key not available", - 129: "key has expired", - 130: "key has been revoked", - 131: "key was rejected by service", - 132: "owner died", - 133: "state not recoverable", - 134: "operation not possible due to RF-kill", - 135: "memory page has hardware error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "CPU time limit exceeded", - 25: "file size limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window changed", - 29: "resource lost", - 30: "user defined signal 1", - 31: "user defined signal 2", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go deleted file mode 100644 index 1612b66..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +++ /dev/null @@ -1,1719 +0,0 @@ -// mkerrors.sh -m32 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,netbsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m32 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x1c - AF_BLUETOOTH = 0x1f - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x20 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x23 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OROUTE = 0x11 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x22 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ARCNET = 0x7 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_STRIP = 0x17 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427d - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0084277 - BIOCGETIF = 0x4090426b - BIOCGFEEDBACK = 0x4004427c - BIOCGHDRCMPLT = 0x40044274 - BIOCGRTIMEOUT = 0x400c427b - BIOCGSEESENT = 0x40044278 - BIOCGSTATS = 0x4080426f - BIOCGSTATSOLD = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044276 - BIOCSETF = 0x80084267 - BIOCSETIF = 0x8090426c - BIOCSFEEDBACK = 0x8004427d - BIOCSHDRCMPLT = 0x80044275 - BIOCSRTIMEOUT = 0x800c427a - BIOCSSEESENT = 0x80044279 - BIOCSTCPF = 0x80084272 - BIOCSUDPF = 0x80084273 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALIGNMENT32 = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DFLTBUFSIZE = 0x100000 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x1000000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLONE_CSIGNAL = 0xff - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_PID = 0x1000 - CLONE_PTRACE = 0x2000 - CLONE_SIGHAND = 0x800 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - CTL_QUERY = -0x2 - DIOCBSFLUSH = 0x20006478 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HDLC = 0x10 - DLT_HHDLC = 0x79 - DLT_HIPPI = 0xf - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0xe - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RAWAF_MASK = 0x2240000 - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xd - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMUL_LINUX = 0x1 - EMUL_LINUX32 = 0x5 - EMUL_MAXID = 0x6 - EN_SW_CTL_INF = 0x1000 - EN_SW_CTL_PREC = 0x300 - EN_SW_CTL_ROUND = 0xc00 - EN_SW_DATACHAIN = 0x80 - EN_SW_DENORM = 0x2 - EN_SW_INVOP = 0x1 - EN_SW_OVERFLOW = 0x8 - EN_SW_PRECLOSS = 0x20 - EN_SW_UNDERFLOW = 0x10 - EN_SW_ZERODIV = 0x4 - ETHERCAP_JUMBO_MTU = 0x4 - ETHERCAP_VLAN_HWTAGGING = 0x2 - ETHERCAP_VLAN_MTU = 0x1 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERMTU_JUMBO = 0x2328 - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOWPROTOCOLS = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_LEN = 0x5ee - ETHER_MAX_LEN_JUMBO = 0x233a - ETHER_MIN_LEN = 0x40 - ETHER_PPPOE_ENCAP_LEN = 0x8 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = 0x2 - EVFILT_PROC = 0x4 - EVFILT_READ = 0x0 - EVFILT_SIGNAL = 0x5 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = 0x6 - EVFILT_VNODE = 0x3 - EVFILT_WRITE = 0x1 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x100 - FLUSHO = 0x800000 - F_CLOSEM = 0xa - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xc - F_FSCTL = -0x80000000 - F_FSDIRMASK = 0x70000000 - F_FSIN = 0x10000000 - F_FSINOUT = 0x30000000 - F_FSOUT = 0x20000000 - F_FSPRIV = 0x8000 - F_FSVOID = 0x40000000 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETNOSIGPIPE = 0xd - F_GETOWN = 0x5 - F_MAXFD = 0xb - F_OK = 0x0 - F_PARAM_MASK = 0xfff - F_PARAM_MAX = 0xfff - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETNOSIGPIPE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8f52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf8 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IPV6_ICMP = 0x3a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MOBILE = 0x37 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_VRRP = 0x70 - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_EF = 0x8000 - IP_ERRORMTU = 0x15 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x16 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINFRAGSIZE = 0x45 - IP_MINTTL = 0x18 - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVTTL = 0x17 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ALIGNMENT_16MB = 0x18000000 - MAP_ALIGNMENT_1TB = 0x28000000 - MAP_ALIGNMENT_256TB = 0x30000000 - MAP_ALIGNMENT_4GB = 0x20000000 - MAP_ALIGNMENT_64KB = 0x10000000 - MAP_ALIGNMENT_64PB = 0x38000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DEFAULT = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_STACK = 0x2000 - MAP_TRYFIXED = 0x400 - MAP_WIRED = 0x800 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_BCAST = 0x100 - MSG_CMSG_CLOEXEC = 0x800 - MSG_CONTROLMBUF = 0x2000000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_IOVUSRSPACE = 0x4000000 - MSG_LENUSRSPACE = 0x8000000 - MSG_MCAST = 0x200 - MSG_NAMEMBUF = 0x1000000 - MSG_NBIO = 0x1000 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_USERFLAGS = 0xffffff - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x4 - NAME_MAX = 0x1ff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x5 - NET_RT_MAXID = 0x6 - NET_RT_OIFLIST = 0x4 - NET_RT_OOIFLIST = 0x3 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFIOGETBMAP = 0xc004667a - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_ALT_IO = 0x40000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x400000 - O_CREAT = 0x200 - O_DIRECT = 0x80000 - O_DIRECTORY = 0x200000 - O_DSYNC = 0x10000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_NOSIGPIPE = 0x1000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x20000 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PRI_IOFLUSH = 0x7c - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x9 - RTAX_NETMASK = 0x2 - RTAX_TAG = 0x8 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTA_TAG = 0x100 - RTF_ANNOUNCE = 0x20000 - RTF_BLACKHOLE = 0x1000 - RTF_CLONED = 0x2000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_REJECT = 0x8 - RTF_SRC = 0x10000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_CHGADDR = 0x15 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x11 - RTM_IFANNOUNCE = 0x10 - RTM_IFINFO = 0x14 - RTM_LLINFO_UPD = 0x13 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_OIFINFO = 0xf - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_OOIFINFO = 0xe - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_SETGATE = 0x12 - RTM_VERSION = 0x4 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x4 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x8 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80906931 - SIOCADDRT = 0x8030720a - SIOCAIFADDR = 0x8040691a - SIOCALIFADDR = 0x8118691c - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80906932 - SIOCDELRT = 0x8030720b - SIOCDIFADDR = 0x80906919 - SIOCDIFPHYADDR = 0x80906949 - SIOCDLIFADDR = 0x8118691e - SIOCGDRVSPEC = 0xc01c697b - SIOCGETPFSYNC = 0xc09069f8 - SIOCGETSGCNT = 0xc0147534 - SIOCGETVIFCNT = 0xc0147533 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0906921 - SIOCGIFADDRPREF = 0xc0946920 - SIOCGIFALIAS = 0xc040691b - SIOCGIFBRDADDR = 0xc0906923 - SIOCGIFCAP = 0xc0206976 - SIOCGIFCONF = 0xc0086926 - SIOCGIFDATA = 0xc0946985 - SIOCGIFDLT = 0xc0906977 - SIOCGIFDSTADDR = 0xc0906922 - SIOCGIFFLAGS = 0xc0906911 - SIOCGIFGENERIC = 0xc090693a - SIOCGIFMEDIA = 0xc0286936 - SIOCGIFMETRIC = 0xc0906917 - SIOCGIFMTU = 0xc090697e - SIOCGIFNETMASK = 0xc0906925 - SIOCGIFPDSTADDR = 0xc0906948 - SIOCGIFPSRCADDR = 0xc0906947 - SIOCGLIFADDR = 0xc118691d - SIOCGLIFPHYADDR = 0xc118694b - SIOCGLINKSTR = 0xc01c6987 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGVH = 0xc0906983 - SIOCIFCREATE = 0x8090697a - SIOCIFDESTROY = 0x80906979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCINITIFADDR = 0xc0446984 - SIOCSDRVSPEC = 0x801c697b - SIOCSETPFSYNC = 0x809069f7 - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8090690c - SIOCSIFADDRPREF = 0x8094691f - SIOCSIFBRDADDR = 0x80906913 - SIOCSIFCAP = 0x80206975 - SIOCSIFDSTADDR = 0x8090690e - SIOCSIFFLAGS = 0x80906910 - SIOCSIFGENERIC = 0x80906939 - SIOCSIFMEDIA = 0xc0906935 - SIOCSIFMETRIC = 0x80906918 - SIOCSIFMTU = 0x8090697f - SIOCSIFNETMASK = 0x80906916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSLIFPHYADDR = 0x8118694a - SIOCSLINKSTR = 0x801c6988 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSVH = 0xc0906982 - SIOCZIFDATA = 0xc0946986 - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_FLAGS_MASK = 0xf0000000 - SOCK_NONBLOCK = 0x20000000 - SOCK_NOSIGPIPE = 0x40000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NOHEADER = 0x100a - SO_NOSIGPIPE = 0x800 - SO_OOBINLINE = 0x100 - SO_OVERFLOWED = 0x1009 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x100c - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x100b - SO_TIMESTAMP = 0x2000 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SYSCTL_VERSION = 0x1000000 - SYSCTL_VERS_0 = 0x0 - SYSCTL_VERS_1 = 0x1000000 - SYSCTL_VERS_MASK = 0xff000000 - S_ARCH1 = 0x10000 - S_ARCH2 = 0x20000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - S_LOGIN_SET = 0x1 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_CONGCTL = 0x20 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x3 - TCP_KEEPINIT = 0x7 - TCP_KEEPINTVL = 0x5 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x400c7458 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CDTRCTS = 0x10 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGLINED = 0x40207442 - TIOCGPGRP = 0x40047477 - TIOCGQSIZE = 0x40047481 - TIOCGRANTPT = 0x20007447 - TIOCGSID = 0x40047463 - TIOCGSIZE = 0x40087468 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMGET = 0x40287446 - TIOCPTSNAME = 0x40287448 - TIOCRCVFRAME = 0x80047445 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x2000745f - TIOCSLINED = 0x80207443 - TIOCSPGRP = 0x80047476 - TIOCSQSIZE = 0x80047480 - TIOCSSIZE = 0x80087467 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TIOCXMTFRAME = 0x80047444 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALL = 0x8 - WALLSIG = 0x8 - WALTSIG = 0x4 - WCLONE = 0x4 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WNOWAIT = 0x10000 - WNOZOMBIE = 0x20000 - WOPTSCHECKED = 0x40000 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x58) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x57) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x55) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5e) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x59) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x5a) - ENOSTR = syscall.Errno(0x5b) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x56) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x60) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x5c) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x20) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large or too small", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol option not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "illegal byte sequence", - 86: "not supported", - 87: "operation Canceled", - 88: "bad or Corrupt message", - 89: "no message available", - 90: "no STREAM resources", - 91: "not a STREAM", - 92: "STREAM ioctl timeout", - 93: "attribute not found", - 94: "multihop attempted", - 95: "link has been severed", - 96: "protocol error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "power fail/restart", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go deleted file mode 100644 index c994ab6..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +++ /dev/null @@ -1,1709 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,netbsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x1c - AF_BLUETOOTH = 0x1f - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x20 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x23 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OROUTE = 0x11 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x22 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ARCNET = 0x7 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_STRIP = 0x17 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427d - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0104277 - BIOCGETIF = 0x4090426b - BIOCGFEEDBACK = 0x4004427c - BIOCGHDRCMPLT = 0x40044274 - BIOCGRTIMEOUT = 0x4010427b - BIOCGSEESENT = 0x40044278 - BIOCGSTATS = 0x4080426f - BIOCGSTATSOLD = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044276 - BIOCSETF = 0x80104267 - BIOCSETIF = 0x8090426c - BIOCSFEEDBACK = 0x8004427d - BIOCSHDRCMPLT = 0x80044275 - BIOCSRTIMEOUT = 0x8010427a - BIOCSSEESENT = 0x80044279 - BIOCSTCPF = 0x80104272 - BIOCSUDPF = 0x80104273 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x8 - BPF_ALIGNMENT32 = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DFLTBUFSIZE = 0x100000 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x1000000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CLONE_CSIGNAL = 0xff - CLONE_FILES = 0x400 - CLONE_FS = 0x200 - CLONE_PID = 0x1000 - CLONE_PTRACE = 0x2000 - CLONE_SIGHAND = 0x800 - CLONE_VFORK = 0x4000 - CLONE_VM = 0x100 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - CTL_QUERY = -0x2 - DIOCBSFLUSH = 0x20006478 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HDLC = 0x10 - DLT_HHDLC = 0x79 - DLT_HIPPI = 0xf - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0xe - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RAWAF_MASK = 0x2240000 - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xd - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMUL_LINUX = 0x1 - EMUL_LINUX32 = 0x5 - EMUL_MAXID = 0x6 - ETHERCAP_JUMBO_MTU = 0x4 - ETHERCAP_VLAN_HWTAGGING = 0x2 - ETHERCAP_VLAN_MTU = 0x1 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERMTU_JUMBO = 0x2328 - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOWPROTOCOLS = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_LEN = 0x5ee - ETHER_MAX_LEN_JUMBO = 0x233a - ETHER_MIN_LEN = 0x40 - ETHER_PPPOE_ENCAP_LEN = 0x8 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = 0x2 - EVFILT_PROC = 0x4 - EVFILT_READ = 0x0 - EVFILT_SIGNAL = 0x5 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = 0x6 - EVFILT_VNODE = 0x3 - EVFILT_WRITE = 0x1 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x100 - FLUSHO = 0x800000 - F_CLOSEM = 0xa - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xc - F_FSCTL = -0x80000000 - F_FSDIRMASK = 0x70000000 - F_FSIN = 0x10000000 - F_FSINOUT = 0x30000000 - F_FSOUT = 0x20000000 - F_FSPRIV = 0x8000 - F_FSVOID = 0x40000000 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETNOSIGPIPE = 0xd - F_GETOWN = 0x5 - F_MAXFD = 0xb - F_OK = 0x0 - F_PARAM_MASK = 0xfff - F_PARAM_MAX = 0xfff - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETNOSIGPIPE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8f52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf8 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IPV6_ICMP = 0x3a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MOBILE = 0x37 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_VRRP = 0x70 - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_EF = 0x8000 - IP_ERRORMTU = 0x15 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x16 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINFRAGSIZE = 0x45 - IP_MINTTL = 0x18 - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVTTL = 0x17 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ALIGNMENT_16MB = 0x18000000 - MAP_ALIGNMENT_1TB = 0x28000000 - MAP_ALIGNMENT_256TB = 0x30000000 - MAP_ALIGNMENT_4GB = 0x20000000 - MAP_ALIGNMENT_64KB = 0x10000000 - MAP_ALIGNMENT_64PB = 0x38000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DEFAULT = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_STACK = 0x2000 - MAP_TRYFIXED = 0x400 - MAP_WIRED = 0x800 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_BCAST = 0x100 - MSG_CMSG_CLOEXEC = 0x800 - MSG_CONTROLMBUF = 0x2000000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_IOVUSRSPACE = 0x4000000 - MSG_LENUSRSPACE = 0x8000000 - MSG_MCAST = 0x200 - MSG_NAMEMBUF = 0x1000000 - MSG_NBIO = 0x1000 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_USERFLAGS = 0xffffff - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x4 - NAME_MAX = 0x1ff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x5 - NET_RT_MAXID = 0x6 - NET_RT_OIFLIST = 0x4 - NET_RT_OOIFLIST = 0x3 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFIOGETBMAP = 0xc004667a - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_ALT_IO = 0x40000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x400000 - O_CREAT = 0x200 - O_DIRECT = 0x80000 - O_DIRECTORY = 0x200000 - O_DSYNC = 0x10000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_NOSIGPIPE = 0x1000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x20000 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PRI_IOFLUSH = 0x7c - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x9 - RTAX_NETMASK = 0x2 - RTAX_TAG = 0x8 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTA_TAG = 0x100 - RTF_ANNOUNCE = 0x20000 - RTF_BLACKHOLE = 0x1000 - RTF_CLONED = 0x2000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_REJECT = 0x8 - RTF_SRC = 0x10000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_CHGADDR = 0x15 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x11 - RTM_IFANNOUNCE = 0x10 - RTM_IFINFO = 0x14 - RTM_LLINFO_UPD = 0x13 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_OIFINFO = 0xf - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_OOIFINFO = 0xe - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_SETGATE = 0x12 - RTM_VERSION = 0x4 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x4 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x8 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80906931 - SIOCADDRT = 0x8038720a - SIOCAIFADDR = 0x8040691a - SIOCALIFADDR = 0x8118691c - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80906932 - SIOCDELRT = 0x8038720b - SIOCDIFADDR = 0x80906919 - SIOCDIFPHYADDR = 0x80906949 - SIOCDLIFADDR = 0x8118691e - SIOCGDRVSPEC = 0xc028697b - SIOCGETPFSYNC = 0xc09069f8 - SIOCGETSGCNT = 0xc0207534 - SIOCGETVIFCNT = 0xc0287533 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0906921 - SIOCGIFADDRPREF = 0xc0986920 - SIOCGIFALIAS = 0xc040691b - SIOCGIFBRDADDR = 0xc0906923 - SIOCGIFCAP = 0xc0206976 - SIOCGIFCONF = 0xc0106926 - SIOCGIFDATA = 0xc0986985 - SIOCGIFDLT = 0xc0906977 - SIOCGIFDSTADDR = 0xc0906922 - SIOCGIFFLAGS = 0xc0906911 - SIOCGIFGENERIC = 0xc090693a - SIOCGIFMEDIA = 0xc0306936 - SIOCGIFMETRIC = 0xc0906917 - SIOCGIFMTU = 0xc090697e - SIOCGIFNETMASK = 0xc0906925 - SIOCGIFPDSTADDR = 0xc0906948 - SIOCGIFPSRCADDR = 0xc0906947 - SIOCGLIFADDR = 0xc118691d - SIOCGLIFPHYADDR = 0xc118694b - SIOCGLINKSTR = 0xc0286987 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGVH = 0xc0906983 - SIOCIFCREATE = 0x8090697a - SIOCIFDESTROY = 0x80906979 - SIOCIFGCLONERS = 0xc0106978 - SIOCINITIFADDR = 0xc0706984 - SIOCSDRVSPEC = 0x8028697b - SIOCSETPFSYNC = 0x809069f7 - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8090690c - SIOCSIFADDRPREF = 0x8098691f - SIOCSIFBRDADDR = 0x80906913 - SIOCSIFCAP = 0x80206975 - SIOCSIFDSTADDR = 0x8090690e - SIOCSIFFLAGS = 0x80906910 - SIOCSIFGENERIC = 0x80906939 - SIOCSIFMEDIA = 0xc0906935 - SIOCSIFMETRIC = 0x80906918 - SIOCSIFMTU = 0x8090697f - SIOCSIFNETMASK = 0x80906916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSLIFPHYADDR = 0x8118694a - SIOCSLINKSTR = 0x80286988 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSVH = 0xc0906982 - SIOCZIFDATA = 0xc0986986 - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_FLAGS_MASK = 0xf0000000 - SOCK_NONBLOCK = 0x20000000 - SOCK_NOSIGPIPE = 0x40000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NOHEADER = 0x100a - SO_NOSIGPIPE = 0x800 - SO_OOBINLINE = 0x100 - SO_OVERFLOWED = 0x1009 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x100c - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x100b - SO_TIMESTAMP = 0x2000 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SYSCTL_VERSION = 0x1000000 - SYSCTL_VERS_0 = 0x0 - SYSCTL_VERS_1 = 0x1000000 - SYSCTL_VERS_MASK = 0xff000000 - S_ARCH1 = 0x10000 - S_ARCH2 = 0x20000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - S_LOGIN_SET = 0x1 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_CONGCTL = 0x20 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x3 - TCP_KEEPINIT = 0x7 - TCP_KEEPINTVL = 0x5 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x40107458 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CDTRCTS = 0x10 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGLINED = 0x40207442 - TIOCGPGRP = 0x40047477 - TIOCGQSIZE = 0x40047481 - TIOCGRANTPT = 0x20007447 - TIOCGSID = 0x40047463 - TIOCGSIZE = 0x40087468 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMGET = 0x40287446 - TIOCPTSNAME = 0x40287448 - TIOCRCVFRAME = 0x80087445 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x2000745f - TIOCSLINED = 0x80207443 - TIOCSPGRP = 0x80047476 - TIOCSQSIZE = 0x80047480 - TIOCSSIZE = 0x80087467 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TIOCXMTFRAME = 0x80087444 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALL = 0x8 - WALLSIG = 0x8 - WALTSIG = 0x4 - WCLONE = 0x4 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WNOWAIT = 0x10000 - WNOZOMBIE = 0x20000 - WOPTSCHECKED = 0x40000 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x58) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x57) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x55) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5e) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x59) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x5a) - ENOSTR = syscall.Errno(0x5b) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x56) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x60) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x5c) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x20) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large or too small", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol option not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "illegal byte sequence", - 86: "not supported", - 87: "operation Canceled", - 88: "bad or Corrupt message", - 89: "no message available", - 90: "no STREAM resources", - 91: "not a STREAM", - 92: "STREAM ioctl timeout", - 93: "attribute not found", - 94: "multihop attempted", - 95: "link has been severed", - 96: "protocol error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "power fail/restart", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go deleted file mode 100644 index a8f9efe..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +++ /dev/null @@ -1,1698 +0,0 @@ -// mkerrors.sh -marm -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,netbsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -marm _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_ARP = 0x1c - AF_BLUETOOTH = 0x1f - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_HYLINK = 0xf - AF_IEEE80211 = 0x20 - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x23 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OROUTE = 0x11 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x22 - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ARCNET = 0x7 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - ARPHRD_STRIP = 0x17 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B460800 = 0x70800 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B921600 = 0xe1000 - B9600 = 0x2580 - BIOCFEEDBACK = 0x8004427d - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc0084277 - BIOCGETIF = 0x4090426b - BIOCGFEEDBACK = 0x4004427c - BIOCGHDRCMPLT = 0x40044274 - BIOCGRTIMEOUT = 0x400c427b - BIOCGSEESENT = 0x40044278 - BIOCGSTATS = 0x4080426f - BIOCGSTATSOLD = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDLT = 0x80044276 - BIOCSETF = 0x80084267 - BIOCSETIF = 0x8090426c - BIOCSFEEDBACK = 0x8004427d - BIOCSHDRCMPLT = 0x80044275 - BIOCSRTIMEOUT = 0x800c427a - BIOCSSEESENT = 0x80044279 - BIOCSTCPF = 0x80084272 - BIOCSUDPF = 0x80084273 - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALIGNMENT32 = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DFLTBUFSIZE = 0x100000 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x1000000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - CTL_QUERY = -0x2 - DIOCBSFLUSH = 0x20006478 - DLT_A429 = 0xb8 - DLT_A653_ICM = 0xb9 - DLT_AIRONET_HEADER = 0x78 - DLT_AOS = 0xde - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_AX25_KISS = 0xca - DLT_BACNET_MS_TP = 0xa5 - DLT_BLUETOOTH_HCI_H4 = 0xbb - DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9 - DLT_CAN20B = 0xbe - DLT_CAN_SOCKETCAN = 0xe3 - DLT_CHAOS = 0x5 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_C_HDLC_WITH_DIR = 0xcd - DLT_DECT = 0xdd - DLT_DOCSIS = 0x8f - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF = 0xc5 - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FC_2 = 0xe0 - DLT_FC_2_WITH_FRAME_DELIMS = 0xe1 - DLT_FDDI = 0xa - DLT_FLEXRAY = 0xd2 - DLT_FRELAY = 0x6b - DLT_FRELAY_WITH_DIR = 0xce - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_GSMTAP_ABIS = 0xda - DLT_GSMTAP_UM = 0xd9 - DLT_HDLC = 0x10 - DLT_HHDLC = 0x79 - DLT_HIPPI = 0xf - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IEEE802_15_4 = 0xc3 - DLT_IEEE802_15_4_LINUX = 0xbf - DLT_IEEE802_15_4_NONASK_PHY = 0xd7 - DLT_IEEE802_16_MAC_CPS = 0xbc - DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1 - DLT_IPMB = 0xc7 - DLT_IPMB_LINUX = 0xd1 - DLT_IPNET = 0xe2 - DLT_IPV4 = 0xe4 - DLT_IPV6 = 0xe5 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_ISM = 0xc2 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_JUNIPER_ST = 0xc8 - DLT_JUNIPER_VP = 0xb7 - DLT_LAPB_WITH_DIR = 0xcf - DLT_LAPD = 0xcb - DLT_LIN = 0xd4 - DLT_LINUX_EVDEV = 0xd8 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MFR = 0xb6 - DLT_MOST = 0xd3 - DLT_MPLS = 0xdb - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPI = 0xc0 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0xe - DLT_PPP_ETHER = 0x33 - DLT_PPP_PPPD = 0xa6 - DLT_PPP_SERIAL = 0x32 - DLT_PPP_WITH_DIR = 0xcc - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAIF1 = 0xc6 - DLT_RAW = 0xc - DLT_RAWAF_MASK = 0x2240000 - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SITA = 0xc4 - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xd - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - DLT_USB = 0xba - DLT_USB_LINUX = 0xbd - DLT_USB_LINUX_MMAPPED = 0xdc - DLT_WIHART = 0xdf - DLT_X2E_SERIAL = 0xd5 - DLT_X2E_XORAYA = 0xd6 - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - DT_WHT = 0xe - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMUL_LINUX = 0x1 - EMUL_LINUX32 = 0x5 - EMUL_MAXID = 0x6 - ETHERCAP_JUMBO_MTU = 0x4 - ETHERCAP_VLAN_HWTAGGING = 0x2 - ETHERCAP_VLAN_MTU = 0x1 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERMTU_JUMBO = 0x2328 - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOWPROTOCOLS = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_LEN = 0x5ee - ETHER_MAX_LEN_JUMBO = 0x233a - ETHER_MIN_LEN = 0x40 - ETHER_PPPOE_ENCAP_LEN = 0x8 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = 0x2 - EVFILT_PROC = 0x4 - EVFILT_READ = 0x0 - EVFILT_SIGNAL = 0x5 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = 0x6 - EVFILT_VNODE = 0x3 - EVFILT_WRITE = 0x1 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x100 - FLUSHO = 0x800000 - F_CLOSEM = 0xa - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xc - F_FSCTL = -0x80000000 - F_FSDIRMASK = 0x70000000 - F_FSIN = 0x10000000 - F_FSINOUT = 0x30000000 - F_FSOUT = 0x20000000 - F_FSPRIV = 0x8000 - F_FSVOID = 0x40000000 - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETNOSIGPIPE = 0xd - F_GETOWN = 0x5 - F_MAXFD = 0xb - F_OK = 0x0 - F_PARAM_MASK = 0xfff - F_PARAM_MAX = 0xfff - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETNOSIGPIPE = 0xe - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8f52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf8 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf2 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf1 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_STF = 0xd7 - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_IPV6_ICMP = 0x3a - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x34 - IPPROTO_MOBILE = 0x37 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPPROTO_VRRP = 0x70 - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPSEC_POLICY = 0x1c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_PATHMTU = 0x2c - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DROP_MEMBERSHIP = 0xd - IP_EF = 0x8000 - IP_ERRORMTU = 0x15 - IP_HDRINCL = 0x2 - IP_IPSEC_POLICY = 0x16 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0x14 - IP_MF = 0x2000 - IP_MINFRAGSIZE = 0x45 - IP_MINTTL = 0x18 - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x14 - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVTTL = 0x17 - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ALIGNMENT_16MB = 0x18000000 - MAP_ALIGNMENT_1TB = 0x28000000 - MAP_ALIGNMENT_256TB = 0x30000000 - MAP_ALIGNMENT_4GB = 0x20000000 - MAP_ALIGNMENT_64KB = 0x10000000 - MAP_ALIGNMENT_64PB = 0x38000000 - MAP_ALIGNMENT_MASK = -0x1000000 - MAP_ALIGNMENT_SHIFT = 0x18 - MAP_ANON = 0x1000 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DEFAULT = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_STACK = 0x2000 - MAP_TRYFIXED = 0x400 - MAP_WIRED = 0x800 - MSG_BCAST = 0x100 - MSG_CMSG_CLOEXEC = 0x800 - MSG_CONTROLMBUF = 0x2000000 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_IOVUSRSPACE = 0x4000000 - MSG_LENUSRSPACE = 0x8000000 - MSG_MCAST = 0x200 - MSG_NAMEMBUF = 0x1000000 - MSG_NBIO = 0x1000 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_USERFLAGS = 0xffffff - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_SYNC = 0x4 - NAME_MAX = 0x1ff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x5 - NET_RT_MAXID = 0x6 - NET_RT_OIFLIST = 0x4 - NET_RT_OOIFLIST = 0x3 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - OFIOGETBMAP = 0xc004667a - ONLCR = 0x2 - ONLRET = 0x40 - ONOCR = 0x20 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_ALT_IO = 0x40000 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x400000 - O_CREAT = 0x200 - O_DIRECT = 0x80000 - O_DIRECTORY = 0x200000 - O_DSYNC = 0x10000 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_NOSIGPIPE = 0x1000000 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x20000 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PRI_IOFLUSH = 0x7c - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - RLIMIT_AS = 0xa - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x9 - RTAX_NETMASK = 0x2 - RTAX_TAG = 0x8 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTA_TAG = 0x100 - RTF_ANNOUNCE = 0x20000 - RTF_BLACKHOLE = 0x1000 - RTF_CLONED = 0x2000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_REJECT = 0x8 - RTF_SRC = 0x10000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_CHGADDR = 0x15 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_GET = 0x4 - RTM_IEEE80211 = 0x11 - RTM_IFANNOUNCE = 0x10 - RTM_IFINFO = 0x14 - RTM_LLINFO_UPD = 0x13 - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_OIFINFO = 0xf - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_OOIFINFO = 0xe - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_SETGATE = 0x12 - RTM_VERSION = 0x4 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_CREDS = 0x4 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x8 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80906931 - SIOCADDRT = 0x8030720a - SIOCAIFADDR = 0x8040691a - SIOCALIFADDR = 0x8118691c - SIOCATMARK = 0x40047307 - SIOCDELMULTI = 0x80906932 - SIOCDELRT = 0x8030720b - SIOCDIFADDR = 0x80906919 - SIOCDIFPHYADDR = 0x80906949 - SIOCDLIFADDR = 0x8118691e - SIOCGDRVSPEC = 0xc01c697b - SIOCGETPFSYNC = 0xc09069f8 - SIOCGETSGCNT = 0xc0147534 - SIOCGETVIFCNT = 0xc0147533 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0906921 - SIOCGIFADDRPREF = 0xc0946920 - SIOCGIFALIAS = 0xc040691b - SIOCGIFBRDADDR = 0xc0906923 - SIOCGIFCAP = 0xc0206976 - SIOCGIFCONF = 0xc0086926 - SIOCGIFDATA = 0xc0946985 - SIOCGIFDLT = 0xc0906977 - SIOCGIFDSTADDR = 0xc0906922 - SIOCGIFFLAGS = 0xc0906911 - SIOCGIFGENERIC = 0xc090693a - SIOCGIFMEDIA = 0xc0286936 - SIOCGIFMETRIC = 0xc0906917 - SIOCGIFMTU = 0xc090697e - SIOCGIFNETMASK = 0xc0906925 - SIOCGIFPDSTADDR = 0xc0906948 - SIOCGIFPSRCADDR = 0xc0906947 - SIOCGLIFADDR = 0xc118691d - SIOCGLIFPHYADDR = 0xc118694b - SIOCGLINKSTR = 0xc01c6987 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGVH = 0xc0906983 - SIOCIFCREATE = 0x8090697a - SIOCIFDESTROY = 0x80906979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCINITIFADDR = 0xc0446984 - SIOCSDRVSPEC = 0x801c697b - SIOCSETPFSYNC = 0x809069f7 - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8090690c - SIOCSIFADDRPREF = 0x8094691f - SIOCSIFBRDADDR = 0x80906913 - SIOCSIFCAP = 0x80206975 - SIOCSIFDSTADDR = 0x8090690e - SIOCSIFFLAGS = 0x80906910 - SIOCSIFGENERIC = 0x80906939 - SIOCSIFMEDIA = 0xc0906935 - SIOCSIFMETRIC = 0x80906918 - SIOCSIFMTU = 0x8090697f - SIOCSIFNETMASK = 0x80906916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSLIFPHYADDR = 0x8118694a - SIOCSLINKSTR = 0x801c6988 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSVH = 0xc0906982 - SIOCZIFDATA = 0xc0946986 - SOCK_CLOEXEC = 0x10000000 - SOCK_DGRAM = 0x2 - SOCK_FLAGS_MASK = 0xf0000000 - SOCK_NONBLOCK = 0x20000000 - SOCK_NOSIGPIPE = 0x40000000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ACCEPTFILTER = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NOHEADER = 0x100a - SO_NOSIGPIPE = 0x800 - SO_OOBINLINE = 0x100 - SO_OVERFLOWED = 0x1009 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x100c - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x100b - SO_TIMESTAMP = 0x2000 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SYSCTL_VERSION = 0x1000000 - SYSCTL_VERS_0 = 0x0 - SYSCTL_VERS_1 = 0x1000000 - SYSCTL_VERS_MASK = 0xff000000 - S_ARCH1 = 0x10000 - S_ARCH2 = 0x20000 - S_BLKSIZE = 0x200 - S_IEXEC = 0x40 - S_IFBLK = 0x6000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFIFO = 0x1000 - S_IFLNK = 0xa000 - S_IFMT = 0xf000 - S_IFREG = 0x8000 - S_IFSOCK = 0xc000 - S_IFWHT = 0xe000 - S_IREAD = 0x100 - S_IRGRP = 0x20 - S_IROTH = 0x4 - S_IRUSR = 0x100 - S_IRWXG = 0x38 - S_IRWXO = 0x7 - S_IRWXU = 0x1c0 - S_ISGID = 0x400 - S_ISTXT = 0x200 - S_ISUID = 0x800 - S_ISVTX = 0x200 - S_IWGRP = 0x10 - S_IWOTH = 0x2 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXGRP = 0x8 - S_IXOTH = 0x1 - S_IXUSR = 0x40 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_CONGCTL = 0x20 - TCP_KEEPCNT = 0x6 - TCP_KEEPIDLE = 0x3 - TCP_KEEPINIT = 0x7 - TCP_KEEPINTVL = 0x5 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x10 - TCP_MINMSS = 0xd8 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDCDTIMESTAMP = 0x400c7458 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CDTRCTS = 0x10 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGLINED = 0x40207442 - TIOCGPGRP = 0x40047477 - TIOCGQSIZE = 0x40047481 - TIOCGRANTPT = 0x20007447 - TIOCGSID = 0x40047463 - TIOCGSIZE = 0x40087468 - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCPTMGET = 0x48087446 - TIOCPTSNAME = 0x48087448 - TIOCRCVFRAME = 0x80047445 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x2000745f - TIOCSLINED = 0x80207443 - TIOCSPGRP = 0x80047476 - TIOCSQSIZE = 0x80047480 - TIOCSSIZE = 0x80087467 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TIOCXMTFRAME = 0x80047444 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALL = 0x8 - WALLSIG = 0x8 - WALTSIG = 0x4 - WCLONE = 0x4 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WNOWAIT = 0x10000 - WNOZOMBIE = 0x20000 - WOPTSCHECKED = 0x40000 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADMSG = syscall.Errno(0x58) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x57) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x52) - EILSEQ = syscall.Errno(0x55) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x60) - ELOOP = syscall.Errno(0x3e) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - EMULTIHOP = syscall.Errno(0x5e) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x5d) - ENOBUFS = syscall.Errno(0x37) - ENODATA = syscall.Errno(0x59) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOLINK = syscall.Errno(0x5f) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x53) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x5a) - ENOSTR = syscall.Errno(0x5b) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x56) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x54) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTO = syscall.Errno(0x60) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIME = syscall.Errno(0x5c) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGPWR = syscall.Signal(0x20) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large or too small", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol option not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "identifier removed", - 83: "no message of desired type", - 84: "value too large to be stored in data type", - 85: "illegal byte sequence", - 86: "not supported", - 87: "operation Canceled", - 88: "bad or Corrupt message", - 89: "no message available", - 90: "no STREAM resources", - 91: "not a STREAM", - 92: "STREAM ioctl timeout", - 93: "attribute not found", - 94: "multihop attempted", - 95: "link has been severed", - 96: "protocol error", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "power fail/restart", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go deleted file mode 100644 index 04e4f33..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +++ /dev/null @@ -1,1591 +0,0 @@ -// mkerrors.sh -m32 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,openbsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m32 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_BLUETOOTH = 0x20 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_ENCAP = 0x1c - AF_HYLINK = 0xf - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_KEY = 0x1e - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x24 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SIP = 0x1d - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRFILT = 0x4004427c - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc008427b - BIOCGETIF = 0x4020426b - BIOCGFILDROP = 0x40044278 - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044273 - BIOCGRTIMEOUT = 0x400c426e - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x20004276 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDIRFILT = 0x8004427d - BIOCSDLT = 0x8004427a - BIOCSETF = 0x80084267 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x80084277 - BIOCSFILDROP = 0x80044279 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044272 - BIOCSRTIMEOUT = 0x800c426d - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIRECTION_IN = 0x1 - BPF_DIRECTION_OUT = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x200000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0xff - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DIOCOSFPFLUSH = 0x2000444e - DLT_ARCNET = 0x7 - DLT_ATM_RFC1483 = 0xb - DLT_AX25 = 0x3 - DLT_CHAOS = 0x5 - DLT_C_HDLC = 0x68 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0xd - DLT_FDDI = 0xa - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_LOOP = 0xc - DLT_MPLS = 0xdb - DLT_NULL = 0x0 - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_SERIAL = 0x32 - DLT_PRONET = 0x4 - DLT_RAW = 0xe - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMT_TAGOVF = 0x1 - EMUL_ENABLED = 0x1 - EMUL_NATIVE = 0x2 - ENDRUNDISC = 0x9 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_AOE = 0x88a2 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LLDP = 0x88cc - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_QINQ = 0x88a8 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOW = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_ALIGN = 0x2 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_DIX_LEN = 0x600 - ETHER_MAX_LEN = 0x5ee - ETHER_MIN_LEN = 0x40 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = -0x3 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = -0x7 - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xa - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETOWN = 0x5 - F_OK = 0x0 - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8e52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BLUETOOTH = 0xf8 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf7 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DUMMY = 0xf1 - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf3 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFLOW = 0xf9 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf2 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_HOST = 0x1 - IN_RFC3021_NET = 0xfffffffe - IN_RFC3021_NSHIFT = 0x1f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DIVERT = 0x102 - IPPROTO_DIVERT_INIT = 0x2 - IPPROTO_DIVERT_RESP = 0x1 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x103 - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPV6_AUTH_LEVEL = 0x35 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_ESP_NETWORK_LEVEL = 0x37 - IPV6_ESP_TRANS_LEVEL = 0x36 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPCOMP_LEVEL = 0x3c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_OPTIONS = 0x1 - IPV6_PATHMTU = 0x2c - IPV6_PIPEX = 0x3f - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVDSTPORT = 0x40 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTABLE = 0x1021 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_AUTH_LEVEL = 0x14 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DIVERTFL = 0x1022 - IP_DROP_MEMBERSHIP = 0xd - IP_ESP_NETWORK_LEVEL = 0x16 - IP_ESP_TRANS_LEVEL = 0x15 - IP_HDRINCL = 0x2 - IP_IPCOMP_LEVEL = 0x1d - IP_IPSECFLOWINFO = 0x24 - IP_IPSEC_LOCAL_AUTH = 0x1b - IP_IPSEC_LOCAL_CRED = 0x19 - IP_IPSEC_LOCAL_ID = 0x17 - IP_IPSEC_REMOTE_AUTH = 0x1c - IP_IPSEC_REMOTE_CRED = 0x1a - IP_IPSEC_REMOTE_ID = 0x18 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0xfff - IP_MF = 0x2000 - IP_MINTTL = 0x20 - IP_MIN_MEMBERSHIPS = 0xf - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PIPEX = 0x22 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVDSTPORT = 0x21 - IP_RECVIF = 0x1e - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRTABLE = 0x23 - IP_RECVTTL = 0x1f - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RTABLE = 0x1021 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LCNT_OVERLOAD_FLUSH = 0x6 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ANON = 0x1000 - MAP_COPY = 0x4 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x1ff7 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_TRYFIXED = 0x400 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_BCAST = 0x100 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_MCAST = 0x200 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x4 - MS_SYNC = 0x2 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_MAXID = 0x6 - NET_RT_STATS = 0x4 - NET_RT_TABLE = 0x5 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EOF = 0x2 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRUNCATE = 0x80 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x80 - ONOCR = 0x40 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x10000 - O_CREAT = 0x200 - O_DIRECTORY = 0x20000 - O_DSYNC = 0x80 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x80 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PF_FLUSH = 0x1 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - PT_MASK = 0x3ff000 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_LABEL = 0xa - RTAX_MAX = 0xb - RTAX_NETMASK = 0x2 - RTAX_SRC = 0x8 - RTAX_SRCMASK = 0x9 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_LABEL = 0x400 - RTA_NETMASK = 0x4 - RTA_SRC = 0x100 - RTA_SRCMASK = 0x200 - RTF_ANNOUNCE = 0x4000 - RTF_BLACKHOLE = 0x1000 - RTF_CLONED = 0x10000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FMASK = 0x10f808 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_MPATH = 0x40000 - RTF_MPLS = 0x100000 - RTF_PERMANENT_ARP = 0x2000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x2000 - RTF_REJECT = 0x8 - RTF_SOURCE = 0x20000 - RTF_STATIC = 0x800 - RTF_TUNNEL = 0x100000 - RTF_UP = 0x1 - RTF_USETRAILERS = 0x8000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DESYNC = 0x10 - RTM_GET = 0x4 - RTM_IFANNOUNCE = 0xf - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MAXSIZE = 0x800 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RT_TABLEID_MAX = 0xff - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80246987 - SIOCALIFADDR = 0x8218691c - SIOCATMARK = 0x40047307 - SIOCBRDGADD = 0x8054693c - SIOCBRDGADDS = 0x80546941 - SIOCBRDGARL = 0x806e694d - SIOCBRDGDADDR = 0x81286947 - SIOCBRDGDEL = 0x8054693d - SIOCBRDGDELS = 0x80546942 - SIOCBRDGFLUSH = 0x80546948 - SIOCBRDGFRL = 0x806e694e - SIOCBRDGGCACHE = 0xc0146941 - SIOCBRDGGFD = 0xc0146952 - SIOCBRDGGHT = 0xc0146951 - SIOCBRDGGIFFLGS = 0xc054693e - SIOCBRDGGMA = 0xc0146953 - SIOCBRDGGPARAM = 0xc03c6958 - SIOCBRDGGPRI = 0xc0146950 - SIOCBRDGGRL = 0xc028694f - SIOCBRDGGSIFS = 0xc054693c - SIOCBRDGGTO = 0xc0146946 - SIOCBRDGIFS = 0xc0546942 - SIOCBRDGRTS = 0xc0186943 - SIOCBRDGSADDR = 0xc1286944 - SIOCBRDGSCACHE = 0x80146940 - SIOCBRDGSFD = 0x80146952 - SIOCBRDGSHT = 0x80146951 - SIOCBRDGSIFCOST = 0x80546955 - SIOCBRDGSIFFLGS = 0x8054693f - SIOCBRDGSIFPRIO = 0x80546954 - SIOCBRDGSMA = 0x80146953 - SIOCBRDGSPRI = 0x80146950 - SIOCBRDGSPROTO = 0x8014695a - SIOCBRDGSTO = 0x80146945 - SIOCBRDGSTXHC = 0x80146959 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80246989 - SIOCDIFPHYADDR = 0x80206949 - SIOCDLIFADDR = 0x8218691e - SIOCGETKALIVE = 0xc01869a4 - SIOCGETLABEL = 0x8020699a - SIOCGETPFLOW = 0xc02069fe - SIOCGETPFSYNC = 0xc02069f8 - SIOCGETSGCNT = 0xc0147534 - SIOCGETVIFCNT = 0xc0147533 - SIOCGETVLAN = 0xc0206990 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCONF = 0xc0086924 - SIOCGIFDATA = 0xc020691b - SIOCGIFDESCR = 0xc0206981 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGATTR = 0xc024698b - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc024698a - SIOCGIFGROUP = 0xc0246988 - SIOCGIFHARDMTU = 0xc02069a5 - SIOCGIFMEDIA = 0xc0286936 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc020697e - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPRIORITY = 0xc020699c - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFRDOMAIN = 0xc02069a0 - SIOCGIFRTLABEL = 0xc0206983 - SIOCGIFTIMESLOT = 0xc0206986 - SIOCGIFXFLAGS = 0xc020699e - SIOCGLIFADDR = 0xc218691d - SIOCGLIFPHYADDR = 0xc218694b - SIOCGLIFPHYRTABLE = 0xc02069a2 - SIOCGLIFPHYTTL = 0xc02069a9 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGSPPPPARAMS = 0xc0206994 - SIOCGVH = 0xc02069f6 - SIOCGVNETID = 0xc02069a7 - SIOCIFCREATE = 0x8020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCSETKALIVE = 0x801869a3 - SIOCSETLABEL = 0x80206999 - SIOCSETPFLOW = 0x802069fd - SIOCSETPFSYNC = 0x802069f7 - SIOCSETVLAN = 0x8020698f - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFDESCR = 0x80206980 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGATTR = 0x8024698c - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020691f - SIOCSIFMEDIA = 0xc0206935 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x8020697f - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPRIORITY = 0x8020699b - SIOCSIFRDOMAIN = 0x8020699f - SIOCSIFRTLABEL = 0x80206982 - SIOCSIFTIMESLOT = 0x80206985 - SIOCSIFXFLAGS = 0x8020699d - SIOCSLIFPHYADDR = 0x8218694a - SIOCSLIFPHYRTABLE = 0x802069a1 - SIOCSLIFPHYTTL = 0x802069a8 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSSPPPPARAMS = 0x80206993 - SIOCSVH = 0xc02069f5 - SIOCSVNETID = 0x802069a6 - SOCK_DGRAM = 0x2 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BINDANY = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NETPROC = 0x1020 - SO_OOBINLINE = 0x100 - SO_PEERCRED = 0x1022 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RTABLE = 0x1021 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SPLICE = 0x1023 - SO_TIMESTAMP = 0x800 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x3 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x4 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOPUSH = 0x10 - TCP_NSTATES = 0xb - TCP_SACK_ENABLE = 0x8 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_PPS = 0x10 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGPGRP = 0x40047477 - TIOCGSID = 0x40047463 - TIOCGTSTAMP = 0x400c745b - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMODG = 0x4004746a - TIOCMODS = 0x8004746d - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x8004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSTSTAMP = 0x8008745a - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALTSIG = 0x4 - WCONTINUED = 0x8 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x58) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x59) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EIPSEC = syscall.Errno(0x52) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x5b) - ELOOP = syscall.Errno(0x3e) - EMEDIUMTYPE = syscall.Errno(0x56) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x53) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOMEDIUM = syscall.Errno(0x55) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5a) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x5b) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x57) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "IPsec processing failure", - 83: "attribute not found", - 84: "illegal byte sequence", - 85: "no medium found", - 86: "wrong medium type", - 87: "value too large to be stored in data type", - 88: "operation canceled", - 89: "identifier removed", - 90: "no message of desired type", - 91: "not supported", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "thread AST", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go deleted file mode 100644 index c80ff98..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +++ /dev/null @@ -1,1590 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,openbsd - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_BLUETOOTH = 0x20 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_ENCAP = 0x1c - AF_HYLINK = 0xf - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_KEY = 0x1e - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x24 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SIP = 0x1d - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRFILT = 0x4004427c - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc010427b - BIOCGETIF = 0x4020426b - BIOCGFILDROP = 0x40044278 - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044273 - BIOCGRTIMEOUT = 0x4010426e - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x20004276 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDIRFILT = 0x8004427d - BIOCSDLT = 0x8004427a - BIOCSETF = 0x80104267 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x80104277 - BIOCSFILDROP = 0x80044279 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044272 - BIOCSRTIMEOUT = 0x8010426d - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIRECTION_IN = 0x1 - BPF_DIRECTION_OUT = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x200000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0xff - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DIOCOSFPFLUSH = 0x2000444e - DLT_ARCNET = 0x7 - DLT_ATM_RFC1483 = 0xb - DLT_AX25 = 0x3 - DLT_CHAOS = 0x5 - DLT_C_HDLC = 0x68 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0xd - DLT_FDDI = 0xa - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_LOOP = 0xc - DLT_MPLS = 0xdb - DLT_NULL = 0x0 - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_SERIAL = 0x32 - DLT_PRONET = 0x4 - DLT_RAW = 0xe - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMT_TAGOVF = 0x1 - EMUL_ENABLED = 0x1 - EMUL_NATIVE = 0x2 - ENDRUNDISC = 0x9 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_AOE = 0x88a2 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LLDP = 0x88cc - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_QINQ = 0x88a8 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOW = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_ALIGN = 0x2 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_DIX_LEN = 0x600 - ETHER_MAX_LEN = 0x5ee - ETHER_MIN_LEN = 0x40 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = -0x3 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = -0x7 - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xa - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETOWN = 0x5 - F_OK = 0x0 - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8e52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BLUETOOTH = 0xf8 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf7 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DUMMY = 0xf1 - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf3 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFLOW = 0xf9 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf2 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_HOST = 0x1 - IN_RFC3021_NET = 0xfffffffe - IN_RFC3021_NSHIFT = 0x1f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DIVERT = 0x102 - IPPROTO_DIVERT_INIT = 0x2 - IPPROTO_DIVERT_RESP = 0x1 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x103 - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPV6_AUTH_LEVEL = 0x35 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_ESP_NETWORK_LEVEL = 0x37 - IPV6_ESP_TRANS_LEVEL = 0x36 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPCOMP_LEVEL = 0x3c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_OPTIONS = 0x1 - IPV6_PATHMTU = 0x2c - IPV6_PIPEX = 0x3f - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVDSTPORT = 0x40 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTABLE = 0x1021 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_AUTH_LEVEL = 0x14 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DIVERTFL = 0x1022 - IP_DROP_MEMBERSHIP = 0xd - IP_ESP_NETWORK_LEVEL = 0x16 - IP_ESP_TRANS_LEVEL = 0x15 - IP_HDRINCL = 0x2 - IP_IPCOMP_LEVEL = 0x1d - IP_IPSECFLOWINFO = 0x24 - IP_IPSEC_LOCAL_AUTH = 0x1b - IP_IPSEC_LOCAL_CRED = 0x19 - IP_IPSEC_LOCAL_ID = 0x17 - IP_IPSEC_REMOTE_AUTH = 0x1c - IP_IPSEC_REMOTE_CRED = 0x1a - IP_IPSEC_REMOTE_ID = 0x18 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0xfff - IP_MF = 0x2000 - IP_MINTTL = 0x20 - IP_MIN_MEMBERSHIPS = 0xf - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PIPEX = 0x22 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVDSTPORT = 0x21 - IP_RECVIF = 0x1e - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRTABLE = 0x23 - IP_RECVTTL = 0x1f - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RTABLE = 0x1021 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LCNT_OVERLOAD_FLUSH = 0x6 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ANON = 0x1000 - MAP_COPY = 0x4 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x1ff7 - MAP_HASSEMAPHORE = 0x200 - MAP_INHERIT = 0x80 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_DONATE_COPY = 0x3 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_NOEXTEND = 0x100 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_TRYFIXED = 0x400 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_BCAST = 0x100 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_MCAST = 0x200 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x4 - MS_SYNC = 0x2 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_MAXID = 0x6 - NET_RT_STATS = 0x4 - NET_RT_TABLE = 0x5 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EOF = 0x2 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRUNCATE = 0x80 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x80 - ONOCR = 0x40 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x10000 - O_CREAT = 0x200 - O_DIRECTORY = 0x20000 - O_DSYNC = 0x80 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x80 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PF_FLUSH = 0x1 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_LABEL = 0xa - RTAX_MAX = 0xb - RTAX_NETMASK = 0x2 - RTAX_SRC = 0x8 - RTAX_SRCMASK = 0x9 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_LABEL = 0x400 - RTA_NETMASK = 0x4 - RTA_SRC = 0x100 - RTA_SRCMASK = 0x200 - RTF_ANNOUNCE = 0x4000 - RTF_BLACKHOLE = 0x1000 - RTF_CLONED = 0x10000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FMASK = 0x10f808 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_MPATH = 0x40000 - RTF_MPLS = 0x100000 - RTF_PERMANENT_ARP = 0x2000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x2000 - RTF_REJECT = 0x8 - RTF_SOURCE = 0x20000 - RTF_STATIC = 0x800 - RTF_TUNNEL = 0x100000 - RTF_UP = 0x1 - RTF_USETRAILERS = 0x8000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DESYNC = 0x10 - RTM_GET = 0x4 - RTM_IFANNOUNCE = 0xf - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MAXSIZE = 0x800 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RT_TABLEID_MAX = 0xff - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80286987 - SIOCALIFADDR = 0x8218691c - SIOCATMARK = 0x40047307 - SIOCBRDGADD = 0x8058693c - SIOCBRDGADDS = 0x80586941 - SIOCBRDGARL = 0x806e694d - SIOCBRDGDADDR = 0x81286947 - SIOCBRDGDEL = 0x8058693d - SIOCBRDGDELS = 0x80586942 - SIOCBRDGFLUSH = 0x80586948 - SIOCBRDGFRL = 0x806e694e - SIOCBRDGGCACHE = 0xc0146941 - SIOCBRDGGFD = 0xc0146952 - SIOCBRDGGHT = 0xc0146951 - SIOCBRDGGIFFLGS = 0xc058693e - SIOCBRDGGMA = 0xc0146953 - SIOCBRDGGPARAM = 0xc0406958 - SIOCBRDGGPRI = 0xc0146950 - SIOCBRDGGRL = 0xc030694f - SIOCBRDGGSIFS = 0xc058693c - SIOCBRDGGTO = 0xc0146946 - SIOCBRDGIFS = 0xc0586942 - SIOCBRDGRTS = 0xc0206943 - SIOCBRDGSADDR = 0xc1286944 - SIOCBRDGSCACHE = 0x80146940 - SIOCBRDGSFD = 0x80146952 - SIOCBRDGSHT = 0x80146951 - SIOCBRDGSIFCOST = 0x80586955 - SIOCBRDGSIFFLGS = 0x8058693f - SIOCBRDGSIFPRIO = 0x80586954 - SIOCBRDGSMA = 0x80146953 - SIOCBRDGSPRI = 0x80146950 - SIOCBRDGSPROTO = 0x8014695a - SIOCBRDGSTO = 0x80146945 - SIOCBRDGSTXHC = 0x80146959 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80286989 - SIOCDIFPHYADDR = 0x80206949 - SIOCDLIFADDR = 0x8218691e - SIOCGETKALIVE = 0xc01869a4 - SIOCGETLABEL = 0x8020699a - SIOCGETPFLOW = 0xc02069fe - SIOCGETPFSYNC = 0xc02069f8 - SIOCGETSGCNT = 0xc0207534 - SIOCGETVIFCNT = 0xc0287533 - SIOCGETVLAN = 0xc0206990 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCONF = 0xc0106924 - SIOCGIFDATA = 0xc020691b - SIOCGIFDESCR = 0xc0206981 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGATTR = 0xc028698b - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc028698a - SIOCGIFGROUP = 0xc0286988 - SIOCGIFHARDMTU = 0xc02069a5 - SIOCGIFMEDIA = 0xc0306936 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc020697e - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPRIORITY = 0xc020699c - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFRDOMAIN = 0xc02069a0 - SIOCGIFRTLABEL = 0xc0206983 - SIOCGIFTIMESLOT = 0xc0206986 - SIOCGIFXFLAGS = 0xc020699e - SIOCGLIFADDR = 0xc218691d - SIOCGLIFPHYADDR = 0xc218694b - SIOCGLIFPHYRTABLE = 0xc02069a2 - SIOCGLIFPHYTTL = 0xc02069a9 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGSPPPPARAMS = 0xc0206994 - SIOCGVH = 0xc02069f6 - SIOCGVNETID = 0xc02069a7 - SIOCIFCREATE = 0x8020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc0106978 - SIOCSETKALIVE = 0x801869a3 - SIOCSETLABEL = 0x80206999 - SIOCSETPFLOW = 0x802069fd - SIOCSETPFSYNC = 0x802069f7 - SIOCSETVLAN = 0x8020698f - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFDESCR = 0x80206980 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGATTR = 0x8028698c - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020691f - SIOCSIFMEDIA = 0xc0206935 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x8020697f - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPRIORITY = 0x8020699b - SIOCSIFRDOMAIN = 0x8020699f - SIOCSIFRTLABEL = 0x80206982 - SIOCSIFTIMESLOT = 0x80206985 - SIOCSIFXFLAGS = 0x8020699d - SIOCSLIFPHYADDR = 0x8218694a - SIOCSLIFPHYRTABLE = 0x802069a1 - SIOCSLIFPHYTTL = 0x802069a8 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSSPPPPARAMS = 0x80206993 - SIOCSVH = 0xc02069f5 - SIOCSVNETID = 0x802069a6 - SOCK_DGRAM = 0x2 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BINDANY = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NETPROC = 0x1020 - SO_OOBINLINE = 0x100 - SO_PEERCRED = 0x1022 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RTABLE = 0x1021 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SPLICE = 0x1023 - SO_TIMESTAMP = 0x800 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x3 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x4 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOPUSH = 0x10 - TCP_NSTATES = 0xb - TCP_SACK_ENABLE = 0x8 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_PPS = 0x10 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGPGRP = 0x40047477 - TIOCGSID = 0x40047463 - TIOCGTSTAMP = 0x4010745b - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMODG = 0x4004746a - TIOCMODS = 0x8004746d - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x8004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSTSTAMP = 0x8008745a - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALTSIG = 0x4 - WCONTINUED = 0x8 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WSTOPPED = 0x7f - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x58) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x59) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EIPSEC = syscall.Errno(0x52) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x5b) - ELOOP = syscall.Errno(0x3e) - EMEDIUMTYPE = syscall.Errno(0x56) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x53) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOMEDIUM = syscall.Errno(0x55) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5a) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x5b) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x57) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "IPsec processing failure", - 83: "attribute not found", - 84: "illegal byte sequence", - 85: "no medium found", - 86: "wrong medium type", - 87: "value too large to be stored in data type", - 88: "operation canceled", - 89: "identifier removed", - 90: "no message of desired type", - 91: "not supported", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "thread AST", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go deleted file mode 100644 index 4c32049..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +++ /dev/null @@ -1,1593 +0,0 @@ -// mkerrors.sh -// Code generated by the command above; see README.md. DO NOT EDIT. - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- _const.go - -// +build arm,openbsd - -package unix - -import "syscall" - -const ( - AF_APPLETALK = 0x10 - AF_BLUETOOTH = 0x20 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_CNT = 0x15 - AF_COIP = 0x14 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_E164 = 0x1a - AF_ECMA = 0x8 - AF_ENCAP = 0x1c - AF_HYLINK = 0xf - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x18 - AF_IPX = 0x17 - AF_ISDN = 0x1a - AF_ISO = 0x7 - AF_KEY = 0x1e - AF_LAT = 0xe - AF_LINK = 0x12 - AF_LOCAL = 0x1 - AF_MAX = 0x24 - AF_MPLS = 0x21 - AF_NATM = 0x1b - AF_NS = 0x6 - AF_OSI = 0x7 - AF_PUP = 0x4 - AF_ROUTE = 0x11 - AF_SIP = 0x1d - AF_SNA = 0xb - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - ARPHRD_ETHER = 0x1 - ARPHRD_FRELAY = 0xf - ARPHRD_IEEE1394 = 0x18 - ARPHRD_IEEE802 = 0x6 - B0 = 0x0 - B110 = 0x6e - B115200 = 0x1c200 - B1200 = 0x4b0 - B134 = 0x86 - B14400 = 0x3840 - B150 = 0x96 - B1800 = 0x708 - B19200 = 0x4b00 - B200 = 0xc8 - B230400 = 0x38400 - B2400 = 0x960 - B28800 = 0x7080 - B300 = 0x12c - B38400 = 0x9600 - B4800 = 0x12c0 - B50 = 0x32 - B57600 = 0xe100 - B600 = 0x258 - B7200 = 0x1c20 - B75 = 0x4b - B76800 = 0x12c00 - B9600 = 0x2580 - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDIRFILT = 0x4004427c - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = 0xc008427b - BIOCGETIF = 0x4020426b - BIOCGFILDROP = 0x40044278 - BIOCGHDRCMPLT = 0x40044274 - BIOCGRSIG = 0x40044273 - BIOCGRTIMEOUT = 0x400c426e - BIOCGSTATS = 0x4008426f - BIOCIMMEDIATE = 0x80044270 - BIOCLOCK = 0x20004276 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = 0xc0044266 - BIOCSDIRFILT = 0x8004427d - BIOCSDLT = 0x8004427a - BIOCSETF = 0x80084267 - BIOCSETIF = 0x8020426c - BIOCSETWF = 0x80084277 - BIOCSFILDROP = 0x80044279 - BIOCSHDRCMPLT = 0x80044275 - BIOCSRSIG = 0x80044272 - BIOCSRTIMEOUT = 0x800c426d - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DIRECTION_IN = 0x1 - BPF_DIRECTION_OUT = 0x2 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x200000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - CFLUSH = 0xf - CLOCAL = 0x8000 - CREAD = 0x800 - CS5 = 0x0 - CS6 = 0x100 - CS7 = 0x200 - CS8 = 0x300 - CSIZE = 0x300 - CSTART = 0x11 - CSTATUS = 0xff - CSTOP = 0x13 - CSTOPB = 0x400 - CSUSP = 0x1a - CTL_HW = 0x6 - CTL_KERN = 0x1 - CTL_MAXNAME = 0xc - CTL_NET = 0x4 - DIOCOSFPFLUSH = 0x2000444e - DLT_ARCNET = 0x7 - DLT_ATM_RFC1483 = 0xb - DLT_AX25 = 0x3 - DLT_CHAOS = 0x5 - DLT_C_HDLC = 0x68 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0xd - DLT_FDDI = 0xa - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_LOOP = 0xc - DLT_MPLS = 0xdb - DLT_NULL = 0x0 - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0x10 - DLT_PPP_ETHER = 0x33 - DLT_PPP_SERIAL = 0x32 - DLT_PRONET = 0x4 - DLT_RAW = 0xe - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xf - DT_BLK = 0x6 - DT_CHR = 0x2 - DT_DIR = 0x4 - DT_FIFO = 0x1 - DT_LNK = 0xa - DT_REG = 0x8 - DT_SOCK = 0xc - DT_UNKNOWN = 0x0 - ECHO = 0x8 - ECHOCTL = 0x40 - ECHOE = 0x2 - ECHOK = 0x4 - ECHOKE = 0x1 - ECHONL = 0x10 - ECHOPRT = 0x20 - EMT_TAGOVF = 0x1 - EMUL_ENABLED = 0x1 - EMUL_NATIVE = 0x2 - ENDRUNDISC = 0x9 - ETHERMIN = 0x2e - ETHERMTU = 0x5dc - ETHERTYPE_8023 = 0x4 - ETHERTYPE_AARP = 0x80f3 - ETHERTYPE_ACCTON = 0x8390 - ETHERTYPE_AEONIC = 0x8036 - ETHERTYPE_ALPHA = 0x814a - ETHERTYPE_AMBER = 0x6008 - ETHERTYPE_AMOEBA = 0x8145 - ETHERTYPE_AOE = 0x88a2 - ETHERTYPE_APOLLO = 0x80f7 - ETHERTYPE_APOLLODOMAIN = 0x8019 - ETHERTYPE_APPLETALK = 0x809b - ETHERTYPE_APPLITEK = 0x80c7 - ETHERTYPE_ARGONAUT = 0x803a - ETHERTYPE_ARP = 0x806 - ETHERTYPE_AT = 0x809b - ETHERTYPE_ATALK = 0x809b - ETHERTYPE_ATOMIC = 0x86df - ETHERTYPE_ATT = 0x8069 - ETHERTYPE_ATTSTANFORD = 0x8008 - ETHERTYPE_AUTOPHON = 0x806a - ETHERTYPE_AXIS = 0x8856 - ETHERTYPE_BCLOOP = 0x9003 - ETHERTYPE_BOFL = 0x8102 - ETHERTYPE_CABLETRON = 0x7034 - ETHERTYPE_CHAOS = 0x804 - ETHERTYPE_COMDESIGN = 0x806c - ETHERTYPE_COMPUGRAPHIC = 0x806d - ETHERTYPE_COUNTERPOINT = 0x8062 - ETHERTYPE_CRONUS = 0x8004 - ETHERTYPE_CRONUSVLN = 0x8003 - ETHERTYPE_DCA = 0x1234 - ETHERTYPE_DDE = 0x807b - ETHERTYPE_DEBNI = 0xaaaa - ETHERTYPE_DECAM = 0x8048 - ETHERTYPE_DECCUST = 0x6006 - ETHERTYPE_DECDIAG = 0x6005 - ETHERTYPE_DECDNS = 0x803c - ETHERTYPE_DECDTS = 0x803e - ETHERTYPE_DECEXPER = 0x6000 - ETHERTYPE_DECLAST = 0x8041 - ETHERTYPE_DECLTM = 0x803f - ETHERTYPE_DECMUMPS = 0x6009 - ETHERTYPE_DECNETBIOS = 0x8040 - ETHERTYPE_DELTACON = 0x86de - ETHERTYPE_DIDDLE = 0x4321 - ETHERTYPE_DLOG1 = 0x660 - ETHERTYPE_DLOG2 = 0x661 - ETHERTYPE_DN = 0x6003 - ETHERTYPE_DOGFIGHT = 0x1989 - ETHERTYPE_DSMD = 0x8039 - ETHERTYPE_ECMA = 0x803 - ETHERTYPE_ENCRYPT = 0x803d - ETHERTYPE_ES = 0x805d - ETHERTYPE_EXCELAN = 0x8010 - ETHERTYPE_EXPERDATA = 0x8049 - ETHERTYPE_FLIP = 0x8146 - ETHERTYPE_FLOWCONTROL = 0x8808 - ETHERTYPE_FRARP = 0x808 - ETHERTYPE_GENDYN = 0x8068 - ETHERTYPE_HAYES = 0x8130 - ETHERTYPE_HIPPI_FP = 0x8180 - ETHERTYPE_HITACHI = 0x8820 - ETHERTYPE_HP = 0x8005 - ETHERTYPE_IEEEPUP = 0xa00 - ETHERTYPE_IEEEPUPAT = 0xa01 - ETHERTYPE_IMLBL = 0x4c42 - ETHERTYPE_IMLBLDIAG = 0x424c - ETHERTYPE_IP = 0x800 - ETHERTYPE_IPAS = 0x876c - ETHERTYPE_IPV6 = 0x86dd - ETHERTYPE_IPX = 0x8137 - ETHERTYPE_IPXNEW = 0x8037 - ETHERTYPE_KALPANA = 0x8582 - ETHERTYPE_LANBRIDGE = 0x8038 - ETHERTYPE_LANPROBE = 0x8888 - ETHERTYPE_LAT = 0x6004 - ETHERTYPE_LBACK = 0x9000 - ETHERTYPE_LITTLE = 0x8060 - ETHERTYPE_LLDP = 0x88cc - ETHERTYPE_LOGICRAFT = 0x8148 - ETHERTYPE_LOOPBACK = 0x9000 - ETHERTYPE_MATRA = 0x807a - ETHERTYPE_MAX = 0xffff - ETHERTYPE_MERIT = 0x807c - ETHERTYPE_MICP = 0x873a - ETHERTYPE_MOPDL = 0x6001 - ETHERTYPE_MOPRC = 0x6002 - ETHERTYPE_MOTOROLA = 0x818d - ETHERTYPE_MPLS = 0x8847 - ETHERTYPE_MPLS_MCAST = 0x8848 - ETHERTYPE_MUMPS = 0x813f - ETHERTYPE_NBPCC = 0x3c04 - ETHERTYPE_NBPCLAIM = 0x3c09 - ETHERTYPE_NBPCLREQ = 0x3c05 - ETHERTYPE_NBPCLRSP = 0x3c06 - ETHERTYPE_NBPCREQ = 0x3c02 - ETHERTYPE_NBPCRSP = 0x3c03 - ETHERTYPE_NBPDG = 0x3c07 - ETHERTYPE_NBPDGB = 0x3c08 - ETHERTYPE_NBPDLTE = 0x3c0a - ETHERTYPE_NBPRAR = 0x3c0c - ETHERTYPE_NBPRAS = 0x3c0b - ETHERTYPE_NBPRST = 0x3c0d - ETHERTYPE_NBPSCD = 0x3c01 - ETHERTYPE_NBPVCD = 0x3c00 - ETHERTYPE_NBS = 0x802 - ETHERTYPE_NCD = 0x8149 - ETHERTYPE_NESTAR = 0x8006 - ETHERTYPE_NETBEUI = 0x8191 - ETHERTYPE_NOVELL = 0x8138 - ETHERTYPE_NS = 0x600 - ETHERTYPE_NSAT = 0x601 - ETHERTYPE_NSCOMPAT = 0x807 - ETHERTYPE_NTRAILER = 0x10 - ETHERTYPE_OS9 = 0x7007 - ETHERTYPE_OS9NET = 0x7009 - ETHERTYPE_PACER = 0x80c6 - ETHERTYPE_PAE = 0x888e - ETHERTYPE_PCS = 0x4242 - ETHERTYPE_PLANNING = 0x8044 - ETHERTYPE_PPP = 0x880b - ETHERTYPE_PPPOE = 0x8864 - ETHERTYPE_PPPOEDISC = 0x8863 - ETHERTYPE_PRIMENTS = 0x7031 - ETHERTYPE_PUP = 0x200 - ETHERTYPE_PUPAT = 0x200 - ETHERTYPE_QINQ = 0x88a8 - ETHERTYPE_RACAL = 0x7030 - ETHERTYPE_RATIONAL = 0x8150 - ETHERTYPE_RAWFR = 0x6559 - ETHERTYPE_RCL = 0x1995 - ETHERTYPE_RDP = 0x8739 - ETHERTYPE_RETIX = 0x80f2 - ETHERTYPE_REVARP = 0x8035 - ETHERTYPE_SCA = 0x6007 - ETHERTYPE_SECTRA = 0x86db - ETHERTYPE_SECUREDATA = 0x876d - ETHERTYPE_SGITW = 0x817e - ETHERTYPE_SG_BOUNCE = 0x8016 - ETHERTYPE_SG_DIAG = 0x8013 - ETHERTYPE_SG_NETGAMES = 0x8014 - ETHERTYPE_SG_RESV = 0x8015 - ETHERTYPE_SIMNET = 0x5208 - ETHERTYPE_SLOW = 0x8809 - ETHERTYPE_SNA = 0x80d5 - ETHERTYPE_SNMP = 0x814c - ETHERTYPE_SONIX = 0xfaf5 - ETHERTYPE_SPIDER = 0x809f - ETHERTYPE_SPRITE = 0x500 - ETHERTYPE_STP = 0x8181 - ETHERTYPE_TALARIS = 0x812b - ETHERTYPE_TALARISMC = 0x852b - ETHERTYPE_TCPCOMP = 0x876b - ETHERTYPE_TCPSM = 0x9002 - ETHERTYPE_TEC = 0x814f - ETHERTYPE_TIGAN = 0x802f - ETHERTYPE_TRAIL = 0x1000 - ETHERTYPE_TRANSETHER = 0x6558 - ETHERTYPE_TYMSHARE = 0x802e - ETHERTYPE_UBBST = 0x7005 - ETHERTYPE_UBDEBUG = 0x900 - ETHERTYPE_UBDIAGLOOP = 0x7002 - ETHERTYPE_UBDL = 0x7000 - ETHERTYPE_UBNIU = 0x7001 - ETHERTYPE_UBNMC = 0x7003 - ETHERTYPE_VALID = 0x1600 - ETHERTYPE_VARIAN = 0x80dd - ETHERTYPE_VAXELN = 0x803b - ETHERTYPE_VEECO = 0x8067 - ETHERTYPE_VEXP = 0x805b - ETHERTYPE_VGLAB = 0x8131 - ETHERTYPE_VINES = 0xbad - ETHERTYPE_VINESECHO = 0xbaf - ETHERTYPE_VINESLOOP = 0xbae - ETHERTYPE_VITAL = 0xff00 - ETHERTYPE_VLAN = 0x8100 - ETHERTYPE_VLTLMAN = 0x8080 - ETHERTYPE_VPROD = 0x805c - ETHERTYPE_VURESERVED = 0x8147 - ETHERTYPE_WATERLOO = 0x8130 - ETHERTYPE_WELLFLEET = 0x8103 - ETHERTYPE_X25 = 0x805 - ETHERTYPE_X75 = 0x801 - ETHERTYPE_XNSSM = 0x9001 - ETHERTYPE_XTP = 0x817d - ETHER_ADDR_LEN = 0x6 - ETHER_ALIGN = 0x2 - ETHER_CRC_LEN = 0x4 - ETHER_CRC_POLY_BE = 0x4c11db6 - ETHER_CRC_POLY_LE = 0xedb88320 - ETHER_HDR_LEN = 0xe - ETHER_MAX_DIX_LEN = 0x600 - ETHER_MAX_LEN = 0x5ee - ETHER_MIN_LEN = 0x40 - ETHER_TYPE_LEN = 0x2 - ETHER_VLAN_ENCAP_LEN = 0x4 - EVFILT_AIO = -0x3 - EVFILT_PROC = -0x5 - EVFILT_READ = -0x1 - EVFILT_SIGNAL = -0x6 - EVFILT_SYSCOUNT = 0x7 - EVFILT_TIMER = -0x7 - EVFILT_VNODE = -0x4 - EVFILT_WRITE = -0x2 - EV_ADD = 0x1 - EV_CLEAR = 0x20 - EV_DELETE = 0x2 - EV_DISABLE = 0x8 - EV_ENABLE = 0x4 - EV_EOF = 0x8000 - EV_ERROR = 0x4000 - EV_FLAG1 = 0x2000 - EV_ONESHOT = 0x10 - EV_SYSFLAGS = 0xf000 - EXTA = 0x4b00 - EXTB = 0x9600 - EXTPROC = 0x800 - FD_CLOEXEC = 0x1 - FD_SETSIZE = 0x400 - FLUSHO = 0x800000 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0xa - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0x7 - F_GETOWN = 0x5 - F_RDLCK = 0x1 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x8 - F_SETLKW = 0x9 - F_SETOWN = 0x6 - F_UNLCK = 0x2 - F_WRLCK = 0x3 - HUPCL = 0x4000 - HW_MACHINE = 0x1 - ICANON = 0x100 - ICMP6_FILTER = 0x12 - ICRNL = 0x100 - IEXTEN = 0x400 - IFAN_ARRIVAL = 0x0 - IFAN_DEPARTURE = 0x1 - IFA_ROUTE = 0x1 - IFF_ALLMULTI = 0x200 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x8e52 - IFF_DEBUG = 0x4 - IFF_LINK0 = 0x1000 - IFF_LINK1 = 0x2000 - IFF_LINK2 = 0x4000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x8000 - IFF_NOARP = 0x80 - IFF_NOTRAILERS = 0x20 - IFF_OACTIVE = 0x400 - IFF_POINTOPOINT = 0x10 - IFF_PROMISC = 0x100 - IFF_RUNNING = 0x40 - IFF_SIMPLEX = 0x800 - IFF_UP = 0x1 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_A12MPPSWITCH = 0x82 - IFT_AAL2 = 0xbb - IFT_AAL5 = 0x31 - IFT_ADSL = 0x5e - IFT_AFLANE8023 = 0x3b - IFT_AFLANE8025 = 0x3c - IFT_ARAP = 0x58 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ASYNC = 0x54 - IFT_ATM = 0x25 - IFT_ATMDXI = 0x69 - IFT_ATMFUNI = 0x6a - IFT_ATMIMA = 0x6b - IFT_ATMLOGICAL = 0x50 - IFT_ATMRADIO = 0xbd - IFT_ATMSUBINTERFACE = 0x86 - IFT_ATMVCIENDPT = 0xc2 - IFT_ATMVIRTUAL = 0x95 - IFT_BGPPOLICYACCOUNTING = 0xa2 - IFT_BLUETOOTH = 0xf8 - IFT_BRIDGE = 0xd1 - IFT_BSC = 0x53 - IFT_CARP = 0xf7 - IFT_CCTEMUL = 0x3d - IFT_CEPT = 0x13 - IFT_CES = 0x85 - IFT_CHANNEL = 0x46 - IFT_CNR = 0x55 - IFT_COFFEE = 0x84 - IFT_COMPOSITELINK = 0x9b - IFT_DCN = 0x8d - IFT_DIGITALPOWERLINE = 0x8a - IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba - IFT_DLSW = 0x4a - IFT_DOCSCABLEDOWNSTREAM = 0x80 - IFT_DOCSCABLEMACLAYER = 0x7f - IFT_DOCSCABLEUPSTREAM = 0x81 - IFT_DOCSCABLEUPSTREAMCHANNEL = 0xcd - IFT_DS0 = 0x51 - IFT_DS0BUNDLE = 0x52 - IFT_DS1FDL = 0xaa - IFT_DS3 = 0x1e - IFT_DTM = 0x8c - IFT_DUMMY = 0xf1 - IFT_DVBASILN = 0xac - IFT_DVBASIOUT = 0xad - IFT_DVBRCCDOWNSTREAM = 0x93 - IFT_DVBRCCMACLAYER = 0x92 - IFT_DVBRCCUPSTREAM = 0x94 - IFT_ECONET = 0xce - IFT_ENC = 0xf4 - IFT_EON = 0x19 - IFT_EPLRS = 0x57 - IFT_ESCON = 0x49 - IFT_ETHER = 0x6 - IFT_FAITH = 0xf3 - IFT_FAST = 0x7d - IFT_FASTETHER = 0x3e - IFT_FASTETHERFX = 0x45 - IFT_FDDI = 0xf - IFT_FIBRECHANNEL = 0x38 - IFT_FRAMERELAYINTERCONNECT = 0x3a - IFT_FRAMERELAYMPI = 0x5c - IFT_FRDLCIENDPT = 0xc1 - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_FRF16MFRBUNDLE = 0xa3 - IFT_FRFORWARD = 0x9e - IFT_G703AT2MB = 0x43 - IFT_G703AT64K = 0x42 - IFT_GIF = 0xf0 - IFT_GIGABITETHERNET = 0x75 - IFT_GR303IDT = 0xb2 - IFT_GR303RDT = 0xb1 - IFT_H323GATEKEEPER = 0xa4 - IFT_H323PROXY = 0xa5 - IFT_HDH1822 = 0x3 - IFT_HDLC = 0x76 - IFT_HDSL2 = 0xa8 - IFT_HIPERLAN2 = 0xb7 - IFT_HIPPI = 0x2f - IFT_HIPPIINTERFACE = 0x39 - IFT_HOSTPAD = 0x5a - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IBM370PARCHAN = 0x48 - IFT_IDSL = 0x9a - IFT_IEEE1394 = 0x90 - IFT_IEEE80211 = 0x47 - IFT_IEEE80212 = 0x37 - IFT_IEEE8023ADLAG = 0xa1 - IFT_IFGSN = 0x91 - IFT_IMT = 0xbe - IFT_INFINIBAND = 0xc7 - IFT_INTERLEAVE = 0x7c - IFT_IP = 0x7e - IFT_IPFORWARD = 0x8e - IFT_IPOVERATM = 0x72 - IFT_IPOVERCDLC = 0x6d - IFT_IPOVERCLAW = 0x6e - IFT_IPSWITCH = 0x4e - IFT_ISDN = 0x3f - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISDNS = 0x4b - IFT_ISDNU = 0x4c - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88025CRFPINT = 0x62 - IFT_ISO88025DTR = 0x56 - IFT_ISO88025FIBER = 0x73 - IFT_ISO88026 = 0xa - IFT_ISUP = 0xb3 - IFT_L2VLAN = 0x87 - IFT_L3IPVLAN = 0x88 - IFT_L3IPXVLAN = 0x89 - IFT_LAPB = 0x10 - IFT_LAPD = 0x4d - IFT_LAPF = 0x77 - IFT_LINEGROUP = 0xd2 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MEDIAMAILOVERIP = 0x8b - IFT_MFSIGLINK = 0xa7 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_MPC = 0x71 - IFT_MPLS = 0xa6 - IFT_MPLSTUNNEL = 0x96 - IFT_MSDSL = 0x8f - IFT_MVL = 0xbf - IFT_MYRINET = 0x63 - IFT_NFAS = 0xaf - IFT_NSIP = 0x1b - IFT_OPTICALCHANNEL = 0xc3 - IFT_OPTICALTRANSPORT = 0xc4 - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PFLOG = 0xf5 - IFT_PFLOW = 0xf9 - IFT_PFSYNC = 0xf6 - IFT_PLC = 0xae - IFT_PON155 = 0xcf - IFT_PON622 = 0xd0 - IFT_POS = 0xab - IFT_PPP = 0x17 - IFT_PPPMULTILINKBUNDLE = 0x6c - IFT_PROPATM = 0xc5 - IFT_PROPBWAP2MP = 0xb8 - IFT_PROPCNLS = 0x59 - IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5 - IFT_PROPDOCSWIRELESSMACLAYER = 0xb4 - IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PROPWIRELESSP2P = 0x9d - IFT_PTPSERIAL = 0x16 - IFT_PVC = 0xf2 - IFT_Q2931 = 0xc9 - IFT_QLLC = 0x44 - IFT_RADIOMAC = 0xbc - IFT_RADSL = 0x5f - IFT_REACHDSL = 0xc0 - IFT_RFC1483 = 0x9f - IFT_RS232 = 0x21 - IFT_RSRB = 0x4f - IFT_SDLC = 0x11 - IFT_SDSL = 0x60 - IFT_SHDSL = 0xa9 - IFT_SIP = 0x1f - IFT_SIPSIG = 0xcc - IFT_SIPTG = 0xcb - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETOVERHEADCHANNEL = 0xb9 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_SRP = 0x97 - IFT_SS7SIGLINK = 0x9c - IFT_STACKTOSTACK = 0x6f - IFT_STARLAN = 0xb - IFT_T1 = 0x12 - IFT_TDLC = 0x74 - IFT_TELINK = 0xc8 - IFT_TERMPAD = 0x5b - IFT_TR008 = 0xb0 - IFT_TRANSPHDLC = 0x7b - IFT_TUNNEL = 0x83 - IFT_ULTRA = 0x1d - IFT_USB = 0xa0 - IFT_V11 = 0x40 - IFT_V35 = 0x2d - IFT_V36 = 0x41 - IFT_V37 = 0x78 - IFT_VDSL = 0x61 - IFT_VIRTUALIPADDRESS = 0x70 - IFT_VIRTUALTG = 0xca - IFT_VOICEDID = 0xd5 - IFT_VOICEEM = 0x64 - IFT_VOICEEMFGD = 0xd3 - IFT_VOICEENCAP = 0x67 - IFT_VOICEFGDEANA = 0xd4 - IFT_VOICEFXO = 0x65 - IFT_VOICEFXS = 0x66 - IFT_VOICEOVERATM = 0x98 - IFT_VOICEOVERCABLE = 0xc6 - IFT_VOICEOVERFRAMERELAY = 0x99 - IFT_VOICEOVERIP = 0x68 - IFT_X213 = 0x5d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25HUNTGROUP = 0x7a - IFT_X25MLP = 0x79 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_LOOPBACKNET = 0x7f - IN_RFC3021_HOST = 0x1 - IN_RFC3021_NET = 0xfffffffe - IN_RFC3021_NSHIFT = 0x1f - IPPROTO_AH = 0x33 - IPPROTO_CARP = 0x70 - IPPROTO_DIVERT = 0x102 - IPPROTO_DIVERT_INIT = 0x2 - IPPROTO_DIVERT_RESP = 0x1 - IPPROTO_DONE = 0x101 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x62 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_ETHERIP = 0x61 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_GRE = 0x2f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPCOMP = 0x6c - IPPROTO_IPIP = 0x4 - IPPROTO_IPV4 = 0x4 - IPPROTO_IPV6 = 0x29 - IPPROTO_MAX = 0x100 - IPPROTO_MAXID = 0x103 - IPPROTO_MOBILE = 0x37 - IPPROTO_MPLS = 0x89 - IPPROTO_NONE = 0x3b - IPPROTO_PFSYNC = 0xf0 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_TCP = 0x6 - IPPROTO_TP = 0x1d - IPPROTO_UDP = 0x11 - IPV6_AUTH_LEVEL = 0x35 - IPV6_AUTOFLOWLABEL = 0x3b - IPV6_CHECKSUM = 0x1a - IPV6_DEFAULT_MULTICAST_HOPS = 0x1 - IPV6_DEFAULT_MULTICAST_LOOP = 0x1 - IPV6_DEFHLIM = 0x40 - IPV6_DONTFRAG = 0x3e - IPV6_DSTOPTS = 0x32 - IPV6_ESP_NETWORK_LEVEL = 0x37 - IPV6_ESP_TRANS_LEVEL = 0x36 - IPV6_FAITH = 0x1d - IPV6_FLOWINFO_MASK = 0xffffff0f - IPV6_FLOWLABEL_MASK = 0xffff0f00 - IPV6_FRAGTTL = 0x78 - IPV6_HLIMDEC = 0x1 - IPV6_HOPLIMIT = 0x2f - IPV6_HOPOPTS = 0x31 - IPV6_IPCOMP_LEVEL = 0x3c - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - IPV6_MAXHLIM = 0xff - IPV6_MAXPACKET = 0xffff - IPV6_MMTU = 0x500 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_LOOP = 0xb - IPV6_NEXTHOP = 0x30 - IPV6_OPTIONS = 0x1 - IPV6_PATHMTU = 0x2c - IPV6_PIPEX = 0x3f - IPV6_PKTINFO = 0x2e - IPV6_PORTRANGE = 0xe - IPV6_PORTRANGE_DEFAULT = 0x0 - IPV6_PORTRANGE_HIGH = 0x1 - IPV6_PORTRANGE_LOW = 0x2 - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVDSTPORT = 0x40 - IPV6_RECVHOPLIMIT = 0x25 - IPV6_RECVHOPOPTS = 0x27 - IPV6_RECVPATHMTU = 0x2b - IPV6_RECVPKTINFO = 0x24 - IPV6_RECVRTHDR = 0x26 - IPV6_RECVTCLASS = 0x39 - IPV6_RTABLE = 0x1021 - IPV6_RTHDR = 0x33 - IPV6_RTHDRDSTOPTS = 0x23 - IPV6_RTHDR_LOOSE = 0x0 - IPV6_RTHDR_STRICT = 0x1 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SOCKOPT_RESERVED1 = 0x3 - IPV6_TCLASS = 0x3d - IPV6_UNICAST_HOPS = 0x4 - IPV6_USE_MIN_MTU = 0x2a - IPV6_V6ONLY = 0x1b - IPV6_VERSION = 0x60 - IPV6_VERSION_MASK = 0xf0 - IP_ADD_MEMBERSHIP = 0xc - IP_AUTH_LEVEL = 0x14 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DIVERTFL = 0x1022 - IP_DROP_MEMBERSHIP = 0xd - IP_ESP_NETWORK_LEVEL = 0x16 - IP_ESP_TRANS_LEVEL = 0x15 - IP_HDRINCL = 0x2 - IP_IPCOMP_LEVEL = 0x1d - IP_IPSECFLOWINFO = 0x24 - IP_IPSEC_LOCAL_AUTH = 0x1b - IP_IPSEC_LOCAL_CRED = 0x19 - IP_IPSEC_LOCAL_ID = 0x17 - IP_IPSEC_REMOTE_AUTH = 0x1c - IP_IPSEC_REMOTE_CRED = 0x1a - IP_IPSEC_REMOTE_ID = 0x18 - IP_MAXPACKET = 0xffff - IP_MAX_MEMBERSHIPS = 0xfff - IP_MF = 0x2000 - IP_MINTTL = 0x20 - IP_MIN_MEMBERSHIPS = 0xf - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_LOOP = 0xb - IP_MULTICAST_TTL = 0xa - IP_OFFMASK = 0x1fff - IP_OPTIONS = 0x1 - IP_PIPEX = 0x22 - IP_PORTRANGE = 0x13 - IP_PORTRANGE_DEFAULT = 0x0 - IP_PORTRANGE_HIGH = 0x1 - IP_PORTRANGE_LOW = 0x2 - IP_RECVDSTADDR = 0x7 - IP_RECVDSTPORT = 0x21 - IP_RECVIF = 0x1e - IP_RECVOPTS = 0x5 - IP_RECVRETOPTS = 0x6 - IP_RECVRTABLE = 0x23 - IP_RECVTTL = 0x1f - IP_RETOPTS = 0x8 - IP_RF = 0x8000 - IP_RTABLE = 0x1021 - IP_TOS = 0x3 - IP_TTL = 0x4 - ISIG = 0x80 - ISTRIP = 0x20 - IXANY = 0x800 - IXOFF = 0x400 - IXON = 0x200 - KERN_HOSTNAME = 0xa - KERN_OSRELEASE = 0x2 - KERN_OSTYPE = 0x1 - KERN_VERSION = 0x4 - LCNT_OVERLOAD_FLUSH = 0x6 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x6 - MADV_NORMAL = 0x0 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_SPACEAVAIL = 0x5 - MADV_WILLNEED = 0x3 - MAP_ANON = 0x1000 - MAP_ANONYMOUS = 0x1000 - MAP_COPY = 0x2 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_FLAGMASK = 0x3ff7 - MAP_HASSEMAPHORE = 0x0 - MAP_INHERIT = 0x0 - MAP_INHERIT_COPY = 0x1 - MAP_INHERIT_NONE = 0x2 - MAP_INHERIT_SHARE = 0x0 - MAP_INHERIT_ZERO = 0x3 - MAP_NOEXTEND = 0x0 - MAP_NORESERVE = 0x0 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x0 - MAP_SHARED = 0x1 - MAP_TRYFIXED = 0x0 - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_BCAST = 0x100 - MSG_CMSG_CLOEXEC = 0x800 - MSG_CTRUNC = 0x20 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_EOR = 0x8 - MSG_MCAST = 0x200 - MSG_NOSIGNAL = 0x400 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x10 - MSG_WAITALL = 0x40 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x4 - MS_SYNC = 0x2 - NAME_MAX = 0xff - NET_RT_DUMP = 0x1 - NET_RT_FLAGS = 0x2 - NET_RT_IFLIST = 0x3 - NET_RT_MAXID = 0x6 - NET_RT_STATS = 0x4 - NET_RT_TABLE = 0x5 - NOFLSH = 0x80000000 - NOTE_ATTRIB = 0x8 - NOTE_CHILD = 0x4 - NOTE_DELETE = 0x1 - NOTE_EOF = 0x2 - NOTE_EXEC = 0x20000000 - NOTE_EXIT = 0x80000000 - NOTE_EXTEND = 0x4 - NOTE_FORK = 0x40000000 - NOTE_LINK = 0x10 - NOTE_LOWAT = 0x1 - NOTE_PCTRLMASK = 0xf0000000 - NOTE_PDATAMASK = 0xfffff - NOTE_RENAME = 0x20 - NOTE_REVOKE = 0x40 - NOTE_TRACK = 0x1 - NOTE_TRACKERR = 0x2 - NOTE_TRUNCATE = 0x80 - NOTE_WRITE = 0x2 - OCRNL = 0x10 - ONLCR = 0x2 - ONLRET = 0x80 - ONOCR = 0x40 - ONOEOT = 0x8 - OPOST = 0x1 - O_ACCMODE = 0x3 - O_APPEND = 0x8 - O_ASYNC = 0x40 - O_CLOEXEC = 0x10000 - O_CREAT = 0x200 - O_DIRECTORY = 0x20000 - O_DSYNC = 0x80 - O_EXCL = 0x800 - O_EXLOCK = 0x20 - O_FSYNC = 0x80 - O_NDELAY = 0x4 - O_NOCTTY = 0x8000 - O_NOFOLLOW = 0x100 - O_NONBLOCK = 0x4 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x80 - O_SHLOCK = 0x10 - O_SYNC = 0x80 - O_TRUNC = 0x400 - O_WRONLY = 0x1 - PARENB = 0x1000 - PARMRK = 0x8 - PARODD = 0x2000 - PENDIN = 0x20000000 - PF_FLUSH = 0x1 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x8 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = 0x7fffffffffffffff - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_LABEL = 0xa - RTAX_MAX = 0xb - RTAX_NETMASK = 0x2 - RTAX_SRC = 0x8 - RTAX_SRCMASK = 0x9 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_LABEL = 0x400 - RTA_NETMASK = 0x4 - RTA_SRC = 0x100 - RTA_SRCMASK = 0x200 - RTF_ANNOUNCE = 0x4000 - RTF_BLACKHOLE = 0x1000 - RTF_BROADCAST = 0x400000 - RTF_CLONED = 0x10000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_FMASK = 0x70f808 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_LLINFO = 0x400 - RTF_LOCAL = 0x200000 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_MPATH = 0x40000 - RTF_MPLS = 0x100000 - RTF_PERMANENT_ARP = 0x2000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_PROTO3 = 0x2000 - RTF_REJECT = 0x8 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_USETRAILERS = 0x8000 - RTF_XRESOLVE = 0x200 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_DESYNC = 0x10 - RTM_GET = 0x4 - RTM_IFANNOUNCE = 0xf - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MAXSIZE = 0x800 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_RTTUNIT = 0xf4240 - RTM_VERSION = 0x5 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RT_TABLEID_MAX = 0xff - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - RUSAGE_THREAD = 0x1 - SCM_RIGHTS = 0x1 - SCM_TIMESTAMP = 0x4 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIOCADDMULTI = 0x80206931 - SIOCAIFADDR = 0x8040691a - SIOCAIFGROUP = 0x80246987 - SIOCALIFADDR = 0x8218691c - SIOCATMARK = 0x40047307 - SIOCBRDGADD = 0x8054693c - SIOCBRDGADDS = 0x80546941 - SIOCBRDGARL = 0x806e694d - SIOCBRDGDADDR = 0x81286947 - SIOCBRDGDEL = 0x8054693d - SIOCBRDGDELS = 0x80546942 - SIOCBRDGFLUSH = 0x80546948 - SIOCBRDGFRL = 0x806e694e - SIOCBRDGGCACHE = 0xc0146941 - SIOCBRDGGFD = 0xc0146952 - SIOCBRDGGHT = 0xc0146951 - SIOCBRDGGIFFLGS = 0xc054693e - SIOCBRDGGMA = 0xc0146953 - SIOCBRDGGPARAM = 0xc03c6958 - SIOCBRDGGPRI = 0xc0146950 - SIOCBRDGGRL = 0xc028694f - SIOCBRDGGSIFS = 0xc054693c - SIOCBRDGGTO = 0xc0146946 - SIOCBRDGIFS = 0xc0546942 - SIOCBRDGRTS = 0xc0186943 - SIOCBRDGSADDR = 0xc1286944 - SIOCBRDGSCACHE = 0x80146940 - SIOCBRDGSFD = 0x80146952 - SIOCBRDGSHT = 0x80146951 - SIOCBRDGSIFCOST = 0x80546955 - SIOCBRDGSIFFLGS = 0x8054693f - SIOCBRDGSIFPRIO = 0x80546954 - SIOCBRDGSMA = 0x80146953 - SIOCBRDGSPRI = 0x80146950 - SIOCBRDGSPROTO = 0x8014695a - SIOCBRDGSTO = 0x80146945 - SIOCBRDGSTXHC = 0x80146959 - SIOCDELMULTI = 0x80206932 - SIOCDIFADDR = 0x80206919 - SIOCDIFGROUP = 0x80246989 - SIOCDIFPHYADDR = 0x80206949 - SIOCDLIFADDR = 0x8218691e - SIOCGETKALIVE = 0xc01869a4 - SIOCGETLABEL = 0x8020699a - SIOCGETPFLOW = 0xc02069fe - SIOCGETPFSYNC = 0xc02069f8 - SIOCGETSGCNT = 0xc0147534 - SIOCGETVIFCNT = 0xc0147533 - SIOCGETVLAN = 0xc0206990 - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = 0xc0206921 - SIOCGIFASYNCMAP = 0xc020697c - SIOCGIFBRDADDR = 0xc0206923 - SIOCGIFCONF = 0xc0086924 - SIOCGIFDATA = 0xc020691b - SIOCGIFDESCR = 0xc0206981 - SIOCGIFDSTADDR = 0xc0206922 - SIOCGIFFLAGS = 0xc0206911 - SIOCGIFGATTR = 0xc024698b - SIOCGIFGENERIC = 0xc020693a - SIOCGIFGMEMB = 0xc024698a - SIOCGIFGROUP = 0xc0246988 - SIOCGIFHARDMTU = 0xc02069a5 - SIOCGIFMEDIA = 0xc0286936 - SIOCGIFMETRIC = 0xc0206917 - SIOCGIFMTU = 0xc020697e - SIOCGIFNETMASK = 0xc0206925 - SIOCGIFPDSTADDR = 0xc0206948 - SIOCGIFPRIORITY = 0xc020699c - SIOCGIFPSRCADDR = 0xc0206947 - SIOCGIFRDOMAIN = 0xc02069a0 - SIOCGIFRTLABEL = 0xc0206983 - SIOCGIFRXR = 0x802069aa - SIOCGIFTIMESLOT = 0xc0206986 - SIOCGIFXFLAGS = 0xc020699e - SIOCGLIFADDR = 0xc218691d - SIOCGLIFPHYADDR = 0xc218694b - SIOCGLIFPHYRTABLE = 0xc02069a2 - SIOCGLIFPHYTTL = 0xc02069a9 - SIOCGLOWAT = 0x40047303 - SIOCGPGRP = 0x40047309 - SIOCGSPPPPARAMS = 0xc0206994 - SIOCGVH = 0xc02069f6 - SIOCGVNETID = 0xc02069a7 - SIOCIFCREATE = 0x8020697a - SIOCIFDESTROY = 0x80206979 - SIOCIFGCLONERS = 0xc00c6978 - SIOCSETKALIVE = 0x801869a3 - SIOCSETLABEL = 0x80206999 - SIOCSETPFLOW = 0x802069fd - SIOCSETPFSYNC = 0x802069f7 - SIOCSETVLAN = 0x8020698f - SIOCSHIWAT = 0x80047300 - SIOCSIFADDR = 0x8020690c - SIOCSIFASYNCMAP = 0x8020697d - SIOCSIFBRDADDR = 0x80206913 - SIOCSIFDESCR = 0x80206980 - SIOCSIFDSTADDR = 0x8020690e - SIOCSIFFLAGS = 0x80206910 - SIOCSIFGATTR = 0x8024698c - SIOCSIFGENERIC = 0x80206939 - SIOCSIFLLADDR = 0x8020691f - SIOCSIFMEDIA = 0xc0206935 - SIOCSIFMETRIC = 0x80206918 - SIOCSIFMTU = 0x8020697f - SIOCSIFNETMASK = 0x80206916 - SIOCSIFPHYADDR = 0x80406946 - SIOCSIFPRIORITY = 0x8020699b - SIOCSIFRDOMAIN = 0x8020699f - SIOCSIFRTLABEL = 0x80206982 - SIOCSIFTIMESLOT = 0x80206985 - SIOCSIFXFLAGS = 0x8020699d - SIOCSLIFPHYADDR = 0x8218694a - SIOCSLIFPHYRTABLE = 0x802069a1 - SIOCSLIFPHYTTL = 0x802069a8 - SIOCSLOWAT = 0x80047302 - SIOCSPGRP = 0x80047308 - SIOCSSPPPPARAMS = 0x80206993 - SIOCSVH = 0xc02069f5 - SIOCSVNETID = 0x802069a6 - SOCK_CLOEXEC = 0x8000 - SOCK_DGRAM = 0x2 - SOCK_NONBLOCK = 0x4000 - SOCK_RAW = 0x3 - SOCK_RDM = 0x4 - SOCK_SEQPACKET = 0x5 - SOCK_STREAM = 0x1 - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_BINDANY = 0x1000 - SO_BROADCAST = 0x20 - SO_DEBUG = 0x1 - SO_DONTROUTE = 0x10 - SO_ERROR = 0x1007 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_NETPROC = 0x1020 - SO_OOBINLINE = 0x100 - SO_PEERCRED = 0x1022 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVTIMEO = 0x1006 - SO_REUSEADDR = 0x4 - SO_REUSEPORT = 0x200 - SO_RTABLE = 0x1021 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_SPLICE = 0x1023 - SO_TIMESTAMP = 0x800 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - TCIFLUSH = 0x1 - TCIOFLUSH = 0x3 - TCOFLUSH = 0x2 - TCP_MAXBURST = 0x4 - TCP_MAXSEG = 0x2 - TCP_MAXWIN = 0xffff - TCP_MAX_SACK = 0x3 - TCP_MAX_WINSHIFT = 0xe - TCP_MD5SIG = 0x4 - TCP_MSS = 0x200 - TCP_NODELAY = 0x1 - TCP_NOPUSH = 0x10 - TCP_NSTATES = 0xb - TCP_SACK_ENABLE = 0x8 - TCSAFLUSH = 0x2 - TIOCCBRK = 0x2000747a - TIOCCDTR = 0x20007478 - TIOCCONS = 0x80047462 - TIOCDRAIN = 0x2000745e - TIOCEXCL = 0x2000740d - TIOCEXT = 0x80047460 - TIOCFLAG_CLOCAL = 0x2 - TIOCFLAG_CRTSCTS = 0x4 - TIOCFLAG_MDMBUF = 0x8 - TIOCFLAG_PPS = 0x10 - TIOCFLAG_SOFTCAR = 0x1 - TIOCFLUSH = 0x80047410 - TIOCGETA = 0x402c7413 - TIOCGETD = 0x4004741a - TIOCGFLAGS = 0x4004745d - TIOCGPGRP = 0x40047477 - TIOCGSID = 0x40047463 - TIOCGTSTAMP = 0x400c745b - TIOCGWINSZ = 0x40087468 - TIOCMBIC = 0x8004746b - TIOCMBIS = 0x8004746c - TIOCMGET = 0x4004746a - TIOCMODG = 0x4004746a - TIOCMODS = 0x8004746d - TIOCMSET = 0x8004746d - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x20007471 - TIOCNXCL = 0x2000740e - TIOCOUTQ = 0x40047473 - TIOCPKT = 0x80047470 - TIOCPKT_DATA = 0x0 - TIOCPKT_DOSTOP = 0x20 - TIOCPKT_FLUSHREAD = 0x1 - TIOCPKT_FLUSHWRITE = 0x2 - TIOCPKT_IOCTL = 0x40 - TIOCPKT_NOSTOP = 0x10 - TIOCPKT_START = 0x8 - TIOCPKT_STOP = 0x4 - TIOCREMOTE = 0x80047469 - TIOCSBRK = 0x2000747b - TIOCSCTTY = 0x20007461 - TIOCSDTR = 0x20007479 - TIOCSETA = 0x802c7414 - TIOCSETAF = 0x802c7416 - TIOCSETAW = 0x802c7415 - TIOCSETD = 0x8004741b - TIOCSFLAGS = 0x8004745c - TIOCSIG = 0x8004745f - TIOCSPGRP = 0x80047476 - TIOCSTART = 0x2000746e - TIOCSTAT = 0x80047465 - TIOCSTI = 0x80017472 - TIOCSTOP = 0x2000746f - TIOCSTSTAMP = 0x8008745a - TIOCSWINSZ = 0x80087467 - TIOCUCNTL = 0x80047466 - TOSTOP = 0x400000 - VDISCARD = 0xf - VDSUSP = 0xb - VEOF = 0x0 - VEOL = 0x1 - VEOL2 = 0x2 - VERASE = 0x3 - VINTR = 0x8 - VKILL = 0x5 - VLNEXT = 0xe - VMIN = 0x10 - VQUIT = 0x9 - VREPRINT = 0x6 - VSTART = 0xc - VSTATUS = 0x12 - VSTOP = 0xd - VSUSP = 0xa - VTIME = 0x11 - VWERASE = 0x4 - WALTSIG = 0x4 - WCONTINUED = 0x8 - WCOREFLAG = 0x80 - WNOHANG = 0x1 - WUNTRACED = 0x2 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x30) - EADDRNOTAVAIL = syscall.Errno(0x31) - EAFNOSUPPORT = syscall.Errno(0x2f) - EAGAIN = syscall.Errno(0x23) - EALREADY = syscall.Errno(0x25) - EAUTH = syscall.Errno(0x50) - EBADF = syscall.Errno(0x9) - EBADRPC = syscall.Errno(0x48) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x58) - ECHILD = syscall.Errno(0xa) - ECONNABORTED = syscall.Errno(0x35) - ECONNREFUSED = syscall.Errno(0x3d) - ECONNRESET = syscall.Errno(0x36) - EDEADLK = syscall.Errno(0xb) - EDESTADDRREQ = syscall.Errno(0x27) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x45) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EFTYPE = syscall.Errno(0x4f) - EHOSTDOWN = syscall.Errno(0x40) - EHOSTUNREACH = syscall.Errno(0x41) - EIDRM = syscall.Errno(0x59) - EILSEQ = syscall.Errno(0x54) - EINPROGRESS = syscall.Errno(0x24) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EIPSEC = syscall.Errno(0x52) - EISCONN = syscall.Errno(0x38) - EISDIR = syscall.Errno(0x15) - ELAST = syscall.Errno(0x5b) - ELOOP = syscall.Errno(0x3e) - EMEDIUMTYPE = syscall.Errno(0x56) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x28) - ENAMETOOLONG = syscall.Errno(0x3f) - ENEEDAUTH = syscall.Errno(0x51) - ENETDOWN = syscall.Errno(0x32) - ENETRESET = syscall.Errno(0x34) - ENETUNREACH = syscall.Errno(0x33) - ENFILE = syscall.Errno(0x17) - ENOATTR = syscall.Errno(0x53) - ENOBUFS = syscall.Errno(0x37) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x4d) - ENOMEDIUM = syscall.Errno(0x55) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x5a) - ENOPROTOOPT = syscall.Errno(0x2a) - ENOSPC = syscall.Errno(0x1c) - ENOSYS = syscall.Errno(0x4e) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x39) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x42) - ENOTSOCK = syscall.Errno(0x26) - ENOTSUP = syscall.Errno(0x5b) - ENOTTY = syscall.Errno(0x19) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x2d) - EOVERFLOW = syscall.Errno(0x57) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x2e) - EPIPE = syscall.Errno(0x20) - EPROCLIM = syscall.Errno(0x43) - EPROCUNAVAIL = syscall.Errno(0x4c) - EPROGMISMATCH = syscall.Errno(0x4b) - EPROGUNAVAIL = syscall.Errno(0x4a) - EPROTONOSUPPORT = syscall.Errno(0x2b) - EPROTOTYPE = syscall.Errno(0x29) - ERANGE = syscall.Errno(0x22) - EREMOTE = syscall.Errno(0x47) - EROFS = syscall.Errno(0x1e) - ERPCMISMATCH = syscall.Errno(0x49) - ESHUTDOWN = syscall.Errno(0x3a) - ESOCKTNOSUPPORT = syscall.Errno(0x2c) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESTALE = syscall.Errno(0x46) - ETIMEDOUT = syscall.Errno(0x3c) - ETOOMANYREFS = syscall.Errno(0x3b) - ETXTBSY = syscall.Errno(0x1a) - EUSERS = syscall.Errno(0x44) - EWOULDBLOCK = syscall.Errno(0x23) - EXDEV = syscall.Errno(0x12) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCHLD = syscall.Signal(0x14) - SIGCONT = syscall.Signal(0x13) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x1d) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x17) - SIGIOT = syscall.Signal(0x6) - SIGKILL = syscall.Signal(0x9) - SIGPIPE = syscall.Signal(0xd) - SIGPROF = syscall.Signal(0x1b) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x11) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHR = syscall.Signal(0x20) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x12) - SIGTTIN = syscall.Signal(0x15) - SIGTTOU = syscall.Signal(0x16) - SIGURG = syscall.Signal(0x10) - SIGUSR1 = syscall.Signal(0x1e) - SIGUSR2 = syscall.Signal(0x1f) - SIGVTALRM = syscall.Signal(0x1a) - SIGWINCH = syscall.Signal(0x1c) - SIGXCPU = syscall.Signal(0x18) - SIGXFSZ = syscall.Signal(0x19) -) - -// Error table -var errors = [...]string{ - 1: "operation not permitted", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "input/output error", - 6: "device not configured", - 7: "argument list too long", - 8: "exec format error", - 9: "bad file descriptor", - 10: "no child processes", - 11: "resource deadlock avoided", - 12: "cannot allocate memory", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "operation not supported by device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "too many open files in system", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "numerical argument out of domain", - 34: "result too large", - 35: "resource temporarily unavailable", - 36: "operation now in progress", - 37: "operation already in progress", - 38: "socket operation on non-socket", - 39: "destination address required", - 40: "message too long", - 41: "protocol wrong type for socket", - 42: "protocol not available", - 43: "protocol not supported", - 44: "socket type not supported", - 45: "operation not supported", - 46: "protocol family not supported", - 47: "address family not supported by protocol family", - 48: "address already in use", - 49: "can't assign requested address", - 50: "network is down", - 51: "network is unreachable", - 52: "network dropped connection on reset", - 53: "software caused connection abort", - 54: "connection reset by peer", - 55: "no buffer space available", - 56: "socket is already connected", - 57: "socket is not connected", - 58: "can't send after socket shutdown", - 59: "too many references: can't splice", - 60: "connection timed out", - 61: "connection refused", - 62: "too many levels of symbolic links", - 63: "file name too long", - 64: "host is down", - 65: "no route to host", - 66: "directory not empty", - 67: "too many processes", - 68: "too many users", - 69: "disc quota exceeded", - 70: "stale NFS file handle", - 71: "too many levels of remote in path", - 72: "RPC struct is bad", - 73: "RPC version wrong", - 74: "RPC prog. not avail", - 75: "program version wrong", - 76: "bad procedure for program", - 77: "no locks available", - 78: "function not implemented", - 79: "inappropriate file type or format", - 80: "authentication error", - 81: "need authenticator", - 82: "IPsec processing failure", - 83: "attribute not found", - 84: "illegal byte sequence", - 85: "no medium found", - 86: "wrong medium type", - 87: "value too large to be stored in data type", - 88: "operation canceled", - 89: "identifier removed", - 90: "no message of desired type", - 91: "not supported", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/BPT trap", - 6: "abort trap", - 7: "EMT trap", - 8: "floating point exception", - 9: "killed", - 10: "bus error", - 11: "segmentation fault", - 12: "bad system call", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", - 16: "urgent I/O condition", - 17: "stopped (signal)", - 18: "stopped", - 19: "continued", - 20: "child exited", - 21: "stopped (tty input)", - 22: "stopped (tty output)", - 23: "I/O possible", - 24: "cputime limit exceeded", - 25: "filesize limit exceeded", - 26: "virtual timer expired", - 27: "profiling timer expired", - 28: "window size changes", - 29: "information request", - 30: "user defined signal 1", - 31: "user defined signal 2", - 32: "thread AST", -} diff --git a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go deleted file mode 100644 index 09eedb0..0000000 --- a/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +++ /dev/null @@ -1,1489 +0,0 @@ -// mkerrors.sh -m64 -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,solaris - -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs -- -m64 _const.go - -package unix - -import "syscall" - -const ( - AF_802 = 0x12 - AF_APPLETALK = 0x10 - AF_CCITT = 0xa - AF_CHAOS = 0x5 - AF_DATAKIT = 0x9 - AF_DECnet = 0xc - AF_DLI = 0xd - AF_ECMA = 0x8 - AF_FILE = 0x1 - AF_GOSIP = 0x16 - AF_HYLINK = 0xf - AF_IMPLINK = 0x3 - AF_INET = 0x2 - AF_INET6 = 0x1a - AF_INET_OFFLOAD = 0x1e - AF_IPX = 0x17 - AF_KEY = 0x1b - AF_LAT = 0xe - AF_LINK = 0x19 - AF_LOCAL = 0x1 - AF_MAX = 0x20 - AF_NBS = 0x7 - AF_NCA = 0x1c - AF_NIT = 0x11 - AF_NS = 0x6 - AF_OSI = 0x13 - AF_OSINET = 0x15 - AF_PACKET = 0x20 - AF_POLICY = 0x1d - AF_PUP = 0x4 - AF_ROUTE = 0x18 - AF_SNA = 0xb - AF_TRILL = 0x1f - AF_UNIX = 0x1 - AF_UNSPEC = 0x0 - AF_X25 = 0x14 - ARPHRD_ARCNET = 0x7 - ARPHRD_ATM = 0x10 - ARPHRD_AX25 = 0x3 - ARPHRD_CHAOS = 0x5 - ARPHRD_EETHER = 0x2 - ARPHRD_ETHER = 0x1 - ARPHRD_FC = 0x12 - ARPHRD_FRAME = 0xf - ARPHRD_HDLC = 0x11 - ARPHRD_IB = 0x20 - ARPHRD_IEEE802 = 0x6 - ARPHRD_IPATM = 0x13 - ARPHRD_METRICOM = 0x17 - ARPHRD_TUNNEL = 0x1f - B0 = 0x0 - B110 = 0x3 - B115200 = 0x12 - B1200 = 0x9 - B134 = 0x4 - B150 = 0x5 - B153600 = 0x13 - B1800 = 0xa - B19200 = 0xe - B200 = 0x6 - B230400 = 0x14 - B2400 = 0xb - B300 = 0x7 - B307200 = 0x15 - B38400 = 0xf - B460800 = 0x16 - B4800 = 0xc - B50 = 0x1 - B57600 = 0x10 - B600 = 0x8 - B75 = 0x2 - B76800 = 0x11 - B921600 = 0x17 - B9600 = 0xd - BIOCFLUSH = 0x20004268 - BIOCGBLEN = 0x40044266 - BIOCGDLT = 0x4004426a - BIOCGDLTLIST = -0x3fefbd89 - BIOCGDLTLIST32 = -0x3ff7bd89 - BIOCGETIF = 0x4020426b - BIOCGETLIF = 0x4078426b - BIOCGHDRCMPLT = 0x40044274 - BIOCGRTIMEOUT = 0x4010427b - BIOCGRTIMEOUT32 = 0x4008427b - BIOCGSEESENT = 0x40044278 - BIOCGSTATS = 0x4080426f - BIOCGSTATSOLD = 0x4008426f - BIOCIMMEDIATE = -0x7ffbbd90 - BIOCPROMISC = 0x20004269 - BIOCSBLEN = -0x3ffbbd9a - BIOCSDLT = -0x7ffbbd8a - BIOCSETF = -0x7fefbd99 - BIOCSETF32 = -0x7ff7bd99 - BIOCSETIF = -0x7fdfbd94 - BIOCSETLIF = -0x7f87bd94 - BIOCSHDRCMPLT = -0x7ffbbd8b - BIOCSRTIMEOUT = -0x7fefbd86 - BIOCSRTIMEOUT32 = -0x7ff7bd86 - BIOCSSEESENT = -0x7ffbbd87 - BIOCSTCPF = -0x7fefbd8e - BIOCSUDPF = -0x7fefbd8d - BIOCVERSION = 0x40044271 - BPF_A = 0x10 - BPF_ABS = 0x20 - BPF_ADD = 0x0 - BPF_ALIGNMENT = 0x4 - BPF_ALU = 0x4 - BPF_AND = 0x50 - BPF_B = 0x10 - BPF_DFLTBUFSIZE = 0x100000 - BPF_DIV = 0x30 - BPF_H = 0x8 - BPF_IMM = 0x0 - BPF_IND = 0x40 - BPF_JA = 0x0 - BPF_JEQ = 0x10 - BPF_JGE = 0x30 - BPF_JGT = 0x20 - BPF_JMP = 0x5 - BPF_JSET = 0x40 - BPF_K = 0x0 - BPF_LD = 0x0 - BPF_LDX = 0x1 - BPF_LEN = 0x80 - BPF_LSH = 0x60 - BPF_MAJOR_VERSION = 0x1 - BPF_MAXBUFSIZE = 0x1000000 - BPF_MAXINSNS = 0x200 - BPF_MEM = 0x60 - BPF_MEMWORDS = 0x10 - BPF_MINBUFSIZE = 0x20 - BPF_MINOR_VERSION = 0x1 - BPF_MISC = 0x7 - BPF_MSH = 0xa0 - BPF_MUL = 0x20 - BPF_NEG = 0x80 - BPF_OR = 0x40 - BPF_RELEASE = 0x30bb6 - BPF_RET = 0x6 - BPF_RSH = 0x70 - BPF_ST = 0x2 - BPF_STX = 0x3 - BPF_SUB = 0x10 - BPF_TAX = 0x0 - BPF_TXA = 0x80 - BPF_W = 0x0 - BPF_X = 0x8 - BRKINT = 0x2 - BS0 = 0x0 - BS1 = 0x2000 - BSDLY = 0x2000 - CBAUD = 0xf - CFLUSH = 0xf - CIBAUD = 0xf0000 - CLOCAL = 0x800 - CLOCK_HIGHRES = 0x4 - CLOCK_LEVEL = 0xa - CLOCK_MONOTONIC = 0x4 - CLOCK_PROCESS_CPUTIME_ID = 0x5 - CLOCK_PROF = 0x2 - CLOCK_REALTIME = 0x3 - CLOCK_THREAD_CPUTIME_ID = 0x2 - CLOCK_VIRTUAL = 0x1 - CR0 = 0x0 - CR1 = 0x200 - CR2 = 0x400 - CR3 = 0x600 - CRDLY = 0x600 - CREAD = 0x80 - CRTSCTS = 0x80000000 - CS5 = 0x0 - CS6 = 0x10 - CS7 = 0x20 - CS8 = 0x30 - CSIZE = 0x30 - CSTART = 0x11 - CSTATUS = 0x14 - CSTOP = 0x13 - CSTOPB = 0x40 - CSUSP = 0x1a - CSWTCH = 0x1a - DLT_AIRONET_HEADER = 0x78 - DLT_APPLE_IP_OVER_IEEE1394 = 0x8a - DLT_ARCNET = 0x7 - DLT_ARCNET_LINUX = 0x81 - DLT_ATM_CLIP = 0x13 - DLT_ATM_RFC1483 = 0xb - DLT_AURORA = 0x7e - DLT_AX25 = 0x3 - DLT_BACNET_MS_TP = 0xa5 - DLT_CHAOS = 0x5 - DLT_CISCO_IOS = 0x76 - DLT_C_HDLC = 0x68 - DLT_DOCSIS = 0x8f - DLT_ECONET = 0x73 - DLT_EN10MB = 0x1 - DLT_EN3MB = 0x2 - DLT_ENC = 0x6d - DLT_ERF_ETH = 0xaf - DLT_ERF_POS = 0xb0 - DLT_FDDI = 0xa - DLT_FRELAY = 0x6b - DLT_GCOM_SERIAL = 0xad - DLT_GCOM_T1E1 = 0xac - DLT_GPF_F = 0xab - DLT_GPF_T = 0xaa - DLT_GPRS_LLC = 0xa9 - DLT_HDLC = 0x10 - DLT_HHDLC = 0x79 - DLT_HIPPI = 0xf - DLT_IBM_SN = 0x92 - DLT_IBM_SP = 0x91 - DLT_IEEE802 = 0x6 - DLT_IEEE802_11 = 0x69 - DLT_IEEE802_11_RADIO = 0x7f - DLT_IEEE802_11_RADIO_AVS = 0xa3 - DLT_IPNET = 0xe2 - DLT_IPOIB = 0xa2 - DLT_IP_OVER_FC = 0x7a - DLT_JUNIPER_ATM1 = 0x89 - DLT_JUNIPER_ATM2 = 0x87 - DLT_JUNIPER_CHDLC = 0xb5 - DLT_JUNIPER_ES = 0x84 - DLT_JUNIPER_ETHER = 0xb2 - DLT_JUNIPER_FRELAY = 0xb4 - DLT_JUNIPER_GGSN = 0x85 - DLT_JUNIPER_MFR = 0x86 - DLT_JUNIPER_MLFR = 0x83 - DLT_JUNIPER_MLPPP = 0x82 - DLT_JUNIPER_MONITOR = 0xa4 - DLT_JUNIPER_PIC_PEER = 0xae - DLT_JUNIPER_PPP = 0xb3 - DLT_JUNIPER_PPPOE = 0xa7 - DLT_JUNIPER_PPPOE_ATM = 0xa8 - DLT_JUNIPER_SERVICES = 0x88 - DLT_LINUX_IRDA = 0x90 - DLT_LINUX_LAPD = 0xb1 - DLT_LINUX_SLL = 0x71 - DLT_LOOP = 0x6c - DLT_LTALK = 0x72 - DLT_MTP2 = 0x8c - DLT_MTP2_WITH_PHDR = 0x8b - DLT_MTP3 = 0x8d - DLT_NULL = 0x0 - DLT_PCI_EXP = 0x7d - DLT_PFLOG = 0x75 - DLT_PFSYNC = 0x12 - DLT_PPP = 0x9 - DLT_PPP_BSDOS = 0xe - DLT_PPP_PPPD = 0xa6 - DLT_PRISM_HEADER = 0x77 - DLT_PRONET = 0x4 - DLT_RAW = 0xc - DLT_RAWAF_MASK = 0x2240000 - DLT_RIO = 0x7c - DLT_SCCP = 0x8e - DLT_SLIP = 0x8 - DLT_SLIP_BSDOS = 0xd - DLT_SUNATM = 0x7b - DLT_SYMANTEC_FIREWALL = 0x63 - DLT_TZSP = 0x80 - ECHO = 0x8 - ECHOCTL = 0x200 - ECHOE = 0x10 - ECHOK = 0x20 - ECHOKE = 0x800 - ECHONL = 0x40 - ECHOPRT = 0x400 - EMPTY_SET = 0x0 - EMT_CPCOVF = 0x1 - EQUALITY_CHECK = 0x0 - EXTA = 0xe - EXTB = 0xf - FD_CLOEXEC = 0x1 - FD_NFDBITS = 0x40 - FD_SETSIZE = 0x10000 - FF0 = 0x0 - FF1 = 0x8000 - FFDLY = 0x8000 - FLUSHALL = 0x1 - FLUSHDATA = 0x0 - FLUSHO = 0x2000 - F_ALLOCSP = 0xa - F_ALLOCSP64 = 0xa - F_BADFD = 0x2e - F_BLKSIZE = 0x13 - F_BLOCKS = 0x12 - F_CHKFL = 0x8 - F_COMPAT = 0x8 - F_DUP2FD = 0x9 - F_DUP2FD_CLOEXEC = 0x24 - F_DUPFD = 0x0 - F_DUPFD_CLOEXEC = 0x25 - F_FLOCK = 0x35 - F_FLOCK64 = 0x35 - F_FLOCKW = 0x36 - F_FLOCKW64 = 0x36 - F_FREESP = 0xb - F_FREESP64 = 0xb - F_GETFD = 0x1 - F_GETFL = 0x3 - F_GETLK = 0xe - F_GETLK64 = 0xe - F_GETOWN = 0x17 - F_GETXFL = 0x2d - F_HASREMOTELOCKS = 0x1a - F_ISSTREAM = 0xd - F_MANDDNY = 0x10 - F_MDACC = 0x20 - F_NODNY = 0x0 - F_NPRIV = 0x10 - F_OFD_GETLK = 0x2f - F_OFD_GETLK64 = 0x2f - F_OFD_SETLK = 0x30 - F_OFD_SETLK64 = 0x30 - F_OFD_SETLKW = 0x31 - F_OFD_SETLKW64 = 0x31 - F_PRIV = 0xf - F_QUOTACTL = 0x11 - F_RDACC = 0x1 - F_RDDNY = 0x1 - F_RDLCK = 0x1 - F_REVOKE = 0x19 - F_RMACC = 0x4 - F_RMDNY = 0x4 - F_RWACC = 0x3 - F_RWDNY = 0x3 - F_SETFD = 0x2 - F_SETFL = 0x4 - F_SETLK = 0x6 - F_SETLK64 = 0x6 - F_SETLK64_NBMAND = 0x2a - F_SETLKW = 0x7 - F_SETLKW64 = 0x7 - F_SETLK_NBMAND = 0x2a - F_SETOWN = 0x18 - F_SHARE = 0x28 - F_SHARE_NBMAND = 0x2b - F_UNLCK = 0x3 - F_UNLKSYS = 0x4 - F_UNSHARE = 0x29 - F_WRACC = 0x2 - F_WRDNY = 0x2 - F_WRLCK = 0x2 - HUPCL = 0x400 - IBSHIFT = 0x10 - ICANON = 0x2 - ICRNL = 0x100 - IEXTEN = 0x8000 - IFF_ADDRCONF = 0x80000 - IFF_ALLMULTI = 0x200 - IFF_ANYCAST = 0x400000 - IFF_BROADCAST = 0x2 - IFF_CANTCHANGE = 0x7f203003b5a - IFF_COS_ENABLED = 0x200000000 - IFF_DEBUG = 0x4 - IFF_DEPRECATED = 0x40000 - IFF_DHCPRUNNING = 0x4000 - IFF_DUPLICATE = 0x4000000000 - IFF_FAILED = 0x10000000 - IFF_FIXEDMTU = 0x1000000000 - IFF_INACTIVE = 0x40000000 - IFF_INTELLIGENT = 0x400 - IFF_IPMP = 0x8000000000 - IFF_IPMP_CANTCHANGE = 0x10000000 - IFF_IPMP_INVALID = 0x1ec200080 - IFF_IPV4 = 0x1000000 - IFF_IPV6 = 0x2000000 - IFF_L3PROTECT = 0x40000000000 - IFF_LOOPBACK = 0x8 - IFF_MULTICAST = 0x800 - IFF_MULTI_BCAST = 0x1000 - IFF_NOACCEPT = 0x4000000 - IFF_NOARP = 0x80 - IFF_NOFAILOVER = 0x8000000 - IFF_NOLINKLOCAL = 0x20000000000 - IFF_NOLOCAL = 0x20000 - IFF_NONUD = 0x200000 - IFF_NORTEXCH = 0x800000 - IFF_NOTRAILERS = 0x20 - IFF_NOXMIT = 0x10000 - IFF_OFFLINE = 0x80000000 - IFF_POINTOPOINT = 0x10 - IFF_PREFERRED = 0x400000000 - IFF_PRIVATE = 0x8000 - IFF_PROMISC = 0x100 - IFF_ROUTER = 0x100000 - IFF_RUNNING = 0x40 - IFF_STANDBY = 0x20000000 - IFF_TEMPORARY = 0x800000000 - IFF_UNNUMBERED = 0x2000 - IFF_UP = 0x1 - IFF_VIRTUAL = 0x2000000000 - IFF_VRRP = 0x10000000000 - IFF_XRESOLV = 0x100000000 - IFNAMSIZ = 0x10 - IFT_1822 = 0x2 - IFT_6TO4 = 0xca - IFT_AAL5 = 0x31 - IFT_ARCNET = 0x23 - IFT_ARCNETPLUS = 0x24 - IFT_ATM = 0x25 - IFT_CEPT = 0x13 - IFT_DS3 = 0x1e - IFT_EON = 0x19 - IFT_ETHER = 0x6 - IFT_FDDI = 0xf - IFT_FRELAY = 0x20 - IFT_FRELAYDCE = 0x2c - IFT_HDH1822 = 0x3 - IFT_HIPPI = 0x2f - IFT_HSSI = 0x2e - IFT_HY = 0xe - IFT_IB = 0xc7 - IFT_IPV4 = 0xc8 - IFT_IPV6 = 0xc9 - IFT_ISDNBASIC = 0x14 - IFT_ISDNPRIMARY = 0x15 - IFT_ISO88022LLC = 0x29 - IFT_ISO88023 = 0x7 - IFT_ISO88024 = 0x8 - IFT_ISO88025 = 0x9 - IFT_ISO88026 = 0xa - IFT_LAPB = 0x10 - IFT_LOCALTALK = 0x2a - IFT_LOOP = 0x18 - IFT_MIOX25 = 0x26 - IFT_MODEM = 0x30 - IFT_NSIP = 0x1b - IFT_OTHER = 0x1 - IFT_P10 = 0xc - IFT_P80 = 0xd - IFT_PARA = 0x22 - IFT_PPP = 0x17 - IFT_PROPMUX = 0x36 - IFT_PROPVIRTUAL = 0x35 - IFT_PTPSERIAL = 0x16 - IFT_RS232 = 0x21 - IFT_SDLC = 0x11 - IFT_SIP = 0x1f - IFT_SLIP = 0x1c - IFT_SMDSDXI = 0x2b - IFT_SMDSICIP = 0x34 - IFT_SONET = 0x27 - IFT_SONETPATH = 0x32 - IFT_SONETVT = 0x33 - IFT_STARLAN = 0xb - IFT_T1 = 0x12 - IFT_ULTRA = 0x1d - IFT_V35 = 0x2d - IFT_X25 = 0x5 - IFT_X25DDN = 0x4 - IFT_X25PLE = 0x28 - IFT_XETHER = 0x1a - IGNBRK = 0x1 - IGNCR = 0x80 - IGNPAR = 0x4 - IMAXBEL = 0x2000 - INLCR = 0x40 - INPCK = 0x10 - IN_AUTOCONF_MASK = 0xffff0000 - IN_AUTOCONF_NET = 0xa9fe0000 - IN_CLASSA_HOST = 0xffffff - IN_CLASSA_MAX = 0x80 - IN_CLASSA_NET = 0xff000000 - IN_CLASSA_NSHIFT = 0x18 - IN_CLASSB_HOST = 0xffff - IN_CLASSB_MAX = 0x10000 - IN_CLASSB_NET = 0xffff0000 - IN_CLASSB_NSHIFT = 0x10 - IN_CLASSC_HOST = 0xff - IN_CLASSC_NET = 0xffffff00 - IN_CLASSC_NSHIFT = 0x8 - IN_CLASSD_HOST = 0xfffffff - IN_CLASSD_NET = 0xf0000000 - IN_CLASSD_NSHIFT = 0x1c - IN_CLASSE_NET = 0xffffffff - IN_LOOPBACKNET = 0x7f - IN_PRIVATE12_MASK = 0xfff00000 - IN_PRIVATE12_NET = 0xac100000 - IN_PRIVATE16_MASK = 0xffff0000 - IN_PRIVATE16_NET = 0xc0a80000 - IN_PRIVATE8_MASK = 0xff000000 - IN_PRIVATE8_NET = 0xa000000 - IPPROTO_AH = 0x33 - IPPROTO_DSTOPTS = 0x3c - IPPROTO_EGP = 0x8 - IPPROTO_ENCAP = 0x4 - IPPROTO_EON = 0x50 - IPPROTO_ESP = 0x32 - IPPROTO_FRAGMENT = 0x2c - IPPROTO_GGP = 0x3 - IPPROTO_HELLO = 0x3f - IPPROTO_HOPOPTS = 0x0 - IPPROTO_ICMP = 0x1 - IPPROTO_ICMPV6 = 0x3a - IPPROTO_IDP = 0x16 - IPPROTO_IGMP = 0x2 - IPPROTO_IP = 0x0 - IPPROTO_IPV6 = 0x29 - IPPROTO_MAX = 0x100 - IPPROTO_ND = 0x4d - IPPROTO_NONE = 0x3b - IPPROTO_OSPF = 0x59 - IPPROTO_PIM = 0x67 - IPPROTO_PUP = 0xc - IPPROTO_RAW = 0xff - IPPROTO_ROUTING = 0x2b - IPPROTO_RSVP = 0x2e - IPPROTO_SCTP = 0x84 - IPPROTO_TCP = 0x6 - IPPROTO_UDP = 0x11 - IPV6_ADD_MEMBERSHIP = 0x9 - IPV6_BOUND_IF = 0x41 - IPV6_CHECKSUM = 0x18 - IPV6_DONTFRAG = 0x21 - IPV6_DROP_MEMBERSHIP = 0xa - IPV6_DSTOPTS = 0xf - IPV6_FLOWINFO_FLOWLABEL = 0xffff0f00 - IPV6_FLOWINFO_TCLASS = 0xf00f - IPV6_HOPLIMIT = 0xc - IPV6_HOPOPTS = 0xe - IPV6_JOIN_GROUP = 0x9 - IPV6_LEAVE_GROUP = 0xa - IPV6_MULTICAST_HOPS = 0x7 - IPV6_MULTICAST_IF = 0x6 - IPV6_MULTICAST_LOOP = 0x8 - IPV6_NEXTHOP = 0xd - IPV6_PAD1_OPT = 0x0 - IPV6_PATHMTU = 0x25 - IPV6_PKTINFO = 0xb - IPV6_PREFER_SRC_CGA = 0x20 - IPV6_PREFER_SRC_CGADEFAULT = 0x10 - IPV6_PREFER_SRC_CGAMASK = 0x30 - IPV6_PREFER_SRC_COA = 0x2 - IPV6_PREFER_SRC_DEFAULT = 0x15 - IPV6_PREFER_SRC_HOME = 0x1 - IPV6_PREFER_SRC_MASK = 0x3f - IPV6_PREFER_SRC_MIPDEFAULT = 0x1 - IPV6_PREFER_SRC_MIPMASK = 0x3 - IPV6_PREFER_SRC_NONCGA = 0x10 - IPV6_PREFER_SRC_PUBLIC = 0x4 - IPV6_PREFER_SRC_TMP = 0x8 - IPV6_PREFER_SRC_TMPDEFAULT = 0x4 - IPV6_PREFER_SRC_TMPMASK = 0xc - IPV6_RECVDSTOPTS = 0x28 - IPV6_RECVHOPLIMIT = 0x13 - IPV6_RECVHOPOPTS = 0x14 - IPV6_RECVPATHMTU = 0x24 - IPV6_RECVPKTINFO = 0x12 - IPV6_RECVRTHDR = 0x16 - IPV6_RECVRTHDRDSTOPTS = 0x17 - IPV6_RECVTCLASS = 0x19 - IPV6_RTHDR = 0x10 - IPV6_RTHDRDSTOPTS = 0x11 - IPV6_RTHDR_TYPE_0 = 0x0 - IPV6_SEC_OPT = 0x22 - IPV6_SRC_PREFERENCES = 0x23 - IPV6_TCLASS = 0x26 - IPV6_UNICAST_HOPS = 0x5 - IPV6_UNSPEC_SRC = 0x42 - IPV6_USE_MIN_MTU = 0x20 - IPV6_V6ONLY = 0x27 - IP_ADD_MEMBERSHIP = 0x13 - IP_ADD_SOURCE_MEMBERSHIP = 0x17 - IP_BLOCK_SOURCE = 0x15 - IP_BOUND_IF = 0x41 - IP_BROADCAST = 0x106 - IP_BROADCAST_TTL = 0x43 - IP_DEFAULT_MULTICAST_LOOP = 0x1 - IP_DEFAULT_MULTICAST_TTL = 0x1 - IP_DF = 0x4000 - IP_DHCPINIT_IF = 0x45 - IP_DONTFRAG = 0x1b - IP_DONTROUTE = 0x105 - IP_DROP_MEMBERSHIP = 0x14 - IP_DROP_SOURCE_MEMBERSHIP = 0x18 - IP_HDRINCL = 0x2 - IP_MAXPACKET = 0xffff - IP_MF = 0x2000 - IP_MSS = 0x240 - IP_MULTICAST_IF = 0x10 - IP_MULTICAST_LOOP = 0x12 - IP_MULTICAST_TTL = 0x11 - IP_NEXTHOP = 0x19 - IP_OPTIONS = 0x1 - IP_PKTINFO = 0x1a - IP_RECVDSTADDR = 0x7 - IP_RECVIF = 0x9 - IP_RECVOPTS = 0x5 - IP_RECVPKTINFO = 0x1a - IP_RECVRETOPTS = 0x6 - IP_RECVSLLA = 0xa - IP_RECVTTL = 0xb - IP_RETOPTS = 0x8 - IP_REUSEADDR = 0x104 - IP_SEC_OPT = 0x22 - IP_TOS = 0x3 - IP_TTL = 0x4 - IP_UNBLOCK_SOURCE = 0x16 - IP_UNSPEC_SRC = 0x42 - ISIG = 0x1 - ISTRIP = 0x20 - IUCLC = 0x200 - IXANY = 0x800 - IXOFF = 0x1000 - IXON = 0x400 - LOCK_EX = 0x2 - LOCK_NB = 0x4 - LOCK_SH = 0x1 - LOCK_UN = 0x8 - MADV_ACCESS_DEFAULT = 0x6 - MADV_ACCESS_LWP = 0x7 - MADV_ACCESS_MANY = 0x8 - MADV_DONTNEED = 0x4 - MADV_FREE = 0x5 - MADV_NORMAL = 0x0 - MADV_PURGE = 0x9 - MADV_RANDOM = 0x1 - MADV_SEQUENTIAL = 0x2 - MADV_WILLNEED = 0x3 - MAP_32BIT = 0x80 - MAP_ALIGN = 0x200 - MAP_ANON = 0x100 - MAP_ANONYMOUS = 0x100 - MAP_FILE = 0x0 - MAP_FIXED = 0x10 - MAP_INITDATA = 0x800 - MAP_NORESERVE = 0x40 - MAP_PRIVATE = 0x2 - MAP_RENAME = 0x20 - MAP_SHARED = 0x1 - MAP_TEXT = 0x400 - MAP_TYPE = 0xf - MCL_CURRENT = 0x1 - MCL_FUTURE = 0x2 - MSG_CTRUNC = 0x10 - MSG_DONTROUTE = 0x4 - MSG_DONTWAIT = 0x80 - MSG_DUPCTRL = 0x800 - MSG_EOR = 0x8 - MSG_MAXIOVLEN = 0x10 - MSG_NOTIFICATION = 0x100 - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_TRUNC = 0x20 - MSG_WAITALL = 0x40 - MSG_XPG4_2 = 0x8000 - MS_ASYNC = 0x1 - MS_INVALIDATE = 0x2 - MS_OLDSYNC = 0x0 - MS_SYNC = 0x4 - M_FLUSH = 0x86 - NAME_MAX = 0xff - NEWDEV = 0x1 - NL0 = 0x0 - NL1 = 0x100 - NLDLY = 0x100 - NOFLSH = 0x80 - OCRNL = 0x8 - OFDEL = 0x80 - OFILL = 0x40 - OLCUC = 0x2 - OLDDEV = 0x0 - ONBITSMAJOR = 0x7 - ONBITSMINOR = 0x8 - ONLCR = 0x4 - ONLRET = 0x20 - ONOCR = 0x10 - OPENFAIL = -0x1 - OPOST = 0x1 - O_ACCMODE = 0x600003 - O_APPEND = 0x8 - O_CLOEXEC = 0x800000 - O_CREAT = 0x100 - O_DSYNC = 0x40 - O_EXCL = 0x400 - O_EXEC = 0x400000 - O_LARGEFILE = 0x2000 - O_NDELAY = 0x4 - O_NOCTTY = 0x800 - O_NOFOLLOW = 0x20000 - O_NOLINKS = 0x40000 - O_NONBLOCK = 0x80 - O_RDONLY = 0x0 - O_RDWR = 0x2 - O_RSYNC = 0x8000 - O_SEARCH = 0x200000 - O_SIOCGIFCONF = -0x3ff796ec - O_SIOCGLIFCONF = -0x3fef9688 - O_SYNC = 0x10 - O_TRUNC = 0x200 - O_WRONLY = 0x1 - O_XATTR = 0x4000 - PARENB = 0x100 - PAREXT = 0x100000 - PARMRK = 0x8 - PARODD = 0x200 - PENDIN = 0x4000 - PRIO_PGRP = 0x1 - PRIO_PROCESS = 0x0 - PRIO_USER = 0x2 - PROT_EXEC = 0x4 - PROT_NONE = 0x0 - PROT_READ = 0x1 - PROT_WRITE = 0x2 - RLIMIT_AS = 0x6 - RLIMIT_CORE = 0x4 - RLIMIT_CPU = 0x0 - RLIMIT_DATA = 0x2 - RLIMIT_FSIZE = 0x1 - RLIMIT_NOFILE = 0x5 - RLIMIT_STACK = 0x3 - RLIM_INFINITY = -0x3 - RTAX_AUTHOR = 0x6 - RTAX_BRD = 0x7 - RTAX_DST = 0x0 - RTAX_GATEWAY = 0x1 - RTAX_GENMASK = 0x3 - RTAX_IFA = 0x5 - RTAX_IFP = 0x4 - RTAX_MAX = 0x9 - RTAX_NETMASK = 0x2 - RTAX_SRC = 0x8 - RTA_AUTHOR = 0x40 - RTA_BRD = 0x80 - RTA_DST = 0x1 - RTA_GATEWAY = 0x2 - RTA_GENMASK = 0x8 - RTA_IFA = 0x20 - RTA_IFP = 0x10 - RTA_NETMASK = 0x4 - RTA_NUMBITS = 0x9 - RTA_SRC = 0x100 - RTF_BLACKHOLE = 0x1000 - RTF_CLONING = 0x100 - RTF_DONE = 0x40 - RTF_DYNAMIC = 0x10 - RTF_GATEWAY = 0x2 - RTF_HOST = 0x4 - RTF_INDIRECT = 0x40000 - RTF_KERNEL = 0x80000 - RTF_LLINFO = 0x400 - RTF_MASK = 0x80 - RTF_MODIFIED = 0x20 - RTF_MULTIRT = 0x10000 - RTF_PRIVATE = 0x2000 - RTF_PROTO1 = 0x8000 - RTF_PROTO2 = 0x4000 - RTF_REJECT = 0x8 - RTF_SETSRC = 0x20000 - RTF_STATIC = 0x800 - RTF_UP = 0x1 - RTF_XRESOLVE = 0x200 - RTF_ZONE = 0x100000 - RTM_ADD = 0x1 - RTM_CHANGE = 0x3 - RTM_CHGADDR = 0xf - RTM_DELADDR = 0xd - RTM_DELETE = 0x2 - RTM_FREEADDR = 0x10 - RTM_GET = 0x4 - RTM_IFINFO = 0xe - RTM_LOCK = 0x8 - RTM_LOSING = 0x5 - RTM_MISS = 0x7 - RTM_NEWADDR = 0xc - RTM_OLDADD = 0x9 - RTM_OLDDEL = 0xa - RTM_REDIRECT = 0x6 - RTM_RESOLVE = 0xb - RTM_VERSION = 0x3 - RTV_EXPIRE = 0x4 - RTV_HOPCOUNT = 0x2 - RTV_MTU = 0x1 - RTV_RPIPE = 0x8 - RTV_RTT = 0x40 - RTV_RTTVAR = 0x80 - RTV_SPIPE = 0x10 - RTV_SSTHRESH = 0x20 - RT_AWARE = 0x1 - RUSAGE_CHILDREN = -0x1 - RUSAGE_SELF = 0x0 - SCM_RIGHTS = 0x1010 - SCM_TIMESTAMP = 0x1013 - SCM_UCRED = 0x1012 - SHUT_RD = 0x0 - SHUT_RDWR = 0x2 - SHUT_WR = 0x1 - SIG2STR_MAX = 0x20 - SIOCADDMULTI = -0x7fdf96cf - SIOCADDRT = -0x7fcf8df6 - SIOCATMARK = 0x40047307 - SIOCDARP = -0x7fdb96e0 - SIOCDELMULTI = -0x7fdf96ce - SIOCDELRT = -0x7fcf8df5 - SIOCDXARP = -0x7fff9658 - SIOCGARP = -0x3fdb96e1 - SIOCGDSTINFO = -0x3fff965c - SIOCGENADDR = -0x3fdf96ab - SIOCGENPSTATS = -0x3fdf96c7 - SIOCGETLSGCNT = -0x3fef8deb - SIOCGETNAME = 0x40107334 - SIOCGETPEER = 0x40107335 - SIOCGETPROP = -0x3fff8f44 - SIOCGETSGCNT = -0x3feb8deb - SIOCGETSYNC = -0x3fdf96d3 - SIOCGETVIFCNT = -0x3feb8dec - SIOCGHIWAT = 0x40047301 - SIOCGIFADDR = -0x3fdf96f3 - SIOCGIFBRDADDR = -0x3fdf96e9 - SIOCGIFCONF = -0x3ff796a4 - SIOCGIFDSTADDR = -0x3fdf96f1 - SIOCGIFFLAGS = -0x3fdf96ef - SIOCGIFHWADDR = -0x3fdf9647 - SIOCGIFINDEX = -0x3fdf96a6 - SIOCGIFMEM = -0x3fdf96ed - SIOCGIFMETRIC = -0x3fdf96e5 - SIOCGIFMTU = -0x3fdf96ea - SIOCGIFMUXID = -0x3fdf96a8 - SIOCGIFNETMASK = -0x3fdf96e7 - SIOCGIFNUM = 0x40046957 - SIOCGIP6ADDRPOLICY = -0x3fff965e - SIOCGIPMSFILTER = -0x3ffb964c - SIOCGLIFADDR = -0x3f87968f - SIOCGLIFBINDING = -0x3f879666 - SIOCGLIFBRDADDR = -0x3f879685 - SIOCGLIFCONF = -0x3fef965b - SIOCGLIFDADSTATE = -0x3f879642 - SIOCGLIFDSTADDR = -0x3f87968d - SIOCGLIFFLAGS = -0x3f87968b - SIOCGLIFGROUPINFO = -0x3f4b9663 - SIOCGLIFGROUPNAME = -0x3f879664 - SIOCGLIFHWADDR = -0x3f879640 - SIOCGLIFINDEX = -0x3f87967b - SIOCGLIFLNKINFO = -0x3f879674 - SIOCGLIFMETRIC = -0x3f879681 - SIOCGLIFMTU = -0x3f879686 - SIOCGLIFMUXID = -0x3f87967d - SIOCGLIFNETMASK = -0x3f879683 - SIOCGLIFNUM = -0x3ff3967e - SIOCGLIFSRCOF = -0x3fef964f - SIOCGLIFSUBNET = -0x3f879676 - SIOCGLIFTOKEN = -0x3f879678 - SIOCGLIFUSESRC = -0x3f879651 - SIOCGLIFZONE = -0x3f879656 - SIOCGLOWAT = 0x40047303 - SIOCGMSFILTER = -0x3ffb964e - SIOCGPGRP = 0x40047309 - SIOCGSTAMP = -0x3fef9646 - SIOCGXARP = -0x3fff9659 - SIOCIFDETACH = -0x7fdf96c8 - SIOCILB = -0x3ffb9645 - SIOCLIFADDIF = -0x3f879691 - SIOCLIFDELND = -0x7f879673 - SIOCLIFGETND = -0x3f879672 - SIOCLIFREMOVEIF = -0x7f879692 - SIOCLIFSETND = -0x7f879671 - SIOCLOWER = -0x7fdf96d7 - SIOCSARP = -0x7fdb96e2 - SIOCSCTPGOPT = -0x3fef9653 - SIOCSCTPPEELOFF = -0x3ffb9652 - SIOCSCTPSOPT = -0x7fef9654 - SIOCSENABLESDP = -0x3ffb9649 - SIOCSETPROP = -0x7ffb8f43 - SIOCSETSYNC = -0x7fdf96d4 - SIOCSHIWAT = -0x7ffb8d00 - SIOCSIFADDR = -0x7fdf96f4 - SIOCSIFBRDADDR = -0x7fdf96e8 - SIOCSIFDSTADDR = -0x7fdf96f2 - SIOCSIFFLAGS = -0x7fdf96f0 - SIOCSIFINDEX = -0x7fdf96a5 - SIOCSIFMEM = -0x7fdf96ee - SIOCSIFMETRIC = -0x7fdf96e4 - SIOCSIFMTU = -0x7fdf96eb - SIOCSIFMUXID = -0x7fdf96a7 - SIOCSIFNAME = -0x7fdf96b7 - SIOCSIFNETMASK = -0x7fdf96e6 - SIOCSIP6ADDRPOLICY = -0x7fff965d - SIOCSIPMSFILTER = -0x7ffb964b - SIOCSLGETREQ = -0x3fdf96b9 - SIOCSLIFADDR = -0x7f879690 - SIOCSLIFBRDADDR = -0x7f879684 - SIOCSLIFDSTADDR = -0x7f87968e - SIOCSLIFFLAGS = -0x7f87968c - SIOCSLIFGROUPNAME = -0x7f879665 - SIOCSLIFINDEX = -0x7f87967a - SIOCSLIFLNKINFO = -0x7f879675 - SIOCSLIFMETRIC = -0x7f879680 - SIOCSLIFMTU = -0x7f879687 - SIOCSLIFMUXID = -0x7f87967c - SIOCSLIFNAME = -0x3f87967f - SIOCSLIFNETMASK = -0x7f879682 - SIOCSLIFPREFIX = -0x3f879641 - SIOCSLIFSUBNET = -0x7f879677 - SIOCSLIFTOKEN = -0x7f879679 - SIOCSLIFUSESRC = -0x7f879650 - SIOCSLIFZONE = -0x7f879655 - SIOCSLOWAT = -0x7ffb8cfe - SIOCSLSTAT = -0x7fdf96b8 - SIOCSMSFILTER = -0x7ffb964d - SIOCSPGRP = -0x7ffb8cf8 - SIOCSPROMISC = -0x7ffb96d0 - SIOCSQPTR = -0x3ffb9648 - SIOCSSDSTATS = -0x3fdf96d2 - SIOCSSESTATS = -0x3fdf96d1 - SIOCSXARP = -0x7fff965a - SIOCTMYADDR = -0x3ff79670 - SIOCTMYSITE = -0x3ff7966e - SIOCTONLINK = -0x3ff7966f - SIOCUPPER = -0x7fdf96d8 - SIOCX25RCV = -0x3fdf96c4 - SIOCX25TBL = -0x3fdf96c3 - SIOCX25XMT = -0x3fdf96c5 - SIOCXPROTO = 0x20007337 - SOCK_CLOEXEC = 0x80000 - SOCK_DGRAM = 0x1 - SOCK_NDELAY = 0x200000 - SOCK_NONBLOCK = 0x100000 - SOCK_RAW = 0x4 - SOCK_RDM = 0x5 - SOCK_SEQPACKET = 0x6 - SOCK_STREAM = 0x2 - SOCK_TYPE_MASK = 0xffff - SOL_FILTER = 0xfffc - SOL_PACKET = 0xfffd - SOL_ROUTE = 0xfffe - SOL_SOCKET = 0xffff - SOMAXCONN = 0x80 - SO_ACCEPTCONN = 0x2 - SO_ALL = 0x3f - SO_ALLZONES = 0x1014 - SO_ANON_MLP = 0x100a - SO_ATTACH_FILTER = 0x40000001 - SO_BAND = 0x4000 - SO_BROADCAST = 0x20 - SO_COPYOPT = 0x80000 - SO_DEBUG = 0x1 - SO_DELIM = 0x8000 - SO_DETACH_FILTER = 0x40000002 - SO_DGRAM_ERRIND = 0x200 - SO_DOMAIN = 0x100c - SO_DONTLINGER = -0x81 - SO_DONTROUTE = 0x10 - SO_ERROPT = 0x40000 - SO_ERROR = 0x1007 - SO_EXCLBIND = 0x1015 - SO_HIWAT = 0x10 - SO_ISNTTY = 0x800 - SO_ISTTY = 0x400 - SO_KEEPALIVE = 0x8 - SO_LINGER = 0x80 - SO_LOWAT = 0x20 - SO_MAC_EXEMPT = 0x100b - SO_MAC_IMPLICIT = 0x1016 - SO_MAXBLK = 0x100000 - SO_MAXPSZ = 0x8 - SO_MINPSZ = 0x4 - SO_MREADOFF = 0x80 - SO_MREADON = 0x40 - SO_NDELOFF = 0x200 - SO_NDELON = 0x100 - SO_NODELIM = 0x10000 - SO_OOBINLINE = 0x100 - SO_PROTOTYPE = 0x1009 - SO_RCVBUF = 0x1002 - SO_RCVLOWAT = 0x1004 - SO_RCVPSH = 0x100d - SO_RCVTIMEO = 0x1006 - SO_READOPT = 0x1 - SO_RECVUCRED = 0x400 - SO_REUSEADDR = 0x4 - SO_SECATTR = 0x1011 - SO_SNDBUF = 0x1001 - SO_SNDLOWAT = 0x1003 - SO_SNDTIMEO = 0x1005 - SO_STRHOLD = 0x20000 - SO_TAIL = 0x200000 - SO_TIMESTAMP = 0x1013 - SO_TONSTOP = 0x2000 - SO_TOSTOP = 0x1000 - SO_TYPE = 0x1008 - SO_USELOOPBACK = 0x40 - SO_VRRP = 0x1017 - SO_WROFF = 0x2 - TAB0 = 0x0 - TAB1 = 0x800 - TAB2 = 0x1000 - TAB3 = 0x1800 - TABDLY = 0x1800 - TCFLSH = 0x5407 - TCGETA = 0x5401 - TCGETS = 0x540d - TCIFLUSH = 0x0 - TCIOFF = 0x2 - TCIOFLUSH = 0x2 - TCION = 0x3 - TCOFLUSH = 0x1 - TCOOFF = 0x0 - TCOON = 0x1 - TCP_ABORT_THRESHOLD = 0x11 - TCP_ANONPRIVBIND = 0x20 - TCP_CONN_ABORT_THRESHOLD = 0x13 - TCP_CONN_NOTIFY_THRESHOLD = 0x12 - TCP_CORK = 0x18 - TCP_EXCLBIND = 0x21 - TCP_INIT_CWND = 0x15 - TCP_KEEPALIVE = 0x8 - TCP_KEEPALIVE_ABORT_THRESHOLD = 0x17 - TCP_KEEPALIVE_THRESHOLD = 0x16 - TCP_KEEPCNT = 0x23 - TCP_KEEPIDLE = 0x22 - TCP_KEEPINTVL = 0x24 - TCP_LINGER2 = 0x1c - TCP_MAXSEG = 0x2 - TCP_MSS = 0x218 - TCP_NODELAY = 0x1 - TCP_NOTIFY_THRESHOLD = 0x10 - TCP_RECVDSTADDR = 0x14 - TCP_RTO_INITIAL = 0x19 - TCP_RTO_MAX = 0x1b - TCP_RTO_MIN = 0x1a - TCSAFLUSH = 0x5410 - TCSBRK = 0x5405 - TCSETA = 0x5402 - TCSETAF = 0x5404 - TCSETAW = 0x5403 - TCSETS = 0x540e - TCSETSF = 0x5410 - TCSETSW = 0x540f - TCXONC = 0x5406 - TIOC = 0x5400 - TIOCCBRK = 0x747a - TIOCCDTR = 0x7478 - TIOCCILOOP = 0x746c - TIOCEXCL = 0x740d - TIOCFLUSH = 0x7410 - TIOCGETC = 0x7412 - TIOCGETD = 0x7400 - TIOCGETP = 0x7408 - TIOCGLTC = 0x7474 - TIOCGPGRP = 0x7414 - TIOCGPPS = 0x547d - TIOCGPPSEV = 0x547f - TIOCGSID = 0x7416 - TIOCGSOFTCAR = 0x5469 - TIOCGWINSZ = 0x5468 - TIOCHPCL = 0x7402 - TIOCKBOF = 0x5409 - TIOCKBON = 0x5408 - TIOCLBIC = 0x747e - TIOCLBIS = 0x747f - TIOCLGET = 0x747c - TIOCLSET = 0x747d - TIOCMBIC = 0x741c - TIOCMBIS = 0x741b - TIOCMGET = 0x741d - TIOCMSET = 0x741a - TIOCM_CAR = 0x40 - TIOCM_CD = 0x40 - TIOCM_CTS = 0x20 - TIOCM_DSR = 0x100 - TIOCM_DTR = 0x2 - TIOCM_LE = 0x1 - TIOCM_RI = 0x80 - TIOCM_RNG = 0x80 - TIOCM_RTS = 0x4 - TIOCM_SR = 0x10 - TIOCM_ST = 0x8 - TIOCNOTTY = 0x7471 - TIOCNXCL = 0x740e - TIOCOUTQ = 0x7473 - TIOCREMOTE = 0x741e - TIOCSBRK = 0x747b - TIOCSCTTY = 0x7484 - TIOCSDTR = 0x7479 - TIOCSETC = 0x7411 - TIOCSETD = 0x7401 - TIOCSETN = 0x740a - TIOCSETP = 0x7409 - TIOCSIGNAL = 0x741f - TIOCSILOOP = 0x746d - TIOCSLTC = 0x7475 - TIOCSPGRP = 0x7415 - TIOCSPPS = 0x547e - TIOCSSOFTCAR = 0x546a - TIOCSTART = 0x746e - TIOCSTI = 0x7417 - TIOCSTOP = 0x746f - TIOCSWINSZ = 0x5467 - TOSTOP = 0x100 - VCEOF = 0x8 - VCEOL = 0x9 - VDISCARD = 0xd - VDSUSP = 0xb - VEOF = 0x4 - VEOL = 0x5 - VEOL2 = 0x6 - VERASE = 0x2 - VERASE2 = 0x11 - VINTR = 0x0 - VKILL = 0x3 - VLNEXT = 0xf - VMIN = 0x4 - VQUIT = 0x1 - VREPRINT = 0xc - VSTART = 0x8 - VSTATUS = 0x10 - VSTOP = 0x9 - VSUSP = 0xa - VSWTCH = 0x7 - VT0 = 0x0 - VT1 = 0x4000 - VTDLY = 0x4000 - VTIME = 0x5 - VWERASE = 0xe - WCONTFLG = 0xffff - WCONTINUED = 0x8 - WCOREFLG = 0x80 - WEXITED = 0x1 - WNOHANG = 0x40 - WNOWAIT = 0x80 - WOPTMASK = 0xcf - WRAP = 0x20000 - WSIGMASK = 0x7f - WSTOPFLG = 0x7f - WSTOPPED = 0x4 - WTRAPPED = 0x2 - WUNTRACED = 0x4 - XCASE = 0x4 - XTABS = 0x1800 -) - -// Errors -const ( - E2BIG = syscall.Errno(0x7) - EACCES = syscall.Errno(0xd) - EADDRINUSE = syscall.Errno(0x7d) - EADDRNOTAVAIL = syscall.Errno(0x7e) - EADV = syscall.Errno(0x44) - EAFNOSUPPORT = syscall.Errno(0x7c) - EAGAIN = syscall.Errno(0xb) - EALREADY = syscall.Errno(0x95) - EBADE = syscall.Errno(0x32) - EBADF = syscall.Errno(0x9) - EBADFD = syscall.Errno(0x51) - EBADMSG = syscall.Errno(0x4d) - EBADR = syscall.Errno(0x33) - EBADRQC = syscall.Errno(0x36) - EBADSLT = syscall.Errno(0x37) - EBFONT = syscall.Errno(0x39) - EBUSY = syscall.Errno(0x10) - ECANCELED = syscall.Errno(0x2f) - ECHILD = syscall.Errno(0xa) - ECHRNG = syscall.Errno(0x25) - ECOMM = syscall.Errno(0x46) - ECONNABORTED = syscall.Errno(0x82) - ECONNREFUSED = syscall.Errno(0x92) - ECONNRESET = syscall.Errno(0x83) - EDEADLK = syscall.Errno(0x2d) - EDEADLOCK = syscall.Errno(0x38) - EDESTADDRREQ = syscall.Errno(0x60) - EDOM = syscall.Errno(0x21) - EDQUOT = syscall.Errno(0x31) - EEXIST = syscall.Errno(0x11) - EFAULT = syscall.Errno(0xe) - EFBIG = syscall.Errno(0x1b) - EHOSTDOWN = syscall.Errno(0x93) - EHOSTUNREACH = syscall.Errno(0x94) - EIDRM = syscall.Errno(0x24) - EILSEQ = syscall.Errno(0x58) - EINPROGRESS = syscall.Errno(0x96) - EINTR = syscall.Errno(0x4) - EINVAL = syscall.Errno(0x16) - EIO = syscall.Errno(0x5) - EISCONN = syscall.Errno(0x85) - EISDIR = syscall.Errno(0x15) - EL2HLT = syscall.Errno(0x2c) - EL2NSYNC = syscall.Errno(0x26) - EL3HLT = syscall.Errno(0x27) - EL3RST = syscall.Errno(0x28) - ELIBACC = syscall.Errno(0x53) - ELIBBAD = syscall.Errno(0x54) - ELIBEXEC = syscall.Errno(0x57) - ELIBMAX = syscall.Errno(0x56) - ELIBSCN = syscall.Errno(0x55) - ELNRNG = syscall.Errno(0x29) - ELOCKUNMAPPED = syscall.Errno(0x48) - ELOOP = syscall.Errno(0x5a) - EMFILE = syscall.Errno(0x18) - EMLINK = syscall.Errno(0x1f) - EMSGSIZE = syscall.Errno(0x61) - EMULTIHOP = syscall.Errno(0x4a) - ENAMETOOLONG = syscall.Errno(0x4e) - ENETDOWN = syscall.Errno(0x7f) - ENETRESET = syscall.Errno(0x81) - ENETUNREACH = syscall.Errno(0x80) - ENFILE = syscall.Errno(0x17) - ENOANO = syscall.Errno(0x35) - ENOBUFS = syscall.Errno(0x84) - ENOCSI = syscall.Errno(0x2b) - ENODATA = syscall.Errno(0x3d) - ENODEV = syscall.Errno(0x13) - ENOENT = syscall.Errno(0x2) - ENOEXEC = syscall.Errno(0x8) - ENOLCK = syscall.Errno(0x2e) - ENOLINK = syscall.Errno(0x43) - ENOMEM = syscall.Errno(0xc) - ENOMSG = syscall.Errno(0x23) - ENONET = syscall.Errno(0x40) - ENOPKG = syscall.Errno(0x41) - ENOPROTOOPT = syscall.Errno(0x63) - ENOSPC = syscall.Errno(0x1c) - ENOSR = syscall.Errno(0x3f) - ENOSTR = syscall.Errno(0x3c) - ENOSYS = syscall.Errno(0x59) - ENOTACTIVE = syscall.Errno(0x49) - ENOTBLK = syscall.Errno(0xf) - ENOTCONN = syscall.Errno(0x86) - ENOTDIR = syscall.Errno(0x14) - ENOTEMPTY = syscall.Errno(0x5d) - ENOTRECOVERABLE = syscall.Errno(0x3b) - ENOTSOCK = syscall.Errno(0x5f) - ENOTSUP = syscall.Errno(0x30) - ENOTTY = syscall.Errno(0x19) - ENOTUNIQ = syscall.Errno(0x50) - ENXIO = syscall.Errno(0x6) - EOPNOTSUPP = syscall.Errno(0x7a) - EOVERFLOW = syscall.Errno(0x4f) - EOWNERDEAD = syscall.Errno(0x3a) - EPERM = syscall.Errno(0x1) - EPFNOSUPPORT = syscall.Errno(0x7b) - EPIPE = syscall.Errno(0x20) - EPROTO = syscall.Errno(0x47) - EPROTONOSUPPORT = syscall.Errno(0x78) - EPROTOTYPE = syscall.Errno(0x62) - ERANGE = syscall.Errno(0x22) - EREMCHG = syscall.Errno(0x52) - EREMOTE = syscall.Errno(0x42) - ERESTART = syscall.Errno(0x5b) - EROFS = syscall.Errno(0x1e) - ESHUTDOWN = syscall.Errno(0x8f) - ESOCKTNOSUPPORT = syscall.Errno(0x79) - ESPIPE = syscall.Errno(0x1d) - ESRCH = syscall.Errno(0x3) - ESRMNT = syscall.Errno(0x45) - ESTALE = syscall.Errno(0x97) - ESTRPIPE = syscall.Errno(0x5c) - ETIME = syscall.Errno(0x3e) - ETIMEDOUT = syscall.Errno(0x91) - ETOOMANYREFS = syscall.Errno(0x90) - ETXTBSY = syscall.Errno(0x1a) - EUNATCH = syscall.Errno(0x2a) - EUSERS = syscall.Errno(0x5e) - EWOULDBLOCK = syscall.Errno(0xb) - EXDEV = syscall.Errno(0x12) - EXFULL = syscall.Errno(0x34) -) - -// Signals -const ( - SIGABRT = syscall.Signal(0x6) - SIGALRM = syscall.Signal(0xe) - SIGBUS = syscall.Signal(0xa) - SIGCANCEL = syscall.Signal(0x24) - SIGCHLD = syscall.Signal(0x12) - SIGCLD = syscall.Signal(0x12) - SIGCONT = syscall.Signal(0x19) - SIGEMT = syscall.Signal(0x7) - SIGFPE = syscall.Signal(0x8) - SIGFREEZE = syscall.Signal(0x22) - SIGHUP = syscall.Signal(0x1) - SIGILL = syscall.Signal(0x4) - SIGINFO = syscall.Signal(0x29) - SIGINT = syscall.Signal(0x2) - SIGIO = syscall.Signal(0x16) - SIGIOT = syscall.Signal(0x6) - SIGJVM1 = syscall.Signal(0x27) - SIGJVM2 = syscall.Signal(0x28) - SIGKILL = syscall.Signal(0x9) - SIGLOST = syscall.Signal(0x25) - SIGLWP = syscall.Signal(0x21) - SIGPIPE = syscall.Signal(0xd) - SIGPOLL = syscall.Signal(0x16) - SIGPROF = syscall.Signal(0x1d) - SIGPWR = syscall.Signal(0x13) - SIGQUIT = syscall.Signal(0x3) - SIGSEGV = syscall.Signal(0xb) - SIGSTOP = syscall.Signal(0x17) - SIGSYS = syscall.Signal(0xc) - SIGTERM = syscall.Signal(0xf) - SIGTHAW = syscall.Signal(0x23) - SIGTRAP = syscall.Signal(0x5) - SIGTSTP = syscall.Signal(0x18) - SIGTTIN = syscall.Signal(0x1a) - SIGTTOU = syscall.Signal(0x1b) - SIGURG = syscall.Signal(0x15) - SIGUSR1 = syscall.Signal(0x10) - SIGUSR2 = syscall.Signal(0x11) - SIGVTALRM = syscall.Signal(0x1c) - SIGWAITING = syscall.Signal(0x20) - SIGWINCH = syscall.Signal(0x14) - SIGXCPU = syscall.Signal(0x1e) - SIGXFSZ = syscall.Signal(0x1f) - SIGXRES = syscall.Signal(0x26) -) - -// Error table -var errors = [...]string{ - 1: "not owner", - 2: "no such file or directory", - 3: "no such process", - 4: "interrupted system call", - 5: "I/O error", - 6: "no such device or address", - 7: "arg list too long", - 8: "exec format error", - 9: "bad file number", - 10: "no child processes", - 11: "resource temporarily unavailable", - 12: "not enough space", - 13: "permission denied", - 14: "bad address", - 15: "block device required", - 16: "device busy", - 17: "file exists", - 18: "cross-device link", - 19: "no such device", - 20: "not a directory", - 21: "is a directory", - 22: "invalid argument", - 23: "file table overflow", - 24: "too many open files", - 25: "inappropriate ioctl for device", - 26: "text file busy", - 27: "file too large", - 28: "no space left on device", - 29: "illegal seek", - 30: "read-only file system", - 31: "too many links", - 32: "broken pipe", - 33: "argument out of domain", - 34: "result too large", - 35: "no message of desired type", - 36: "identifier removed", - 37: "channel number out of range", - 38: "level 2 not synchronized", - 39: "level 3 halted", - 40: "level 3 reset", - 41: "link number out of range", - 42: "protocol driver not attached", - 43: "no CSI structure available", - 44: "level 2 halted", - 45: "deadlock situation detected/avoided", - 46: "no record locks available", - 47: "operation canceled", - 48: "operation not supported", - 49: "disc quota exceeded", - 50: "bad exchange descriptor", - 51: "bad request descriptor", - 52: "message tables full", - 53: "anode table overflow", - 54: "bad request code", - 55: "invalid slot", - 56: "file locking deadlock", - 57: "bad font file format", - 58: "owner of the lock died", - 59: "lock is not recoverable", - 60: "not a stream device", - 61: "no data available", - 62: "timer expired", - 63: "out of stream resources", - 64: "machine is not on the network", - 65: "package not installed", - 66: "object is remote", - 67: "link has been severed", - 68: "advertise error", - 69: "srmount error", - 70: "communication error on send", - 71: "protocol error", - 72: "locked lock was unmapped ", - 73: "facility is not active", - 74: "multihop attempted", - 77: "not a data message", - 78: "file name too long", - 79: "value too large for defined data type", - 80: "name not unique on network", - 81: "file descriptor in bad state", - 82: "remote address changed", - 83: "can not access a needed shared library", - 84: "accessing a corrupted shared library", - 85: ".lib section in a.out corrupted", - 86: "attempting to link in more shared libraries than system limit", - 87: "can not exec a shared library directly", - 88: "illegal byte sequence", - 89: "operation not applicable", - 90: "number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS", - 91: "error 91", - 92: "error 92", - 93: "directory not empty", - 94: "too many users", - 95: "socket operation on non-socket", - 96: "destination address required", - 97: "message too long", - 98: "protocol wrong type for socket", - 99: "option not supported by protocol", - 120: "protocol not supported", - 121: "socket type not supported", - 122: "operation not supported on transport endpoint", - 123: "protocol family not supported", - 124: "address family not supported by protocol family", - 125: "address already in use", - 126: "cannot assign requested address", - 127: "network is down", - 128: "network is unreachable", - 129: "network dropped connection because of reset", - 130: "software caused connection abort", - 131: "connection reset by peer", - 132: "no buffer space available", - 133: "transport endpoint is already connected", - 134: "transport endpoint is not connected", - 143: "cannot send after socket shutdown", - 144: "too many references: cannot splice", - 145: "connection timed out", - 146: "connection refused", - 147: "host is down", - 148: "no route to host", - 149: "operation already in progress", - 150: "operation now in progress", - 151: "stale NFS file handle", -} - -// Signal table -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal Instruction", - 5: "trace/Breakpoint Trap", - 6: "abort", - 7: "emulation Trap", - 8: "arithmetic Exception", - 9: "killed", - 10: "bus Error", - 11: "segmentation Fault", - 12: "bad System Call", - 13: "broken Pipe", - 14: "alarm Clock", - 15: "terminated", - 16: "user Signal 1", - 17: "user Signal 2", - 18: "child Status Changed", - 19: "power-Fail/Restart", - 20: "window Size Change", - 21: "urgent Socket Condition", - 22: "pollable Event", - 23: "stopped (signal)", - 24: "stopped (user)", - 25: "continued", - 26: "stopped (tty input)", - 27: "stopped (tty output)", - 28: "virtual Timer Expired", - 29: "profiling Timer Expired", - 30: "cpu Limit Exceeded", - 31: "file Size Limit Exceeded", - 32: "no runnable lwp", - 33: "inter-lwp signal", - 34: "checkpoint Freeze", - 35: "checkpoint Thaw", - 36: "thread Cancellation", - 37: "resource Lost", - 38: "resource Control Exceeded", - 39: "reserved for JVM 1", - 40: "reserved for JVM 2", - 41: "information Request", -} diff --git a/vendor/golang.org/x/sys/unix/zptrace386_linux.go b/vendor/golang.org/x/sys/unix/zptrace386_linux.go deleted file mode 100644 index 2d21c49..0000000 --- a/vendor/golang.org/x/sys/unix/zptrace386_linux.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by linux/mkall.go generatePtracePair(386, amd64). DO NOT EDIT. - -// +build linux -// +build 386 amd64 - -package unix - -import "unsafe" - -// PtraceRegs386 is the registers used by 386 binaries. -type PtraceRegs386 struct { - Ebx int32 - Ecx int32 - Edx int32 - Esi int32 - Edi int32 - Ebp int32 - Eax int32 - Xds int32 - Xes int32 - Xfs int32 - Xgs int32 - Orig_eax int32 - Eip int32 - Xcs int32 - Eflags int32 - Esp int32 - Xss int32 -} - -// PtraceGetRegs386 fetches the registers used by 386 binaries. -func PtraceGetRegs386(pid int, regsout *PtraceRegs386) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegs386 sets the registers used by 386 binaries. -func PtraceSetRegs386(pid int, regs *PtraceRegs386) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} - -// PtraceRegsAmd64 is the registers used by amd64 binaries. -type PtraceRegsAmd64 struct { - R15 uint64 - R14 uint64 - R13 uint64 - R12 uint64 - Rbp uint64 - Rbx uint64 - R11 uint64 - R10 uint64 - R9 uint64 - R8 uint64 - Rax uint64 - Rcx uint64 - Rdx uint64 - Rsi uint64 - Rdi uint64 - Orig_rax uint64 - Rip uint64 - Cs uint64 - Eflags uint64 - Rsp uint64 - Ss uint64 - Fs_base uint64 - Gs_base uint64 - Ds uint64 - Es uint64 - Fs uint64 - Gs uint64 -} - -// PtraceGetRegsAmd64 fetches the registers used by amd64 binaries. -func PtraceGetRegsAmd64(pid int, regsout *PtraceRegsAmd64) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsAmd64 sets the registers used by amd64 binaries. -func PtraceSetRegsAmd64(pid int, regs *PtraceRegsAmd64) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} diff --git a/vendor/golang.org/x/sys/unix/zptracearm_linux.go b/vendor/golang.org/x/sys/unix/zptracearm_linux.go deleted file mode 100644 index faf23bb..0000000 --- a/vendor/golang.org/x/sys/unix/zptracearm_linux.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT. - -// +build linux -// +build arm arm64 - -package unix - -import "unsafe" - -// PtraceRegsArm is the registers used by arm binaries. -type PtraceRegsArm struct { - Uregs [18]uint32 -} - -// PtraceGetRegsArm fetches the registers used by arm binaries. -func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsArm sets the registers used by arm binaries. -func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} - -// PtraceRegsArm64 is the registers used by arm64 binaries. -type PtraceRegsArm64 struct { - Regs [31]uint64 - Sp uint64 - Pc uint64 - Pstate uint64 -} - -// PtraceGetRegsArm64 fetches the registers used by arm64 binaries. -func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsArm64 sets the registers used by arm64 binaries. -func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} diff --git a/vendor/golang.org/x/sys/unix/zptracemips_linux.go b/vendor/golang.org/x/sys/unix/zptracemips_linux.go deleted file mode 100644 index c431131..0000000 --- a/vendor/golang.org/x/sys/unix/zptracemips_linux.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by linux/mkall.go generatePtracePair(mips, mips64). DO NOT EDIT. - -// +build linux -// +build mips mips64 - -package unix - -import "unsafe" - -// PtraceRegsMips is the registers used by mips binaries. -type PtraceRegsMips struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -// PtraceGetRegsMips fetches the registers used by mips binaries. -func PtraceGetRegsMips(pid int, regsout *PtraceRegsMips) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsMips sets the registers used by mips binaries. -func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} - -// PtraceRegsMips64 is the registers used by mips64 binaries. -type PtraceRegsMips64 struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -// PtraceGetRegsMips64 fetches the registers used by mips64 binaries. -func PtraceGetRegsMips64(pid int, regsout *PtraceRegsMips64) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsMips64 sets the registers used by mips64 binaries. -func PtraceSetRegsMips64(pid int, regs *PtraceRegsMips64) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} diff --git a/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go b/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go deleted file mode 100644 index dc3d6d3..0000000 --- a/vendor/golang.org/x/sys/unix/zptracemipsle_linux.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT. - -// +build linux -// +build mipsle mips64le - -package unix - -import "unsafe" - -// PtraceRegsMipsle is the registers used by mipsle binaries. -type PtraceRegsMipsle struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -// PtraceGetRegsMipsle fetches the registers used by mipsle binaries. -func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsMipsle sets the registers used by mipsle binaries. -func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} - -// PtraceRegsMips64le is the registers used by mips64le binaries. -type PtraceRegsMips64le struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -// PtraceGetRegsMips64le fetches the registers used by mips64le binaries. -func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) -} - -// PtraceSetRegsMips64le sets the registers used by mips64le binaries. -func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error { - return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go deleted file mode 100644 index 763ae4f..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_386.go +++ /dev/null @@ -1,1620 +0,0 @@ -// mksyscall.pl -l32 -tags darwin,386 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build darwin,386 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kill(pid int, signum int, posix int) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exchangedata(path1 string, path2 string, options int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path1) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(path2) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setprivexec(flag int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go deleted file mode 100644 index d6808e0..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ /dev/null @@ -1,1620 +0,0 @@ -// mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build darwin,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kill(pid int, signum int, posix int) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exchangedata(path1 string, path2 string, options int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path1) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(path2) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setprivexec(flag int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go deleted file mode 100644 index 6ae95e6..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.go +++ /dev/null @@ -1,1620 +0,0 @@ -// mksyscall.pl -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build darwin,arm - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kill(pid int, signum int, posix int) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exchangedata(path1 string, path2 string, options int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path1) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(path2) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setprivexec(flag int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int32(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go deleted file mode 100644 index ca6a7ea..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ /dev/null @@ -1,1620 +0,0 @@ -// mksyscall.pl -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build darwin,arm64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kill(pid int, signum int, posix int) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), uintptr(posix)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exchangedata(path1 string, path2 string, options int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path1) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(path2) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXCHANGEDATA, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(options)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES64, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := RawSyscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := Syscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setprivexec(flag int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIVEXEC, uintptr(flag), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { - r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - sec = int64(r0) - usec = int32(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go deleted file mode 100644 index a0241de..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ /dev/null @@ -1,1478 +0,0 @@ -// mksyscall.pl -dragonfly -tags dragonfly,amd64 syscall_bsd.go syscall_dragonfly.go syscall_dragonfly_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build dragonfly,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func extpread(fd int, p []byte, flags int, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EXTPREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func extpwrite(fd int, p []byte, flags int, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EXTPWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go deleted file mode 100644 index fd9ca5a..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ /dev/null @@ -1,1922 +0,0 @@ -// mksyscall.pl -l32 -tags freebsd,386 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build freebsd,386 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CapEnter() (err error) { - _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsLimit(fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go deleted file mode 100644 index a9f18b2..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +++ /dev/null @@ -1,1922 +0,0 @@ -// mksyscall.pl -tags freebsd,amd64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build freebsd,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CapEnter() (err error) { - _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsLimit(fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_POSIX_FADVISE, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go deleted file mode 100644 index 9823e18..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +++ /dev/null @@ -1,1922 +0,0 @@ -// mksyscall.pl -l32 -arm -tags freebsd,arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build freebsd,arm - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (r int, w int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - r = int(r0) - w = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CapEnter() (err error) { - _, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsGet(version int, fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func capRightsLimit(fd int, rightsp *CapRights) (err error) { - _, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(file) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attrname) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(link) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall9(SYS_POSIX_FADVISE, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETDIRENTRIES, uintptr(fd), uintptr(_p0), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdtablesize() (size int) { - r0, _, _ := Syscall(SYS_GETDTABLESIZE, 0, 0, 0) - size = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(fromfd int, from string, tofd int, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Undelete(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNDELETE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go deleted file mode 100644 index ef9602c..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ /dev/null @@ -1,1994 +0,0 @@ -// mksyscall.pl -l32 -tags linux,386 syscall_linux.go syscall_linux_386.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,386 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(length), uintptr(length>>32), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Time(t *Time_t) (tt Time_t, err error) { - r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) - tt = Time_t(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go deleted file mode 100644 index 63054b3..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ /dev/null @@ -1,2187 +0,0 @@ -// mksyscall.pl -tags linux,amd64 syscall_linux.go syscall_linux_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go deleted file mode 100644 index 8b10ee1..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ /dev/null @@ -1,2096 +0,0 @@ -// mksyscall.pl -l32 -arm -tags linux,arm syscall_linux.go syscall_linux_arm.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,arm - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS32, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, flags int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(flags), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN32, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID32, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID32, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID32, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID32, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN32, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID32, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID32, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go deleted file mode 100644 index 8f276d6..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ /dev/null @@ -1,2044 +0,0 @@ -// mksyscall.pl -tags linux,arm64 syscall_linux.go syscall_linux_arm64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,arm64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_PWAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(fd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go deleted file mode 100644 index 61169b3..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ /dev/null @@ -1,2152 +0,0 @@ -// mksyscall.pl -b32 -arm -tags linux,mips syscall_linux.go syscall_linux_mipsx.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,mips - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(int64(r0)<<32 | int64(r1)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length>>32), uintptr(length), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset>>32), uintptr(offset)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(int64(r0)<<32 | int64(r1)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length>>32), uintptr(length), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Time(t *Time_t) (tt Time_t, err error) { - r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) - tt = Time_t(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go deleted file mode 100644 index 4cb59b4..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ /dev/null @@ -1,2135 +0,0 @@ -// mksyscall.pl -tags linux,mips64 syscall_linux.go syscall_linux_mips64x.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,mips64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fstat(fd int, st *stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func lstat(path string, st *stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func stat(path string, st *stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go deleted file mode 100644 index 0b547ae..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ /dev/null @@ -1,2135 +0,0 @@ -// mksyscall.pl -tags linux,mips64le syscall_linux.go syscall_linux_mips64x.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,mips64le - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fstat(fd int, st *stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func lstat(path string, st *stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func stat(path string, st *stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(st)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go deleted file mode 100644 index cd94d3a..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ /dev/null @@ -1,2152 +0,0 @@ -// mksyscall.pl -l32 -arm -tags linux,mipsle syscall_linux.go syscall_linux_mipsx.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,mipsle - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(off>>32), uintptr(len), uintptr(len>>32)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE64, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, r1, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall9(SYS_SYNC_FILE_RANGE, uintptr(fd), 0, uintptr(off), uintptr(off>>32), uintptr(n), uintptr(n>>32), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Time(t *Time_t) (tt Time_t, err error) { - r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) - tt = Time_t(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setrlimit(resource int, rlim *rlimit32) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go deleted file mode 100644 index cdad555..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ /dev/null @@ -1,2198 +0,0 @@ -// mksyscall.pl -tags linux,ppc64 syscall_linux.go syscall_linux_ppc64x.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,ppc64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Time(t *Time_t) (tt Time_t, err error) { - r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) - tt = Time_t(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go deleted file mode 100644 index 38f4e44..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ /dev/null @@ -1,2198 +0,0 @@ -// mksyscall.pl -tags linux,ppc64le syscall_linux.go syscall_linux_ppc64x.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,ppc64le - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ioperm(from int, num int, on int) (err error) { - _, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Iopl(level int) (err error) { - _, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Time(t *Time_t) (tt Time_t, err error) { - r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0) - tt = Time_t(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go deleted file mode 100644 index c443baf..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ /dev/null @@ -1,1978 +0,0 @@ -// mksyscall.pl -tags linux,s390x syscall_linux.go syscall_linux_s390x.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,s390x - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fchmodat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlInt(cmd int, arg2 int, arg3 int, arg4 int, arg5 int) (ret int, err error) { - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func KeyctlBuffer(cmd int, arg2 int, buf []byte, arg5 int) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(buf)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlJoin(cmd int, arg2 string) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg2) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlSearch(cmd int, arg2 int, arg3 string, arg4 string, arg5 int) (ret int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg3) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(arg4) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(arg5), 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlIOV(cmd int, arg2 int, payload []Iovec, arg5 int) (err error) { - var _p0 unsafe.Pointer - if len(payload) > 0 { - _p0 = unsafe.Pointer(&payload[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(arg2), uintptr(_p0), uintptr(len(payload)), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func keyctlDH(cmd int, arg2 *KeyctlDHParams, buf []byte) (ret int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_KEYCTL, uintptr(cmd), uintptr(unsafe.Pointer(arg2)), uintptr(_p0), uintptr(len(buf)), 0, 0) - ret = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func AddKey(keyType string, description string, payload []byte, ringid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(payload) > 0 { - _p2 = unsafe.Pointer(&payload[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_ADD_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(payload)), uintptr(ringid), 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Eventfd(initval uint, flags int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_EVENTFD2, uintptr(initval), uintptr(flags), 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - SyscallNoError(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _ := RawSyscallNoError(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _ := RawSyscallNoError(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _ := RawSyscallNoError(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lgetxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Llistxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lremovexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lsetxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pselect(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PSELECT6, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func RequestKey(keyType string, description string, callback string, destRingid int) (id int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(keyType) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(description) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(callback) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_REQUEST_KEY, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(destRingid), 0, 0) - id = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statx(dirfd int, path string, flags int, mask int, stat *Statx_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_STATX, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mask), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - SyscallNoError(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Syncfs(fd int) (err error) { - _, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _ := RawSyscallNoError(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fadvise(fd int, offset int64, length int64, advice int) (err error) { - _, _, e1 := Syscall6(SYS_FADVISE64, uintptr(fd), uintptr(offset), uintptr(length), uintptr(advice), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_NEWFSTATAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go deleted file mode 100644 index 2dd9843..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ /dev/null @@ -1,1833 +0,0 @@ -// mksyscall.pl -tags linux,sparc64 syscall_linux.go syscall_linux_sparc64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build linux,sparc64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_LINKAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { - r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlinkat(dirfd int, path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlinkat(oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func reboot(magic1 uint, magic2 uint, cmd int, arg string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(arg) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_REBOOT, uintptr(magic1), uintptr(magic2), uintptr(cmd), uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mount(source string, target string, fstype string, flags uintptr, data *byte) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(source) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(target) - if err != nil { - return - } - var _p2 *byte - _p2, err = BytePtrFromString(fstype) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(unsafe.Pointer(_p2)), uintptr(flags), uintptr(unsafe.Pointer(data)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Acct(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtimex(buf *Timex) (state int, err error) { - r0, _, e1 := Syscall(SYS_ADJTIMEX, uintptr(unsafe.Pointer(buf)), 0, 0) - state = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ClockGettime(clockid int32, time *Timespec) (err error) { - _, _, e1 := Syscall(SYS_CLOCK_GETTIME, uintptr(clockid), uintptr(unsafe.Pointer(time)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { - r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(oldfd int) (fd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(oldfd), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup3(oldfd int, newfd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_DUP3, uintptr(oldfd), uintptr(newfd), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate(size int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCreate1(flag int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE1, uintptr(flag), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - _, _, e1 := RawSyscall6(SYS_EPOLL_CTL, uintptr(epfd), uintptr(op), uintptr(fd), uintptr(unsafe.Pointer(event)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT_GROUP, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fallocate(fd int, mode uint32, off int64, len int64) (err error) { - _, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off), uintptr(len), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fdatasync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FDATASYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrandom(buf []byte, flags int) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETRANDOM, uintptr(_p0), uintptr(len(buf)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettid() (tid int) { - r0, _, _ := RawSyscall(SYS_GETTID, 0, 0, 0) - tid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getxattr(path string, attr string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(dest) > 0 { - _p2 = unsafe.Pointer(&dest[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_GETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyAddWatch(fd int, pathname string, mask uint32) (watchdesc int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(pathname) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_INOTIFY_ADD_WATCH, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mask)) - watchdesc = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit1(flags int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT1, uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyRmWatch(fd int, watchdesc uint32) (success int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_RM_WATCH, uintptr(fd), uintptr(watchdesc), 0) - success = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_KILL, uintptr(pid), uintptr(sig), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Klogctl(typ int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_SYSLOG, uintptr(typ), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listxattr(path string, dest []byte) (sz int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(dest) > 0 { - _p1 = unsafe.Pointer(&dest[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_LISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest))) - sz = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func PivotRoot(newroot string, putold string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(newroot) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(putold) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_PIVOT_ROOT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) { - _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(newlimit)), uintptr(unsafe.Pointer(old)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) { - _, _, e1 := Syscall6(SYS_PRCTL, uintptr(option), uintptr(arg2), uintptr(arg3), uintptr(arg4), uintptr(arg5), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Removexattr(path string, attr string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setdomainname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETDOMAINNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sethostname(p []byte) (err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_SETHOSTNAME, uintptr(_p0), uintptr(len(p)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setns(fd int, nstype int) (err error) { - _, _, e1 := Syscall(SYS_SETNS, uintptr(fd), uintptr(nstype), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setxattr(path string, attr string, data []byte, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(attr) - if err != nil { - return - } - var _p2 unsafe.Pointer - if len(data) > 0 { - _p2 = unsafe.Pointer(&data[0]) - } else { - _p2 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() { - Syscall(SYS_SYNC, 0, 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sysinfo(info *Sysinfo_t) (err error) { - _, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - _, _, e1 := RawSyscall(SYS_TGKILL, uintptr(tgid), uintptr(tid), uintptr(sig)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := RawSyscall(SYS_TIMES, uintptr(unsafe.Pointer(tms)), 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(mask int) (oldmask int) { - r0, _, _ := RawSyscall(SYS_UMASK, uintptr(mask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Uname(buf *Utsname) (err error) { - _, _, e1 := RawSyscall(SYS_UNAME, uintptr(unsafe.Pointer(buf)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UMOUNT2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unshare(flags int) (err error) { - _, _, e1 := Syscall(SYS_UNSHARE, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func exitThread(code int) (err error) { - _, _, e1 := Syscall(SYS_EXIT, uintptr(code), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, advice int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(advice)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - var _p0 unsafe.Pointer - if len(events) > 0 { - _p0 = unsafe.Pointer(&events[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, buf *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (euid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - euid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func InotifyInit() (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, n int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pause() (err error) { - _, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (off int64, err error) { - r0, _, e1 := Syscall(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(whence)) - off = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { - r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) { - r0, _, e1 := Syscall6(SYS_SENDFILE, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0) - written = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsgid(gid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setfsuid(uid int) (err error) { - _, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(resource int, rlim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) { - r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) - n = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, buf *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func SyncFileRange(fd int, off int64, n int64, flags int) (err error) { - _, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE, uintptr(fd), uintptr(off), uintptr(n), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) { - r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(n int, list *_Gid_t) (nn int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - nn = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(n int, list *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) { - r0, _, e1 := Syscall6(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(offset)) - xaddr = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe2(p *[2]_C_int, flags int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go deleted file mode 100644 index 62eadff..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +++ /dev/null @@ -1,1384 +0,0 @@ -// mksyscall.pl -l32 -netbsd -tags netbsd,386 syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build netbsd,386 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (fd1 int, fd2 int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - fd1 = int(r0) - fd2 = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go deleted file mode 100644 index 307f4e9..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ /dev/null @@ -1,1384 +0,0 @@ -// mksyscall.pl -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build netbsd,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (fd1 int, fd2 int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - fd1 = int(r0) - fd2 = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go deleted file mode 100644 index 6110931..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ /dev/null @@ -1,1384 +0,0 @@ -// mksyscall.pl -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build netbsd,arm - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe() (fd1 int, fd2 int, err error) { - r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0) - fd1 = int(r0) - fd2 = int(r1) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go deleted file mode 100644 index 003f820..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ /dev/null @@ -1,1442 +0,0 @@ -// mksyscall.pl -l32 -openbsd -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build openbsd,386 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go deleted file mode 100644 index ba0e8f3..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ /dev/null @@ -1,1442 +0,0 @@ -// mksyscall.pl -openbsd -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build openbsd,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0) - newoffset = int64(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go deleted file mode 100644 index 2ce02c7..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ /dev/null @@ -1,1442 +0,0 @@ -// mksyscall.pl -l32 -openbsd -arm -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build openbsd,arm - -package unix - -import ( - "syscall" - "unsafe" -) - -var _ syscall.Errno - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { - r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Shutdown(s int, how int) (err error) { - _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { - r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) { - var _p0 unsafe.Pointer - if len(mib) > 0 { - _p0 = unsafe.Pointer(&mib[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimes(path string, timeval *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func futimes(fd int, timeval *[2]Timeval) (err error) { - _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Madvise(b []byte, behav int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mlockall(flags int) (err error) { - _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mprotect(b []byte, prot int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Msync(b []byte, flags int) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlock(b []byte) (err error) { - var _p0 unsafe.Pointer - if len(b) > 0 { - _p0 = unsafe.Pointer(&b[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Munlockall() (err error) { - _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func pipe(p *[2]_C_int) (err error) { - _, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func getdents(fd int, buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getcwd(buf []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chflags(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Close(fd int) (err error) { - _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0) - nfd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Dup2(from int, to int) (err error) { - _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Exit(code int) { - Syscall(SYS_EXIT, uintptr(code), 0, 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchdir(fd int) (err error) { - _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchflags(fd int, flags int) (err error) { - _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Flock(fd int, how int) (err error) { - _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fstatfs(fd int, stat *Statfs_t) (err error) { - _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Fsync(fd int) (err error) { - _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getegid() (egid int) { - r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0) - egid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Geteuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getgid() (gid int) { - r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) - gid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) - pgid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpgrp() (pgrp int) { - r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0) - pgrp = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpid() (pid int) { - r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0) - pid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getppid() (ppid int) { - r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0) - ppid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getpriority(which int, who int) (prio int, err error) { - r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0) - prio = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getsid(pid int) (sid int, err error) { - r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0) - sid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Getuid() (uid int) { - r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0) - uid = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Issetugid() (tainted bool) { - r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0) - tainted = bool(r0 != 0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Kqueue() (fd int, err error) { - r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Listen(s int, backlog int) (err error) { - _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) - fd = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) - val = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func read(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 unsafe.Pointer - if len(buf) > 0 { - _p1 = unsafe.Pointer(&buf[0]) - } else { - _p1 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Revoke(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) - newoffset = int64(int64(r1)<<32 | int64(r0)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := Syscall6(SYS_SELECT, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setegid(egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Seteuid(euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setgid(gid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setlogin(name string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(name) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresgid(rgid int, egid int, sgid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setresuid(ruid int, euid int, suid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setsid() (pid int, err error) { - r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Settimeofday(tp *Timeval) (err error) { - _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Setuid(uid int) (err error) { - _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Statfs(path string, stat *Statfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Sync() (err error) { - _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Umask(newmask int) (oldmask int) { - r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0) - oldmask = int(r0) - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func Unmount(path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func write(fd int, p []byte) (n int, err error) { - var _p0 unsafe.Pointer - if len(p) > 0 { - _p0 = unsafe.Pointer(&p[0]) - } else { - _p0 = unsafe.Pointer(&_zero) - } - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p))) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) - ret = uintptr(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func readlen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func writelen(fd int, buf *byte, nbuf int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - -func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go deleted file mode 100644 index f5d01b3..0000000 --- a/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +++ /dev/null @@ -1,1653 +0,0 @@ -// mksyscall_solaris.pl -tags solaris,amd64 syscall_solaris.go syscall_solaris_amd64.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build solaris,amd64 - -package unix - -import ( - "syscall" - "unsafe" -) - -//go:cgo_import_dynamic libc_pipe pipe "libc.so" -//go:cgo_import_dynamic libc_getsockname getsockname "libsocket.so" -//go:cgo_import_dynamic libc_getcwd getcwd "libc.so" -//go:cgo_import_dynamic libc_getgroups getgroups "libc.so" -//go:cgo_import_dynamic libc_setgroups setgroups "libc.so" -//go:cgo_import_dynamic libc_wait4 wait4 "libc.so" -//go:cgo_import_dynamic libc_gethostname gethostname "libc.so" -//go:cgo_import_dynamic libc_utimes utimes "libc.so" -//go:cgo_import_dynamic libc_utimensat utimensat "libc.so" -//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" -//go:cgo_import_dynamic libc_futimesat futimesat "libc.so" -//go:cgo_import_dynamic libc_accept accept "libsocket.so" -//go:cgo_import_dynamic libc___xnet_recvmsg __xnet_recvmsg "libsocket.so" -//go:cgo_import_dynamic libc___xnet_sendmsg __xnet_sendmsg "libsocket.so" -//go:cgo_import_dynamic libc_acct acct "libc.so" -//go:cgo_import_dynamic libc___makedev __makedev "libc.so" -//go:cgo_import_dynamic libc___major __major "libc.so" -//go:cgo_import_dynamic libc___minor __minor "libc.so" -//go:cgo_import_dynamic libc_ioctl ioctl "libc.so" -//go:cgo_import_dynamic libc_poll poll "libc.so" -//go:cgo_import_dynamic libc_access access "libc.so" -//go:cgo_import_dynamic libc_adjtime adjtime "libc.so" -//go:cgo_import_dynamic libc_chdir chdir "libc.so" -//go:cgo_import_dynamic libc_chmod chmod "libc.so" -//go:cgo_import_dynamic libc_chown chown "libc.so" -//go:cgo_import_dynamic libc_chroot chroot "libc.so" -//go:cgo_import_dynamic libc_close close "libc.so" -//go:cgo_import_dynamic libc_creat creat "libc.so" -//go:cgo_import_dynamic libc_dup dup "libc.so" -//go:cgo_import_dynamic libc_dup2 dup2 "libc.so" -//go:cgo_import_dynamic libc_exit exit "libc.so" -//go:cgo_import_dynamic libc_fchdir fchdir "libc.so" -//go:cgo_import_dynamic libc_fchmod fchmod "libc.so" -//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" -//go:cgo_import_dynamic libc_fchown fchown "libc.so" -//go:cgo_import_dynamic libc_fchownat fchownat "libc.so" -//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so" -//go:cgo_import_dynamic libc_flock flock "libc.so" -//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" -//go:cgo_import_dynamic libc_fstat fstat "libc.so" -//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so" -//go:cgo_import_dynamic libc_getdents getdents "libc.so" -//go:cgo_import_dynamic libc_getgid getgid "libc.so" -//go:cgo_import_dynamic libc_getpid getpid "libc.so" -//go:cgo_import_dynamic libc_getpgid getpgid "libc.so" -//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" -//go:cgo_import_dynamic libc_geteuid geteuid "libc.so" -//go:cgo_import_dynamic libc_getegid getegid "libc.so" -//go:cgo_import_dynamic libc_getppid getppid "libc.so" -//go:cgo_import_dynamic libc_getpriority getpriority "libc.so" -//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" -//go:cgo_import_dynamic libc_getrusage getrusage "libc.so" -//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" -//go:cgo_import_dynamic libc_getuid getuid "libc.so" -//go:cgo_import_dynamic libc_kill kill "libc.so" -//go:cgo_import_dynamic libc_lchown lchown "libc.so" -//go:cgo_import_dynamic libc_link link "libc.so" -//go:cgo_import_dynamic libc___xnet_llisten __xnet_llisten "libsocket.so" -//go:cgo_import_dynamic libc_lstat lstat "libc.so" -//go:cgo_import_dynamic libc_madvise madvise "libc.so" -//go:cgo_import_dynamic libc_mkdir mkdir "libc.so" -//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" -//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" -//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" -//go:cgo_import_dynamic libc_mknod mknod "libc.so" -//go:cgo_import_dynamic libc_mknodat mknodat "libc.so" -//go:cgo_import_dynamic libc_mlock mlock "libc.so" -//go:cgo_import_dynamic libc_mlockall mlockall "libc.so" -//go:cgo_import_dynamic libc_mprotect mprotect "libc.so" -//go:cgo_import_dynamic libc_msync msync "libc.so" -//go:cgo_import_dynamic libc_munlock munlock "libc.so" -//go:cgo_import_dynamic libc_munlockall munlockall "libc.so" -//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" -//go:cgo_import_dynamic libc_open open "libc.so" -//go:cgo_import_dynamic libc_openat openat "libc.so" -//go:cgo_import_dynamic libc_pathconf pathconf "libc.so" -//go:cgo_import_dynamic libc_pause pause "libc.so" -//go:cgo_import_dynamic libc_pread pread "libc.so" -//go:cgo_import_dynamic libc_pwrite pwrite "libc.so" -//go:cgo_import_dynamic libc_read read "libc.so" -//go:cgo_import_dynamic libc_readlink readlink "libc.so" -//go:cgo_import_dynamic libc_rename rename "libc.so" -//go:cgo_import_dynamic libc_renameat renameat "libc.so" -//go:cgo_import_dynamic libc_rmdir rmdir "libc.so" -//go:cgo_import_dynamic libc_lseek lseek "libc.so" -//go:cgo_import_dynamic libc_select select "libc.so" -//go:cgo_import_dynamic libc_setegid setegid "libc.so" -//go:cgo_import_dynamic libc_seteuid seteuid "libc.so" -//go:cgo_import_dynamic libc_setgid setgid "libc.so" -//go:cgo_import_dynamic libc_sethostname sethostname "libc.so" -//go:cgo_import_dynamic libc_setpgid setpgid "libc.so" -//go:cgo_import_dynamic libc_setpriority setpriority "libc.so" -//go:cgo_import_dynamic libc_setregid setregid "libc.so" -//go:cgo_import_dynamic libc_setreuid setreuid "libc.so" -//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" -//go:cgo_import_dynamic libc_setsid setsid "libc.so" -//go:cgo_import_dynamic libc_setuid setuid "libc.so" -//go:cgo_import_dynamic libc_shutdown shutdown "libsocket.so" -//go:cgo_import_dynamic libc_stat stat "libc.so" -//go:cgo_import_dynamic libc_statvfs statvfs "libc.so" -//go:cgo_import_dynamic libc_symlink symlink "libc.so" -//go:cgo_import_dynamic libc_sync sync "libc.so" -//go:cgo_import_dynamic libc_times times "libc.so" -//go:cgo_import_dynamic libc_truncate truncate "libc.so" -//go:cgo_import_dynamic libc_fsync fsync "libc.so" -//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" -//go:cgo_import_dynamic libc_umask umask "libc.so" -//go:cgo_import_dynamic libc_uname uname "libc.so" -//go:cgo_import_dynamic libc_umount umount "libc.so" -//go:cgo_import_dynamic libc_unlink unlink "libc.so" -//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" -//go:cgo_import_dynamic libc_ustat ustat "libc.so" -//go:cgo_import_dynamic libc_utime utime "libc.so" -//go:cgo_import_dynamic libc___xnet_bind __xnet_bind "libsocket.so" -//go:cgo_import_dynamic libc___xnet_connect __xnet_connect "libsocket.so" -//go:cgo_import_dynamic libc_mmap mmap "libc.so" -//go:cgo_import_dynamic libc_munmap munmap "libc.so" -//go:cgo_import_dynamic libc___xnet_sendto __xnet_sendto "libsocket.so" -//go:cgo_import_dynamic libc___xnet_socket __xnet_socket "libsocket.so" -//go:cgo_import_dynamic libc___xnet_socketpair __xnet_socketpair "libsocket.so" -//go:cgo_import_dynamic libc_write write "libc.so" -//go:cgo_import_dynamic libc___xnet_getsockopt __xnet_getsockopt "libsocket.so" -//go:cgo_import_dynamic libc_getpeername getpeername "libsocket.so" -//go:cgo_import_dynamic libc_setsockopt setsockopt "libsocket.so" -//go:cgo_import_dynamic libc_recvfrom recvfrom "libsocket.so" - -//go:linkname procpipe libc_pipe -//go:linkname procgetsockname libc_getsockname -//go:linkname procGetcwd libc_getcwd -//go:linkname procgetgroups libc_getgroups -//go:linkname procsetgroups libc_setgroups -//go:linkname procwait4 libc_wait4 -//go:linkname procgethostname libc_gethostname -//go:linkname procutimes libc_utimes -//go:linkname procutimensat libc_utimensat -//go:linkname procfcntl libc_fcntl -//go:linkname procfutimesat libc_futimesat -//go:linkname procaccept libc_accept -//go:linkname proc__xnet_recvmsg libc___xnet_recvmsg -//go:linkname proc__xnet_sendmsg libc___xnet_sendmsg -//go:linkname procacct libc_acct -//go:linkname proc__makedev libc___makedev -//go:linkname proc__major libc___major -//go:linkname proc__minor libc___minor -//go:linkname procioctl libc_ioctl -//go:linkname procpoll libc_poll -//go:linkname procAccess libc_access -//go:linkname procAdjtime libc_adjtime -//go:linkname procChdir libc_chdir -//go:linkname procChmod libc_chmod -//go:linkname procChown libc_chown -//go:linkname procChroot libc_chroot -//go:linkname procClose libc_close -//go:linkname procCreat libc_creat -//go:linkname procDup libc_dup -//go:linkname procDup2 libc_dup2 -//go:linkname procExit libc_exit -//go:linkname procFchdir libc_fchdir -//go:linkname procFchmod libc_fchmod -//go:linkname procFchmodat libc_fchmodat -//go:linkname procFchown libc_fchown -//go:linkname procFchownat libc_fchownat -//go:linkname procFdatasync libc_fdatasync -//go:linkname procFlock libc_flock -//go:linkname procFpathconf libc_fpathconf -//go:linkname procFstat libc_fstat -//go:linkname procFstatvfs libc_fstatvfs -//go:linkname procGetdents libc_getdents -//go:linkname procGetgid libc_getgid -//go:linkname procGetpid libc_getpid -//go:linkname procGetpgid libc_getpgid -//go:linkname procGetpgrp libc_getpgrp -//go:linkname procGeteuid libc_geteuid -//go:linkname procGetegid libc_getegid -//go:linkname procGetppid libc_getppid -//go:linkname procGetpriority libc_getpriority -//go:linkname procGetrlimit libc_getrlimit -//go:linkname procGetrusage libc_getrusage -//go:linkname procGettimeofday libc_gettimeofday -//go:linkname procGetuid libc_getuid -//go:linkname procKill libc_kill -//go:linkname procLchown libc_lchown -//go:linkname procLink libc_link -//go:linkname proc__xnet_llisten libc___xnet_llisten -//go:linkname procLstat libc_lstat -//go:linkname procMadvise libc_madvise -//go:linkname procMkdir libc_mkdir -//go:linkname procMkdirat libc_mkdirat -//go:linkname procMkfifo libc_mkfifo -//go:linkname procMkfifoat libc_mkfifoat -//go:linkname procMknod libc_mknod -//go:linkname procMknodat libc_mknodat -//go:linkname procMlock libc_mlock -//go:linkname procMlockall libc_mlockall -//go:linkname procMprotect libc_mprotect -//go:linkname procMsync libc_msync -//go:linkname procMunlock libc_munlock -//go:linkname procMunlockall libc_munlockall -//go:linkname procNanosleep libc_nanosleep -//go:linkname procOpen libc_open -//go:linkname procOpenat libc_openat -//go:linkname procPathconf libc_pathconf -//go:linkname procPause libc_pause -//go:linkname procPread libc_pread -//go:linkname procPwrite libc_pwrite -//go:linkname procread libc_read -//go:linkname procReadlink libc_readlink -//go:linkname procRename libc_rename -//go:linkname procRenameat libc_renameat -//go:linkname procRmdir libc_rmdir -//go:linkname proclseek libc_lseek -//go:linkname procSelect libc_select -//go:linkname procSetegid libc_setegid -//go:linkname procSeteuid libc_seteuid -//go:linkname procSetgid libc_setgid -//go:linkname procSethostname libc_sethostname -//go:linkname procSetpgid libc_setpgid -//go:linkname procSetpriority libc_setpriority -//go:linkname procSetregid libc_setregid -//go:linkname procSetreuid libc_setreuid -//go:linkname procSetrlimit libc_setrlimit -//go:linkname procSetsid libc_setsid -//go:linkname procSetuid libc_setuid -//go:linkname procshutdown libc_shutdown -//go:linkname procStat libc_stat -//go:linkname procStatvfs libc_statvfs -//go:linkname procSymlink libc_symlink -//go:linkname procSync libc_sync -//go:linkname procTimes libc_times -//go:linkname procTruncate libc_truncate -//go:linkname procFsync libc_fsync -//go:linkname procFtruncate libc_ftruncate -//go:linkname procUmask libc_umask -//go:linkname procUname libc_uname -//go:linkname procumount libc_umount -//go:linkname procUnlink libc_unlink -//go:linkname procUnlinkat libc_unlinkat -//go:linkname procUstat libc_ustat -//go:linkname procUtime libc_utime -//go:linkname proc__xnet_bind libc___xnet_bind -//go:linkname proc__xnet_connect libc___xnet_connect -//go:linkname procmmap libc_mmap -//go:linkname procmunmap libc_munmap -//go:linkname proc__xnet_sendto libc___xnet_sendto -//go:linkname proc__xnet_socket libc___xnet_socket -//go:linkname proc__xnet_socketpair libc___xnet_socketpair -//go:linkname procwrite libc_write -//go:linkname proc__xnet_getsockopt libc___xnet_getsockopt -//go:linkname procgetpeername libc_getpeername -//go:linkname procsetsockopt libc_setsockopt -//go:linkname procrecvfrom libc_recvfrom - -var ( - procpipe, - procgetsockname, - procGetcwd, - procgetgroups, - procsetgroups, - procwait4, - procgethostname, - procutimes, - procutimensat, - procfcntl, - procfutimesat, - procaccept, - proc__xnet_recvmsg, - proc__xnet_sendmsg, - procacct, - proc__makedev, - proc__major, - proc__minor, - procioctl, - procpoll, - procAccess, - procAdjtime, - procChdir, - procChmod, - procChown, - procChroot, - procClose, - procCreat, - procDup, - procDup2, - procExit, - procFchdir, - procFchmod, - procFchmodat, - procFchown, - procFchownat, - procFdatasync, - procFlock, - procFpathconf, - procFstat, - procFstatvfs, - procGetdents, - procGetgid, - procGetpid, - procGetpgid, - procGetpgrp, - procGeteuid, - procGetegid, - procGetppid, - procGetpriority, - procGetrlimit, - procGetrusage, - procGettimeofday, - procGetuid, - procKill, - procLchown, - procLink, - proc__xnet_llisten, - procLstat, - procMadvise, - procMkdir, - procMkdirat, - procMkfifo, - procMkfifoat, - procMknod, - procMknodat, - procMlock, - procMlockall, - procMprotect, - procMsync, - procMunlock, - procMunlockall, - procNanosleep, - procOpen, - procOpenat, - procPathconf, - procPause, - procPread, - procPwrite, - procread, - procReadlink, - procRename, - procRenameat, - procRmdir, - proclseek, - procSelect, - procSetegid, - procSeteuid, - procSetgid, - procSethostname, - procSetpgid, - procSetpriority, - procSetregid, - procSetreuid, - procSetrlimit, - procSetsid, - procSetuid, - procshutdown, - procStat, - procStatvfs, - procSymlink, - procSync, - procTimes, - procTruncate, - procFsync, - procFtruncate, - procUmask, - procUname, - procumount, - procUnlink, - procUnlinkat, - procUstat, - procUtime, - proc__xnet_bind, - proc__xnet_connect, - procmmap, - procmunmap, - proc__xnet_sendto, - proc__xnet_socket, - proc__xnet_socketpair, - procwrite, - proc__xnet_getsockopt, - procgetpeername, - procsetsockopt, - procrecvfrom syscallFunc -) - -func pipe(p *[2]_C_int) (n int, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procpipe)), 1, uintptr(unsafe.Pointer(p)), 0, 0, 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetsockname)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Getcwd(buf []byte) (n int, err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetcwd)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func getgroups(ngid int, gid *_Gid_t) (n int, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func setgroups(ngid int, gid *_Gid_t) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procsetgroups)), 2, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func wait4(pid int32, statusp *_C_int, options int, rusage *Rusage) (wpid int32, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwait4)), 4, uintptr(pid), uintptr(unsafe.Pointer(statusp)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) - wpid = int32(r0) - if e1 != 0 { - err = e1 - } - return -} - -func gethostname(buf []byte) (n int, err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), 0, 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func utimes(path string, times *[2]Timeval) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimes)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func utimensat(fd int, path string, times *[2]Timespec, flag int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procutimensat)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flag), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func fcntl(fd int, cmd int, arg int) (val int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0) - val = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func futimesat(fildes int, path *byte, times *[2]Timeval) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfutimesat)), 3, uintptr(fildes), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times)), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept)), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_recvmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendmsg)), 3, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func acct(path *byte) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procacct)), 1, uintptr(unsafe.Pointer(path)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func __makedev(version int, major uint, minor uint) (val uint64) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__makedev)), 3, uintptr(version), uintptr(major), uintptr(minor), 0, 0, 0) - val = uint64(r0) - return -} - -func __major(version int, dev uint64) (val uint) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__major)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0) - val = uint(r0) - return -} - -func __minor(version int, dev uint64) (val uint) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&proc__minor)), 2, uintptr(version), uintptr(dev), 0, 0, 0, 0) - val = uint(r0) - return -} - -func ioctl(fd int, req uint, arg uintptr) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procioctl)), 3, uintptr(fd), uintptr(req), uintptr(arg), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpoll)), 3, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Access(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAccess)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procAdjtime)), 2, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Chdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Chmod(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChmod)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Chown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Chroot(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procChroot)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Close(fd int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procClose)), 1, uintptr(fd), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Creat(path string, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procCreat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Dup(fd int) (nfd int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup)), 1, uintptr(fd), 0, 0, 0, 0, 0) - nfd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Dup2(oldfd int, newfd int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procDup2)), 2, uintptr(oldfd), uintptr(newfd), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Exit(code int) { - sysvicall6(uintptr(unsafe.Pointer(&procExit)), 1, uintptr(code), 0, 0, 0, 0, 0) - return -} - -func Fchdir(fd int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchdir)), 1, uintptr(fd), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fchmod(fd int, mode uint32) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmod)), 2, uintptr(fd), uintptr(mode), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchmodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fchown(fd int, uid int, gid int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchown)), 3, uintptr(fd), uintptr(uid), uintptr(gid), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFchownat)), 5, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fdatasync(fd int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFdatasync)), 1, uintptr(fd), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Flock(fd int, how int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fpathconf(fd int, name int) (val int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0) - val = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Fstat(fd int, stat *Stat_t) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstat)), 2, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fstatvfs(fd int, vfsstat *Statvfs_t) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFstatvfs)), 2, uintptr(fd), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Getdents(fd int, buf []byte, basep *uintptr) (n int, err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetdents)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(basep)), 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Getgid() (gid int) { - r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetgid)), 0, 0, 0, 0, 0, 0, 0) - gid = int(r0) - return -} - -func Getpid() (pid int) { - r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpid)), 0, 0, 0, 0, 0, 0, 0) - pid = int(r0) - return -} - -func Getpgid(pid int) (pgid int, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgid)), 1, uintptr(pid), 0, 0, 0, 0, 0) - pgid = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Getpgrp() (pgid int, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetpgrp)), 0, 0, 0, 0, 0, 0, 0) - pgid = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Geteuid() (euid int) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGeteuid)), 0, 0, 0, 0, 0, 0, 0) - euid = int(r0) - return -} - -func Getegid() (egid int) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetegid)), 0, 0, 0, 0, 0, 0, 0) - egid = int(r0) - return -} - -func Getppid() (ppid int) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procGetppid)), 0, 0, 0, 0, 0, 0, 0) - ppid = int(r0) - return -} - -func Getpriority(which int, who int) (n int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procGetpriority)), 2, uintptr(which), uintptr(who), 0, 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Getrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Getrusage(who int, rusage *Rusage) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGetrusage)), 2, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Gettimeofday(tv *Timeval) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procGettimeofday)), 1, uintptr(unsafe.Pointer(tv)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Getuid() (uid int) { - r0, _, _ := rawSysvicall6(uintptr(unsafe.Pointer(&procGetuid)), 0, 0, 0, 0, 0, 0, 0) - uid = int(r0) - return -} - -func Kill(pid int, signum syscall.Signal) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procKill)), 2, uintptr(pid), uintptr(signum), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Lchown(path string, uid int, gid int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLchown)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Link(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Listen(s int, backlog int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_llisten)), 2, uintptr(s), uintptr(backlog), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Lstat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procLstat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Madvise(b []byte, advice int) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMadvise)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(advice), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mkdir(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdir)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mkdirat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkdirat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mkfifo(path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifo)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mkfifoat(dirfd int, path string, mode uint32) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMkfifoat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mknod(path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknod)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mknodat(dirfd int, path string, mode uint32, dev int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMknodat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mlock(b []byte) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mlockall(flags int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMlockall)), 1, uintptr(flags), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Mprotect(b []byte, prot int) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMprotect)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(prot), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Msync(b []byte, flags int) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMsync)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(flags), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Munlock(b []byte) (err error) { - var _p0 *byte - if len(b) > 0 { - _p0 = &b[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlock)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Munlockall() (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procMunlockall)), 0, 0, 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Nanosleep(time *Timespec, leftover *Timespec) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procNanosleep)), 2, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Open(path string, mode int, perm uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpen)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Openat(dirfd int, path string, flags int, mode uint32) (fd int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procOpenat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), uintptr(mode), 0, 0) - fd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Pathconf(path string, name int) (val int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPathconf)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0, 0, 0, 0) - val = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Pause() (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPause)), 0, 0, 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Pread(fd int, p []byte, offset int64) (n int, err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPread)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Pwrite(fd int, p []byte, offset int64) (n int, err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procPwrite)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(offset), 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func read(fd int, p []byte) (n int, err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procread)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Readlink(path string, buf []byte) (n int, err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - if len(buf) > 0 { - _p1 = &buf[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procReadlink)), 3, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(len(buf)), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Rename(from string, to string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(from) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(to) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRename)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(oldpath) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(newpath) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRenameat)), 4, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Rmdir(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procRmdir)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proclseek)), 3, uintptr(fd), uintptr(offset), uintptr(whence), 0, 0, 0) - newoffset = int64(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSelect)), 5, uintptr(n), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setegid(egid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetegid)), 1, uintptr(egid), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Seteuid(euid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSeteuid)), 1, uintptr(euid), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setgid(gid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetgid)), 1, uintptr(gid), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Sethostname(p []byte) (err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSethostname)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setpgid(pid int, pgid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetpgid)), 2, uintptr(pid), uintptr(pgid), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setpriority(which int, who int, prio int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSetpriority)), 3, uintptr(which), uintptr(who), uintptr(prio), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setregid(rgid int, egid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetregid)), 2, uintptr(rgid), uintptr(egid), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setreuid(ruid int, euid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetreuid)), 2, uintptr(ruid), uintptr(euid), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setrlimit(which int, lim *Rlimit) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetrlimit)), 2, uintptr(which), uintptr(unsafe.Pointer(lim)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Setsid() (pid int, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetsid)), 0, 0, 0, 0, 0, 0, 0) - pid = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Setuid(uid int) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procSetuid)), 1, uintptr(uid), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Shutdown(s int, how int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procshutdown)), 2, uintptr(s), uintptr(how), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Stat(path string, stat *Stat_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStat)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Statvfs(path string, vfsstat *Statvfs_t) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procStatvfs)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(vfsstat)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Symlink(path string, link string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - var _p1 *byte - _p1, err = BytePtrFromString(link) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSymlink)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Sync() (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procSync)), 0, 0, 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Times(tms *Tms) (ticks uintptr, err error) { - r0, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procTimes)), 1, uintptr(unsafe.Pointer(tms)), 0, 0, 0, 0, 0) - ticks = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} - -func Truncate(path string, length int64) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procTruncate)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Fsync(fd int) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFsync)), 1, uintptr(fd), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Ftruncate(fd int, length int64) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFtruncate)), 2, uintptr(fd), uintptr(length), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Umask(mask int) (oldmask int) { - r0, _, _ := sysvicall6(uintptr(unsafe.Pointer(&procUmask)), 1, uintptr(mask), 0, 0, 0, 0, 0) - oldmask = int(r0) - return -} - -func Uname(buf *Utsname) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procUname)), 1, uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Unmount(target string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(target) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procumount)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Unlink(path string) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlink)), 1, uintptr(unsafe.Pointer(_p0)), 0, 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Unlinkat(dirfd int, path string, flags int) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUnlinkat)), 3, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Ustat(dev int, ubuf *Ustat_t) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUstat)), 2, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func Utime(path string, buf *Utimbuf) (err error) { - var _p0 *byte - _p0, err = BytePtrFromString(path) - if err != nil { - return - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procUtime)), 2, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_bind)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_connect)), 3, uintptr(s), uintptr(addr), uintptr(addrlen), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmmap)), 6, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) - ret = uintptr(r0) - if e1 != 0 { - err = e1 - } - return -} - -func munmap(addr uintptr, length uintptr) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procmunmap)), 2, uintptr(addr), uintptr(length), 0, 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_sendto)), 6, uintptr(s), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) - if e1 != 0 { - err = e1 - } - return -} - -func socket(domain int, typ int, proto int) (fd int, err error) { - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socket)), 3, uintptr(domain), uintptr(typ), uintptr(proto), 0, 0, 0) - fd = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&proc__xnet_socketpair)), 4, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func write(fd int, p []byte) (n int, err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwrite)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), 0, 0, 0) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} - -func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&proc__xnet_getsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) - if e1 != 0 { - err = e1 - } - return -} - -func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { - _, _, e1 := rawSysvicall6(uintptr(unsafe.Pointer(&procgetpeername)), 3, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0) - if e1 != 0 { - err = e1 - } - return -} - -func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { - _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procsetsockopt)), 5, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) - if e1 != 0 { - err = e1 - } - return -} - -func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) { - var _p0 *byte - if len(p) > 0 { - _p0 = &p[0] - } - r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procrecvfrom)), 6, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) - n = int(r0) - if e1 != 0 { - err = e1 - } - return -} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go deleted file mode 100644 index 83bb935..0000000 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +++ /dev/null @@ -1,270 +0,0 @@ -// mksysctl_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -package unix - -type mibentry struct { - ctlname string - ctloid []_C_int -} - -var sysctlMib = []mibentry{ - {"ddb.console", []_C_int{9, 6}}, - {"ddb.log", []_C_int{9, 7}}, - {"ddb.max_line", []_C_int{9, 3}}, - {"ddb.max_width", []_C_int{9, 2}}, - {"ddb.panic", []_C_int{9, 5}}, - {"ddb.radix", []_C_int{9, 1}}, - {"ddb.tab_stop_width", []_C_int{9, 4}}, - {"ddb.trigger", []_C_int{9, 8}}, - {"fs.posix.setuid", []_C_int{3, 1, 1}}, - {"hw.allowpowerdown", []_C_int{6, 22}}, - {"hw.byteorder", []_C_int{6, 4}}, - {"hw.cpuspeed", []_C_int{6, 12}}, - {"hw.diskcount", []_C_int{6, 10}}, - {"hw.disknames", []_C_int{6, 8}}, - {"hw.diskstats", []_C_int{6, 9}}, - {"hw.machine", []_C_int{6, 1}}, - {"hw.model", []_C_int{6, 2}}, - {"hw.ncpu", []_C_int{6, 3}}, - {"hw.ncpufound", []_C_int{6, 21}}, - {"hw.pagesize", []_C_int{6, 7}}, - {"hw.physmem", []_C_int{6, 19}}, - {"hw.product", []_C_int{6, 15}}, - {"hw.serialno", []_C_int{6, 17}}, - {"hw.setperf", []_C_int{6, 13}}, - {"hw.usermem", []_C_int{6, 20}}, - {"hw.uuid", []_C_int{6, 18}}, - {"hw.vendor", []_C_int{6, 14}}, - {"hw.version", []_C_int{6, 16}}, - {"kern.arandom", []_C_int{1, 37}}, - {"kern.argmax", []_C_int{1, 8}}, - {"kern.boottime", []_C_int{1, 21}}, - {"kern.bufcachepercent", []_C_int{1, 72}}, - {"kern.ccpu", []_C_int{1, 45}}, - {"kern.clockrate", []_C_int{1, 12}}, - {"kern.consdev", []_C_int{1, 75}}, - {"kern.cp_time", []_C_int{1, 40}}, - {"kern.cp_time2", []_C_int{1, 71}}, - {"kern.cryptodevallowsoft", []_C_int{1, 53}}, - {"kern.domainname", []_C_int{1, 22}}, - {"kern.file", []_C_int{1, 73}}, - {"kern.forkstat", []_C_int{1, 42}}, - {"kern.fscale", []_C_int{1, 46}}, - {"kern.fsync", []_C_int{1, 33}}, - {"kern.hostid", []_C_int{1, 11}}, - {"kern.hostname", []_C_int{1, 10}}, - {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, - {"kern.job_control", []_C_int{1, 19}}, - {"kern.malloc.buckets", []_C_int{1, 39, 1}}, - {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, - {"kern.maxclusters", []_C_int{1, 67}}, - {"kern.maxfiles", []_C_int{1, 7}}, - {"kern.maxlocksperuid", []_C_int{1, 70}}, - {"kern.maxpartitions", []_C_int{1, 23}}, - {"kern.maxproc", []_C_int{1, 6}}, - {"kern.maxthread", []_C_int{1, 25}}, - {"kern.maxvnodes", []_C_int{1, 5}}, - {"kern.mbstat", []_C_int{1, 59}}, - {"kern.msgbuf", []_C_int{1, 48}}, - {"kern.msgbufsize", []_C_int{1, 38}}, - {"kern.nchstats", []_C_int{1, 41}}, - {"kern.netlivelocks", []_C_int{1, 76}}, - {"kern.nfiles", []_C_int{1, 56}}, - {"kern.ngroups", []_C_int{1, 18}}, - {"kern.nosuidcoredump", []_C_int{1, 32}}, - {"kern.nprocs", []_C_int{1, 47}}, - {"kern.nselcoll", []_C_int{1, 43}}, - {"kern.nthreads", []_C_int{1, 26}}, - {"kern.numvnodes", []_C_int{1, 58}}, - {"kern.osrelease", []_C_int{1, 2}}, - {"kern.osrevision", []_C_int{1, 3}}, - {"kern.ostype", []_C_int{1, 1}}, - {"kern.osversion", []_C_int{1, 27}}, - {"kern.pool_debug", []_C_int{1, 77}}, - {"kern.posix1version", []_C_int{1, 17}}, - {"kern.proc", []_C_int{1, 66}}, - {"kern.random", []_C_int{1, 31}}, - {"kern.rawpartition", []_C_int{1, 24}}, - {"kern.saved_ids", []_C_int{1, 20}}, - {"kern.securelevel", []_C_int{1, 9}}, - {"kern.seminfo", []_C_int{1, 61}}, - {"kern.shminfo", []_C_int{1, 62}}, - {"kern.somaxconn", []_C_int{1, 28}}, - {"kern.sominconn", []_C_int{1, 29}}, - {"kern.splassert", []_C_int{1, 54}}, - {"kern.stackgap_random", []_C_int{1, 50}}, - {"kern.sysvipc_info", []_C_int{1, 51}}, - {"kern.sysvmsg", []_C_int{1, 34}}, - {"kern.sysvsem", []_C_int{1, 35}}, - {"kern.sysvshm", []_C_int{1, 36}}, - {"kern.timecounter.choice", []_C_int{1, 69, 4}}, - {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, - {"kern.timecounter.tick", []_C_int{1, 69, 1}}, - {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, - {"kern.tty.maxptys", []_C_int{1, 44, 6}}, - {"kern.tty.nptys", []_C_int{1, 44, 7}}, - {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, - {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, - {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, - {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, - {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, - {"kern.ttycount", []_C_int{1, 57}}, - {"kern.userasymcrypto", []_C_int{1, 60}}, - {"kern.usercrypto", []_C_int{1, 52}}, - {"kern.usermount", []_C_int{1, 30}}, - {"kern.version", []_C_int{1, 4}}, - {"kern.vnode", []_C_int{1, 13}}, - {"kern.watchdog.auto", []_C_int{1, 64, 2}}, - {"kern.watchdog.period", []_C_int{1, 64, 1}}, - {"net.bpf.bufsize", []_C_int{4, 31, 1}}, - {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, - {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, - {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, - {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, - {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, - {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, - {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, - {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, - {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, - {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, - {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, - {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, - {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, - {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, - {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, - {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, - {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, - {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, - {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, - {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, - {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, - {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, - {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, - {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, - {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, - {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, - {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, - {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, - {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, - {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, - {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, - {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, - {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, - {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, - {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, - {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, - {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, - {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, - {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, - {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, - {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, - {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, - {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, - {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, - {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, - {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, - {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, - {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, - {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, - {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, - {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, - {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, - {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, - {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}}, - {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, - {"net.inet.pim.stats", []_C_int{4, 2, 103, 1}}, - {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, - {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, - {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, - {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, - {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, - {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, - {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, - {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, - {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, - {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, - {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, - {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, - {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, - {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, - {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, - {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, - {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, - {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, - {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, - {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, - {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, - {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, - {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, - {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, - {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, - {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, - {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, - {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, - {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, - {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, - {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, - {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, - {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, - {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, - {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, - {"net.inet6.icmp6.nd6_prune", []_C_int{4, 24, 30, 6}}, - {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, - {"net.inet6.icmp6.nd6_useloopback", []_C_int{4, 24, 30, 11}}, - {"net.inet6.icmp6.nodeinfo", []_C_int{4, 24, 30, 13}}, - {"net.inet6.icmp6.rediraccept", []_C_int{4, 24, 30, 2}}, - {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, - {"net.inet6.ip6.accept_rtadv", []_C_int{4, 24, 17, 12}}, - {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, - {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, - {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, - {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, - {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, - {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, - {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, - {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, - {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, - {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, - {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, - {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, - {"net.inet6.ip6.maxifdefrouters", []_C_int{4, 24, 17, 47}}, - {"net.inet6.ip6.maxifprefixes", []_C_int{4, 24, 17, 46}}, - {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, - {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, - {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, - {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, - {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, - {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, - {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, - {"net.inet6.ip6.rr_prune", []_C_int{4, 24, 17, 22}}, - {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, - {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, - {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, - {"net.inet6.ip6.v6only", []_C_int{4, 24, 17, 24}}, - {"net.key.sadb_dump", []_C_int{4, 30, 1}}, - {"net.key.spd_dump", []_C_int{4, 30, 2}}, - {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, - {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, - {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, - {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, - {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, - {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, - {"net.mpls.maxloop_inkernel", []_C_int{4, 33, 4}}, - {"net.mpls.ttl", []_C_int{4, 33, 2}}, - {"net.pflow.stats", []_C_int{4, 34, 1}}, - {"net.pipex.enable", []_C_int{4, 35, 1}}, - {"vm.anonmin", []_C_int{2, 7}}, - {"vm.loadavg", []_C_int{2, 2}}, - {"vm.maxslp", []_C_int{2, 10}}, - {"vm.nkmempages", []_C_int{2, 6}}, - {"vm.psstrings", []_C_int{2, 3}}, - {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, - {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, - {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, - {"vm.uspace", []_C_int{2, 11}}, - {"vm.uvmexp", []_C_int{2, 4}}, - {"vm.vmmeter", []_C_int{2, 1}}, - {"vm.vnodemin", []_C_int{2, 9}}, - {"vm.vtextmin", []_C_int{2, 8}}, -} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go deleted file mode 100644 index 83bb935..0000000 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +++ /dev/null @@ -1,270 +0,0 @@ -// mksysctl_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -package unix - -type mibentry struct { - ctlname string - ctloid []_C_int -} - -var sysctlMib = []mibentry{ - {"ddb.console", []_C_int{9, 6}}, - {"ddb.log", []_C_int{9, 7}}, - {"ddb.max_line", []_C_int{9, 3}}, - {"ddb.max_width", []_C_int{9, 2}}, - {"ddb.panic", []_C_int{9, 5}}, - {"ddb.radix", []_C_int{9, 1}}, - {"ddb.tab_stop_width", []_C_int{9, 4}}, - {"ddb.trigger", []_C_int{9, 8}}, - {"fs.posix.setuid", []_C_int{3, 1, 1}}, - {"hw.allowpowerdown", []_C_int{6, 22}}, - {"hw.byteorder", []_C_int{6, 4}}, - {"hw.cpuspeed", []_C_int{6, 12}}, - {"hw.diskcount", []_C_int{6, 10}}, - {"hw.disknames", []_C_int{6, 8}}, - {"hw.diskstats", []_C_int{6, 9}}, - {"hw.machine", []_C_int{6, 1}}, - {"hw.model", []_C_int{6, 2}}, - {"hw.ncpu", []_C_int{6, 3}}, - {"hw.ncpufound", []_C_int{6, 21}}, - {"hw.pagesize", []_C_int{6, 7}}, - {"hw.physmem", []_C_int{6, 19}}, - {"hw.product", []_C_int{6, 15}}, - {"hw.serialno", []_C_int{6, 17}}, - {"hw.setperf", []_C_int{6, 13}}, - {"hw.usermem", []_C_int{6, 20}}, - {"hw.uuid", []_C_int{6, 18}}, - {"hw.vendor", []_C_int{6, 14}}, - {"hw.version", []_C_int{6, 16}}, - {"kern.arandom", []_C_int{1, 37}}, - {"kern.argmax", []_C_int{1, 8}}, - {"kern.boottime", []_C_int{1, 21}}, - {"kern.bufcachepercent", []_C_int{1, 72}}, - {"kern.ccpu", []_C_int{1, 45}}, - {"kern.clockrate", []_C_int{1, 12}}, - {"kern.consdev", []_C_int{1, 75}}, - {"kern.cp_time", []_C_int{1, 40}}, - {"kern.cp_time2", []_C_int{1, 71}}, - {"kern.cryptodevallowsoft", []_C_int{1, 53}}, - {"kern.domainname", []_C_int{1, 22}}, - {"kern.file", []_C_int{1, 73}}, - {"kern.forkstat", []_C_int{1, 42}}, - {"kern.fscale", []_C_int{1, 46}}, - {"kern.fsync", []_C_int{1, 33}}, - {"kern.hostid", []_C_int{1, 11}}, - {"kern.hostname", []_C_int{1, 10}}, - {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, - {"kern.job_control", []_C_int{1, 19}}, - {"kern.malloc.buckets", []_C_int{1, 39, 1}}, - {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, - {"kern.maxclusters", []_C_int{1, 67}}, - {"kern.maxfiles", []_C_int{1, 7}}, - {"kern.maxlocksperuid", []_C_int{1, 70}}, - {"kern.maxpartitions", []_C_int{1, 23}}, - {"kern.maxproc", []_C_int{1, 6}}, - {"kern.maxthread", []_C_int{1, 25}}, - {"kern.maxvnodes", []_C_int{1, 5}}, - {"kern.mbstat", []_C_int{1, 59}}, - {"kern.msgbuf", []_C_int{1, 48}}, - {"kern.msgbufsize", []_C_int{1, 38}}, - {"kern.nchstats", []_C_int{1, 41}}, - {"kern.netlivelocks", []_C_int{1, 76}}, - {"kern.nfiles", []_C_int{1, 56}}, - {"kern.ngroups", []_C_int{1, 18}}, - {"kern.nosuidcoredump", []_C_int{1, 32}}, - {"kern.nprocs", []_C_int{1, 47}}, - {"kern.nselcoll", []_C_int{1, 43}}, - {"kern.nthreads", []_C_int{1, 26}}, - {"kern.numvnodes", []_C_int{1, 58}}, - {"kern.osrelease", []_C_int{1, 2}}, - {"kern.osrevision", []_C_int{1, 3}}, - {"kern.ostype", []_C_int{1, 1}}, - {"kern.osversion", []_C_int{1, 27}}, - {"kern.pool_debug", []_C_int{1, 77}}, - {"kern.posix1version", []_C_int{1, 17}}, - {"kern.proc", []_C_int{1, 66}}, - {"kern.random", []_C_int{1, 31}}, - {"kern.rawpartition", []_C_int{1, 24}}, - {"kern.saved_ids", []_C_int{1, 20}}, - {"kern.securelevel", []_C_int{1, 9}}, - {"kern.seminfo", []_C_int{1, 61}}, - {"kern.shminfo", []_C_int{1, 62}}, - {"kern.somaxconn", []_C_int{1, 28}}, - {"kern.sominconn", []_C_int{1, 29}}, - {"kern.splassert", []_C_int{1, 54}}, - {"kern.stackgap_random", []_C_int{1, 50}}, - {"kern.sysvipc_info", []_C_int{1, 51}}, - {"kern.sysvmsg", []_C_int{1, 34}}, - {"kern.sysvsem", []_C_int{1, 35}}, - {"kern.sysvshm", []_C_int{1, 36}}, - {"kern.timecounter.choice", []_C_int{1, 69, 4}}, - {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, - {"kern.timecounter.tick", []_C_int{1, 69, 1}}, - {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, - {"kern.tty.maxptys", []_C_int{1, 44, 6}}, - {"kern.tty.nptys", []_C_int{1, 44, 7}}, - {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, - {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, - {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, - {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, - {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, - {"kern.ttycount", []_C_int{1, 57}}, - {"kern.userasymcrypto", []_C_int{1, 60}}, - {"kern.usercrypto", []_C_int{1, 52}}, - {"kern.usermount", []_C_int{1, 30}}, - {"kern.version", []_C_int{1, 4}}, - {"kern.vnode", []_C_int{1, 13}}, - {"kern.watchdog.auto", []_C_int{1, 64, 2}}, - {"kern.watchdog.period", []_C_int{1, 64, 1}}, - {"net.bpf.bufsize", []_C_int{4, 31, 1}}, - {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, - {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, - {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, - {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, - {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, - {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, - {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, - {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, - {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, - {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, - {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, - {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, - {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, - {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, - {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, - {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, - {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, - {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, - {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, - {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, - {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, - {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, - {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, - {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, - {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, - {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, - {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, - {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, - {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, - {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, - {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, - {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, - {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, - {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, - {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, - {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, - {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, - {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, - {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, - {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, - {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, - {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, - {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, - {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, - {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, - {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, - {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, - {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, - {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, - {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, - {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, - {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, - {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, - {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}}, - {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, - {"net.inet.pim.stats", []_C_int{4, 2, 103, 1}}, - {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, - {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, - {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, - {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, - {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, - {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, - {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, - {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, - {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, - {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, - {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, - {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, - {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, - {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, - {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, - {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, - {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, - {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, - {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, - {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, - {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, - {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, - {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, - {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, - {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, - {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, - {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, - {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, - {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, - {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, - {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, - {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, - {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, - {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, - {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, - {"net.inet6.icmp6.nd6_prune", []_C_int{4, 24, 30, 6}}, - {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, - {"net.inet6.icmp6.nd6_useloopback", []_C_int{4, 24, 30, 11}}, - {"net.inet6.icmp6.nodeinfo", []_C_int{4, 24, 30, 13}}, - {"net.inet6.icmp6.rediraccept", []_C_int{4, 24, 30, 2}}, - {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, - {"net.inet6.ip6.accept_rtadv", []_C_int{4, 24, 17, 12}}, - {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, - {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, - {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, - {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, - {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, - {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, - {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, - {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, - {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, - {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, - {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, - {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, - {"net.inet6.ip6.maxifdefrouters", []_C_int{4, 24, 17, 47}}, - {"net.inet6.ip6.maxifprefixes", []_C_int{4, 24, 17, 46}}, - {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, - {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, - {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, - {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, - {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, - {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, - {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, - {"net.inet6.ip6.rr_prune", []_C_int{4, 24, 17, 22}}, - {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, - {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, - {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, - {"net.inet6.ip6.v6only", []_C_int{4, 24, 17, 24}}, - {"net.key.sadb_dump", []_C_int{4, 30, 1}}, - {"net.key.spd_dump", []_C_int{4, 30, 2}}, - {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, - {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, - {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, - {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, - {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, - {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, - {"net.mpls.maxloop_inkernel", []_C_int{4, 33, 4}}, - {"net.mpls.ttl", []_C_int{4, 33, 2}}, - {"net.pflow.stats", []_C_int{4, 34, 1}}, - {"net.pipex.enable", []_C_int{4, 35, 1}}, - {"vm.anonmin", []_C_int{2, 7}}, - {"vm.loadavg", []_C_int{2, 2}}, - {"vm.maxslp", []_C_int{2, 10}}, - {"vm.nkmempages", []_C_int{2, 6}}, - {"vm.psstrings", []_C_int{2, 3}}, - {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, - {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, - {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, - {"vm.uspace", []_C_int{2, 11}}, - {"vm.uvmexp", []_C_int{2, 4}}, - {"vm.vmmeter", []_C_int{2, 1}}, - {"vm.vnodemin", []_C_int{2, 9}}, - {"vm.vtextmin", []_C_int{2, 8}}, -} diff --git a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go deleted file mode 100644 index 83bb935..0000000 --- a/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +++ /dev/null @@ -1,270 +0,0 @@ -// mksysctl_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -package unix - -type mibentry struct { - ctlname string - ctloid []_C_int -} - -var sysctlMib = []mibentry{ - {"ddb.console", []_C_int{9, 6}}, - {"ddb.log", []_C_int{9, 7}}, - {"ddb.max_line", []_C_int{9, 3}}, - {"ddb.max_width", []_C_int{9, 2}}, - {"ddb.panic", []_C_int{9, 5}}, - {"ddb.radix", []_C_int{9, 1}}, - {"ddb.tab_stop_width", []_C_int{9, 4}}, - {"ddb.trigger", []_C_int{9, 8}}, - {"fs.posix.setuid", []_C_int{3, 1, 1}}, - {"hw.allowpowerdown", []_C_int{6, 22}}, - {"hw.byteorder", []_C_int{6, 4}}, - {"hw.cpuspeed", []_C_int{6, 12}}, - {"hw.diskcount", []_C_int{6, 10}}, - {"hw.disknames", []_C_int{6, 8}}, - {"hw.diskstats", []_C_int{6, 9}}, - {"hw.machine", []_C_int{6, 1}}, - {"hw.model", []_C_int{6, 2}}, - {"hw.ncpu", []_C_int{6, 3}}, - {"hw.ncpufound", []_C_int{6, 21}}, - {"hw.pagesize", []_C_int{6, 7}}, - {"hw.physmem", []_C_int{6, 19}}, - {"hw.product", []_C_int{6, 15}}, - {"hw.serialno", []_C_int{6, 17}}, - {"hw.setperf", []_C_int{6, 13}}, - {"hw.usermem", []_C_int{6, 20}}, - {"hw.uuid", []_C_int{6, 18}}, - {"hw.vendor", []_C_int{6, 14}}, - {"hw.version", []_C_int{6, 16}}, - {"kern.arandom", []_C_int{1, 37}}, - {"kern.argmax", []_C_int{1, 8}}, - {"kern.boottime", []_C_int{1, 21}}, - {"kern.bufcachepercent", []_C_int{1, 72}}, - {"kern.ccpu", []_C_int{1, 45}}, - {"kern.clockrate", []_C_int{1, 12}}, - {"kern.consdev", []_C_int{1, 75}}, - {"kern.cp_time", []_C_int{1, 40}}, - {"kern.cp_time2", []_C_int{1, 71}}, - {"kern.cryptodevallowsoft", []_C_int{1, 53}}, - {"kern.domainname", []_C_int{1, 22}}, - {"kern.file", []_C_int{1, 73}}, - {"kern.forkstat", []_C_int{1, 42}}, - {"kern.fscale", []_C_int{1, 46}}, - {"kern.fsync", []_C_int{1, 33}}, - {"kern.hostid", []_C_int{1, 11}}, - {"kern.hostname", []_C_int{1, 10}}, - {"kern.intrcnt.nintrcnt", []_C_int{1, 63, 1}}, - {"kern.job_control", []_C_int{1, 19}}, - {"kern.malloc.buckets", []_C_int{1, 39, 1}}, - {"kern.malloc.kmemnames", []_C_int{1, 39, 3}}, - {"kern.maxclusters", []_C_int{1, 67}}, - {"kern.maxfiles", []_C_int{1, 7}}, - {"kern.maxlocksperuid", []_C_int{1, 70}}, - {"kern.maxpartitions", []_C_int{1, 23}}, - {"kern.maxproc", []_C_int{1, 6}}, - {"kern.maxthread", []_C_int{1, 25}}, - {"kern.maxvnodes", []_C_int{1, 5}}, - {"kern.mbstat", []_C_int{1, 59}}, - {"kern.msgbuf", []_C_int{1, 48}}, - {"kern.msgbufsize", []_C_int{1, 38}}, - {"kern.nchstats", []_C_int{1, 41}}, - {"kern.netlivelocks", []_C_int{1, 76}}, - {"kern.nfiles", []_C_int{1, 56}}, - {"kern.ngroups", []_C_int{1, 18}}, - {"kern.nosuidcoredump", []_C_int{1, 32}}, - {"kern.nprocs", []_C_int{1, 47}}, - {"kern.nselcoll", []_C_int{1, 43}}, - {"kern.nthreads", []_C_int{1, 26}}, - {"kern.numvnodes", []_C_int{1, 58}}, - {"kern.osrelease", []_C_int{1, 2}}, - {"kern.osrevision", []_C_int{1, 3}}, - {"kern.ostype", []_C_int{1, 1}}, - {"kern.osversion", []_C_int{1, 27}}, - {"kern.pool_debug", []_C_int{1, 77}}, - {"kern.posix1version", []_C_int{1, 17}}, - {"kern.proc", []_C_int{1, 66}}, - {"kern.random", []_C_int{1, 31}}, - {"kern.rawpartition", []_C_int{1, 24}}, - {"kern.saved_ids", []_C_int{1, 20}}, - {"kern.securelevel", []_C_int{1, 9}}, - {"kern.seminfo", []_C_int{1, 61}}, - {"kern.shminfo", []_C_int{1, 62}}, - {"kern.somaxconn", []_C_int{1, 28}}, - {"kern.sominconn", []_C_int{1, 29}}, - {"kern.splassert", []_C_int{1, 54}}, - {"kern.stackgap_random", []_C_int{1, 50}}, - {"kern.sysvipc_info", []_C_int{1, 51}}, - {"kern.sysvmsg", []_C_int{1, 34}}, - {"kern.sysvsem", []_C_int{1, 35}}, - {"kern.sysvshm", []_C_int{1, 36}}, - {"kern.timecounter.choice", []_C_int{1, 69, 4}}, - {"kern.timecounter.hardware", []_C_int{1, 69, 3}}, - {"kern.timecounter.tick", []_C_int{1, 69, 1}}, - {"kern.timecounter.timestepwarnings", []_C_int{1, 69, 2}}, - {"kern.tty.maxptys", []_C_int{1, 44, 6}}, - {"kern.tty.nptys", []_C_int{1, 44, 7}}, - {"kern.tty.tk_cancc", []_C_int{1, 44, 4}}, - {"kern.tty.tk_nin", []_C_int{1, 44, 1}}, - {"kern.tty.tk_nout", []_C_int{1, 44, 2}}, - {"kern.tty.tk_rawcc", []_C_int{1, 44, 3}}, - {"kern.tty.ttyinfo", []_C_int{1, 44, 5}}, - {"kern.ttycount", []_C_int{1, 57}}, - {"kern.userasymcrypto", []_C_int{1, 60}}, - {"kern.usercrypto", []_C_int{1, 52}}, - {"kern.usermount", []_C_int{1, 30}}, - {"kern.version", []_C_int{1, 4}}, - {"kern.vnode", []_C_int{1, 13}}, - {"kern.watchdog.auto", []_C_int{1, 64, 2}}, - {"kern.watchdog.period", []_C_int{1, 64, 1}}, - {"net.bpf.bufsize", []_C_int{4, 31, 1}}, - {"net.bpf.maxbufsize", []_C_int{4, 31, 2}}, - {"net.inet.ah.enable", []_C_int{4, 2, 51, 1}}, - {"net.inet.ah.stats", []_C_int{4, 2, 51, 2}}, - {"net.inet.carp.allow", []_C_int{4, 2, 112, 1}}, - {"net.inet.carp.log", []_C_int{4, 2, 112, 3}}, - {"net.inet.carp.preempt", []_C_int{4, 2, 112, 2}}, - {"net.inet.carp.stats", []_C_int{4, 2, 112, 4}}, - {"net.inet.divert.recvspace", []_C_int{4, 2, 258, 1}}, - {"net.inet.divert.sendspace", []_C_int{4, 2, 258, 2}}, - {"net.inet.divert.stats", []_C_int{4, 2, 258, 3}}, - {"net.inet.esp.enable", []_C_int{4, 2, 50, 1}}, - {"net.inet.esp.stats", []_C_int{4, 2, 50, 4}}, - {"net.inet.esp.udpencap", []_C_int{4, 2, 50, 2}}, - {"net.inet.esp.udpencap_port", []_C_int{4, 2, 50, 3}}, - {"net.inet.etherip.allow", []_C_int{4, 2, 97, 1}}, - {"net.inet.etherip.stats", []_C_int{4, 2, 97, 2}}, - {"net.inet.gre.allow", []_C_int{4, 2, 47, 1}}, - {"net.inet.gre.wccp", []_C_int{4, 2, 47, 2}}, - {"net.inet.icmp.bmcastecho", []_C_int{4, 2, 1, 2}}, - {"net.inet.icmp.errppslimit", []_C_int{4, 2, 1, 3}}, - {"net.inet.icmp.maskrepl", []_C_int{4, 2, 1, 1}}, - {"net.inet.icmp.rediraccept", []_C_int{4, 2, 1, 4}}, - {"net.inet.icmp.redirtimeout", []_C_int{4, 2, 1, 5}}, - {"net.inet.icmp.stats", []_C_int{4, 2, 1, 7}}, - {"net.inet.icmp.tstamprepl", []_C_int{4, 2, 1, 6}}, - {"net.inet.igmp.stats", []_C_int{4, 2, 2, 1}}, - {"net.inet.ip.arpqueued", []_C_int{4, 2, 0, 36}}, - {"net.inet.ip.encdebug", []_C_int{4, 2, 0, 12}}, - {"net.inet.ip.forwarding", []_C_int{4, 2, 0, 1}}, - {"net.inet.ip.ifq.congestion", []_C_int{4, 2, 0, 30, 4}}, - {"net.inet.ip.ifq.drops", []_C_int{4, 2, 0, 30, 3}}, - {"net.inet.ip.ifq.len", []_C_int{4, 2, 0, 30, 1}}, - {"net.inet.ip.ifq.maxlen", []_C_int{4, 2, 0, 30, 2}}, - {"net.inet.ip.maxqueue", []_C_int{4, 2, 0, 11}}, - {"net.inet.ip.mforwarding", []_C_int{4, 2, 0, 31}}, - {"net.inet.ip.mrtproto", []_C_int{4, 2, 0, 34}}, - {"net.inet.ip.mrtstats", []_C_int{4, 2, 0, 35}}, - {"net.inet.ip.mtu", []_C_int{4, 2, 0, 4}}, - {"net.inet.ip.mtudisc", []_C_int{4, 2, 0, 27}}, - {"net.inet.ip.mtudisctimeout", []_C_int{4, 2, 0, 28}}, - {"net.inet.ip.multipath", []_C_int{4, 2, 0, 32}}, - {"net.inet.ip.portfirst", []_C_int{4, 2, 0, 7}}, - {"net.inet.ip.porthifirst", []_C_int{4, 2, 0, 9}}, - {"net.inet.ip.porthilast", []_C_int{4, 2, 0, 10}}, - {"net.inet.ip.portlast", []_C_int{4, 2, 0, 8}}, - {"net.inet.ip.redirect", []_C_int{4, 2, 0, 2}}, - {"net.inet.ip.sourceroute", []_C_int{4, 2, 0, 5}}, - {"net.inet.ip.stats", []_C_int{4, 2, 0, 33}}, - {"net.inet.ip.ttl", []_C_int{4, 2, 0, 3}}, - {"net.inet.ipcomp.enable", []_C_int{4, 2, 108, 1}}, - {"net.inet.ipcomp.stats", []_C_int{4, 2, 108, 2}}, - {"net.inet.ipip.allow", []_C_int{4, 2, 4, 1}}, - {"net.inet.ipip.stats", []_C_int{4, 2, 4, 2}}, - {"net.inet.mobileip.allow", []_C_int{4, 2, 55, 1}}, - {"net.inet.pfsync.stats", []_C_int{4, 2, 240, 1}}, - {"net.inet.pim.stats", []_C_int{4, 2, 103, 1}}, - {"net.inet.tcp.ackonpush", []_C_int{4, 2, 6, 13}}, - {"net.inet.tcp.always_keepalive", []_C_int{4, 2, 6, 22}}, - {"net.inet.tcp.baddynamic", []_C_int{4, 2, 6, 6}}, - {"net.inet.tcp.drop", []_C_int{4, 2, 6, 19}}, - {"net.inet.tcp.ecn", []_C_int{4, 2, 6, 14}}, - {"net.inet.tcp.ident", []_C_int{4, 2, 6, 9}}, - {"net.inet.tcp.keepidle", []_C_int{4, 2, 6, 3}}, - {"net.inet.tcp.keepinittime", []_C_int{4, 2, 6, 2}}, - {"net.inet.tcp.keepintvl", []_C_int{4, 2, 6, 4}}, - {"net.inet.tcp.mssdflt", []_C_int{4, 2, 6, 11}}, - {"net.inet.tcp.reasslimit", []_C_int{4, 2, 6, 18}}, - {"net.inet.tcp.rfc1323", []_C_int{4, 2, 6, 1}}, - {"net.inet.tcp.rfc3390", []_C_int{4, 2, 6, 17}}, - {"net.inet.tcp.rstppslimit", []_C_int{4, 2, 6, 12}}, - {"net.inet.tcp.sack", []_C_int{4, 2, 6, 10}}, - {"net.inet.tcp.sackholelimit", []_C_int{4, 2, 6, 20}}, - {"net.inet.tcp.slowhz", []_C_int{4, 2, 6, 5}}, - {"net.inet.tcp.stats", []_C_int{4, 2, 6, 21}}, - {"net.inet.tcp.synbucketlimit", []_C_int{4, 2, 6, 16}}, - {"net.inet.tcp.syncachelimit", []_C_int{4, 2, 6, 15}}, - {"net.inet.udp.baddynamic", []_C_int{4, 2, 17, 2}}, - {"net.inet.udp.checksum", []_C_int{4, 2, 17, 1}}, - {"net.inet.udp.recvspace", []_C_int{4, 2, 17, 3}}, - {"net.inet.udp.sendspace", []_C_int{4, 2, 17, 4}}, - {"net.inet.udp.stats", []_C_int{4, 2, 17, 5}}, - {"net.inet6.divert.recvspace", []_C_int{4, 24, 86, 1}}, - {"net.inet6.divert.sendspace", []_C_int{4, 24, 86, 2}}, - {"net.inet6.divert.stats", []_C_int{4, 24, 86, 3}}, - {"net.inet6.icmp6.errppslimit", []_C_int{4, 24, 30, 14}}, - {"net.inet6.icmp6.mtudisc_hiwat", []_C_int{4, 24, 30, 16}}, - {"net.inet6.icmp6.mtudisc_lowat", []_C_int{4, 24, 30, 17}}, - {"net.inet6.icmp6.nd6_debug", []_C_int{4, 24, 30, 18}}, - {"net.inet6.icmp6.nd6_delay", []_C_int{4, 24, 30, 8}}, - {"net.inet6.icmp6.nd6_maxnudhint", []_C_int{4, 24, 30, 15}}, - {"net.inet6.icmp6.nd6_mmaxtries", []_C_int{4, 24, 30, 10}}, - {"net.inet6.icmp6.nd6_prune", []_C_int{4, 24, 30, 6}}, - {"net.inet6.icmp6.nd6_umaxtries", []_C_int{4, 24, 30, 9}}, - {"net.inet6.icmp6.nd6_useloopback", []_C_int{4, 24, 30, 11}}, - {"net.inet6.icmp6.nodeinfo", []_C_int{4, 24, 30, 13}}, - {"net.inet6.icmp6.rediraccept", []_C_int{4, 24, 30, 2}}, - {"net.inet6.icmp6.redirtimeout", []_C_int{4, 24, 30, 3}}, - {"net.inet6.ip6.accept_rtadv", []_C_int{4, 24, 17, 12}}, - {"net.inet6.ip6.auto_flowlabel", []_C_int{4, 24, 17, 17}}, - {"net.inet6.ip6.dad_count", []_C_int{4, 24, 17, 16}}, - {"net.inet6.ip6.dad_pending", []_C_int{4, 24, 17, 49}}, - {"net.inet6.ip6.defmcasthlim", []_C_int{4, 24, 17, 18}}, - {"net.inet6.ip6.forwarding", []_C_int{4, 24, 17, 1}}, - {"net.inet6.ip6.forwsrcrt", []_C_int{4, 24, 17, 5}}, - {"net.inet6.ip6.hdrnestlimit", []_C_int{4, 24, 17, 15}}, - {"net.inet6.ip6.hlim", []_C_int{4, 24, 17, 3}}, - {"net.inet6.ip6.log_interval", []_C_int{4, 24, 17, 14}}, - {"net.inet6.ip6.maxdynroutes", []_C_int{4, 24, 17, 48}}, - {"net.inet6.ip6.maxfragpackets", []_C_int{4, 24, 17, 9}}, - {"net.inet6.ip6.maxfrags", []_C_int{4, 24, 17, 41}}, - {"net.inet6.ip6.maxifdefrouters", []_C_int{4, 24, 17, 47}}, - {"net.inet6.ip6.maxifprefixes", []_C_int{4, 24, 17, 46}}, - {"net.inet6.ip6.mforwarding", []_C_int{4, 24, 17, 42}}, - {"net.inet6.ip6.mrtproto", []_C_int{4, 24, 17, 8}}, - {"net.inet6.ip6.mtudisctimeout", []_C_int{4, 24, 17, 50}}, - {"net.inet6.ip6.multicast_mtudisc", []_C_int{4, 24, 17, 44}}, - {"net.inet6.ip6.multipath", []_C_int{4, 24, 17, 43}}, - {"net.inet6.ip6.neighborgcthresh", []_C_int{4, 24, 17, 45}}, - {"net.inet6.ip6.redirect", []_C_int{4, 24, 17, 2}}, - {"net.inet6.ip6.rr_prune", []_C_int{4, 24, 17, 22}}, - {"net.inet6.ip6.sourcecheck", []_C_int{4, 24, 17, 10}}, - {"net.inet6.ip6.sourcecheck_logint", []_C_int{4, 24, 17, 11}}, - {"net.inet6.ip6.use_deprecated", []_C_int{4, 24, 17, 21}}, - {"net.inet6.ip6.v6only", []_C_int{4, 24, 17, 24}}, - {"net.key.sadb_dump", []_C_int{4, 30, 1}}, - {"net.key.spd_dump", []_C_int{4, 30, 2}}, - {"net.mpls.ifq.congestion", []_C_int{4, 33, 3, 4}}, - {"net.mpls.ifq.drops", []_C_int{4, 33, 3, 3}}, - {"net.mpls.ifq.len", []_C_int{4, 33, 3, 1}}, - {"net.mpls.ifq.maxlen", []_C_int{4, 33, 3, 2}}, - {"net.mpls.mapttl_ip", []_C_int{4, 33, 5}}, - {"net.mpls.mapttl_ip6", []_C_int{4, 33, 6}}, - {"net.mpls.maxloop_inkernel", []_C_int{4, 33, 4}}, - {"net.mpls.ttl", []_C_int{4, 33, 2}}, - {"net.pflow.stats", []_C_int{4, 34, 1}}, - {"net.pipex.enable", []_C_int{4, 35, 1}}, - {"vm.anonmin", []_C_int{2, 7}}, - {"vm.loadavg", []_C_int{2, 2}}, - {"vm.maxslp", []_C_int{2, 10}}, - {"vm.nkmempages", []_C_int{2, 6}}, - {"vm.psstrings", []_C_int{2, 3}}, - {"vm.swapencrypt.enable", []_C_int{2, 5, 0}}, - {"vm.swapencrypt.keyscreated", []_C_int{2, 5, 1}}, - {"vm.swapencrypt.keysdeleted", []_C_int{2, 5, 2}}, - {"vm.uspace", []_C_int{2, 11}}, - {"vm.uvmexp", []_C_int{2, 4}}, - {"vm.vmmeter", []_C_int{2, 1}}, - {"vm.vnodemin", []_C_int{2, 9}}, - {"vm.vtextmin", []_C_int{2, 8}}, -} diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go deleted file mode 100644 index d1d36da..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_darwin_386.go +++ /dev/null @@ -1,436 +0,0 @@ -// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,darwin - -package unix - -const ( - SYS_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAIT4 = 7 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_CHDIR = 12 - SYS_FCHDIR = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_CHOWN = 16 - SYS_GETFSSTAT = 18 - SYS_GETPID = 20 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_GETEUID = 25 - SYS_PTRACE = 26 - SYS_RECVMSG = 27 - SYS_SENDMSG = 28 - SYS_RECVFROM = 29 - SYS_ACCEPT = 30 - SYS_GETPEERNAME = 31 - SYS_GETSOCKNAME = 32 - SYS_ACCESS = 33 - SYS_CHFLAGS = 34 - SYS_FCHFLAGS = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_GETPPID = 39 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_GETEGID = 43 - SYS_SIGACTION = 46 - SYS_GETGID = 47 - SYS_SIGPROCMASK = 48 - SYS_GETLOGIN = 49 - SYS_SETLOGIN = 50 - SYS_ACCT = 51 - SYS_SIGPENDING = 52 - SYS_SIGALTSTACK = 53 - SYS_IOCTL = 54 - SYS_REBOOT = 55 - SYS_REVOKE = 56 - SYS_SYMLINK = 57 - SYS_READLINK = 58 - SYS_EXECVE = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_MSYNC = 65 - SYS_VFORK = 66 - SYS_MUNMAP = 73 - SYS_MPROTECT = 74 - SYS_MADVISE = 75 - SYS_MINCORE = 78 - SYS_GETGROUPS = 79 - SYS_SETGROUPS = 80 - SYS_GETPGRP = 81 - SYS_SETPGID = 82 - SYS_SETITIMER = 83 - SYS_SWAPON = 85 - SYS_GETITIMER = 86 - SYS_GETDTABLESIZE = 89 - SYS_DUP2 = 90 - SYS_FCNTL = 92 - SYS_SELECT = 93 - SYS_FSYNC = 95 - SYS_SETPRIORITY = 96 - SYS_SOCKET = 97 - SYS_CONNECT = 98 - SYS_GETPRIORITY = 100 - SYS_BIND = 104 - SYS_SETSOCKOPT = 105 - SYS_LISTEN = 106 - SYS_SIGSUSPEND = 111 - SYS_GETTIMEOFDAY = 116 - SYS_GETRUSAGE = 117 - SYS_GETSOCKOPT = 118 - SYS_READV = 120 - SYS_WRITEV = 121 - SYS_SETTIMEOFDAY = 122 - SYS_FCHOWN = 123 - SYS_FCHMOD = 124 - SYS_SETREUID = 126 - SYS_SETREGID = 127 - SYS_RENAME = 128 - SYS_FLOCK = 131 - SYS_MKFIFO = 132 - SYS_SENDTO = 133 - SYS_SHUTDOWN = 134 - SYS_SOCKETPAIR = 135 - SYS_MKDIR = 136 - SYS_RMDIR = 137 - SYS_UTIMES = 138 - SYS_FUTIMES = 139 - SYS_ADJTIME = 140 - SYS_GETHOSTUUID = 142 - SYS_SETSID = 147 - SYS_GETPGID = 151 - SYS_SETPRIVEXEC = 152 - SYS_PREAD = 153 - SYS_PWRITE = 154 - SYS_NFSSVC = 155 - SYS_STATFS = 157 - SYS_FSTATFS = 158 - SYS_UNMOUNT = 159 - SYS_GETFH = 161 - SYS_QUOTACTL = 165 - SYS_MOUNT = 167 - SYS_CSOPS = 169 - SYS_CSOPS_AUDITTOKEN = 170 - SYS_WAITID = 173 - SYS_KDEBUG_TYPEFILTER = 177 - SYS_KDEBUG_TRACE_STRING = 178 - SYS_KDEBUG_TRACE64 = 179 - SYS_KDEBUG_TRACE = 180 - SYS_SETGID = 181 - SYS_SETEGID = 182 - SYS_SETEUID = 183 - SYS_SIGRETURN = 184 - SYS_THREAD_SELFCOUNTS = 186 - SYS_FDATASYNC = 187 - SYS_STAT = 188 - SYS_FSTAT = 189 - SYS_LSTAT = 190 - SYS_PATHCONF = 191 - SYS_FPATHCONF = 192 - SYS_GETRLIMIT = 194 - SYS_SETRLIMIT = 195 - SYS_GETDIRENTRIES = 196 - SYS_MMAP = 197 - SYS_LSEEK = 199 - SYS_TRUNCATE = 200 - SYS_FTRUNCATE = 201 - SYS_SYSCTL = 202 - SYS_MLOCK = 203 - SYS_MUNLOCK = 204 - SYS_UNDELETE = 205 - SYS_OPEN_DPROTECTED_NP = 216 - SYS_GETATTRLIST = 220 - SYS_SETATTRLIST = 221 - SYS_GETDIRENTRIESATTR = 222 - SYS_EXCHANGEDATA = 223 - SYS_SEARCHFS = 225 - SYS_DELETE = 226 - SYS_COPYFILE = 227 - SYS_FGETATTRLIST = 228 - SYS_FSETATTRLIST = 229 - SYS_POLL = 230 - SYS_WATCHEVENT = 231 - SYS_WAITEVENT = 232 - SYS_MODWATCH = 233 - SYS_GETXATTR = 234 - SYS_FGETXATTR = 235 - SYS_SETXATTR = 236 - SYS_FSETXATTR = 237 - SYS_REMOVEXATTR = 238 - SYS_FREMOVEXATTR = 239 - SYS_LISTXATTR = 240 - SYS_FLISTXATTR = 241 - SYS_FSCTL = 242 - SYS_INITGROUPS = 243 - SYS_POSIX_SPAWN = 244 - SYS_FFSCTL = 245 - SYS_NFSCLNT = 247 - SYS_FHOPEN = 248 - SYS_MINHERIT = 250 - SYS_SEMSYS = 251 - SYS_MSGSYS = 252 - SYS_SHMSYS = 253 - SYS_SEMCTL = 254 - SYS_SEMGET = 255 - SYS_SEMOP = 256 - SYS_MSGCTL = 258 - SYS_MSGGET = 259 - SYS_MSGSND = 260 - SYS_MSGRCV = 261 - SYS_SHMAT = 262 - SYS_SHMCTL = 263 - SYS_SHMDT = 264 - SYS_SHMGET = 265 - SYS_SHM_OPEN = 266 - SYS_SHM_UNLINK = 267 - SYS_SEM_OPEN = 268 - SYS_SEM_CLOSE = 269 - SYS_SEM_UNLINK = 270 - SYS_SEM_WAIT = 271 - SYS_SEM_TRYWAIT = 272 - SYS_SEM_POST = 273 - SYS_SYSCTLBYNAME = 274 - SYS_OPEN_EXTENDED = 277 - SYS_UMASK_EXTENDED = 278 - SYS_STAT_EXTENDED = 279 - SYS_LSTAT_EXTENDED = 280 - SYS_FSTAT_EXTENDED = 281 - SYS_CHMOD_EXTENDED = 282 - SYS_FCHMOD_EXTENDED = 283 - SYS_ACCESS_EXTENDED = 284 - SYS_SETTID = 285 - SYS_GETTID = 286 - SYS_SETSGROUPS = 287 - SYS_GETSGROUPS = 288 - SYS_SETWGROUPS = 289 - SYS_GETWGROUPS = 290 - SYS_MKFIFO_EXTENDED = 291 - SYS_MKDIR_EXTENDED = 292 - SYS_IDENTITYSVC = 293 - SYS_SHARED_REGION_CHECK_NP = 294 - SYS_VM_PRESSURE_MONITOR = 296 - SYS_PSYNCH_RW_LONGRDLOCK = 297 - SYS_PSYNCH_RW_YIELDWRLOCK = 298 - SYS_PSYNCH_RW_DOWNGRADE = 299 - SYS_PSYNCH_RW_UPGRADE = 300 - SYS_PSYNCH_MUTEXWAIT = 301 - SYS_PSYNCH_MUTEXDROP = 302 - SYS_PSYNCH_CVBROAD = 303 - SYS_PSYNCH_CVSIGNAL = 304 - SYS_PSYNCH_CVWAIT = 305 - SYS_PSYNCH_RW_RDLOCK = 306 - SYS_PSYNCH_RW_WRLOCK = 307 - SYS_PSYNCH_RW_UNLOCK = 308 - SYS_PSYNCH_RW_UNLOCK2 = 309 - SYS_GETSID = 310 - SYS_SETTID_WITH_PID = 311 - SYS_PSYNCH_CVCLRPREPOST = 312 - SYS_AIO_FSYNC = 313 - SYS_AIO_RETURN = 314 - SYS_AIO_SUSPEND = 315 - SYS_AIO_CANCEL = 316 - SYS_AIO_ERROR = 317 - SYS_AIO_READ = 318 - SYS_AIO_WRITE = 319 - SYS_LIO_LISTIO = 320 - SYS_IOPOLICYSYS = 322 - SYS_PROCESS_POLICY = 323 - SYS_MLOCKALL = 324 - SYS_MUNLOCKALL = 325 - SYS_ISSETUGID = 327 - SYS___PTHREAD_KILL = 328 - SYS___PTHREAD_SIGMASK = 329 - SYS___SIGWAIT = 330 - SYS___DISABLE_THREADSIGNAL = 331 - SYS___PTHREAD_MARKCANCEL = 332 - SYS___PTHREAD_CANCELED = 333 - SYS___SEMWAIT_SIGNAL = 334 - SYS_PROC_INFO = 336 - SYS_SENDFILE = 337 - SYS_STAT64 = 338 - SYS_FSTAT64 = 339 - SYS_LSTAT64 = 340 - SYS_STAT64_EXTENDED = 341 - SYS_LSTAT64_EXTENDED = 342 - SYS_FSTAT64_EXTENDED = 343 - SYS_GETDIRENTRIES64 = 344 - SYS_STATFS64 = 345 - SYS_FSTATFS64 = 346 - SYS_GETFSSTAT64 = 347 - SYS___PTHREAD_CHDIR = 348 - SYS___PTHREAD_FCHDIR = 349 - SYS_AUDIT = 350 - SYS_AUDITON = 351 - SYS_GETAUID = 353 - SYS_SETAUID = 354 - SYS_GETAUDIT_ADDR = 357 - SYS_SETAUDIT_ADDR = 358 - SYS_AUDITCTL = 359 - SYS_BSDTHREAD_CREATE = 360 - SYS_BSDTHREAD_TERMINATE = 361 - SYS_KQUEUE = 362 - SYS_KEVENT = 363 - SYS_LCHOWN = 364 - SYS_BSDTHREAD_REGISTER = 366 - SYS_WORKQ_OPEN = 367 - SYS_WORKQ_KERNRETURN = 368 - SYS_KEVENT64 = 369 - SYS___OLD_SEMWAIT_SIGNAL = 370 - SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 - SYS_THREAD_SELFID = 372 - SYS_LEDGER = 373 - SYS_KEVENT_QOS = 374 - SYS_KEVENT_ID = 375 - SYS___MAC_EXECVE = 380 - SYS___MAC_SYSCALL = 381 - SYS___MAC_GET_FILE = 382 - SYS___MAC_SET_FILE = 383 - SYS___MAC_GET_LINK = 384 - SYS___MAC_SET_LINK = 385 - SYS___MAC_GET_PROC = 386 - SYS___MAC_SET_PROC = 387 - SYS___MAC_GET_FD = 388 - SYS___MAC_SET_FD = 389 - SYS___MAC_GET_PID = 390 - SYS_PSELECT = 394 - SYS_PSELECT_NOCANCEL = 395 - SYS_READ_NOCANCEL = 396 - SYS_WRITE_NOCANCEL = 397 - SYS_OPEN_NOCANCEL = 398 - SYS_CLOSE_NOCANCEL = 399 - SYS_WAIT4_NOCANCEL = 400 - SYS_RECVMSG_NOCANCEL = 401 - SYS_SENDMSG_NOCANCEL = 402 - SYS_RECVFROM_NOCANCEL = 403 - SYS_ACCEPT_NOCANCEL = 404 - SYS_MSYNC_NOCANCEL = 405 - SYS_FCNTL_NOCANCEL = 406 - SYS_SELECT_NOCANCEL = 407 - SYS_FSYNC_NOCANCEL = 408 - SYS_CONNECT_NOCANCEL = 409 - SYS_SIGSUSPEND_NOCANCEL = 410 - SYS_READV_NOCANCEL = 411 - SYS_WRITEV_NOCANCEL = 412 - SYS_SENDTO_NOCANCEL = 413 - SYS_PREAD_NOCANCEL = 414 - SYS_PWRITE_NOCANCEL = 415 - SYS_WAITID_NOCANCEL = 416 - SYS_POLL_NOCANCEL = 417 - SYS_MSGSND_NOCANCEL = 418 - SYS_MSGRCV_NOCANCEL = 419 - SYS_SEM_WAIT_NOCANCEL = 420 - SYS_AIO_SUSPEND_NOCANCEL = 421 - SYS___SIGWAIT_NOCANCEL = 422 - SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 - SYS___MAC_MOUNT = 424 - SYS___MAC_GET_MOUNT = 425 - SYS___MAC_GETFSSTAT = 426 - SYS_FSGETPATH = 427 - SYS_AUDIT_SESSION_SELF = 428 - SYS_AUDIT_SESSION_JOIN = 429 - SYS_FILEPORT_MAKEPORT = 430 - SYS_FILEPORT_MAKEFD = 431 - SYS_AUDIT_SESSION_PORT = 432 - SYS_PID_SUSPEND = 433 - SYS_PID_RESUME = 434 - SYS_PID_HIBERNATE = 435 - SYS_PID_SHUTDOWN_SOCKETS = 436 - SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 - SYS_KAS_INFO = 439 - SYS_MEMORYSTATUS_CONTROL = 440 - SYS_GUARDED_OPEN_NP = 441 - SYS_GUARDED_CLOSE_NP = 442 - SYS_GUARDED_KQUEUE_NP = 443 - SYS_CHANGE_FDGUARD_NP = 444 - SYS_USRCTL = 445 - SYS_PROC_RLIMIT_CONTROL = 446 - SYS_CONNECTX = 447 - SYS_DISCONNECTX = 448 - SYS_PEELOFF = 449 - SYS_SOCKET_DELEGATE = 450 - SYS_TELEMETRY = 451 - SYS_PROC_UUID_POLICY = 452 - SYS_MEMORYSTATUS_GET_LEVEL = 453 - SYS_SYSTEM_OVERRIDE = 454 - SYS_VFS_PURGE = 455 - SYS_SFI_CTL = 456 - SYS_SFI_PIDCTL = 457 - SYS_COALITION = 458 - SYS_COALITION_INFO = 459 - SYS_NECP_MATCH_POLICY = 460 - SYS_GETATTRLISTBULK = 461 - SYS_CLONEFILEAT = 462 - SYS_OPENAT = 463 - SYS_OPENAT_NOCANCEL = 464 - SYS_RENAMEAT = 465 - SYS_FACCESSAT = 466 - SYS_FCHMODAT = 467 - SYS_FCHOWNAT = 468 - SYS_FSTATAT = 469 - SYS_FSTATAT64 = 470 - SYS_LINKAT = 471 - SYS_UNLINKAT = 472 - SYS_READLINKAT = 473 - SYS_SYMLINKAT = 474 - SYS_MKDIRAT = 475 - SYS_GETATTRLISTAT = 476 - SYS_PROC_TRACE_LOG = 477 - SYS_BSDTHREAD_CTL = 478 - SYS_OPENBYID_NP = 479 - SYS_RECVMSG_X = 480 - SYS_SENDMSG_X = 481 - SYS_THREAD_SELFUSAGE = 482 - SYS_CSRCTL = 483 - SYS_GUARDED_OPEN_DPROTECTED_NP = 484 - SYS_GUARDED_WRITE_NP = 485 - SYS_GUARDED_PWRITE_NP = 486 - SYS_GUARDED_WRITEV_NP = 487 - SYS_RENAMEATX_NP = 488 - SYS_MREMAP_ENCRYPTED = 489 - SYS_NETAGENT_TRIGGER = 490 - SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 - SYS_MICROSTACKSHOT = 492 - SYS_GRAB_PGO_DATA = 493 - SYS_PERSONA = 494 - SYS_WORK_INTERVAL_CTL = 499 - SYS_GETENTROPY = 500 - SYS_NECP_OPEN = 501 - SYS_NECP_CLIENT_ACTION = 502 - SYS___NEXUS_OPEN = 503 - SYS___NEXUS_REGISTER = 504 - SYS___NEXUS_DEREGISTER = 505 - SYS___NEXUS_CREATE = 506 - SYS___NEXUS_DESTROY = 507 - SYS___NEXUS_GET_OPT = 508 - SYS___NEXUS_SET_OPT = 509 - SYS___CHANNEL_OPEN = 510 - SYS___CHANNEL_GET_INFO = 511 - SYS___CHANNEL_SYNC = 512 - SYS___CHANNEL_GET_OPT = 513 - SYS___CHANNEL_SET_OPT = 514 - SYS_ULOCK_WAIT = 515 - SYS_ULOCK_WAKE = 516 - SYS_FCLONEFILEAT = 517 - SYS_FS_SNAPSHOT = 518 - SYS_TERMINATE_WITH_PAYLOAD = 520 - SYS_ABORT_WITH_PAYLOAD = 521 - SYS_NECP_SESSION_OPEN = 522 - SYS_NECP_SESSION_ACTION = 523 - SYS_SETATTRLISTAT = 524 - SYS_NET_QOS_GUIDELINE = 525 - SYS_FMOUNT = 526 - SYS_NTP_ADJTIME = 527 - SYS_NTP_GETTIME = 528 - SYS_OS_FAULT_WITH_PAYLOAD = 529 - SYS_MAXSYSCALL = 530 - SYS_INVALID = 63 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go deleted file mode 100644 index e35de41..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +++ /dev/null @@ -1,436 +0,0 @@ -// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/syscall.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,darwin - -package unix - -const ( - SYS_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAIT4 = 7 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_CHDIR = 12 - SYS_FCHDIR = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_CHOWN = 16 - SYS_GETFSSTAT = 18 - SYS_GETPID = 20 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_GETEUID = 25 - SYS_PTRACE = 26 - SYS_RECVMSG = 27 - SYS_SENDMSG = 28 - SYS_RECVFROM = 29 - SYS_ACCEPT = 30 - SYS_GETPEERNAME = 31 - SYS_GETSOCKNAME = 32 - SYS_ACCESS = 33 - SYS_CHFLAGS = 34 - SYS_FCHFLAGS = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_GETPPID = 39 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_GETEGID = 43 - SYS_SIGACTION = 46 - SYS_GETGID = 47 - SYS_SIGPROCMASK = 48 - SYS_GETLOGIN = 49 - SYS_SETLOGIN = 50 - SYS_ACCT = 51 - SYS_SIGPENDING = 52 - SYS_SIGALTSTACK = 53 - SYS_IOCTL = 54 - SYS_REBOOT = 55 - SYS_REVOKE = 56 - SYS_SYMLINK = 57 - SYS_READLINK = 58 - SYS_EXECVE = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_MSYNC = 65 - SYS_VFORK = 66 - SYS_MUNMAP = 73 - SYS_MPROTECT = 74 - SYS_MADVISE = 75 - SYS_MINCORE = 78 - SYS_GETGROUPS = 79 - SYS_SETGROUPS = 80 - SYS_GETPGRP = 81 - SYS_SETPGID = 82 - SYS_SETITIMER = 83 - SYS_SWAPON = 85 - SYS_GETITIMER = 86 - SYS_GETDTABLESIZE = 89 - SYS_DUP2 = 90 - SYS_FCNTL = 92 - SYS_SELECT = 93 - SYS_FSYNC = 95 - SYS_SETPRIORITY = 96 - SYS_SOCKET = 97 - SYS_CONNECT = 98 - SYS_GETPRIORITY = 100 - SYS_BIND = 104 - SYS_SETSOCKOPT = 105 - SYS_LISTEN = 106 - SYS_SIGSUSPEND = 111 - SYS_GETTIMEOFDAY = 116 - SYS_GETRUSAGE = 117 - SYS_GETSOCKOPT = 118 - SYS_READV = 120 - SYS_WRITEV = 121 - SYS_SETTIMEOFDAY = 122 - SYS_FCHOWN = 123 - SYS_FCHMOD = 124 - SYS_SETREUID = 126 - SYS_SETREGID = 127 - SYS_RENAME = 128 - SYS_FLOCK = 131 - SYS_MKFIFO = 132 - SYS_SENDTO = 133 - SYS_SHUTDOWN = 134 - SYS_SOCKETPAIR = 135 - SYS_MKDIR = 136 - SYS_RMDIR = 137 - SYS_UTIMES = 138 - SYS_FUTIMES = 139 - SYS_ADJTIME = 140 - SYS_GETHOSTUUID = 142 - SYS_SETSID = 147 - SYS_GETPGID = 151 - SYS_SETPRIVEXEC = 152 - SYS_PREAD = 153 - SYS_PWRITE = 154 - SYS_NFSSVC = 155 - SYS_STATFS = 157 - SYS_FSTATFS = 158 - SYS_UNMOUNT = 159 - SYS_GETFH = 161 - SYS_QUOTACTL = 165 - SYS_MOUNT = 167 - SYS_CSOPS = 169 - SYS_CSOPS_AUDITTOKEN = 170 - SYS_WAITID = 173 - SYS_KDEBUG_TYPEFILTER = 177 - SYS_KDEBUG_TRACE_STRING = 178 - SYS_KDEBUG_TRACE64 = 179 - SYS_KDEBUG_TRACE = 180 - SYS_SETGID = 181 - SYS_SETEGID = 182 - SYS_SETEUID = 183 - SYS_SIGRETURN = 184 - SYS_THREAD_SELFCOUNTS = 186 - SYS_FDATASYNC = 187 - SYS_STAT = 188 - SYS_FSTAT = 189 - SYS_LSTAT = 190 - SYS_PATHCONF = 191 - SYS_FPATHCONF = 192 - SYS_GETRLIMIT = 194 - SYS_SETRLIMIT = 195 - SYS_GETDIRENTRIES = 196 - SYS_MMAP = 197 - SYS_LSEEK = 199 - SYS_TRUNCATE = 200 - SYS_FTRUNCATE = 201 - SYS_SYSCTL = 202 - SYS_MLOCK = 203 - SYS_MUNLOCK = 204 - SYS_UNDELETE = 205 - SYS_OPEN_DPROTECTED_NP = 216 - SYS_GETATTRLIST = 220 - SYS_SETATTRLIST = 221 - SYS_GETDIRENTRIESATTR = 222 - SYS_EXCHANGEDATA = 223 - SYS_SEARCHFS = 225 - SYS_DELETE = 226 - SYS_COPYFILE = 227 - SYS_FGETATTRLIST = 228 - SYS_FSETATTRLIST = 229 - SYS_POLL = 230 - SYS_WATCHEVENT = 231 - SYS_WAITEVENT = 232 - SYS_MODWATCH = 233 - SYS_GETXATTR = 234 - SYS_FGETXATTR = 235 - SYS_SETXATTR = 236 - SYS_FSETXATTR = 237 - SYS_REMOVEXATTR = 238 - SYS_FREMOVEXATTR = 239 - SYS_LISTXATTR = 240 - SYS_FLISTXATTR = 241 - SYS_FSCTL = 242 - SYS_INITGROUPS = 243 - SYS_POSIX_SPAWN = 244 - SYS_FFSCTL = 245 - SYS_NFSCLNT = 247 - SYS_FHOPEN = 248 - SYS_MINHERIT = 250 - SYS_SEMSYS = 251 - SYS_MSGSYS = 252 - SYS_SHMSYS = 253 - SYS_SEMCTL = 254 - SYS_SEMGET = 255 - SYS_SEMOP = 256 - SYS_MSGCTL = 258 - SYS_MSGGET = 259 - SYS_MSGSND = 260 - SYS_MSGRCV = 261 - SYS_SHMAT = 262 - SYS_SHMCTL = 263 - SYS_SHMDT = 264 - SYS_SHMGET = 265 - SYS_SHM_OPEN = 266 - SYS_SHM_UNLINK = 267 - SYS_SEM_OPEN = 268 - SYS_SEM_CLOSE = 269 - SYS_SEM_UNLINK = 270 - SYS_SEM_WAIT = 271 - SYS_SEM_TRYWAIT = 272 - SYS_SEM_POST = 273 - SYS_SYSCTLBYNAME = 274 - SYS_OPEN_EXTENDED = 277 - SYS_UMASK_EXTENDED = 278 - SYS_STAT_EXTENDED = 279 - SYS_LSTAT_EXTENDED = 280 - SYS_FSTAT_EXTENDED = 281 - SYS_CHMOD_EXTENDED = 282 - SYS_FCHMOD_EXTENDED = 283 - SYS_ACCESS_EXTENDED = 284 - SYS_SETTID = 285 - SYS_GETTID = 286 - SYS_SETSGROUPS = 287 - SYS_GETSGROUPS = 288 - SYS_SETWGROUPS = 289 - SYS_GETWGROUPS = 290 - SYS_MKFIFO_EXTENDED = 291 - SYS_MKDIR_EXTENDED = 292 - SYS_IDENTITYSVC = 293 - SYS_SHARED_REGION_CHECK_NP = 294 - SYS_VM_PRESSURE_MONITOR = 296 - SYS_PSYNCH_RW_LONGRDLOCK = 297 - SYS_PSYNCH_RW_YIELDWRLOCK = 298 - SYS_PSYNCH_RW_DOWNGRADE = 299 - SYS_PSYNCH_RW_UPGRADE = 300 - SYS_PSYNCH_MUTEXWAIT = 301 - SYS_PSYNCH_MUTEXDROP = 302 - SYS_PSYNCH_CVBROAD = 303 - SYS_PSYNCH_CVSIGNAL = 304 - SYS_PSYNCH_CVWAIT = 305 - SYS_PSYNCH_RW_RDLOCK = 306 - SYS_PSYNCH_RW_WRLOCK = 307 - SYS_PSYNCH_RW_UNLOCK = 308 - SYS_PSYNCH_RW_UNLOCK2 = 309 - SYS_GETSID = 310 - SYS_SETTID_WITH_PID = 311 - SYS_PSYNCH_CVCLRPREPOST = 312 - SYS_AIO_FSYNC = 313 - SYS_AIO_RETURN = 314 - SYS_AIO_SUSPEND = 315 - SYS_AIO_CANCEL = 316 - SYS_AIO_ERROR = 317 - SYS_AIO_READ = 318 - SYS_AIO_WRITE = 319 - SYS_LIO_LISTIO = 320 - SYS_IOPOLICYSYS = 322 - SYS_PROCESS_POLICY = 323 - SYS_MLOCKALL = 324 - SYS_MUNLOCKALL = 325 - SYS_ISSETUGID = 327 - SYS___PTHREAD_KILL = 328 - SYS___PTHREAD_SIGMASK = 329 - SYS___SIGWAIT = 330 - SYS___DISABLE_THREADSIGNAL = 331 - SYS___PTHREAD_MARKCANCEL = 332 - SYS___PTHREAD_CANCELED = 333 - SYS___SEMWAIT_SIGNAL = 334 - SYS_PROC_INFO = 336 - SYS_SENDFILE = 337 - SYS_STAT64 = 338 - SYS_FSTAT64 = 339 - SYS_LSTAT64 = 340 - SYS_STAT64_EXTENDED = 341 - SYS_LSTAT64_EXTENDED = 342 - SYS_FSTAT64_EXTENDED = 343 - SYS_GETDIRENTRIES64 = 344 - SYS_STATFS64 = 345 - SYS_FSTATFS64 = 346 - SYS_GETFSSTAT64 = 347 - SYS___PTHREAD_CHDIR = 348 - SYS___PTHREAD_FCHDIR = 349 - SYS_AUDIT = 350 - SYS_AUDITON = 351 - SYS_GETAUID = 353 - SYS_SETAUID = 354 - SYS_GETAUDIT_ADDR = 357 - SYS_SETAUDIT_ADDR = 358 - SYS_AUDITCTL = 359 - SYS_BSDTHREAD_CREATE = 360 - SYS_BSDTHREAD_TERMINATE = 361 - SYS_KQUEUE = 362 - SYS_KEVENT = 363 - SYS_LCHOWN = 364 - SYS_BSDTHREAD_REGISTER = 366 - SYS_WORKQ_OPEN = 367 - SYS_WORKQ_KERNRETURN = 368 - SYS_KEVENT64 = 369 - SYS___OLD_SEMWAIT_SIGNAL = 370 - SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 - SYS_THREAD_SELFID = 372 - SYS_LEDGER = 373 - SYS_KEVENT_QOS = 374 - SYS_KEVENT_ID = 375 - SYS___MAC_EXECVE = 380 - SYS___MAC_SYSCALL = 381 - SYS___MAC_GET_FILE = 382 - SYS___MAC_SET_FILE = 383 - SYS___MAC_GET_LINK = 384 - SYS___MAC_SET_LINK = 385 - SYS___MAC_GET_PROC = 386 - SYS___MAC_SET_PROC = 387 - SYS___MAC_GET_FD = 388 - SYS___MAC_SET_FD = 389 - SYS___MAC_GET_PID = 390 - SYS_PSELECT = 394 - SYS_PSELECT_NOCANCEL = 395 - SYS_READ_NOCANCEL = 396 - SYS_WRITE_NOCANCEL = 397 - SYS_OPEN_NOCANCEL = 398 - SYS_CLOSE_NOCANCEL = 399 - SYS_WAIT4_NOCANCEL = 400 - SYS_RECVMSG_NOCANCEL = 401 - SYS_SENDMSG_NOCANCEL = 402 - SYS_RECVFROM_NOCANCEL = 403 - SYS_ACCEPT_NOCANCEL = 404 - SYS_MSYNC_NOCANCEL = 405 - SYS_FCNTL_NOCANCEL = 406 - SYS_SELECT_NOCANCEL = 407 - SYS_FSYNC_NOCANCEL = 408 - SYS_CONNECT_NOCANCEL = 409 - SYS_SIGSUSPEND_NOCANCEL = 410 - SYS_READV_NOCANCEL = 411 - SYS_WRITEV_NOCANCEL = 412 - SYS_SENDTO_NOCANCEL = 413 - SYS_PREAD_NOCANCEL = 414 - SYS_PWRITE_NOCANCEL = 415 - SYS_WAITID_NOCANCEL = 416 - SYS_POLL_NOCANCEL = 417 - SYS_MSGSND_NOCANCEL = 418 - SYS_MSGRCV_NOCANCEL = 419 - SYS_SEM_WAIT_NOCANCEL = 420 - SYS_AIO_SUSPEND_NOCANCEL = 421 - SYS___SIGWAIT_NOCANCEL = 422 - SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 - SYS___MAC_MOUNT = 424 - SYS___MAC_GET_MOUNT = 425 - SYS___MAC_GETFSSTAT = 426 - SYS_FSGETPATH = 427 - SYS_AUDIT_SESSION_SELF = 428 - SYS_AUDIT_SESSION_JOIN = 429 - SYS_FILEPORT_MAKEPORT = 430 - SYS_FILEPORT_MAKEFD = 431 - SYS_AUDIT_SESSION_PORT = 432 - SYS_PID_SUSPEND = 433 - SYS_PID_RESUME = 434 - SYS_PID_HIBERNATE = 435 - SYS_PID_SHUTDOWN_SOCKETS = 436 - SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 - SYS_KAS_INFO = 439 - SYS_MEMORYSTATUS_CONTROL = 440 - SYS_GUARDED_OPEN_NP = 441 - SYS_GUARDED_CLOSE_NP = 442 - SYS_GUARDED_KQUEUE_NP = 443 - SYS_CHANGE_FDGUARD_NP = 444 - SYS_USRCTL = 445 - SYS_PROC_RLIMIT_CONTROL = 446 - SYS_CONNECTX = 447 - SYS_DISCONNECTX = 448 - SYS_PEELOFF = 449 - SYS_SOCKET_DELEGATE = 450 - SYS_TELEMETRY = 451 - SYS_PROC_UUID_POLICY = 452 - SYS_MEMORYSTATUS_GET_LEVEL = 453 - SYS_SYSTEM_OVERRIDE = 454 - SYS_VFS_PURGE = 455 - SYS_SFI_CTL = 456 - SYS_SFI_PIDCTL = 457 - SYS_COALITION = 458 - SYS_COALITION_INFO = 459 - SYS_NECP_MATCH_POLICY = 460 - SYS_GETATTRLISTBULK = 461 - SYS_CLONEFILEAT = 462 - SYS_OPENAT = 463 - SYS_OPENAT_NOCANCEL = 464 - SYS_RENAMEAT = 465 - SYS_FACCESSAT = 466 - SYS_FCHMODAT = 467 - SYS_FCHOWNAT = 468 - SYS_FSTATAT = 469 - SYS_FSTATAT64 = 470 - SYS_LINKAT = 471 - SYS_UNLINKAT = 472 - SYS_READLINKAT = 473 - SYS_SYMLINKAT = 474 - SYS_MKDIRAT = 475 - SYS_GETATTRLISTAT = 476 - SYS_PROC_TRACE_LOG = 477 - SYS_BSDTHREAD_CTL = 478 - SYS_OPENBYID_NP = 479 - SYS_RECVMSG_X = 480 - SYS_SENDMSG_X = 481 - SYS_THREAD_SELFUSAGE = 482 - SYS_CSRCTL = 483 - SYS_GUARDED_OPEN_DPROTECTED_NP = 484 - SYS_GUARDED_WRITE_NP = 485 - SYS_GUARDED_PWRITE_NP = 486 - SYS_GUARDED_WRITEV_NP = 487 - SYS_RENAMEATX_NP = 488 - SYS_MREMAP_ENCRYPTED = 489 - SYS_NETAGENT_TRIGGER = 490 - SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 - SYS_MICROSTACKSHOT = 492 - SYS_GRAB_PGO_DATA = 493 - SYS_PERSONA = 494 - SYS_WORK_INTERVAL_CTL = 499 - SYS_GETENTROPY = 500 - SYS_NECP_OPEN = 501 - SYS_NECP_CLIENT_ACTION = 502 - SYS___NEXUS_OPEN = 503 - SYS___NEXUS_REGISTER = 504 - SYS___NEXUS_DEREGISTER = 505 - SYS___NEXUS_CREATE = 506 - SYS___NEXUS_DESTROY = 507 - SYS___NEXUS_GET_OPT = 508 - SYS___NEXUS_SET_OPT = 509 - SYS___CHANNEL_OPEN = 510 - SYS___CHANNEL_GET_INFO = 511 - SYS___CHANNEL_SYNC = 512 - SYS___CHANNEL_GET_OPT = 513 - SYS___CHANNEL_SET_OPT = 514 - SYS_ULOCK_WAIT = 515 - SYS_ULOCK_WAKE = 516 - SYS_FCLONEFILEAT = 517 - SYS_FS_SNAPSHOT = 518 - SYS_TERMINATE_WITH_PAYLOAD = 520 - SYS_ABORT_WITH_PAYLOAD = 521 - SYS_NECP_SESSION_OPEN = 522 - SYS_NECP_SESSION_ACTION = 523 - SYS_SETATTRLISTAT = 524 - SYS_NET_QOS_GUIDELINE = 525 - SYS_FMOUNT = 526 - SYS_NTP_ADJTIME = 527 - SYS_NTP_GETTIME = 528 - SYS_OS_FAULT_WITH_PAYLOAD = 529 - SYS_MAXSYSCALL = 530 - SYS_INVALID = 63 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go deleted file mode 100644 index f2df27d..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm.go +++ /dev/null @@ -1,436 +0,0 @@ -// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,darwin - -package unix - -const ( - SYS_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAIT4 = 7 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_CHDIR = 12 - SYS_FCHDIR = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_CHOWN = 16 - SYS_GETFSSTAT = 18 - SYS_GETPID = 20 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_GETEUID = 25 - SYS_PTRACE = 26 - SYS_RECVMSG = 27 - SYS_SENDMSG = 28 - SYS_RECVFROM = 29 - SYS_ACCEPT = 30 - SYS_GETPEERNAME = 31 - SYS_GETSOCKNAME = 32 - SYS_ACCESS = 33 - SYS_CHFLAGS = 34 - SYS_FCHFLAGS = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_GETPPID = 39 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_GETEGID = 43 - SYS_SIGACTION = 46 - SYS_GETGID = 47 - SYS_SIGPROCMASK = 48 - SYS_GETLOGIN = 49 - SYS_SETLOGIN = 50 - SYS_ACCT = 51 - SYS_SIGPENDING = 52 - SYS_SIGALTSTACK = 53 - SYS_IOCTL = 54 - SYS_REBOOT = 55 - SYS_REVOKE = 56 - SYS_SYMLINK = 57 - SYS_READLINK = 58 - SYS_EXECVE = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_MSYNC = 65 - SYS_VFORK = 66 - SYS_MUNMAP = 73 - SYS_MPROTECT = 74 - SYS_MADVISE = 75 - SYS_MINCORE = 78 - SYS_GETGROUPS = 79 - SYS_SETGROUPS = 80 - SYS_GETPGRP = 81 - SYS_SETPGID = 82 - SYS_SETITIMER = 83 - SYS_SWAPON = 85 - SYS_GETITIMER = 86 - SYS_GETDTABLESIZE = 89 - SYS_DUP2 = 90 - SYS_FCNTL = 92 - SYS_SELECT = 93 - SYS_FSYNC = 95 - SYS_SETPRIORITY = 96 - SYS_SOCKET = 97 - SYS_CONNECT = 98 - SYS_GETPRIORITY = 100 - SYS_BIND = 104 - SYS_SETSOCKOPT = 105 - SYS_LISTEN = 106 - SYS_SIGSUSPEND = 111 - SYS_GETTIMEOFDAY = 116 - SYS_GETRUSAGE = 117 - SYS_GETSOCKOPT = 118 - SYS_READV = 120 - SYS_WRITEV = 121 - SYS_SETTIMEOFDAY = 122 - SYS_FCHOWN = 123 - SYS_FCHMOD = 124 - SYS_SETREUID = 126 - SYS_SETREGID = 127 - SYS_RENAME = 128 - SYS_FLOCK = 131 - SYS_MKFIFO = 132 - SYS_SENDTO = 133 - SYS_SHUTDOWN = 134 - SYS_SOCKETPAIR = 135 - SYS_MKDIR = 136 - SYS_RMDIR = 137 - SYS_UTIMES = 138 - SYS_FUTIMES = 139 - SYS_ADJTIME = 140 - SYS_GETHOSTUUID = 142 - SYS_SETSID = 147 - SYS_GETPGID = 151 - SYS_SETPRIVEXEC = 152 - SYS_PREAD = 153 - SYS_PWRITE = 154 - SYS_NFSSVC = 155 - SYS_STATFS = 157 - SYS_FSTATFS = 158 - SYS_UNMOUNT = 159 - SYS_GETFH = 161 - SYS_QUOTACTL = 165 - SYS_MOUNT = 167 - SYS_CSOPS = 169 - SYS_CSOPS_AUDITTOKEN = 170 - SYS_WAITID = 173 - SYS_KDEBUG_TYPEFILTER = 177 - SYS_KDEBUG_TRACE_STRING = 178 - SYS_KDEBUG_TRACE64 = 179 - SYS_KDEBUG_TRACE = 180 - SYS_SETGID = 181 - SYS_SETEGID = 182 - SYS_SETEUID = 183 - SYS_SIGRETURN = 184 - SYS_THREAD_SELFCOUNTS = 186 - SYS_FDATASYNC = 187 - SYS_STAT = 188 - SYS_FSTAT = 189 - SYS_LSTAT = 190 - SYS_PATHCONF = 191 - SYS_FPATHCONF = 192 - SYS_GETRLIMIT = 194 - SYS_SETRLIMIT = 195 - SYS_GETDIRENTRIES = 196 - SYS_MMAP = 197 - SYS_LSEEK = 199 - SYS_TRUNCATE = 200 - SYS_FTRUNCATE = 201 - SYS_SYSCTL = 202 - SYS_MLOCK = 203 - SYS_MUNLOCK = 204 - SYS_UNDELETE = 205 - SYS_OPEN_DPROTECTED_NP = 216 - SYS_GETATTRLIST = 220 - SYS_SETATTRLIST = 221 - SYS_GETDIRENTRIESATTR = 222 - SYS_EXCHANGEDATA = 223 - SYS_SEARCHFS = 225 - SYS_DELETE = 226 - SYS_COPYFILE = 227 - SYS_FGETATTRLIST = 228 - SYS_FSETATTRLIST = 229 - SYS_POLL = 230 - SYS_WATCHEVENT = 231 - SYS_WAITEVENT = 232 - SYS_MODWATCH = 233 - SYS_GETXATTR = 234 - SYS_FGETXATTR = 235 - SYS_SETXATTR = 236 - SYS_FSETXATTR = 237 - SYS_REMOVEXATTR = 238 - SYS_FREMOVEXATTR = 239 - SYS_LISTXATTR = 240 - SYS_FLISTXATTR = 241 - SYS_FSCTL = 242 - SYS_INITGROUPS = 243 - SYS_POSIX_SPAWN = 244 - SYS_FFSCTL = 245 - SYS_NFSCLNT = 247 - SYS_FHOPEN = 248 - SYS_MINHERIT = 250 - SYS_SEMSYS = 251 - SYS_MSGSYS = 252 - SYS_SHMSYS = 253 - SYS_SEMCTL = 254 - SYS_SEMGET = 255 - SYS_SEMOP = 256 - SYS_MSGCTL = 258 - SYS_MSGGET = 259 - SYS_MSGSND = 260 - SYS_MSGRCV = 261 - SYS_SHMAT = 262 - SYS_SHMCTL = 263 - SYS_SHMDT = 264 - SYS_SHMGET = 265 - SYS_SHM_OPEN = 266 - SYS_SHM_UNLINK = 267 - SYS_SEM_OPEN = 268 - SYS_SEM_CLOSE = 269 - SYS_SEM_UNLINK = 270 - SYS_SEM_WAIT = 271 - SYS_SEM_TRYWAIT = 272 - SYS_SEM_POST = 273 - SYS_SYSCTLBYNAME = 274 - SYS_OPEN_EXTENDED = 277 - SYS_UMASK_EXTENDED = 278 - SYS_STAT_EXTENDED = 279 - SYS_LSTAT_EXTENDED = 280 - SYS_FSTAT_EXTENDED = 281 - SYS_CHMOD_EXTENDED = 282 - SYS_FCHMOD_EXTENDED = 283 - SYS_ACCESS_EXTENDED = 284 - SYS_SETTID = 285 - SYS_GETTID = 286 - SYS_SETSGROUPS = 287 - SYS_GETSGROUPS = 288 - SYS_SETWGROUPS = 289 - SYS_GETWGROUPS = 290 - SYS_MKFIFO_EXTENDED = 291 - SYS_MKDIR_EXTENDED = 292 - SYS_IDENTITYSVC = 293 - SYS_SHARED_REGION_CHECK_NP = 294 - SYS_VM_PRESSURE_MONITOR = 296 - SYS_PSYNCH_RW_LONGRDLOCK = 297 - SYS_PSYNCH_RW_YIELDWRLOCK = 298 - SYS_PSYNCH_RW_DOWNGRADE = 299 - SYS_PSYNCH_RW_UPGRADE = 300 - SYS_PSYNCH_MUTEXWAIT = 301 - SYS_PSYNCH_MUTEXDROP = 302 - SYS_PSYNCH_CVBROAD = 303 - SYS_PSYNCH_CVSIGNAL = 304 - SYS_PSYNCH_CVWAIT = 305 - SYS_PSYNCH_RW_RDLOCK = 306 - SYS_PSYNCH_RW_WRLOCK = 307 - SYS_PSYNCH_RW_UNLOCK = 308 - SYS_PSYNCH_RW_UNLOCK2 = 309 - SYS_GETSID = 310 - SYS_SETTID_WITH_PID = 311 - SYS_PSYNCH_CVCLRPREPOST = 312 - SYS_AIO_FSYNC = 313 - SYS_AIO_RETURN = 314 - SYS_AIO_SUSPEND = 315 - SYS_AIO_CANCEL = 316 - SYS_AIO_ERROR = 317 - SYS_AIO_READ = 318 - SYS_AIO_WRITE = 319 - SYS_LIO_LISTIO = 320 - SYS_IOPOLICYSYS = 322 - SYS_PROCESS_POLICY = 323 - SYS_MLOCKALL = 324 - SYS_MUNLOCKALL = 325 - SYS_ISSETUGID = 327 - SYS___PTHREAD_KILL = 328 - SYS___PTHREAD_SIGMASK = 329 - SYS___SIGWAIT = 330 - SYS___DISABLE_THREADSIGNAL = 331 - SYS___PTHREAD_MARKCANCEL = 332 - SYS___PTHREAD_CANCELED = 333 - SYS___SEMWAIT_SIGNAL = 334 - SYS_PROC_INFO = 336 - SYS_SENDFILE = 337 - SYS_STAT64 = 338 - SYS_FSTAT64 = 339 - SYS_LSTAT64 = 340 - SYS_STAT64_EXTENDED = 341 - SYS_LSTAT64_EXTENDED = 342 - SYS_FSTAT64_EXTENDED = 343 - SYS_GETDIRENTRIES64 = 344 - SYS_STATFS64 = 345 - SYS_FSTATFS64 = 346 - SYS_GETFSSTAT64 = 347 - SYS___PTHREAD_CHDIR = 348 - SYS___PTHREAD_FCHDIR = 349 - SYS_AUDIT = 350 - SYS_AUDITON = 351 - SYS_GETAUID = 353 - SYS_SETAUID = 354 - SYS_GETAUDIT_ADDR = 357 - SYS_SETAUDIT_ADDR = 358 - SYS_AUDITCTL = 359 - SYS_BSDTHREAD_CREATE = 360 - SYS_BSDTHREAD_TERMINATE = 361 - SYS_KQUEUE = 362 - SYS_KEVENT = 363 - SYS_LCHOWN = 364 - SYS_BSDTHREAD_REGISTER = 366 - SYS_WORKQ_OPEN = 367 - SYS_WORKQ_KERNRETURN = 368 - SYS_KEVENT64 = 369 - SYS___OLD_SEMWAIT_SIGNAL = 370 - SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 - SYS_THREAD_SELFID = 372 - SYS_LEDGER = 373 - SYS_KEVENT_QOS = 374 - SYS_KEVENT_ID = 375 - SYS___MAC_EXECVE = 380 - SYS___MAC_SYSCALL = 381 - SYS___MAC_GET_FILE = 382 - SYS___MAC_SET_FILE = 383 - SYS___MAC_GET_LINK = 384 - SYS___MAC_SET_LINK = 385 - SYS___MAC_GET_PROC = 386 - SYS___MAC_SET_PROC = 387 - SYS___MAC_GET_FD = 388 - SYS___MAC_SET_FD = 389 - SYS___MAC_GET_PID = 390 - SYS_PSELECT = 394 - SYS_PSELECT_NOCANCEL = 395 - SYS_READ_NOCANCEL = 396 - SYS_WRITE_NOCANCEL = 397 - SYS_OPEN_NOCANCEL = 398 - SYS_CLOSE_NOCANCEL = 399 - SYS_WAIT4_NOCANCEL = 400 - SYS_RECVMSG_NOCANCEL = 401 - SYS_SENDMSG_NOCANCEL = 402 - SYS_RECVFROM_NOCANCEL = 403 - SYS_ACCEPT_NOCANCEL = 404 - SYS_MSYNC_NOCANCEL = 405 - SYS_FCNTL_NOCANCEL = 406 - SYS_SELECT_NOCANCEL = 407 - SYS_FSYNC_NOCANCEL = 408 - SYS_CONNECT_NOCANCEL = 409 - SYS_SIGSUSPEND_NOCANCEL = 410 - SYS_READV_NOCANCEL = 411 - SYS_WRITEV_NOCANCEL = 412 - SYS_SENDTO_NOCANCEL = 413 - SYS_PREAD_NOCANCEL = 414 - SYS_PWRITE_NOCANCEL = 415 - SYS_WAITID_NOCANCEL = 416 - SYS_POLL_NOCANCEL = 417 - SYS_MSGSND_NOCANCEL = 418 - SYS_MSGRCV_NOCANCEL = 419 - SYS_SEM_WAIT_NOCANCEL = 420 - SYS_AIO_SUSPEND_NOCANCEL = 421 - SYS___SIGWAIT_NOCANCEL = 422 - SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 - SYS___MAC_MOUNT = 424 - SYS___MAC_GET_MOUNT = 425 - SYS___MAC_GETFSSTAT = 426 - SYS_FSGETPATH = 427 - SYS_AUDIT_SESSION_SELF = 428 - SYS_AUDIT_SESSION_JOIN = 429 - SYS_FILEPORT_MAKEPORT = 430 - SYS_FILEPORT_MAKEFD = 431 - SYS_AUDIT_SESSION_PORT = 432 - SYS_PID_SUSPEND = 433 - SYS_PID_RESUME = 434 - SYS_PID_HIBERNATE = 435 - SYS_PID_SHUTDOWN_SOCKETS = 436 - SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 - SYS_KAS_INFO = 439 - SYS_MEMORYSTATUS_CONTROL = 440 - SYS_GUARDED_OPEN_NP = 441 - SYS_GUARDED_CLOSE_NP = 442 - SYS_GUARDED_KQUEUE_NP = 443 - SYS_CHANGE_FDGUARD_NP = 444 - SYS_USRCTL = 445 - SYS_PROC_RLIMIT_CONTROL = 446 - SYS_CONNECTX = 447 - SYS_DISCONNECTX = 448 - SYS_PEELOFF = 449 - SYS_SOCKET_DELEGATE = 450 - SYS_TELEMETRY = 451 - SYS_PROC_UUID_POLICY = 452 - SYS_MEMORYSTATUS_GET_LEVEL = 453 - SYS_SYSTEM_OVERRIDE = 454 - SYS_VFS_PURGE = 455 - SYS_SFI_CTL = 456 - SYS_SFI_PIDCTL = 457 - SYS_COALITION = 458 - SYS_COALITION_INFO = 459 - SYS_NECP_MATCH_POLICY = 460 - SYS_GETATTRLISTBULK = 461 - SYS_CLONEFILEAT = 462 - SYS_OPENAT = 463 - SYS_OPENAT_NOCANCEL = 464 - SYS_RENAMEAT = 465 - SYS_FACCESSAT = 466 - SYS_FCHMODAT = 467 - SYS_FCHOWNAT = 468 - SYS_FSTATAT = 469 - SYS_FSTATAT64 = 470 - SYS_LINKAT = 471 - SYS_UNLINKAT = 472 - SYS_READLINKAT = 473 - SYS_SYMLINKAT = 474 - SYS_MKDIRAT = 475 - SYS_GETATTRLISTAT = 476 - SYS_PROC_TRACE_LOG = 477 - SYS_BSDTHREAD_CTL = 478 - SYS_OPENBYID_NP = 479 - SYS_RECVMSG_X = 480 - SYS_SENDMSG_X = 481 - SYS_THREAD_SELFUSAGE = 482 - SYS_CSRCTL = 483 - SYS_GUARDED_OPEN_DPROTECTED_NP = 484 - SYS_GUARDED_WRITE_NP = 485 - SYS_GUARDED_PWRITE_NP = 486 - SYS_GUARDED_WRITEV_NP = 487 - SYS_RENAMEATX_NP = 488 - SYS_MREMAP_ENCRYPTED = 489 - SYS_NETAGENT_TRIGGER = 490 - SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 - SYS_MICROSTACKSHOT = 492 - SYS_GRAB_PGO_DATA = 493 - SYS_PERSONA = 494 - SYS_WORK_INTERVAL_CTL = 499 - SYS_GETENTROPY = 500 - SYS_NECP_OPEN = 501 - SYS_NECP_CLIENT_ACTION = 502 - SYS___NEXUS_OPEN = 503 - SYS___NEXUS_REGISTER = 504 - SYS___NEXUS_DEREGISTER = 505 - SYS___NEXUS_CREATE = 506 - SYS___NEXUS_DESTROY = 507 - SYS___NEXUS_GET_OPT = 508 - SYS___NEXUS_SET_OPT = 509 - SYS___CHANNEL_OPEN = 510 - SYS___CHANNEL_GET_INFO = 511 - SYS___CHANNEL_SYNC = 512 - SYS___CHANNEL_GET_OPT = 513 - SYS___CHANNEL_SET_OPT = 514 - SYS_ULOCK_WAIT = 515 - SYS_ULOCK_WAKE = 516 - SYS_FCLONEFILEAT = 517 - SYS_FS_SNAPSHOT = 518 - SYS_TERMINATE_WITH_PAYLOAD = 520 - SYS_ABORT_WITH_PAYLOAD = 521 - SYS_NECP_SESSION_OPEN = 522 - SYS_NECP_SESSION_ACTION = 523 - SYS_SETATTRLISTAT = 524 - SYS_NET_QOS_GUIDELINE = 525 - SYS_FMOUNT = 526 - SYS_NTP_ADJTIME = 527 - SYS_NTP_GETTIME = 528 - SYS_OS_FAULT_WITH_PAYLOAD = 529 - SYS_MAXSYSCALL = 530 - SYS_INVALID = 63 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go deleted file mode 100644 index 9694630..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +++ /dev/null @@ -1,436 +0,0 @@ -// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk/usr/include/sys/syscall.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,darwin - -package unix - -const ( - SYS_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAIT4 = 7 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_CHDIR = 12 - SYS_FCHDIR = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_CHOWN = 16 - SYS_GETFSSTAT = 18 - SYS_GETPID = 20 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_GETEUID = 25 - SYS_PTRACE = 26 - SYS_RECVMSG = 27 - SYS_SENDMSG = 28 - SYS_RECVFROM = 29 - SYS_ACCEPT = 30 - SYS_GETPEERNAME = 31 - SYS_GETSOCKNAME = 32 - SYS_ACCESS = 33 - SYS_CHFLAGS = 34 - SYS_FCHFLAGS = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_GETPPID = 39 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_GETEGID = 43 - SYS_SIGACTION = 46 - SYS_GETGID = 47 - SYS_SIGPROCMASK = 48 - SYS_GETLOGIN = 49 - SYS_SETLOGIN = 50 - SYS_ACCT = 51 - SYS_SIGPENDING = 52 - SYS_SIGALTSTACK = 53 - SYS_IOCTL = 54 - SYS_REBOOT = 55 - SYS_REVOKE = 56 - SYS_SYMLINK = 57 - SYS_READLINK = 58 - SYS_EXECVE = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_MSYNC = 65 - SYS_VFORK = 66 - SYS_MUNMAP = 73 - SYS_MPROTECT = 74 - SYS_MADVISE = 75 - SYS_MINCORE = 78 - SYS_GETGROUPS = 79 - SYS_SETGROUPS = 80 - SYS_GETPGRP = 81 - SYS_SETPGID = 82 - SYS_SETITIMER = 83 - SYS_SWAPON = 85 - SYS_GETITIMER = 86 - SYS_GETDTABLESIZE = 89 - SYS_DUP2 = 90 - SYS_FCNTL = 92 - SYS_SELECT = 93 - SYS_FSYNC = 95 - SYS_SETPRIORITY = 96 - SYS_SOCKET = 97 - SYS_CONNECT = 98 - SYS_GETPRIORITY = 100 - SYS_BIND = 104 - SYS_SETSOCKOPT = 105 - SYS_LISTEN = 106 - SYS_SIGSUSPEND = 111 - SYS_GETTIMEOFDAY = 116 - SYS_GETRUSAGE = 117 - SYS_GETSOCKOPT = 118 - SYS_READV = 120 - SYS_WRITEV = 121 - SYS_SETTIMEOFDAY = 122 - SYS_FCHOWN = 123 - SYS_FCHMOD = 124 - SYS_SETREUID = 126 - SYS_SETREGID = 127 - SYS_RENAME = 128 - SYS_FLOCK = 131 - SYS_MKFIFO = 132 - SYS_SENDTO = 133 - SYS_SHUTDOWN = 134 - SYS_SOCKETPAIR = 135 - SYS_MKDIR = 136 - SYS_RMDIR = 137 - SYS_UTIMES = 138 - SYS_FUTIMES = 139 - SYS_ADJTIME = 140 - SYS_GETHOSTUUID = 142 - SYS_SETSID = 147 - SYS_GETPGID = 151 - SYS_SETPRIVEXEC = 152 - SYS_PREAD = 153 - SYS_PWRITE = 154 - SYS_NFSSVC = 155 - SYS_STATFS = 157 - SYS_FSTATFS = 158 - SYS_UNMOUNT = 159 - SYS_GETFH = 161 - SYS_QUOTACTL = 165 - SYS_MOUNT = 167 - SYS_CSOPS = 169 - SYS_CSOPS_AUDITTOKEN = 170 - SYS_WAITID = 173 - SYS_KDEBUG_TYPEFILTER = 177 - SYS_KDEBUG_TRACE_STRING = 178 - SYS_KDEBUG_TRACE64 = 179 - SYS_KDEBUG_TRACE = 180 - SYS_SETGID = 181 - SYS_SETEGID = 182 - SYS_SETEUID = 183 - SYS_SIGRETURN = 184 - SYS_THREAD_SELFCOUNTS = 186 - SYS_FDATASYNC = 187 - SYS_STAT = 188 - SYS_FSTAT = 189 - SYS_LSTAT = 190 - SYS_PATHCONF = 191 - SYS_FPATHCONF = 192 - SYS_GETRLIMIT = 194 - SYS_SETRLIMIT = 195 - SYS_GETDIRENTRIES = 196 - SYS_MMAP = 197 - SYS_LSEEK = 199 - SYS_TRUNCATE = 200 - SYS_FTRUNCATE = 201 - SYS_SYSCTL = 202 - SYS_MLOCK = 203 - SYS_MUNLOCK = 204 - SYS_UNDELETE = 205 - SYS_OPEN_DPROTECTED_NP = 216 - SYS_GETATTRLIST = 220 - SYS_SETATTRLIST = 221 - SYS_GETDIRENTRIESATTR = 222 - SYS_EXCHANGEDATA = 223 - SYS_SEARCHFS = 225 - SYS_DELETE = 226 - SYS_COPYFILE = 227 - SYS_FGETATTRLIST = 228 - SYS_FSETATTRLIST = 229 - SYS_POLL = 230 - SYS_WATCHEVENT = 231 - SYS_WAITEVENT = 232 - SYS_MODWATCH = 233 - SYS_GETXATTR = 234 - SYS_FGETXATTR = 235 - SYS_SETXATTR = 236 - SYS_FSETXATTR = 237 - SYS_REMOVEXATTR = 238 - SYS_FREMOVEXATTR = 239 - SYS_LISTXATTR = 240 - SYS_FLISTXATTR = 241 - SYS_FSCTL = 242 - SYS_INITGROUPS = 243 - SYS_POSIX_SPAWN = 244 - SYS_FFSCTL = 245 - SYS_NFSCLNT = 247 - SYS_FHOPEN = 248 - SYS_MINHERIT = 250 - SYS_SEMSYS = 251 - SYS_MSGSYS = 252 - SYS_SHMSYS = 253 - SYS_SEMCTL = 254 - SYS_SEMGET = 255 - SYS_SEMOP = 256 - SYS_MSGCTL = 258 - SYS_MSGGET = 259 - SYS_MSGSND = 260 - SYS_MSGRCV = 261 - SYS_SHMAT = 262 - SYS_SHMCTL = 263 - SYS_SHMDT = 264 - SYS_SHMGET = 265 - SYS_SHM_OPEN = 266 - SYS_SHM_UNLINK = 267 - SYS_SEM_OPEN = 268 - SYS_SEM_CLOSE = 269 - SYS_SEM_UNLINK = 270 - SYS_SEM_WAIT = 271 - SYS_SEM_TRYWAIT = 272 - SYS_SEM_POST = 273 - SYS_SYSCTLBYNAME = 274 - SYS_OPEN_EXTENDED = 277 - SYS_UMASK_EXTENDED = 278 - SYS_STAT_EXTENDED = 279 - SYS_LSTAT_EXTENDED = 280 - SYS_FSTAT_EXTENDED = 281 - SYS_CHMOD_EXTENDED = 282 - SYS_FCHMOD_EXTENDED = 283 - SYS_ACCESS_EXTENDED = 284 - SYS_SETTID = 285 - SYS_GETTID = 286 - SYS_SETSGROUPS = 287 - SYS_GETSGROUPS = 288 - SYS_SETWGROUPS = 289 - SYS_GETWGROUPS = 290 - SYS_MKFIFO_EXTENDED = 291 - SYS_MKDIR_EXTENDED = 292 - SYS_IDENTITYSVC = 293 - SYS_SHARED_REGION_CHECK_NP = 294 - SYS_VM_PRESSURE_MONITOR = 296 - SYS_PSYNCH_RW_LONGRDLOCK = 297 - SYS_PSYNCH_RW_YIELDWRLOCK = 298 - SYS_PSYNCH_RW_DOWNGRADE = 299 - SYS_PSYNCH_RW_UPGRADE = 300 - SYS_PSYNCH_MUTEXWAIT = 301 - SYS_PSYNCH_MUTEXDROP = 302 - SYS_PSYNCH_CVBROAD = 303 - SYS_PSYNCH_CVSIGNAL = 304 - SYS_PSYNCH_CVWAIT = 305 - SYS_PSYNCH_RW_RDLOCK = 306 - SYS_PSYNCH_RW_WRLOCK = 307 - SYS_PSYNCH_RW_UNLOCK = 308 - SYS_PSYNCH_RW_UNLOCK2 = 309 - SYS_GETSID = 310 - SYS_SETTID_WITH_PID = 311 - SYS_PSYNCH_CVCLRPREPOST = 312 - SYS_AIO_FSYNC = 313 - SYS_AIO_RETURN = 314 - SYS_AIO_SUSPEND = 315 - SYS_AIO_CANCEL = 316 - SYS_AIO_ERROR = 317 - SYS_AIO_READ = 318 - SYS_AIO_WRITE = 319 - SYS_LIO_LISTIO = 320 - SYS_IOPOLICYSYS = 322 - SYS_PROCESS_POLICY = 323 - SYS_MLOCKALL = 324 - SYS_MUNLOCKALL = 325 - SYS_ISSETUGID = 327 - SYS___PTHREAD_KILL = 328 - SYS___PTHREAD_SIGMASK = 329 - SYS___SIGWAIT = 330 - SYS___DISABLE_THREADSIGNAL = 331 - SYS___PTHREAD_MARKCANCEL = 332 - SYS___PTHREAD_CANCELED = 333 - SYS___SEMWAIT_SIGNAL = 334 - SYS_PROC_INFO = 336 - SYS_SENDFILE = 337 - SYS_STAT64 = 338 - SYS_FSTAT64 = 339 - SYS_LSTAT64 = 340 - SYS_STAT64_EXTENDED = 341 - SYS_LSTAT64_EXTENDED = 342 - SYS_FSTAT64_EXTENDED = 343 - SYS_GETDIRENTRIES64 = 344 - SYS_STATFS64 = 345 - SYS_FSTATFS64 = 346 - SYS_GETFSSTAT64 = 347 - SYS___PTHREAD_CHDIR = 348 - SYS___PTHREAD_FCHDIR = 349 - SYS_AUDIT = 350 - SYS_AUDITON = 351 - SYS_GETAUID = 353 - SYS_SETAUID = 354 - SYS_GETAUDIT_ADDR = 357 - SYS_SETAUDIT_ADDR = 358 - SYS_AUDITCTL = 359 - SYS_BSDTHREAD_CREATE = 360 - SYS_BSDTHREAD_TERMINATE = 361 - SYS_KQUEUE = 362 - SYS_KEVENT = 363 - SYS_LCHOWN = 364 - SYS_BSDTHREAD_REGISTER = 366 - SYS_WORKQ_OPEN = 367 - SYS_WORKQ_KERNRETURN = 368 - SYS_KEVENT64 = 369 - SYS___OLD_SEMWAIT_SIGNAL = 370 - SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371 - SYS_THREAD_SELFID = 372 - SYS_LEDGER = 373 - SYS_KEVENT_QOS = 374 - SYS_KEVENT_ID = 375 - SYS___MAC_EXECVE = 380 - SYS___MAC_SYSCALL = 381 - SYS___MAC_GET_FILE = 382 - SYS___MAC_SET_FILE = 383 - SYS___MAC_GET_LINK = 384 - SYS___MAC_SET_LINK = 385 - SYS___MAC_GET_PROC = 386 - SYS___MAC_SET_PROC = 387 - SYS___MAC_GET_FD = 388 - SYS___MAC_SET_FD = 389 - SYS___MAC_GET_PID = 390 - SYS_PSELECT = 394 - SYS_PSELECT_NOCANCEL = 395 - SYS_READ_NOCANCEL = 396 - SYS_WRITE_NOCANCEL = 397 - SYS_OPEN_NOCANCEL = 398 - SYS_CLOSE_NOCANCEL = 399 - SYS_WAIT4_NOCANCEL = 400 - SYS_RECVMSG_NOCANCEL = 401 - SYS_SENDMSG_NOCANCEL = 402 - SYS_RECVFROM_NOCANCEL = 403 - SYS_ACCEPT_NOCANCEL = 404 - SYS_MSYNC_NOCANCEL = 405 - SYS_FCNTL_NOCANCEL = 406 - SYS_SELECT_NOCANCEL = 407 - SYS_FSYNC_NOCANCEL = 408 - SYS_CONNECT_NOCANCEL = 409 - SYS_SIGSUSPEND_NOCANCEL = 410 - SYS_READV_NOCANCEL = 411 - SYS_WRITEV_NOCANCEL = 412 - SYS_SENDTO_NOCANCEL = 413 - SYS_PREAD_NOCANCEL = 414 - SYS_PWRITE_NOCANCEL = 415 - SYS_WAITID_NOCANCEL = 416 - SYS_POLL_NOCANCEL = 417 - SYS_MSGSND_NOCANCEL = 418 - SYS_MSGRCV_NOCANCEL = 419 - SYS_SEM_WAIT_NOCANCEL = 420 - SYS_AIO_SUSPEND_NOCANCEL = 421 - SYS___SIGWAIT_NOCANCEL = 422 - SYS___SEMWAIT_SIGNAL_NOCANCEL = 423 - SYS___MAC_MOUNT = 424 - SYS___MAC_GET_MOUNT = 425 - SYS___MAC_GETFSSTAT = 426 - SYS_FSGETPATH = 427 - SYS_AUDIT_SESSION_SELF = 428 - SYS_AUDIT_SESSION_JOIN = 429 - SYS_FILEPORT_MAKEPORT = 430 - SYS_FILEPORT_MAKEFD = 431 - SYS_AUDIT_SESSION_PORT = 432 - SYS_PID_SUSPEND = 433 - SYS_PID_RESUME = 434 - SYS_PID_HIBERNATE = 435 - SYS_PID_SHUTDOWN_SOCKETS = 436 - SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438 - SYS_KAS_INFO = 439 - SYS_MEMORYSTATUS_CONTROL = 440 - SYS_GUARDED_OPEN_NP = 441 - SYS_GUARDED_CLOSE_NP = 442 - SYS_GUARDED_KQUEUE_NP = 443 - SYS_CHANGE_FDGUARD_NP = 444 - SYS_USRCTL = 445 - SYS_PROC_RLIMIT_CONTROL = 446 - SYS_CONNECTX = 447 - SYS_DISCONNECTX = 448 - SYS_PEELOFF = 449 - SYS_SOCKET_DELEGATE = 450 - SYS_TELEMETRY = 451 - SYS_PROC_UUID_POLICY = 452 - SYS_MEMORYSTATUS_GET_LEVEL = 453 - SYS_SYSTEM_OVERRIDE = 454 - SYS_VFS_PURGE = 455 - SYS_SFI_CTL = 456 - SYS_SFI_PIDCTL = 457 - SYS_COALITION = 458 - SYS_COALITION_INFO = 459 - SYS_NECP_MATCH_POLICY = 460 - SYS_GETATTRLISTBULK = 461 - SYS_CLONEFILEAT = 462 - SYS_OPENAT = 463 - SYS_OPENAT_NOCANCEL = 464 - SYS_RENAMEAT = 465 - SYS_FACCESSAT = 466 - SYS_FCHMODAT = 467 - SYS_FCHOWNAT = 468 - SYS_FSTATAT = 469 - SYS_FSTATAT64 = 470 - SYS_LINKAT = 471 - SYS_UNLINKAT = 472 - SYS_READLINKAT = 473 - SYS_SYMLINKAT = 474 - SYS_MKDIRAT = 475 - SYS_GETATTRLISTAT = 476 - SYS_PROC_TRACE_LOG = 477 - SYS_BSDTHREAD_CTL = 478 - SYS_OPENBYID_NP = 479 - SYS_RECVMSG_X = 480 - SYS_SENDMSG_X = 481 - SYS_THREAD_SELFUSAGE = 482 - SYS_CSRCTL = 483 - SYS_GUARDED_OPEN_DPROTECTED_NP = 484 - SYS_GUARDED_WRITE_NP = 485 - SYS_GUARDED_PWRITE_NP = 486 - SYS_GUARDED_WRITEV_NP = 487 - SYS_RENAMEATX_NP = 488 - SYS_MREMAP_ENCRYPTED = 489 - SYS_NETAGENT_TRIGGER = 490 - SYS_STACK_SNAPSHOT_WITH_CONFIG = 491 - SYS_MICROSTACKSHOT = 492 - SYS_GRAB_PGO_DATA = 493 - SYS_PERSONA = 494 - SYS_WORK_INTERVAL_CTL = 499 - SYS_GETENTROPY = 500 - SYS_NECP_OPEN = 501 - SYS_NECP_CLIENT_ACTION = 502 - SYS___NEXUS_OPEN = 503 - SYS___NEXUS_REGISTER = 504 - SYS___NEXUS_DEREGISTER = 505 - SYS___NEXUS_CREATE = 506 - SYS___NEXUS_DESTROY = 507 - SYS___NEXUS_GET_OPT = 508 - SYS___NEXUS_SET_OPT = 509 - SYS___CHANNEL_OPEN = 510 - SYS___CHANNEL_GET_INFO = 511 - SYS___CHANNEL_SYNC = 512 - SYS___CHANNEL_GET_OPT = 513 - SYS___CHANNEL_SET_OPT = 514 - SYS_ULOCK_WAIT = 515 - SYS_ULOCK_WAKE = 516 - SYS_FCLONEFILEAT = 517 - SYS_FS_SNAPSHOT = 518 - SYS_TERMINATE_WITH_PAYLOAD = 520 - SYS_ABORT_WITH_PAYLOAD = 521 - SYS_NECP_SESSION_OPEN = 522 - SYS_NECP_SESSION_ACTION = 523 - SYS_SETATTRLISTAT = 524 - SYS_NET_QOS_GUIDELINE = 525 - SYS_FMOUNT = 526 - SYS_NTP_ADJTIME = 527 - SYS_NTP_GETTIME = 528 - SYS_OS_FAULT_WITH_PAYLOAD = 529 - SYS_MAXSYSCALL = 530 - SYS_INVALID = 63 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go deleted file mode 100644 index b2c9ef8..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +++ /dev/null @@ -1,315 +0,0 @@ -// mksysnum_dragonfly.pl -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,dragonfly - -package unix - -const ( - // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int - SYS_EXIT = 1 // { void exit(int rval); } - SYS_FORK = 2 // { int fork(void); } - SYS_READ = 3 // { ssize_t read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, size_t nbyte); } - SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } - SYS_CLOSE = 6 // { int close(int fd); } - SYS_WAIT4 = 7 // { int wait4(int pid, int *status, int options, \ - SYS_LINK = 9 // { int link(char *path, char *link); } - SYS_UNLINK = 10 // { int unlink(char *path); } - SYS_CHDIR = 12 // { int chdir(char *path); } - SYS_FCHDIR = 13 // { int fchdir(int fd); } - SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } - SYS_CHMOD = 15 // { int chmod(char *path, int mode); } - SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } - SYS_OBREAK = 17 // { int obreak(char *nsize); } break obreak_args int - SYS_GETFSSTAT = 18 // { int getfsstat(struct statfs *buf, long bufsize, \ - SYS_GETPID = 20 // { pid_t getpid(void); } - SYS_MOUNT = 21 // { int mount(char *type, char *path, int flags, \ - SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } - SYS_SETUID = 23 // { int setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t getuid(void); } - SYS_GETEUID = 25 // { uid_t geteuid(void); } - SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, caddr_t addr, \ - SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, int flags); } - SYS_SENDMSG = 28 // { int sendmsg(int s, caddr_t msg, int flags); } - SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, size_t len, \ - SYS_ACCEPT = 30 // { int accept(int s, caddr_t name, int *anamelen); } - SYS_GETPEERNAME = 31 // { int getpeername(int fdes, caddr_t asa, int *alen); } - SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, caddr_t asa, int *alen); } - SYS_ACCESS = 33 // { int access(char *path, int flags); } - SYS_CHFLAGS = 34 // { int chflags(char *path, int flags); } - SYS_FCHFLAGS = 35 // { int fchflags(int fd, int flags); } - SYS_SYNC = 36 // { int sync(void); } - SYS_KILL = 37 // { int kill(int pid, int signum); } - SYS_GETPPID = 39 // { pid_t getppid(void); } - SYS_DUP = 41 // { int dup(int fd); } - SYS_PIPE = 42 // { int pipe(void); } - SYS_GETEGID = 43 // { gid_t getegid(void); } - SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, int facs, \ - SYS_GETGID = 47 // { gid_t getgid(void); } - SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int namelen); } - SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } - SYS_ACCT = 51 // { int acct(char *path); } - SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, stack_t *oss); } - SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, caddr_t data); } - SYS_REBOOT = 55 // { int reboot(int opt); } - SYS_REVOKE = 56 // { int revoke(char *path); } - SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } - SYS_READLINK = 58 // { int readlink(char *path, char *buf, int count); } - SYS_EXECVE = 59 // { int execve(char *fname, char **argv, char **envv); } - SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args int - SYS_CHROOT = 61 // { int chroot(char *path); } - SYS_MSYNC = 65 // { int msync(void *addr, size_t len, int flags); } - SYS_VFORK = 66 // { pid_t vfork(void); } - SYS_SBRK = 69 // { int sbrk(int incr); } - SYS_SSTK = 70 // { int sstk(int incr); } - SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int mprotect(void *addr, size_t len, int prot); } - SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, int behav); } - SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, gid_t *gidset); } - SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, gid_t *gidset); } - SYS_GETPGRP = 81 // { int getpgrp(void); } - SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } - SYS_SETITIMER = 83 // { int setitimer(u_int which, struct itimerval *itv, \ - SYS_SWAPON = 85 // { int swapon(char *name); } - SYS_GETITIMER = 86 // { int getitimer(u_int which, struct itimerval *itv); } - SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } - SYS_DUP2 = 90 // { int dup2(int from, int to); } - SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } - SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ - SYS_FSYNC = 95 // { int fsync(int fd); } - SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, int prio); } - SYS_SOCKET = 97 // { int socket(int domain, int type, int protocol); } - SYS_CONNECT = 98 // { int connect(int s, caddr_t name, int namelen); } - SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } - SYS_BIND = 104 // { int bind(int s, caddr_t name, int namelen); } - SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int listen(int s, int backlog); } - SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ - SYS_GETRUSAGE = 117 // { int getrusage(int who, struct rusage *rusage); } - SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, u_int iovcnt); } - SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ - SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ - SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } - SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } - SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } - SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } - SYS_RENAME = 128 // { int rename(char *from, char *to); } - SYS_FLOCK = 131 // { int flock(int fd, int how); } - SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } - SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ - SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, int protocol, \ - SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } - SYS_RMDIR = 137 // { int rmdir(char *path); } - SYS_UTIMES = 138 // { int utimes(char *path, struct timeval *tptr); } - SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ - SYS_SETSID = 147 // { int setsid(void); } - SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ - SYS_STATFS = 157 // { int statfs(char *path, struct statfs *buf); } - SYS_FSTATFS = 158 // { int fstatfs(int fd, struct statfs *buf); } - SYS_GETFH = 161 // { int getfh(char *fname, struct fhandle *fhp); } - SYS_GETDOMAINNAME = 162 // { int getdomainname(char *domainname, int len); } - SYS_SETDOMAINNAME = 163 // { int setdomainname(char *domainname, int len); } - SYS_UNAME = 164 // { int uname(struct utsname *name); } - SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } - SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ - SYS_EXTPREAD = 173 // { ssize_t extpread(int fd, void *buf, \ - SYS_EXTPWRITE = 174 // { ssize_t extpwrite(int fd, const void *buf, \ - SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int setgid(gid_t gid); } - SYS_SETEGID = 182 // { int setegid(gid_t egid); } - SYS_SETEUID = 183 // { int seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } - SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ - SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ - SYS_MMAP = 197 // { caddr_t mmap(caddr_t addr, size_t len, int prot, \ - // SYS_NOSYS = 198; // { int nosys(void); } __syscall __syscall_args int - SYS_LSEEK = 199 // { off_t lseek(int fd, int pad, off_t offset, \ - SYS_TRUNCATE = 200 // { int truncate(char *path, int pad, off_t length); } - SYS_FTRUNCATE = 201 // { int ftruncate(int fd, int pad, off_t length); } - SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, void *old, \ - SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int undelete(char *path); } - SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } - SYS_GETPGID = 207 // { int getpgid(pid_t pid); } - SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ - SYS___SEMCTL = 220 // { int __semctl(int semid, int semnum, int cmd, \ - SYS_SEMGET = 221 // { int semget(key_t key, int nsems, int semflg); } - SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \ - SYS_MSGCTL = 224 // { int msgctl(int msqid, int cmd, \ - SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, size_t msgsz, \ - SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, size_t msgsz, \ - SYS_SHMAT = 228 // { caddr_t shmat(int shmid, const void *shmaddr, \ - SYS_SHMCTL = 229 // { int shmctl(int shmid, int cmd, \ - SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); } - SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, int shmflg); } - SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 233 // { int clock_settime(clockid_t clock_id, \ - SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ - SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ - SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, int inherit); } - SYS_RFORK = 251 // { int rfork(int flags); } - SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, u_int nfds, \ - SYS_ISSETUGID = 253 // { int issetugid(void); } - SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } - SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } - SYS_LUTIMES = 276 // { int lutimes(char *path, struct timeval *tptr); } - SYS_EXTPREADV = 289 // { ssize_t extpreadv(int fd, struct iovec *iovp, \ - SYS_EXTPWRITEV = 290 // { ssize_t extpwritev(int fd, struct iovec *iovp,\ - SYS_FHSTATFS = 297 // { int fhstatfs(const struct fhandle *u_fhp, struct statfs *buf); } - SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, int flags); } - SYS_MODNEXT = 300 // { int modnext(int modid); } - SYS_MODSTAT = 301 // { int modstat(int modid, struct module_stat* stat); } - SYS_MODFNEXT = 302 // { int modfnext(int modid); } - SYS_MODFIND = 303 // { int modfind(const char *name); } - SYS_KLDLOAD = 304 // { int kldload(const char *file); } - SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } - SYS_KLDFIND = 306 // { int kldfind(const char *file); } - SYS_KLDNEXT = 307 // { int kldnext(int fileid); } - SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct kld_file_stat* stat); } - SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } - SYS_GETSID = 310 // { int getsid(pid_t pid); } - SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, uid_t suid); } - SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); } - SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); } - SYS_AIO_SUSPEND = 315 // { int aio_suspend(struct aiocb * const * aiocbp, int nent, const struct timespec *timeout); } - SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, struct aiocb *aiocbp); } - SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); } - SYS_AIO_READ = 318 // { int aio_read(struct aiocb *aiocbp); } - SYS_AIO_WRITE = 319 // { int aio_write(struct aiocb *aiocbp); } - SYS_LIO_LISTIO = 320 // { int lio_listio(int mode, struct aiocb * const *acb_list, int nent, struct sigevent *sig); } - SYS_YIELD = 321 // { int yield(void); } - SYS_MLOCKALL = 324 // { int mlockall(int how); } - SYS_MUNLOCKALL = 325 // { int munlockall(void); } - SYS___GETCWD = 326 // { int __getcwd(u_char *buf, u_int buflen); } - SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, const struct sched_param *param); } - SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct sched_param *param); } - SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } - SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } - SYS_SCHED_YIELD = 331 // { int sched_yield (void); } - SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } - SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } - SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, struct timespec *interval); } - SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } - SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, void *data); } - SYS_JAIL = 338 // { int jail(struct jail *jail); } - SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, const sigset_t *set, \ - SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } - SYS_SIGACTION = 342 // { int sigaction(int sig, const struct sigaction *act, \ - SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } - SYS_SIGRETURN = 344 // { int sigreturn(ucontext_t *sigcntxp); } - SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set,\ - SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set,\ - SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ - SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ - SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, acl_type_t type, \ - SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, acl_type_t type, \ - SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ - SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, acl_type_t type); } - SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ - SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, acl_type_t type, \ - SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ - SYS_EXTATTR_SET_FILE = 356 // { int extattr_set_file(const char *path, \ - SYS_EXTATTR_GET_FILE = 357 // { int extattr_get_file(const char *path, \ - SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ - SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete(struct aiocb **aiocbp, struct timespec *timeout); } - SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); } - SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); } - SYS_KQUEUE = 362 // { int kqueue(void); } - SYS_KEVENT = 363 // { int kevent(int fd, \ - SYS_KENV = 390 // { int kenv(int what, const char *name, char *value, int len); } - SYS_LCHFLAGS = 391 // { int lchflags(char *path, int flags); } - SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, int count); } - SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, size_t nbytes, \ - SYS_VARSYM_SET = 450 // { int varsym_set(int level, const char *name, const char *data); } - SYS_VARSYM_GET = 451 // { int varsym_get(int mask, const char *wild, char *buf, int bufsize); } - SYS_VARSYM_LIST = 452 // { int varsym_list(int level, char *buf, int maxsize, int *marker); } - SYS_EXEC_SYS_REGISTER = 465 // { int exec_sys_register(void *entry); } - SYS_EXEC_SYS_UNREGISTER = 466 // { int exec_sys_unregister(int id); } - SYS_SYS_CHECKPOINT = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); } - SYS_MOUNTCTL = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); } - SYS_UMTX_SLEEP = 469 // { int umtx_sleep(volatile const int *ptr, int value, int timeout); } - SYS_UMTX_WAKEUP = 470 // { int umtx_wakeup(volatile const int *ptr, int count); } - SYS_JAIL_ATTACH = 471 // { int jail_attach(int jid); } - SYS_SET_TLS_AREA = 472 // { int set_tls_area(int which, struct tls_info *info, size_t infosize); } - SYS_GET_TLS_AREA = 473 // { int get_tls_area(int which, struct tls_info *info, size_t infosize); } - SYS_CLOSEFROM = 474 // { int closefrom(int fd); } - SYS_STAT = 475 // { int stat(const char *path, struct stat *ub); } - SYS_FSTAT = 476 // { int fstat(int fd, struct stat *sb); } - SYS_LSTAT = 477 // { int lstat(const char *path, struct stat *ub); } - SYS_FHSTAT = 478 // { int fhstat(const struct fhandle *u_fhp, struct stat *sb); } - SYS_GETDIRENTRIES = 479 // { int getdirentries(int fd, char *buf, u_int count, \ - SYS_GETDENTS = 480 // { int getdents(int fd, char *buf, size_t count); } - SYS_USCHED_SET = 481 // { int usched_set(pid_t pid, int cmd, void *data, \ - SYS_EXTACCEPT = 482 // { int extaccept(int s, int flags, caddr_t name, int *anamelen); } - SYS_EXTCONNECT = 483 // { int extconnect(int s, int flags, caddr_t name, int namelen); } - SYS_MCONTROL = 485 // { int mcontrol(void *addr, size_t len, int behav, off_t value); } - SYS_VMSPACE_CREATE = 486 // { int vmspace_create(void *id, int type, void *data); } - SYS_VMSPACE_DESTROY = 487 // { int vmspace_destroy(void *id); } - SYS_VMSPACE_CTL = 488 // { int vmspace_ctl(void *id, int cmd, \ - SYS_VMSPACE_MMAP = 489 // { int vmspace_mmap(void *id, void *addr, size_t len, \ - SYS_VMSPACE_MUNMAP = 490 // { int vmspace_munmap(void *id, void *addr, \ - SYS_VMSPACE_MCONTROL = 491 // { int vmspace_mcontrol(void *id, void *addr, \ - SYS_VMSPACE_PREAD = 492 // { ssize_t vmspace_pread(void *id, void *buf, \ - SYS_VMSPACE_PWRITE = 493 // { ssize_t vmspace_pwrite(void *id, const void *buf, \ - SYS_EXTEXIT = 494 // { void extexit(int how, int status, void *addr); } - SYS_LWP_CREATE = 495 // { int lwp_create(struct lwp_params *params); } - SYS_LWP_GETTID = 496 // { lwpid_t lwp_gettid(void); } - SYS_LWP_KILL = 497 // { int lwp_kill(pid_t pid, lwpid_t tid, int signum); } - SYS_LWP_RTPRIO = 498 // { int lwp_rtprio(int function, pid_t pid, lwpid_t tid, struct rtprio *rtp); } - SYS_PSELECT = 499 // { int pselect(int nd, fd_set *in, fd_set *ou, \ - SYS_STATVFS = 500 // { int statvfs(const char *path, struct statvfs *buf); } - SYS_FSTATVFS = 501 // { int fstatvfs(int fd, struct statvfs *buf); } - SYS_FHSTATVFS = 502 // { int fhstatvfs(const struct fhandle *u_fhp, struct statvfs *buf); } - SYS_GETVFSSTAT = 503 // { int getvfsstat(struct statfs *buf, \ - SYS_OPENAT = 504 // { int openat(int fd, char *path, int flags, int mode); } - SYS_FSTATAT = 505 // { int fstatat(int fd, char *path, \ - SYS_FCHMODAT = 506 // { int fchmodat(int fd, char *path, int mode, \ - SYS_FCHOWNAT = 507 // { int fchownat(int fd, char *path, int uid, int gid, \ - SYS_UNLINKAT = 508 // { int unlinkat(int fd, char *path, int flags); } - SYS_FACCESSAT = 509 // { int faccessat(int fd, char *path, int amode, \ - SYS_MQ_OPEN = 510 // { mqd_t mq_open(const char * name, int oflag, \ - SYS_MQ_CLOSE = 511 // { int mq_close(mqd_t mqdes); } - SYS_MQ_UNLINK = 512 // { int mq_unlink(const char *name); } - SYS_MQ_GETATTR = 513 // { int mq_getattr(mqd_t mqdes, \ - SYS_MQ_SETATTR = 514 // { int mq_setattr(mqd_t mqdes, \ - SYS_MQ_NOTIFY = 515 // { int mq_notify(mqd_t mqdes, \ - SYS_MQ_SEND = 516 // { int mq_send(mqd_t mqdes, const char *msg_ptr, \ - SYS_MQ_RECEIVE = 517 // { ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, \ - SYS_MQ_TIMEDSEND = 518 // { int mq_timedsend(mqd_t mqdes, \ - SYS_MQ_TIMEDRECEIVE = 519 // { ssize_t mq_timedreceive(mqd_t mqdes, \ - SYS_IOPRIO_SET = 520 // { int ioprio_set(int which, int who, int prio); } - SYS_IOPRIO_GET = 521 // { int ioprio_get(int which, int who); } - SYS_CHROOT_KERNEL = 522 // { int chroot_kernel(char *path); } - SYS_RENAMEAT = 523 // { int renameat(int oldfd, char *old, int newfd, \ - SYS_MKDIRAT = 524 // { int mkdirat(int fd, char *path, mode_t mode); } - SYS_MKFIFOAT = 525 // { int mkfifoat(int fd, char *path, mode_t mode); } - SYS_MKNODAT = 526 // { int mknodat(int fd, char *path, mode_t mode, \ - SYS_READLINKAT = 527 // { int readlinkat(int fd, char *path, char *buf, \ - SYS_SYMLINKAT = 528 // { int symlinkat(char *path1, int fd, char *path2); } - SYS_SWAPOFF = 529 // { int swapoff(char *name); } - SYS_VQUOTACTL = 530 // { int vquotactl(const char *path, \ - SYS_LINKAT = 531 // { int linkat(int fd1, char *path1, int fd2, \ - SYS_EACCESS = 532 // { int eaccess(char *path, int flags); } - SYS_LPATHCONF = 533 // { int lpathconf(char *path, int name); } - SYS_VMM_GUEST_CTL = 534 // { int vmm_guest_ctl(int op, struct vmm_guest_options *options); } - SYS_VMM_GUEST_SYNC_ADDR = 535 // { int vmm_guest_sync_addr(long *dstaddr, long *srcaddr); } - SYS_PROCCTL = 536 // { int procctl(idtype_t idtype, id_t id, int cmd, void *data); } - SYS_CHFLAGSAT = 537 // { int chflagsat(int fd, const char *path, int flags, int atflags);} - SYS_PIPE2 = 538 // { int pipe2(int *fildes, int flags); } - SYS_UTIMENSAT = 539 // { int utimensat(int fd, const char *path, const struct timespec *ts, int flags); } - SYS_FUTIMENS = 540 // { int futimens(int fd, const struct timespec *ts); } - SYS_ACCEPT4 = 541 // { int accept4(int s, caddr_t name, int *anamelen, int flags); } - SYS_LWP_SETNAME = 542 // { int lwp_setname(lwpid_t tid, const char *name); } - SYS_PPOLL = 543 // { int ppoll(struct pollfd *fds, u_int nfds, \ - SYS_LWP_SETAFFINITY = 544 // { int lwp_setaffinity(pid_t pid, lwpid_t tid, const cpumask_t *mask); } - SYS_LWP_GETAFFINITY = 545 // { int lwp_getaffinity(pid_t pid, lwpid_t tid, cpumask_t *mask); } - SYS_LWP_CREATE2 = 546 // { int lwp_create2(struct lwp_params *params, const cpumask_t *mask); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go deleted file mode 100644 index b64a812..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +++ /dev/null @@ -1,353 +0,0 @@ -// mksysnum_freebsd.pl -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,freebsd - -package unix - -const ( - // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int - SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ - SYS_FORK = 2 // { int fork(void); } - SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ - SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } - SYS_CLOSE = 6 // { int close(int fd); } - SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ - SYS_LINK = 9 // { int link(char *path, char *link); } - SYS_UNLINK = 10 // { int unlink(char *path); } - SYS_CHDIR = 12 // { int chdir(char *path); } - SYS_FCHDIR = 13 // { int fchdir(int fd); } - SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } - SYS_CHMOD = 15 // { int chmod(char *path, int mode); } - SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } - SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ - SYS_GETPID = 20 // { pid_t getpid(void); } - SYS_MOUNT = 21 // { int mount(char *type, char *path, \ - SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } - SYS_SETUID = 23 // { int setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t getuid(void); } - SYS_GETEUID = 25 // { uid_t geteuid(void); } - SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ - SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ - SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ - SYS_ACCEPT = 30 // { int accept(int s, \ - SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ - SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ - SYS_ACCESS = 33 // { int access(char *path, int amode); } - SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { int sync(void); } - SYS_KILL = 37 // { int kill(int pid, int signum); } - SYS_GETPPID = 39 // { pid_t getppid(void); } - SYS_DUP = 41 // { int dup(u_int fd); } - SYS_PIPE = 42 // { int pipe(void); } - SYS_GETEGID = 43 // { gid_t getegid(void); } - SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ - SYS_GETGID = 47 // { gid_t getgid(void); } - SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ - SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } - SYS_ACCT = 51 // { int acct(char *path); } - SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ - SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ - SYS_REBOOT = 55 // { int reboot(int opt); } - SYS_REVOKE = 56 // { int revoke(char *path); } - SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } - SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ - SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ - SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ - SYS_CHROOT = 61 // { int chroot(char *path); } - SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ - SYS_VFORK = 66 // { int vfork(void); } - SYS_SBRK = 69 // { int sbrk(int incr); } - SYS_SSTK = 70 // { int sstk(int incr); } - SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ - SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ - SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ - SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ - SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ - SYS_GETPGRP = 81 // { int getpgrp(void); } - SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } - SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ - SYS_SWAPON = 85 // { int swapon(char *name); } - SYS_GETITIMER = 86 // { int getitimer(u_int which, \ - SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } - SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } - SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } - SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ - SYS_FSYNC = 95 // { int fsync(int fd); } - SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ - SYS_SOCKET = 97 // { int socket(int domain, int type, \ - SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ - SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } - SYS_BIND = 104 // { int bind(int s, caddr_t name, \ - SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int listen(int s, int backlog); } - SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ - SYS_GETRUSAGE = 117 // { int getrusage(int who, \ - SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ - SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ - SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ - SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } - SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } - SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } - SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } - SYS_RENAME = 128 // { int rename(char *from, char *to); } - SYS_FLOCK = 131 // { int flock(int fd, int how); } - SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } - SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ - SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } - SYS_RMDIR = 137 // { int rmdir(char *path); } - SYS_UTIMES = 138 // { int utimes(char *path, \ - SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ - SYS_SETSID = 147 // { int setsid(void); } - SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ - SYS_LGETFH = 160 // { int lgetfh(char *fname, \ - SYS_GETFH = 161 // { int getfh(char *fname, \ - SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } - SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ - SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ - SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ - SYS_SETFIB = 175 // { int setfib(int fibnum); } - SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int setgid(gid_t gid); } - SYS_SETEGID = 182 // { int setegid(gid_t egid); } - SYS_SETEUID = 183 // { int seteuid(uid_t euid); } - SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } - SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } - SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } - SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } - SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ - SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ - SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ - SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ - SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ - SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ - SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ - SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int undelete(char *path); } - SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } - SYS_GETPGID = 207 // { int getpgid(pid_t pid); } - SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ - SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ - SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ - SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ - SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } - SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ - SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ - SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } - SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ - SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } - SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ - SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ - SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ - SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } - SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ - SYS_RFORK = 251 // { int rfork(int flags); } - SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int issetugid(void); } - SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } - SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ - SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } - SYS_LUTIMES = 276 // { int lutimes(char *path, \ - SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } - SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } - SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } - SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ - SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ - SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ - SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ - SYS_MODNEXT = 300 // { int modnext(int modid); } - SYS_MODSTAT = 301 // { int modstat(int modid, \ - SYS_MODFNEXT = 302 // { int modfnext(int modid); } - SYS_MODFIND = 303 // { int modfind(const char *name); } - SYS_KLDLOAD = 304 // { int kldload(const char *file); } - SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } - SYS_KLDFIND = 306 // { int kldfind(const char *file); } - SYS_KLDNEXT = 307 // { int kldnext(int fileid); } - SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ - SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } - SYS_GETSID = 310 // { int getsid(pid_t pid); } - SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ - SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ - SYS_YIELD = 321 // { int yield(void); } - SYS_MLOCKALL = 324 // { int mlockall(int how); } - SYS_MUNLOCKALL = 325 // { int munlockall(void); } - SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } - SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ - SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ - SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ - SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } - SYS_SCHED_YIELD = 331 // { int sched_yield (void); } - SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } - SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } - SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ - SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } - SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ - SYS_JAIL = 338 // { int jail(struct jail *jail); } - SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ - SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } - SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } - SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ - SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ - SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ - SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ - SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ - SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ - SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ - SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ - SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ - SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ - SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ - SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ - SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ - SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ - SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ - SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ - SYS_KQUEUE = 362 // { int kqueue(void); } - SYS_KEVENT = 363 // { int kevent(int fd, \ - SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ - SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ - SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ - SYS___SETUGID = 374 // { int __setugid(int flag); } - SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } - SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ - SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } - SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } - SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ - SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ - SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ - SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ - SYS_KENV = 390 // { int kenv(int what, const char *name, \ - SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ - SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ - SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ - SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ - SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ - SYS_STATFS = 396 // { int statfs(char *path, \ - SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ - SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ - SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ - SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ - SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ - SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ - SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ - SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ - SYS_SIGACTION = 416 // { int sigaction(int sig, \ - SYS_SIGRETURN = 417 // { int sigreturn( \ - SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 422 // { int setcontext( \ - SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ - SYS_SWAPOFF = 424 // { int swapoff(const char *name); } - SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ - SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ - SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ - SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ - SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ - SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ - SYS_THR_EXIT = 431 // { void thr_exit(long *state); } - SYS_THR_SELF = 432 // { int thr_self(long *id); } - SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } - SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } - SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } - SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } - SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ - SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ - SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ - SYS_THR_SUSPEND = 442 // { int thr_suspend( \ - SYS_THR_WAKE = 443 // { int thr_wake(long id); } - SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } - SYS_AUDIT = 445 // { int audit(const void *record, \ - SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ - SYS_GETAUID = 447 // { int getauid(uid_t *auid); } - SYS_SETAUID = 448 // { int setauid(uid_t *auid); } - SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } - SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } - SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ - SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ - SYS_AUDITCTL = 453 // { int auditctl(char *path); } - SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ - SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ - SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } - SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } - SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } - SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ - SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ - SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ - SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ - SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ - SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } - SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } - SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } - SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ - SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } - SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } - SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ - SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ - SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ - SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ - SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ - SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ - SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ - SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ - SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ - SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ - SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ - SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } - SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } - SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ - SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ - SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ - SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ - SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ - SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } - SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } - SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ - SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ - SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } - SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } - SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } - SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ - SYS_CAP_ENTER = 516 // { int cap_enter(void); } - SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } - SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } - SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } - SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } - SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ - SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ - SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } - SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ - SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ - SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ - SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ - SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ - SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ - SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ - SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ - SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ - SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ - SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ - SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ - SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ - SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ - SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ - SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ - SYS_ACCEPT4 = 541 // { int accept4(int s, \ - SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } - SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ - SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ - SYS_FUTIMENS = 546 // { int futimens(int fd, \ - SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go deleted file mode 100644 index 81722ac..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +++ /dev/null @@ -1,353 +0,0 @@ -// mksysnum_freebsd.pl -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,freebsd - -package unix - -const ( - // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int - SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ - SYS_FORK = 2 // { int fork(void); } - SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ - SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } - SYS_CLOSE = 6 // { int close(int fd); } - SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ - SYS_LINK = 9 // { int link(char *path, char *link); } - SYS_UNLINK = 10 // { int unlink(char *path); } - SYS_CHDIR = 12 // { int chdir(char *path); } - SYS_FCHDIR = 13 // { int fchdir(int fd); } - SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } - SYS_CHMOD = 15 // { int chmod(char *path, int mode); } - SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } - SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ - SYS_GETPID = 20 // { pid_t getpid(void); } - SYS_MOUNT = 21 // { int mount(char *type, char *path, \ - SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } - SYS_SETUID = 23 // { int setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t getuid(void); } - SYS_GETEUID = 25 // { uid_t geteuid(void); } - SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ - SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ - SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ - SYS_ACCEPT = 30 // { int accept(int s, \ - SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ - SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ - SYS_ACCESS = 33 // { int access(char *path, int amode); } - SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { int sync(void); } - SYS_KILL = 37 // { int kill(int pid, int signum); } - SYS_GETPPID = 39 // { pid_t getppid(void); } - SYS_DUP = 41 // { int dup(u_int fd); } - SYS_PIPE = 42 // { int pipe(void); } - SYS_GETEGID = 43 // { gid_t getegid(void); } - SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ - SYS_GETGID = 47 // { gid_t getgid(void); } - SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ - SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } - SYS_ACCT = 51 // { int acct(char *path); } - SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ - SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ - SYS_REBOOT = 55 // { int reboot(int opt); } - SYS_REVOKE = 56 // { int revoke(char *path); } - SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } - SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ - SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ - SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ - SYS_CHROOT = 61 // { int chroot(char *path); } - SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ - SYS_VFORK = 66 // { int vfork(void); } - SYS_SBRK = 69 // { int sbrk(int incr); } - SYS_SSTK = 70 // { int sstk(int incr); } - SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ - SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ - SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ - SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ - SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ - SYS_GETPGRP = 81 // { int getpgrp(void); } - SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } - SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ - SYS_SWAPON = 85 // { int swapon(char *name); } - SYS_GETITIMER = 86 // { int getitimer(u_int which, \ - SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } - SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } - SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } - SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ - SYS_FSYNC = 95 // { int fsync(int fd); } - SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ - SYS_SOCKET = 97 // { int socket(int domain, int type, \ - SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ - SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } - SYS_BIND = 104 // { int bind(int s, caddr_t name, \ - SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int listen(int s, int backlog); } - SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ - SYS_GETRUSAGE = 117 // { int getrusage(int who, \ - SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ - SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ - SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ - SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } - SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } - SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } - SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } - SYS_RENAME = 128 // { int rename(char *from, char *to); } - SYS_FLOCK = 131 // { int flock(int fd, int how); } - SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } - SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ - SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } - SYS_RMDIR = 137 // { int rmdir(char *path); } - SYS_UTIMES = 138 // { int utimes(char *path, \ - SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ - SYS_SETSID = 147 // { int setsid(void); } - SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ - SYS_LGETFH = 160 // { int lgetfh(char *fname, \ - SYS_GETFH = 161 // { int getfh(char *fname, \ - SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } - SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ - SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ - SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ - SYS_SETFIB = 175 // { int setfib(int fibnum); } - SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int setgid(gid_t gid); } - SYS_SETEGID = 182 // { int setegid(gid_t egid); } - SYS_SETEUID = 183 // { int seteuid(uid_t euid); } - SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } - SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } - SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } - SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } - SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ - SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ - SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ - SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ - SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ - SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ - SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ - SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int undelete(char *path); } - SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } - SYS_GETPGID = 207 // { int getpgid(pid_t pid); } - SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ - SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ - SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ - SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ - SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } - SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ - SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ - SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } - SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ - SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } - SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ - SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ - SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ - SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } - SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ - SYS_RFORK = 251 // { int rfork(int flags); } - SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int issetugid(void); } - SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } - SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ - SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } - SYS_LUTIMES = 276 // { int lutimes(char *path, \ - SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } - SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } - SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } - SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ - SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ - SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ - SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ - SYS_MODNEXT = 300 // { int modnext(int modid); } - SYS_MODSTAT = 301 // { int modstat(int modid, \ - SYS_MODFNEXT = 302 // { int modfnext(int modid); } - SYS_MODFIND = 303 // { int modfind(const char *name); } - SYS_KLDLOAD = 304 // { int kldload(const char *file); } - SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } - SYS_KLDFIND = 306 // { int kldfind(const char *file); } - SYS_KLDNEXT = 307 // { int kldnext(int fileid); } - SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ - SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } - SYS_GETSID = 310 // { int getsid(pid_t pid); } - SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ - SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ - SYS_YIELD = 321 // { int yield(void); } - SYS_MLOCKALL = 324 // { int mlockall(int how); } - SYS_MUNLOCKALL = 325 // { int munlockall(void); } - SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } - SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ - SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ - SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ - SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } - SYS_SCHED_YIELD = 331 // { int sched_yield (void); } - SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } - SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } - SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ - SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } - SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ - SYS_JAIL = 338 // { int jail(struct jail *jail); } - SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ - SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } - SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } - SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ - SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ - SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ - SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ - SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ - SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ - SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ - SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ - SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ - SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ - SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ - SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ - SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ - SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ - SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ - SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ - SYS_KQUEUE = 362 // { int kqueue(void); } - SYS_KEVENT = 363 // { int kevent(int fd, \ - SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ - SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ - SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ - SYS___SETUGID = 374 // { int __setugid(int flag); } - SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } - SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ - SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } - SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } - SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ - SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ - SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ - SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ - SYS_KENV = 390 // { int kenv(int what, const char *name, \ - SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ - SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ - SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ - SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ - SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ - SYS_STATFS = 396 // { int statfs(char *path, \ - SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ - SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ - SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ - SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ - SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ - SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ - SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ - SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ - SYS_SIGACTION = 416 // { int sigaction(int sig, \ - SYS_SIGRETURN = 417 // { int sigreturn( \ - SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 422 // { int setcontext( \ - SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ - SYS_SWAPOFF = 424 // { int swapoff(const char *name); } - SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ - SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ - SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ - SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ - SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ - SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ - SYS_THR_EXIT = 431 // { void thr_exit(long *state); } - SYS_THR_SELF = 432 // { int thr_self(long *id); } - SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } - SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } - SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } - SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } - SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ - SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ - SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ - SYS_THR_SUSPEND = 442 // { int thr_suspend( \ - SYS_THR_WAKE = 443 // { int thr_wake(long id); } - SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } - SYS_AUDIT = 445 // { int audit(const void *record, \ - SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ - SYS_GETAUID = 447 // { int getauid(uid_t *auid); } - SYS_SETAUID = 448 // { int setauid(uid_t *auid); } - SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } - SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } - SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ - SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ - SYS_AUDITCTL = 453 // { int auditctl(char *path); } - SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ - SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ - SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } - SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } - SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } - SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ - SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ - SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ - SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ - SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ - SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } - SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } - SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } - SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ - SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } - SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } - SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ - SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ - SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ - SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ - SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ - SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ - SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ - SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ - SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ - SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ - SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ - SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } - SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } - SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ - SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ - SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ - SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ - SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ - SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } - SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } - SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ - SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ - SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } - SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } - SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } - SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ - SYS_CAP_ENTER = 516 // { int cap_enter(void); } - SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } - SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } - SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } - SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } - SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ - SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ - SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } - SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ - SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ - SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ - SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ - SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ - SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ - SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ - SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ - SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ - SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ - SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ - SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ - SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ - SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ - SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ - SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ - SYS_ACCEPT4 = 541 // { int accept4(int s, \ - SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } - SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ - SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ - SYS_FUTIMENS = 546 // { int futimens(int fd, \ - SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go deleted file mode 100644 index 4488314..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +++ /dev/null @@ -1,353 +0,0 @@ -// mksysnum_freebsd.pl -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,freebsd - -package unix - -const ( - // SYS_NOSYS = 0; // { int nosys(void); } syscall nosys_args int - SYS_EXIT = 1 // { void sys_exit(int rval); } exit \ - SYS_FORK = 2 // { int fork(void); } - SYS_READ = 3 // { ssize_t read(int fd, void *buf, \ - SYS_WRITE = 4 // { ssize_t write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int open(char *path, int flags, int mode); } - SYS_CLOSE = 6 // { int close(int fd); } - SYS_WAIT4 = 7 // { int wait4(int pid, int *status, \ - SYS_LINK = 9 // { int link(char *path, char *link); } - SYS_UNLINK = 10 // { int unlink(char *path); } - SYS_CHDIR = 12 // { int chdir(char *path); } - SYS_FCHDIR = 13 // { int fchdir(int fd); } - SYS_MKNOD = 14 // { int mknod(char *path, int mode, int dev); } - SYS_CHMOD = 15 // { int chmod(char *path, int mode); } - SYS_CHOWN = 16 // { int chown(char *path, int uid, int gid); } - SYS_OBREAK = 17 // { int obreak(char *nsize); } break \ - SYS_GETPID = 20 // { pid_t getpid(void); } - SYS_MOUNT = 21 // { int mount(char *type, char *path, \ - SYS_UNMOUNT = 22 // { int unmount(char *path, int flags); } - SYS_SETUID = 23 // { int setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t getuid(void); } - SYS_GETEUID = 25 // { uid_t geteuid(void); } - SYS_PTRACE = 26 // { int ptrace(int req, pid_t pid, \ - SYS_RECVMSG = 27 // { int recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { int sendmsg(int s, struct msghdr *msg, \ - SYS_RECVFROM = 29 // { int recvfrom(int s, caddr_t buf, \ - SYS_ACCEPT = 30 // { int accept(int s, \ - SYS_GETPEERNAME = 31 // { int getpeername(int fdes, \ - SYS_GETSOCKNAME = 32 // { int getsockname(int fdes, \ - SYS_ACCESS = 33 // { int access(char *path, int amode); } - SYS_CHFLAGS = 34 // { int chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { int sync(void); } - SYS_KILL = 37 // { int kill(int pid, int signum); } - SYS_GETPPID = 39 // { pid_t getppid(void); } - SYS_DUP = 41 // { int dup(u_int fd); } - SYS_PIPE = 42 // { int pipe(void); } - SYS_GETEGID = 43 // { gid_t getegid(void); } - SYS_PROFIL = 44 // { int profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int ktrace(const char *fname, int ops, \ - SYS_GETGID = 47 // { gid_t getgid(void); } - SYS_GETLOGIN = 49 // { int getlogin(char *namebuf, u_int \ - SYS_SETLOGIN = 50 // { int setlogin(char *namebuf); } - SYS_ACCT = 51 // { int acct(char *path); } - SYS_SIGALTSTACK = 53 // { int sigaltstack(stack_t *ss, \ - SYS_IOCTL = 54 // { int ioctl(int fd, u_long com, \ - SYS_REBOOT = 55 // { int reboot(int opt); } - SYS_REVOKE = 56 // { int revoke(char *path); } - SYS_SYMLINK = 57 // { int symlink(char *path, char *link); } - SYS_READLINK = 58 // { ssize_t readlink(char *path, char *buf, \ - SYS_EXECVE = 59 // { int execve(char *fname, char **argv, \ - SYS_UMASK = 60 // { int umask(int newmask); } umask umask_args \ - SYS_CHROOT = 61 // { int chroot(char *path); } - SYS_MSYNC = 65 // { int msync(void *addr, size_t len, \ - SYS_VFORK = 66 // { int vfork(void); } - SYS_SBRK = 69 // { int sbrk(int incr); } - SYS_SSTK = 70 // { int sstk(int incr); } - SYS_OVADVISE = 72 // { int ovadvise(int anom); } vadvise \ - SYS_MUNMAP = 73 // { int munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int mprotect(const void *addr, size_t len, \ - SYS_MADVISE = 75 // { int madvise(void *addr, size_t len, \ - SYS_MINCORE = 78 // { int mincore(const void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int getgroups(u_int gidsetsize, \ - SYS_SETGROUPS = 80 // { int setgroups(u_int gidsetsize, \ - SYS_GETPGRP = 81 // { int getpgrp(void); } - SYS_SETPGID = 82 // { int setpgid(int pid, int pgid); } - SYS_SETITIMER = 83 // { int setitimer(u_int which, struct \ - SYS_SWAPON = 85 // { int swapon(char *name); } - SYS_GETITIMER = 86 // { int getitimer(u_int which, \ - SYS_GETDTABLESIZE = 89 // { int getdtablesize(void); } - SYS_DUP2 = 90 // { int dup2(u_int from, u_int to); } - SYS_FCNTL = 92 // { int fcntl(int fd, int cmd, long arg); } - SYS_SELECT = 93 // { int select(int nd, fd_set *in, fd_set *ou, \ - SYS_FSYNC = 95 // { int fsync(int fd); } - SYS_SETPRIORITY = 96 // { int setpriority(int which, int who, \ - SYS_SOCKET = 97 // { int socket(int domain, int type, \ - SYS_CONNECT = 98 // { int connect(int s, caddr_t name, \ - SYS_GETPRIORITY = 100 // { int getpriority(int which, int who); } - SYS_BIND = 104 // { int bind(int s, caddr_t name, \ - SYS_SETSOCKOPT = 105 // { int setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int listen(int s, int backlog); } - SYS_GETTIMEOFDAY = 116 // { int gettimeofday(struct timeval *tp, \ - SYS_GETRUSAGE = 117 // { int getrusage(int who, \ - SYS_GETSOCKOPT = 118 // { int getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { int readv(int fd, struct iovec *iovp, \ - SYS_WRITEV = 121 // { int writev(int fd, struct iovec *iovp, \ - SYS_SETTIMEOFDAY = 122 // { int settimeofday(struct timeval *tv, \ - SYS_FCHOWN = 123 // { int fchown(int fd, int uid, int gid); } - SYS_FCHMOD = 124 // { int fchmod(int fd, int mode); } - SYS_SETREUID = 126 // { int setreuid(int ruid, int euid); } - SYS_SETREGID = 127 // { int setregid(int rgid, int egid); } - SYS_RENAME = 128 // { int rename(char *from, char *to); } - SYS_FLOCK = 131 // { int flock(int fd, int how); } - SYS_MKFIFO = 132 // { int mkfifo(char *path, int mode); } - SYS_SENDTO = 133 // { int sendto(int s, caddr_t buf, size_t len, \ - SYS_SHUTDOWN = 134 // { int shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int mkdir(char *path, int mode); } - SYS_RMDIR = 137 // { int rmdir(char *path); } - SYS_UTIMES = 138 // { int utimes(char *path, \ - SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \ - SYS_SETSID = 147 // { int setsid(void); } - SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \ - SYS_LGETFH = 160 // { int lgetfh(char *fname, \ - SYS_GETFH = 161 // { int getfh(char *fname, \ - SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); } - SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \ - SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \ - SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \ - SYS_SETFIB = 175 // { int setfib(int fibnum); } - SYS_NTP_ADJTIME = 176 // { int ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int setgid(gid_t gid); } - SYS_SETEGID = 182 // { int setegid(gid_t egid); } - SYS_SETEUID = 183 // { int seteuid(uid_t euid); } - SYS_STAT = 188 // { int stat(char *path, struct stat *ub); } - SYS_FSTAT = 189 // { int fstat(int fd, struct stat *sb); } - SYS_LSTAT = 190 // { int lstat(char *path, struct stat *ub); } - SYS_PATHCONF = 191 // { int pathconf(char *path, int name); } - SYS_FPATHCONF = 192 // { int fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int getrlimit(u_int which, \ - SYS_SETRLIMIT = 195 // { int setrlimit(u_int which, \ - SYS_GETDIRENTRIES = 196 // { int getdirentries(int fd, char *buf, \ - SYS_FREEBSD6_MMAP = 197 // { caddr_t freebsd6_mmap(caddr_t addr, \ - SYS_FREEBSD6_LSEEK = 199 // { off_t freebsd6_lseek(int fd, int pad, \ - SYS_FREEBSD6_TRUNCATE = 200 // { int freebsd6_truncate(char *path, int pad, \ - SYS_FREEBSD6_FTRUNCATE = 201 // { int freebsd6_ftruncate(int fd, int pad, \ - SYS___SYSCTL = 202 // { int __sysctl(int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int undelete(char *path); } - SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); } - SYS_GETPGID = 207 // { int getpgid(pid_t pid); } - SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \ - SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 233 // { int clock_settime( \ - SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \ - SYS_KTIMER_CREATE = 235 // { int ktimer_create(clockid_t clock_id, \ - SYS_KTIMER_DELETE = 236 // { int ktimer_delete(int timerid); } - SYS_KTIMER_SETTIME = 237 // { int ktimer_settime(int timerid, int flags, \ - SYS_KTIMER_GETTIME = 238 // { int ktimer_gettime(int timerid, struct \ - SYS_KTIMER_GETOVERRUN = 239 // { int ktimer_getoverrun(int timerid); } - SYS_NANOSLEEP = 240 // { int nanosleep(const struct timespec *rqtp, \ - SYS_FFCLOCK_GETCOUNTER = 241 // { int ffclock_getcounter(ffcounter *ffcount); } - SYS_FFCLOCK_SETESTIMATE = 242 // { int ffclock_setestimate( \ - SYS_FFCLOCK_GETESTIMATE = 243 // { int ffclock_getestimate( \ - SYS_CLOCK_GETCPUCLOCKID2 = 247 // { int clock_getcpuclockid2(id_t id,\ - SYS_NTP_GETTIME = 248 // { int ntp_gettime(struct ntptimeval *ntvp); } - SYS_MINHERIT = 250 // { int minherit(void *addr, size_t len, \ - SYS_RFORK = 251 // { int rfork(int flags); } - SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int issetugid(void); } - SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); } - SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \ - SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); } - SYS_LUTIMES = 276 // { int lutimes(char *path, \ - SYS_NSTAT = 278 // { int nstat(char *path, struct nstat *ub); } - SYS_NFSTAT = 279 // { int nfstat(int fd, struct nstat *sb); } - SYS_NLSTAT = 280 // { int nlstat(char *path, struct nstat *ub); } - SYS_PREADV = 289 // { ssize_t preadv(int fd, struct iovec *iovp, \ - SYS_PWRITEV = 290 // { ssize_t pwritev(int fd, struct iovec *iovp, \ - SYS_FHOPEN = 298 // { int fhopen(const struct fhandle *u_fhp, \ - SYS_FHSTAT = 299 // { int fhstat(const struct fhandle *u_fhp, \ - SYS_MODNEXT = 300 // { int modnext(int modid); } - SYS_MODSTAT = 301 // { int modstat(int modid, \ - SYS_MODFNEXT = 302 // { int modfnext(int modid); } - SYS_MODFIND = 303 // { int modfind(const char *name); } - SYS_KLDLOAD = 304 // { int kldload(const char *file); } - SYS_KLDUNLOAD = 305 // { int kldunload(int fileid); } - SYS_KLDFIND = 306 // { int kldfind(const char *file); } - SYS_KLDNEXT = 307 // { int kldnext(int fileid); } - SYS_KLDSTAT = 308 // { int kldstat(int fileid, struct \ - SYS_KLDFIRSTMOD = 309 // { int kldfirstmod(int fileid); } - SYS_GETSID = 310 // { int getsid(pid_t pid); } - SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \ - SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \ - SYS_YIELD = 321 // { int yield(void); } - SYS_MLOCKALL = 324 // { int mlockall(int how); } - SYS_MUNLOCKALL = 325 // { int munlockall(void); } - SYS___GETCWD = 326 // { int __getcwd(char *buf, u_int buflen); } - SYS_SCHED_SETPARAM = 327 // { int sched_setparam (pid_t pid, \ - SYS_SCHED_GETPARAM = 328 // { int sched_getparam (pid_t pid, struct \ - SYS_SCHED_SETSCHEDULER = 329 // { int sched_setscheduler (pid_t pid, int \ - SYS_SCHED_GETSCHEDULER = 330 // { int sched_getscheduler (pid_t pid); } - SYS_SCHED_YIELD = 331 // { int sched_yield (void); } - SYS_SCHED_GET_PRIORITY_MAX = 332 // { int sched_get_priority_max (int policy); } - SYS_SCHED_GET_PRIORITY_MIN = 333 // { int sched_get_priority_min (int policy); } - SYS_SCHED_RR_GET_INTERVAL = 334 // { int sched_rr_get_interval (pid_t pid, \ - SYS_UTRACE = 335 // { int utrace(const void *addr, size_t len); } - SYS_KLDSYM = 337 // { int kldsym(int fileid, int cmd, \ - SYS_JAIL = 338 // { int jail(struct jail *jail); } - SYS_SIGPROCMASK = 340 // { int sigprocmask(int how, \ - SYS_SIGSUSPEND = 341 // { int sigsuspend(const sigset_t *sigmask); } - SYS_SIGPENDING = 343 // { int sigpending(sigset_t *set); } - SYS_SIGTIMEDWAIT = 345 // { int sigtimedwait(const sigset_t *set, \ - SYS_SIGWAITINFO = 346 // { int sigwaitinfo(const sigset_t *set, \ - SYS___ACL_GET_FILE = 347 // { int __acl_get_file(const char *path, \ - SYS___ACL_SET_FILE = 348 // { int __acl_set_file(const char *path, \ - SYS___ACL_GET_FD = 349 // { int __acl_get_fd(int filedes, \ - SYS___ACL_SET_FD = 350 // { int __acl_set_fd(int filedes, \ - SYS___ACL_DELETE_FILE = 351 // { int __acl_delete_file(const char *path, \ - SYS___ACL_DELETE_FD = 352 // { int __acl_delete_fd(int filedes, \ - SYS___ACL_ACLCHECK_FILE = 353 // { int __acl_aclcheck_file(const char *path, \ - SYS___ACL_ACLCHECK_FD = 354 // { int __acl_aclcheck_fd(int filedes, \ - SYS_EXTATTRCTL = 355 // { int extattrctl(const char *path, int cmd, \ - SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \ - SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \ - SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \ - SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \ - SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \ - SYS_KQUEUE = 362 // { int kqueue(void); } - SYS_KEVENT = 363 // { int kevent(int fd, \ - SYS_EXTATTR_SET_FD = 371 // { ssize_t extattr_set_fd(int fd, \ - SYS_EXTATTR_GET_FD = 372 // { ssize_t extattr_get_fd(int fd, \ - SYS_EXTATTR_DELETE_FD = 373 // { int extattr_delete_fd(int fd, \ - SYS___SETUGID = 374 // { int __setugid(int flag); } - SYS_EACCESS = 376 // { int eaccess(char *path, int amode); } - SYS_NMOUNT = 378 // { int nmount(struct iovec *iovp, \ - SYS___MAC_GET_PROC = 384 // { int __mac_get_proc(struct mac *mac_p); } - SYS___MAC_SET_PROC = 385 // { int __mac_set_proc(struct mac *mac_p); } - SYS___MAC_GET_FD = 386 // { int __mac_get_fd(int fd, \ - SYS___MAC_GET_FILE = 387 // { int __mac_get_file(const char *path_p, \ - SYS___MAC_SET_FD = 388 // { int __mac_set_fd(int fd, \ - SYS___MAC_SET_FILE = 389 // { int __mac_set_file(const char *path_p, \ - SYS_KENV = 390 // { int kenv(int what, const char *name, \ - SYS_LCHFLAGS = 391 // { int lchflags(const char *path, \ - SYS_UUIDGEN = 392 // { int uuidgen(struct uuid *store, \ - SYS_SENDFILE = 393 // { int sendfile(int fd, int s, off_t offset, \ - SYS_MAC_SYSCALL = 394 // { int mac_syscall(const char *policy, \ - SYS_GETFSSTAT = 395 // { int getfsstat(struct statfs *buf, \ - SYS_STATFS = 396 // { int statfs(char *path, \ - SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \ - SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \ - SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \ - SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \ - SYS_EXTATTR_SET_LINK = 412 // { ssize_t extattr_set_link( \ - SYS_EXTATTR_GET_LINK = 413 // { ssize_t extattr_get_link( \ - SYS_EXTATTR_DELETE_LINK = 414 // { int extattr_delete_link( \ - SYS___MAC_EXECVE = 415 // { int __mac_execve(char *fname, char **argv, \ - SYS_SIGACTION = 416 // { int sigaction(int sig, \ - SYS_SIGRETURN = 417 // { int sigreturn( \ - SYS_GETCONTEXT = 421 // { int getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 422 // { int setcontext( \ - SYS_SWAPCONTEXT = 423 // { int swapcontext(struct __ucontext *oucp, \ - SYS_SWAPOFF = 424 // { int swapoff(const char *name); } - SYS___ACL_GET_LINK = 425 // { int __acl_get_link(const char *path, \ - SYS___ACL_SET_LINK = 426 // { int __acl_set_link(const char *path, \ - SYS___ACL_DELETE_LINK = 427 // { int __acl_delete_link(const char *path, \ - SYS___ACL_ACLCHECK_LINK = 428 // { int __acl_aclcheck_link(const char *path, \ - SYS_SIGWAIT = 429 // { int sigwait(const sigset_t *set, \ - SYS_THR_CREATE = 430 // { int thr_create(ucontext_t *ctx, long *id, \ - SYS_THR_EXIT = 431 // { void thr_exit(long *state); } - SYS_THR_SELF = 432 // { int thr_self(long *id); } - SYS_THR_KILL = 433 // { int thr_kill(long id, int sig); } - SYS__UMTX_LOCK = 434 // { int _umtx_lock(struct umtx *umtx); } - SYS__UMTX_UNLOCK = 435 // { int _umtx_unlock(struct umtx *umtx); } - SYS_JAIL_ATTACH = 436 // { int jail_attach(int jid); } - SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \ - SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \ - SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \ - SYS_THR_SUSPEND = 442 // { int thr_suspend( \ - SYS_THR_WAKE = 443 // { int thr_wake(long id); } - SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); } - SYS_AUDIT = 445 // { int audit(const void *record, \ - SYS_AUDITON = 446 // { int auditon(int cmd, void *data, \ - SYS_GETAUID = 447 // { int getauid(uid_t *auid); } - SYS_SETAUID = 448 // { int setauid(uid_t *auid); } - SYS_GETAUDIT = 449 // { int getaudit(struct auditinfo *auditinfo); } - SYS_SETAUDIT = 450 // { int setaudit(struct auditinfo *auditinfo); } - SYS_GETAUDIT_ADDR = 451 // { int getaudit_addr( \ - SYS_SETAUDIT_ADDR = 452 // { int setaudit_addr( \ - SYS_AUDITCTL = 453 // { int auditctl(char *path); } - SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \ - SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \ - SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); } - SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); } - SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); } - SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \ - SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \ - SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \ - SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \ - SYS_LSEEK = 478 // { off_t lseek(int fd, off_t offset, \ - SYS_TRUNCATE = 479 // { int truncate(char *path, off_t length); } - SYS_FTRUNCATE = 480 // { int ftruncate(int fd, off_t length); } - SYS_THR_KILL2 = 481 // { int thr_kill2(pid_t pid, long id, int sig); } - SYS_SHM_OPEN = 482 // { int shm_open(const char *path, int flags, \ - SYS_SHM_UNLINK = 483 // { int shm_unlink(const char *path); } - SYS_CPUSET = 484 // { int cpuset(cpusetid_t *setid); } - SYS_CPUSET_SETID = 485 // { int cpuset_setid(cpuwhich_t which, id_t id, \ - SYS_CPUSET_GETID = 486 // { int cpuset_getid(cpulevel_t level, \ - SYS_CPUSET_GETAFFINITY = 487 // { int cpuset_getaffinity(cpulevel_t level, \ - SYS_CPUSET_SETAFFINITY = 488 // { int cpuset_setaffinity(cpulevel_t level, \ - SYS_FACCESSAT = 489 // { int faccessat(int fd, char *path, int amode, \ - SYS_FCHMODAT = 490 // { int fchmodat(int fd, char *path, mode_t mode, \ - SYS_FCHOWNAT = 491 // { int fchownat(int fd, char *path, uid_t uid, \ - SYS_FEXECVE = 492 // { int fexecve(int fd, char **argv, \ - SYS_FSTATAT = 493 // { int fstatat(int fd, char *path, \ - SYS_FUTIMESAT = 494 // { int futimesat(int fd, char *path, \ - SYS_LINKAT = 495 // { int linkat(int fd1, char *path1, int fd2, \ - SYS_MKDIRAT = 496 // { int mkdirat(int fd, char *path, mode_t mode); } - SYS_MKFIFOAT = 497 // { int mkfifoat(int fd, char *path, mode_t mode); } - SYS_MKNODAT = 498 // { int mknodat(int fd, char *path, mode_t mode, \ - SYS_OPENAT = 499 // { int openat(int fd, char *path, int flag, \ - SYS_READLINKAT = 500 // { int readlinkat(int fd, char *path, char *buf, \ - SYS_RENAMEAT = 501 // { int renameat(int oldfd, char *old, int newfd, \ - SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \ - SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); } - SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); } - SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \ - SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \ - SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); } - SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); } - SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); } - SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \ - SYS_CAP_ENTER = 516 // { int cap_enter(void); } - SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); } - SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); } - SYS_PDKILL = 519 // { int pdkill(int fd, int signum); } - SYS_PDGETPID = 520 // { int pdgetpid(int fd, pid_t *pidp); } - SYS_PSELECT = 522 // { int pselect(int nd, fd_set *in, \ - SYS_GETLOGINCLASS = 523 // { int getloginclass(char *namebuf, \ - SYS_SETLOGINCLASS = 524 // { int setloginclass(const char *namebuf); } - SYS_RCTL_GET_RACCT = 525 // { int rctl_get_racct(const void *inbufp, \ - SYS_RCTL_GET_RULES = 526 // { int rctl_get_rules(const void *inbufp, \ - SYS_RCTL_GET_LIMITS = 527 // { int rctl_get_limits(const void *inbufp, \ - SYS_RCTL_ADD_RULE = 528 // { int rctl_add_rule(const void *inbufp, \ - SYS_RCTL_REMOVE_RULE = 529 // { int rctl_remove_rule(const void *inbufp, \ - SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \ - SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \ - SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \ - SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \ - SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \ - SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \ - SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \ - SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \ - SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \ - SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \ - SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \ - SYS_ACCEPT4 = 541 // { int accept4(int s, \ - SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); } - SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \ - SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \ - SYS_FUTIMENS = 546 // { int futimens(int fd, \ - SYS_UTIMENSAT = 547 // { int utimensat(int fd, \ -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go deleted file mode 100644 index 95ab129..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ /dev/null @@ -1,390 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -m32 /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,linux - -package unix - -const ( - SYS_RESTART_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAITPID = 7 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECVE = 11 - SYS_CHDIR = 12 - SYS_TIME = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LCHOWN = 16 - SYS_BREAK = 17 - SYS_OLDSTAT = 18 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_MOUNT = 21 - SYS_UMOUNT = 22 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_STIME = 25 - SYS_PTRACE = 26 - SYS_ALARM = 27 - SYS_OLDFSTAT = 28 - SYS_PAUSE = 29 - SYS_UTIME = 30 - SYS_STTY = 31 - SYS_GTTY = 32 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_FTIME = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_RENAME = 38 - SYS_MKDIR = 39 - SYS_RMDIR = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_PROF = 44 - SYS_BRK = 45 - SYS_SETGID = 46 - SYS_GETGID = 47 - SYS_SIGNAL = 48 - SYS_GETEUID = 49 - SYS_GETEGID = 50 - SYS_ACCT = 51 - SYS_UMOUNT2 = 52 - SYS_LOCK = 53 - SYS_IOCTL = 54 - SYS_FCNTL = 55 - SYS_MPX = 56 - SYS_SETPGID = 57 - SYS_ULIMIT = 58 - SYS_OLDOLDUNAME = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_USTAT = 62 - SYS_DUP2 = 63 - SYS_GETPPID = 64 - SYS_GETPGRP = 65 - SYS_SETSID = 66 - SYS_SIGACTION = 67 - SYS_SGETMASK = 68 - SYS_SSETMASK = 69 - SYS_SETREUID = 70 - SYS_SETREGID = 71 - SYS_SIGSUSPEND = 72 - SYS_SIGPENDING = 73 - SYS_SETHOSTNAME = 74 - SYS_SETRLIMIT = 75 - SYS_GETRLIMIT = 76 - SYS_GETRUSAGE = 77 - SYS_GETTIMEOFDAY = 78 - SYS_SETTIMEOFDAY = 79 - SYS_GETGROUPS = 80 - SYS_SETGROUPS = 81 - SYS_SELECT = 82 - SYS_SYMLINK = 83 - SYS_OLDLSTAT = 84 - SYS_READLINK = 85 - SYS_USELIB = 86 - SYS_SWAPON = 87 - SYS_REBOOT = 88 - SYS_READDIR = 89 - SYS_MMAP = 90 - SYS_MUNMAP = 91 - SYS_TRUNCATE = 92 - SYS_FTRUNCATE = 93 - SYS_FCHMOD = 94 - SYS_FCHOWN = 95 - SYS_GETPRIORITY = 96 - SYS_SETPRIORITY = 97 - SYS_PROFIL = 98 - SYS_STATFS = 99 - SYS_FSTATFS = 100 - SYS_IOPERM = 101 - SYS_SOCKETCALL = 102 - SYS_SYSLOG = 103 - SYS_SETITIMER = 104 - SYS_GETITIMER = 105 - SYS_STAT = 106 - SYS_LSTAT = 107 - SYS_FSTAT = 108 - SYS_OLDUNAME = 109 - SYS_IOPL = 110 - SYS_VHANGUP = 111 - SYS_IDLE = 112 - SYS_VM86OLD = 113 - SYS_WAIT4 = 114 - SYS_SWAPOFF = 115 - SYS_SYSINFO = 116 - SYS_IPC = 117 - SYS_FSYNC = 118 - SYS_SIGRETURN = 119 - SYS_CLONE = 120 - SYS_SETDOMAINNAME = 121 - SYS_UNAME = 122 - SYS_MODIFY_LDT = 123 - SYS_ADJTIMEX = 124 - SYS_MPROTECT = 125 - SYS_SIGPROCMASK = 126 - SYS_CREATE_MODULE = 127 - SYS_INIT_MODULE = 128 - SYS_DELETE_MODULE = 129 - SYS_GET_KERNEL_SYMS = 130 - SYS_QUOTACTL = 131 - SYS_GETPGID = 132 - SYS_FCHDIR = 133 - SYS_BDFLUSH = 134 - SYS_SYSFS = 135 - SYS_PERSONALITY = 136 - SYS_AFS_SYSCALL = 137 - SYS_SETFSUID = 138 - SYS_SETFSGID = 139 - SYS__LLSEEK = 140 - SYS_GETDENTS = 141 - SYS__NEWSELECT = 142 - SYS_FLOCK = 143 - SYS_MSYNC = 144 - SYS_READV = 145 - SYS_WRITEV = 146 - SYS_GETSID = 147 - SYS_FDATASYNC = 148 - SYS__SYSCTL = 149 - SYS_MLOCK = 150 - SYS_MUNLOCK = 151 - SYS_MLOCKALL = 152 - SYS_MUNLOCKALL = 153 - SYS_SCHED_SETPARAM = 154 - SYS_SCHED_GETPARAM = 155 - SYS_SCHED_SETSCHEDULER = 156 - SYS_SCHED_GETSCHEDULER = 157 - SYS_SCHED_YIELD = 158 - SYS_SCHED_GET_PRIORITY_MAX = 159 - SYS_SCHED_GET_PRIORITY_MIN = 160 - SYS_SCHED_RR_GET_INTERVAL = 161 - SYS_NANOSLEEP = 162 - SYS_MREMAP = 163 - SYS_SETRESUID = 164 - SYS_GETRESUID = 165 - SYS_VM86 = 166 - SYS_QUERY_MODULE = 167 - SYS_POLL = 168 - SYS_NFSSERVCTL = 169 - SYS_SETRESGID = 170 - SYS_GETRESGID = 171 - SYS_PRCTL = 172 - SYS_RT_SIGRETURN = 173 - SYS_RT_SIGACTION = 174 - SYS_RT_SIGPROCMASK = 175 - SYS_RT_SIGPENDING = 176 - SYS_RT_SIGTIMEDWAIT = 177 - SYS_RT_SIGQUEUEINFO = 178 - SYS_RT_SIGSUSPEND = 179 - SYS_PREAD64 = 180 - SYS_PWRITE64 = 181 - SYS_CHOWN = 182 - SYS_GETCWD = 183 - SYS_CAPGET = 184 - SYS_CAPSET = 185 - SYS_SIGALTSTACK = 186 - SYS_SENDFILE = 187 - SYS_GETPMSG = 188 - SYS_PUTPMSG = 189 - SYS_VFORK = 190 - SYS_UGETRLIMIT = 191 - SYS_MMAP2 = 192 - SYS_TRUNCATE64 = 193 - SYS_FTRUNCATE64 = 194 - SYS_STAT64 = 195 - SYS_LSTAT64 = 196 - SYS_FSTAT64 = 197 - SYS_LCHOWN32 = 198 - SYS_GETUID32 = 199 - SYS_GETGID32 = 200 - SYS_GETEUID32 = 201 - SYS_GETEGID32 = 202 - SYS_SETREUID32 = 203 - SYS_SETREGID32 = 204 - SYS_GETGROUPS32 = 205 - SYS_SETGROUPS32 = 206 - SYS_FCHOWN32 = 207 - SYS_SETRESUID32 = 208 - SYS_GETRESUID32 = 209 - SYS_SETRESGID32 = 210 - SYS_GETRESGID32 = 211 - SYS_CHOWN32 = 212 - SYS_SETUID32 = 213 - SYS_SETGID32 = 214 - SYS_SETFSUID32 = 215 - SYS_SETFSGID32 = 216 - SYS_PIVOT_ROOT = 217 - SYS_MINCORE = 218 - SYS_MADVISE = 219 - SYS_GETDENTS64 = 220 - SYS_FCNTL64 = 221 - SYS_GETTID = 224 - SYS_READAHEAD = 225 - SYS_SETXATTR = 226 - SYS_LSETXATTR = 227 - SYS_FSETXATTR = 228 - SYS_GETXATTR = 229 - SYS_LGETXATTR = 230 - SYS_FGETXATTR = 231 - SYS_LISTXATTR = 232 - SYS_LLISTXATTR = 233 - SYS_FLISTXATTR = 234 - SYS_REMOVEXATTR = 235 - SYS_LREMOVEXATTR = 236 - SYS_FREMOVEXATTR = 237 - SYS_TKILL = 238 - SYS_SENDFILE64 = 239 - SYS_FUTEX = 240 - SYS_SCHED_SETAFFINITY = 241 - SYS_SCHED_GETAFFINITY = 242 - SYS_SET_THREAD_AREA = 243 - SYS_GET_THREAD_AREA = 244 - SYS_IO_SETUP = 245 - SYS_IO_DESTROY = 246 - SYS_IO_GETEVENTS = 247 - SYS_IO_SUBMIT = 248 - SYS_IO_CANCEL = 249 - SYS_FADVISE64 = 250 - SYS_EXIT_GROUP = 252 - SYS_LOOKUP_DCOOKIE = 253 - SYS_EPOLL_CREATE = 254 - SYS_EPOLL_CTL = 255 - SYS_EPOLL_WAIT = 256 - SYS_REMAP_FILE_PAGES = 257 - SYS_SET_TID_ADDRESS = 258 - SYS_TIMER_CREATE = 259 - SYS_TIMER_SETTIME = 260 - SYS_TIMER_GETTIME = 261 - SYS_TIMER_GETOVERRUN = 262 - SYS_TIMER_DELETE = 263 - SYS_CLOCK_SETTIME = 264 - SYS_CLOCK_GETTIME = 265 - SYS_CLOCK_GETRES = 266 - SYS_CLOCK_NANOSLEEP = 267 - SYS_STATFS64 = 268 - SYS_FSTATFS64 = 269 - SYS_TGKILL = 270 - SYS_UTIMES = 271 - SYS_FADVISE64_64 = 272 - SYS_VSERVER = 273 - SYS_MBIND = 274 - SYS_GET_MEMPOLICY = 275 - SYS_SET_MEMPOLICY = 276 - SYS_MQ_OPEN = 277 - SYS_MQ_UNLINK = 278 - SYS_MQ_TIMEDSEND = 279 - SYS_MQ_TIMEDRECEIVE = 280 - SYS_MQ_NOTIFY = 281 - SYS_MQ_GETSETATTR = 282 - SYS_KEXEC_LOAD = 283 - SYS_WAITID = 284 - SYS_ADD_KEY = 286 - SYS_REQUEST_KEY = 287 - SYS_KEYCTL = 288 - SYS_IOPRIO_SET = 289 - SYS_IOPRIO_GET = 290 - SYS_INOTIFY_INIT = 291 - SYS_INOTIFY_ADD_WATCH = 292 - SYS_INOTIFY_RM_WATCH = 293 - SYS_MIGRATE_PAGES = 294 - SYS_OPENAT = 295 - SYS_MKDIRAT = 296 - SYS_MKNODAT = 297 - SYS_FCHOWNAT = 298 - SYS_FUTIMESAT = 299 - SYS_FSTATAT64 = 300 - SYS_UNLINKAT = 301 - SYS_RENAMEAT = 302 - SYS_LINKAT = 303 - SYS_SYMLINKAT = 304 - SYS_READLINKAT = 305 - SYS_FCHMODAT = 306 - SYS_FACCESSAT = 307 - SYS_PSELECT6 = 308 - SYS_PPOLL = 309 - SYS_UNSHARE = 310 - SYS_SET_ROBUST_LIST = 311 - SYS_GET_ROBUST_LIST = 312 - SYS_SPLICE = 313 - SYS_SYNC_FILE_RANGE = 314 - SYS_TEE = 315 - SYS_VMSPLICE = 316 - SYS_MOVE_PAGES = 317 - SYS_GETCPU = 318 - SYS_EPOLL_PWAIT = 319 - SYS_UTIMENSAT = 320 - SYS_SIGNALFD = 321 - SYS_TIMERFD_CREATE = 322 - SYS_EVENTFD = 323 - SYS_FALLOCATE = 324 - SYS_TIMERFD_SETTIME = 325 - SYS_TIMERFD_GETTIME = 326 - SYS_SIGNALFD4 = 327 - SYS_EVENTFD2 = 328 - SYS_EPOLL_CREATE1 = 329 - SYS_DUP3 = 330 - SYS_PIPE2 = 331 - SYS_INOTIFY_INIT1 = 332 - SYS_PREADV = 333 - SYS_PWRITEV = 334 - SYS_RT_TGSIGQUEUEINFO = 335 - SYS_PERF_EVENT_OPEN = 336 - SYS_RECVMMSG = 337 - SYS_FANOTIFY_INIT = 338 - SYS_FANOTIFY_MARK = 339 - SYS_PRLIMIT64 = 340 - SYS_NAME_TO_HANDLE_AT = 341 - SYS_OPEN_BY_HANDLE_AT = 342 - SYS_CLOCK_ADJTIME = 343 - SYS_SYNCFS = 344 - SYS_SENDMMSG = 345 - SYS_SETNS = 346 - SYS_PROCESS_VM_READV = 347 - SYS_PROCESS_VM_WRITEV = 348 - SYS_KCMP = 349 - SYS_FINIT_MODULE = 350 - SYS_SCHED_SETATTR = 351 - SYS_SCHED_GETATTR = 352 - SYS_RENAMEAT2 = 353 - SYS_SECCOMP = 354 - SYS_GETRANDOM = 355 - SYS_MEMFD_CREATE = 356 - SYS_BPF = 357 - SYS_EXECVEAT = 358 - SYS_SOCKET = 359 - SYS_SOCKETPAIR = 360 - SYS_BIND = 361 - SYS_CONNECT = 362 - SYS_LISTEN = 363 - SYS_ACCEPT4 = 364 - SYS_GETSOCKOPT = 365 - SYS_SETSOCKOPT = 366 - SYS_GETSOCKNAME = 367 - SYS_GETPEERNAME = 368 - SYS_SENDTO = 369 - SYS_SENDMSG = 370 - SYS_RECVFROM = 371 - SYS_RECVMSG = 372 - SYS_SHUTDOWN = 373 - SYS_USERFAULTFD = 374 - SYS_MEMBARRIER = 375 - SYS_MLOCK2 = 376 - SYS_COPY_FILE_RANGE = 377 - SYS_PREADV2 = 378 - SYS_PWRITEV2 = 379 - SYS_PKEY_MPROTECT = 380 - SYS_PKEY_ALLOC = 381 - SYS_PKEY_FREE = 382 - SYS_STATX = 383 - SYS_ARCH_PRCTL = 384 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go deleted file mode 100644 index c5dabf2..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ /dev/null @@ -1,342 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -m64 /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,linux - -package unix - -const ( - SYS_READ = 0 - SYS_WRITE = 1 - SYS_OPEN = 2 - SYS_CLOSE = 3 - SYS_STAT = 4 - SYS_FSTAT = 5 - SYS_LSTAT = 6 - SYS_POLL = 7 - SYS_LSEEK = 8 - SYS_MMAP = 9 - SYS_MPROTECT = 10 - SYS_MUNMAP = 11 - SYS_BRK = 12 - SYS_RT_SIGACTION = 13 - SYS_RT_SIGPROCMASK = 14 - SYS_RT_SIGRETURN = 15 - SYS_IOCTL = 16 - SYS_PREAD64 = 17 - SYS_PWRITE64 = 18 - SYS_READV = 19 - SYS_WRITEV = 20 - SYS_ACCESS = 21 - SYS_PIPE = 22 - SYS_SELECT = 23 - SYS_SCHED_YIELD = 24 - SYS_MREMAP = 25 - SYS_MSYNC = 26 - SYS_MINCORE = 27 - SYS_MADVISE = 28 - SYS_SHMGET = 29 - SYS_SHMAT = 30 - SYS_SHMCTL = 31 - SYS_DUP = 32 - SYS_DUP2 = 33 - SYS_PAUSE = 34 - SYS_NANOSLEEP = 35 - SYS_GETITIMER = 36 - SYS_ALARM = 37 - SYS_SETITIMER = 38 - SYS_GETPID = 39 - SYS_SENDFILE = 40 - SYS_SOCKET = 41 - SYS_CONNECT = 42 - SYS_ACCEPT = 43 - SYS_SENDTO = 44 - SYS_RECVFROM = 45 - SYS_SENDMSG = 46 - SYS_RECVMSG = 47 - SYS_SHUTDOWN = 48 - SYS_BIND = 49 - SYS_LISTEN = 50 - SYS_GETSOCKNAME = 51 - SYS_GETPEERNAME = 52 - SYS_SOCKETPAIR = 53 - SYS_SETSOCKOPT = 54 - SYS_GETSOCKOPT = 55 - SYS_CLONE = 56 - SYS_FORK = 57 - SYS_VFORK = 58 - SYS_EXECVE = 59 - SYS_EXIT = 60 - SYS_WAIT4 = 61 - SYS_KILL = 62 - SYS_UNAME = 63 - SYS_SEMGET = 64 - SYS_SEMOP = 65 - SYS_SEMCTL = 66 - SYS_SHMDT = 67 - SYS_MSGGET = 68 - SYS_MSGSND = 69 - SYS_MSGRCV = 70 - SYS_MSGCTL = 71 - SYS_FCNTL = 72 - SYS_FLOCK = 73 - SYS_FSYNC = 74 - SYS_FDATASYNC = 75 - SYS_TRUNCATE = 76 - SYS_FTRUNCATE = 77 - SYS_GETDENTS = 78 - SYS_GETCWD = 79 - SYS_CHDIR = 80 - SYS_FCHDIR = 81 - SYS_RENAME = 82 - SYS_MKDIR = 83 - SYS_RMDIR = 84 - SYS_CREAT = 85 - SYS_LINK = 86 - SYS_UNLINK = 87 - SYS_SYMLINK = 88 - SYS_READLINK = 89 - SYS_CHMOD = 90 - SYS_FCHMOD = 91 - SYS_CHOWN = 92 - SYS_FCHOWN = 93 - SYS_LCHOWN = 94 - SYS_UMASK = 95 - SYS_GETTIMEOFDAY = 96 - SYS_GETRLIMIT = 97 - SYS_GETRUSAGE = 98 - SYS_SYSINFO = 99 - SYS_TIMES = 100 - SYS_PTRACE = 101 - SYS_GETUID = 102 - SYS_SYSLOG = 103 - SYS_GETGID = 104 - SYS_SETUID = 105 - SYS_SETGID = 106 - SYS_GETEUID = 107 - SYS_GETEGID = 108 - SYS_SETPGID = 109 - SYS_GETPPID = 110 - SYS_GETPGRP = 111 - SYS_SETSID = 112 - SYS_SETREUID = 113 - SYS_SETREGID = 114 - SYS_GETGROUPS = 115 - SYS_SETGROUPS = 116 - SYS_SETRESUID = 117 - SYS_GETRESUID = 118 - SYS_SETRESGID = 119 - SYS_GETRESGID = 120 - SYS_GETPGID = 121 - SYS_SETFSUID = 122 - SYS_SETFSGID = 123 - SYS_GETSID = 124 - SYS_CAPGET = 125 - SYS_CAPSET = 126 - SYS_RT_SIGPENDING = 127 - SYS_RT_SIGTIMEDWAIT = 128 - SYS_RT_SIGQUEUEINFO = 129 - SYS_RT_SIGSUSPEND = 130 - SYS_SIGALTSTACK = 131 - SYS_UTIME = 132 - SYS_MKNOD = 133 - SYS_USELIB = 134 - SYS_PERSONALITY = 135 - SYS_USTAT = 136 - SYS_STATFS = 137 - SYS_FSTATFS = 138 - SYS_SYSFS = 139 - SYS_GETPRIORITY = 140 - SYS_SETPRIORITY = 141 - SYS_SCHED_SETPARAM = 142 - SYS_SCHED_GETPARAM = 143 - SYS_SCHED_SETSCHEDULER = 144 - SYS_SCHED_GETSCHEDULER = 145 - SYS_SCHED_GET_PRIORITY_MAX = 146 - SYS_SCHED_GET_PRIORITY_MIN = 147 - SYS_SCHED_RR_GET_INTERVAL = 148 - SYS_MLOCK = 149 - SYS_MUNLOCK = 150 - SYS_MLOCKALL = 151 - SYS_MUNLOCKALL = 152 - SYS_VHANGUP = 153 - SYS_MODIFY_LDT = 154 - SYS_PIVOT_ROOT = 155 - SYS__SYSCTL = 156 - SYS_PRCTL = 157 - SYS_ARCH_PRCTL = 158 - SYS_ADJTIMEX = 159 - SYS_SETRLIMIT = 160 - SYS_CHROOT = 161 - SYS_SYNC = 162 - SYS_ACCT = 163 - SYS_SETTIMEOFDAY = 164 - SYS_MOUNT = 165 - SYS_UMOUNT2 = 166 - SYS_SWAPON = 167 - SYS_SWAPOFF = 168 - SYS_REBOOT = 169 - SYS_SETHOSTNAME = 170 - SYS_SETDOMAINNAME = 171 - SYS_IOPL = 172 - SYS_IOPERM = 173 - SYS_CREATE_MODULE = 174 - SYS_INIT_MODULE = 175 - SYS_DELETE_MODULE = 176 - SYS_GET_KERNEL_SYMS = 177 - SYS_QUERY_MODULE = 178 - SYS_QUOTACTL = 179 - SYS_NFSSERVCTL = 180 - SYS_GETPMSG = 181 - SYS_PUTPMSG = 182 - SYS_AFS_SYSCALL = 183 - SYS_TUXCALL = 184 - SYS_SECURITY = 185 - SYS_GETTID = 186 - SYS_READAHEAD = 187 - SYS_SETXATTR = 188 - SYS_LSETXATTR = 189 - SYS_FSETXATTR = 190 - SYS_GETXATTR = 191 - SYS_LGETXATTR = 192 - SYS_FGETXATTR = 193 - SYS_LISTXATTR = 194 - SYS_LLISTXATTR = 195 - SYS_FLISTXATTR = 196 - SYS_REMOVEXATTR = 197 - SYS_LREMOVEXATTR = 198 - SYS_FREMOVEXATTR = 199 - SYS_TKILL = 200 - SYS_TIME = 201 - SYS_FUTEX = 202 - SYS_SCHED_SETAFFINITY = 203 - SYS_SCHED_GETAFFINITY = 204 - SYS_SET_THREAD_AREA = 205 - SYS_IO_SETUP = 206 - SYS_IO_DESTROY = 207 - SYS_IO_GETEVENTS = 208 - SYS_IO_SUBMIT = 209 - SYS_IO_CANCEL = 210 - SYS_GET_THREAD_AREA = 211 - SYS_LOOKUP_DCOOKIE = 212 - SYS_EPOLL_CREATE = 213 - SYS_EPOLL_CTL_OLD = 214 - SYS_EPOLL_WAIT_OLD = 215 - SYS_REMAP_FILE_PAGES = 216 - SYS_GETDENTS64 = 217 - SYS_SET_TID_ADDRESS = 218 - SYS_RESTART_SYSCALL = 219 - SYS_SEMTIMEDOP = 220 - SYS_FADVISE64 = 221 - SYS_TIMER_CREATE = 222 - SYS_TIMER_SETTIME = 223 - SYS_TIMER_GETTIME = 224 - SYS_TIMER_GETOVERRUN = 225 - SYS_TIMER_DELETE = 226 - SYS_CLOCK_SETTIME = 227 - SYS_CLOCK_GETTIME = 228 - SYS_CLOCK_GETRES = 229 - SYS_CLOCK_NANOSLEEP = 230 - SYS_EXIT_GROUP = 231 - SYS_EPOLL_WAIT = 232 - SYS_EPOLL_CTL = 233 - SYS_TGKILL = 234 - SYS_UTIMES = 235 - SYS_VSERVER = 236 - SYS_MBIND = 237 - SYS_SET_MEMPOLICY = 238 - SYS_GET_MEMPOLICY = 239 - SYS_MQ_OPEN = 240 - SYS_MQ_UNLINK = 241 - SYS_MQ_TIMEDSEND = 242 - SYS_MQ_TIMEDRECEIVE = 243 - SYS_MQ_NOTIFY = 244 - SYS_MQ_GETSETATTR = 245 - SYS_KEXEC_LOAD = 246 - SYS_WAITID = 247 - SYS_ADD_KEY = 248 - SYS_REQUEST_KEY = 249 - SYS_KEYCTL = 250 - SYS_IOPRIO_SET = 251 - SYS_IOPRIO_GET = 252 - SYS_INOTIFY_INIT = 253 - SYS_INOTIFY_ADD_WATCH = 254 - SYS_INOTIFY_RM_WATCH = 255 - SYS_MIGRATE_PAGES = 256 - SYS_OPENAT = 257 - SYS_MKDIRAT = 258 - SYS_MKNODAT = 259 - SYS_FCHOWNAT = 260 - SYS_FUTIMESAT = 261 - SYS_NEWFSTATAT = 262 - SYS_UNLINKAT = 263 - SYS_RENAMEAT = 264 - SYS_LINKAT = 265 - SYS_SYMLINKAT = 266 - SYS_READLINKAT = 267 - SYS_FCHMODAT = 268 - SYS_FACCESSAT = 269 - SYS_PSELECT6 = 270 - SYS_PPOLL = 271 - SYS_UNSHARE = 272 - SYS_SET_ROBUST_LIST = 273 - SYS_GET_ROBUST_LIST = 274 - SYS_SPLICE = 275 - SYS_TEE = 276 - SYS_SYNC_FILE_RANGE = 277 - SYS_VMSPLICE = 278 - SYS_MOVE_PAGES = 279 - SYS_UTIMENSAT = 280 - SYS_EPOLL_PWAIT = 281 - SYS_SIGNALFD = 282 - SYS_TIMERFD_CREATE = 283 - SYS_EVENTFD = 284 - SYS_FALLOCATE = 285 - SYS_TIMERFD_SETTIME = 286 - SYS_TIMERFD_GETTIME = 287 - SYS_ACCEPT4 = 288 - SYS_SIGNALFD4 = 289 - SYS_EVENTFD2 = 290 - SYS_EPOLL_CREATE1 = 291 - SYS_DUP3 = 292 - SYS_PIPE2 = 293 - SYS_INOTIFY_INIT1 = 294 - SYS_PREADV = 295 - SYS_PWRITEV = 296 - SYS_RT_TGSIGQUEUEINFO = 297 - SYS_PERF_EVENT_OPEN = 298 - SYS_RECVMMSG = 299 - SYS_FANOTIFY_INIT = 300 - SYS_FANOTIFY_MARK = 301 - SYS_PRLIMIT64 = 302 - SYS_NAME_TO_HANDLE_AT = 303 - SYS_OPEN_BY_HANDLE_AT = 304 - SYS_CLOCK_ADJTIME = 305 - SYS_SYNCFS = 306 - SYS_SENDMMSG = 307 - SYS_SETNS = 308 - SYS_GETCPU = 309 - SYS_PROCESS_VM_READV = 310 - SYS_PROCESS_VM_WRITEV = 311 - SYS_KCMP = 312 - SYS_FINIT_MODULE = 313 - SYS_SCHED_SETATTR = 314 - SYS_SCHED_GETATTR = 315 - SYS_RENAMEAT2 = 316 - SYS_SECCOMP = 317 - SYS_GETRANDOM = 318 - SYS_MEMFD_CREATE = 319 - SYS_KEXEC_FILE_LOAD = 320 - SYS_BPF = 321 - SYS_EXECVEAT = 322 - SYS_USERFAULTFD = 323 - SYS_MEMBARRIER = 324 - SYS_MLOCK2 = 325 - SYS_COPY_FILE_RANGE = 326 - SYS_PREADV2 = 327 - SYS_PWRITEV2 = 328 - SYS_PKEY_MPROTECT = 329 - SYS_PKEY_ALLOC = 330 - SYS_PKEY_FREE = 331 - SYS_STATX = 332 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go deleted file mode 100644 index ab7fa5f..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ /dev/null @@ -1,362 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,linux - -package unix - -const ( - SYS_RESTART_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECVE = 11 - SYS_CHDIR = 12 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LCHOWN = 16 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_MOUNT = 21 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_PTRACE = 26 - SYS_PAUSE = 29 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_RENAME = 38 - SYS_MKDIR = 39 - SYS_RMDIR = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_BRK = 45 - SYS_SETGID = 46 - SYS_GETGID = 47 - SYS_GETEUID = 49 - SYS_GETEGID = 50 - SYS_ACCT = 51 - SYS_UMOUNT2 = 52 - SYS_IOCTL = 54 - SYS_FCNTL = 55 - SYS_SETPGID = 57 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_USTAT = 62 - SYS_DUP2 = 63 - SYS_GETPPID = 64 - SYS_GETPGRP = 65 - SYS_SETSID = 66 - SYS_SIGACTION = 67 - SYS_SETREUID = 70 - SYS_SETREGID = 71 - SYS_SIGSUSPEND = 72 - SYS_SIGPENDING = 73 - SYS_SETHOSTNAME = 74 - SYS_SETRLIMIT = 75 - SYS_GETRUSAGE = 77 - SYS_GETTIMEOFDAY = 78 - SYS_SETTIMEOFDAY = 79 - SYS_GETGROUPS = 80 - SYS_SETGROUPS = 81 - SYS_SYMLINK = 83 - SYS_READLINK = 85 - SYS_USELIB = 86 - SYS_SWAPON = 87 - SYS_REBOOT = 88 - SYS_MUNMAP = 91 - SYS_TRUNCATE = 92 - SYS_FTRUNCATE = 93 - SYS_FCHMOD = 94 - SYS_FCHOWN = 95 - SYS_GETPRIORITY = 96 - SYS_SETPRIORITY = 97 - SYS_STATFS = 99 - SYS_FSTATFS = 100 - SYS_SYSLOG = 103 - SYS_SETITIMER = 104 - SYS_GETITIMER = 105 - SYS_STAT = 106 - SYS_LSTAT = 107 - SYS_FSTAT = 108 - SYS_VHANGUP = 111 - SYS_WAIT4 = 114 - SYS_SWAPOFF = 115 - SYS_SYSINFO = 116 - SYS_FSYNC = 118 - SYS_SIGRETURN = 119 - SYS_CLONE = 120 - SYS_SETDOMAINNAME = 121 - SYS_UNAME = 122 - SYS_ADJTIMEX = 124 - SYS_MPROTECT = 125 - SYS_SIGPROCMASK = 126 - SYS_INIT_MODULE = 128 - SYS_DELETE_MODULE = 129 - SYS_QUOTACTL = 131 - SYS_GETPGID = 132 - SYS_FCHDIR = 133 - SYS_BDFLUSH = 134 - SYS_SYSFS = 135 - SYS_PERSONALITY = 136 - SYS_SETFSUID = 138 - SYS_SETFSGID = 139 - SYS__LLSEEK = 140 - SYS_GETDENTS = 141 - SYS__NEWSELECT = 142 - SYS_FLOCK = 143 - SYS_MSYNC = 144 - SYS_READV = 145 - SYS_WRITEV = 146 - SYS_GETSID = 147 - SYS_FDATASYNC = 148 - SYS__SYSCTL = 149 - SYS_MLOCK = 150 - SYS_MUNLOCK = 151 - SYS_MLOCKALL = 152 - SYS_MUNLOCKALL = 153 - SYS_SCHED_SETPARAM = 154 - SYS_SCHED_GETPARAM = 155 - SYS_SCHED_SETSCHEDULER = 156 - SYS_SCHED_GETSCHEDULER = 157 - SYS_SCHED_YIELD = 158 - SYS_SCHED_GET_PRIORITY_MAX = 159 - SYS_SCHED_GET_PRIORITY_MIN = 160 - SYS_SCHED_RR_GET_INTERVAL = 161 - SYS_NANOSLEEP = 162 - SYS_MREMAP = 163 - SYS_SETRESUID = 164 - SYS_GETRESUID = 165 - SYS_POLL = 168 - SYS_NFSSERVCTL = 169 - SYS_SETRESGID = 170 - SYS_GETRESGID = 171 - SYS_PRCTL = 172 - SYS_RT_SIGRETURN = 173 - SYS_RT_SIGACTION = 174 - SYS_RT_SIGPROCMASK = 175 - SYS_RT_SIGPENDING = 176 - SYS_RT_SIGTIMEDWAIT = 177 - SYS_RT_SIGQUEUEINFO = 178 - SYS_RT_SIGSUSPEND = 179 - SYS_PREAD64 = 180 - SYS_PWRITE64 = 181 - SYS_CHOWN = 182 - SYS_GETCWD = 183 - SYS_CAPGET = 184 - SYS_CAPSET = 185 - SYS_SIGALTSTACK = 186 - SYS_SENDFILE = 187 - SYS_VFORK = 190 - SYS_UGETRLIMIT = 191 - SYS_MMAP2 = 192 - SYS_TRUNCATE64 = 193 - SYS_FTRUNCATE64 = 194 - SYS_STAT64 = 195 - SYS_LSTAT64 = 196 - SYS_FSTAT64 = 197 - SYS_LCHOWN32 = 198 - SYS_GETUID32 = 199 - SYS_GETGID32 = 200 - SYS_GETEUID32 = 201 - SYS_GETEGID32 = 202 - SYS_SETREUID32 = 203 - SYS_SETREGID32 = 204 - SYS_GETGROUPS32 = 205 - SYS_SETGROUPS32 = 206 - SYS_FCHOWN32 = 207 - SYS_SETRESUID32 = 208 - SYS_GETRESUID32 = 209 - SYS_SETRESGID32 = 210 - SYS_GETRESGID32 = 211 - SYS_CHOWN32 = 212 - SYS_SETUID32 = 213 - SYS_SETGID32 = 214 - SYS_SETFSUID32 = 215 - SYS_SETFSGID32 = 216 - SYS_GETDENTS64 = 217 - SYS_PIVOT_ROOT = 218 - SYS_MINCORE = 219 - SYS_MADVISE = 220 - SYS_FCNTL64 = 221 - SYS_GETTID = 224 - SYS_READAHEAD = 225 - SYS_SETXATTR = 226 - SYS_LSETXATTR = 227 - SYS_FSETXATTR = 228 - SYS_GETXATTR = 229 - SYS_LGETXATTR = 230 - SYS_FGETXATTR = 231 - SYS_LISTXATTR = 232 - SYS_LLISTXATTR = 233 - SYS_FLISTXATTR = 234 - SYS_REMOVEXATTR = 235 - SYS_LREMOVEXATTR = 236 - SYS_FREMOVEXATTR = 237 - SYS_TKILL = 238 - SYS_SENDFILE64 = 239 - SYS_FUTEX = 240 - SYS_SCHED_SETAFFINITY = 241 - SYS_SCHED_GETAFFINITY = 242 - SYS_IO_SETUP = 243 - SYS_IO_DESTROY = 244 - SYS_IO_GETEVENTS = 245 - SYS_IO_SUBMIT = 246 - SYS_IO_CANCEL = 247 - SYS_EXIT_GROUP = 248 - SYS_LOOKUP_DCOOKIE = 249 - SYS_EPOLL_CREATE = 250 - SYS_EPOLL_CTL = 251 - SYS_EPOLL_WAIT = 252 - SYS_REMAP_FILE_PAGES = 253 - SYS_SET_TID_ADDRESS = 256 - SYS_TIMER_CREATE = 257 - SYS_TIMER_SETTIME = 258 - SYS_TIMER_GETTIME = 259 - SYS_TIMER_GETOVERRUN = 260 - SYS_TIMER_DELETE = 261 - SYS_CLOCK_SETTIME = 262 - SYS_CLOCK_GETTIME = 263 - SYS_CLOCK_GETRES = 264 - SYS_CLOCK_NANOSLEEP = 265 - SYS_STATFS64 = 266 - SYS_FSTATFS64 = 267 - SYS_TGKILL = 268 - SYS_UTIMES = 269 - SYS_ARM_FADVISE64_64 = 270 - SYS_PCICONFIG_IOBASE = 271 - SYS_PCICONFIG_READ = 272 - SYS_PCICONFIG_WRITE = 273 - SYS_MQ_OPEN = 274 - SYS_MQ_UNLINK = 275 - SYS_MQ_TIMEDSEND = 276 - SYS_MQ_TIMEDRECEIVE = 277 - SYS_MQ_NOTIFY = 278 - SYS_MQ_GETSETATTR = 279 - SYS_WAITID = 280 - SYS_SOCKET = 281 - SYS_BIND = 282 - SYS_CONNECT = 283 - SYS_LISTEN = 284 - SYS_ACCEPT = 285 - SYS_GETSOCKNAME = 286 - SYS_GETPEERNAME = 287 - SYS_SOCKETPAIR = 288 - SYS_SEND = 289 - SYS_SENDTO = 290 - SYS_RECV = 291 - SYS_RECVFROM = 292 - SYS_SHUTDOWN = 293 - SYS_SETSOCKOPT = 294 - SYS_GETSOCKOPT = 295 - SYS_SENDMSG = 296 - SYS_RECVMSG = 297 - SYS_SEMOP = 298 - SYS_SEMGET = 299 - SYS_SEMCTL = 300 - SYS_MSGSND = 301 - SYS_MSGRCV = 302 - SYS_MSGGET = 303 - SYS_MSGCTL = 304 - SYS_SHMAT = 305 - SYS_SHMDT = 306 - SYS_SHMGET = 307 - SYS_SHMCTL = 308 - SYS_ADD_KEY = 309 - SYS_REQUEST_KEY = 310 - SYS_KEYCTL = 311 - SYS_SEMTIMEDOP = 312 - SYS_VSERVER = 313 - SYS_IOPRIO_SET = 314 - SYS_IOPRIO_GET = 315 - SYS_INOTIFY_INIT = 316 - SYS_INOTIFY_ADD_WATCH = 317 - SYS_INOTIFY_RM_WATCH = 318 - SYS_MBIND = 319 - SYS_GET_MEMPOLICY = 320 - SYS_SET_MEMPOLICY = 321 - SYS_OPENAT = 322 - SYS_MKDIRAT = 323 - SYS_MKNODAT = 324 - SYS_FCHOWNAT = 325 - SYS_FUTIMESAT = 326 - SYS_FSTATAT64 = 327 - SYS_UNLINKAT = 328 - SYS_RENAMEAT = 329 - SYS_LINKAT = 330 - SYS_SYMLINKAT = 331 - SYS_READLINKAT = 332 - SYS_FCHMODAT = 333 - SYS_FACCESSAT = 334 - SYS_PSELECT6 = 335 - SYS_PPOLL = 336 - SYS_UNSHARE = 337 - SYS_SET_ROBUST_LIST = 338 - SYS_GET_ROBUST_LIST = 339 - SYS_SPLICE = 340 - SYS_ARM_SYNC_FILE_RANGE = 341 - SYS_TEE = 342 - SYS_VMSPLICE = 343 - SYS_MOVE_PAGES = 344 - SYS_GETCPU = 345 - SYS_EPOLL_PWAIT = 346 - SYS_KEXEC_LOAD = 347 - SYS_UTIMENSAT = 348 - SYS_SIGNALFD = 349 - SYS_TIMERFD_CREATE = 350 - SYS_EVENTFD = 351 - SYS_FALLOCATE = 352 - SYS_TIMERFD_SETTIME = 353 - SYS_TIMERFD_GETTIME = 354 - SYS_SIGNALFD4 = 355 - SYS_EVENTFD2 = 356 - SYS_EPOLL_CREATE1 = 357 - SYS_DUP3 = 358 - SYS_PIPE2 = 359 - SYS_INOTIFY_INIT1 = 360 - SYS_PREADV = 361 - SYS_PWRITEV = 362 - SYS_RT_TGSIGQUEUEINFO = 363 - SYS_PERF_EVENT_OPEN = 364 - SYS_RECVMMSG = 365 - SYS_ACCEPT4 = 366 - SYS_FANOTIFY_INIT = 367 - SYS_FANOTIFY_MARK = 368 - SYS_PRLIMIT64 = 369 - SYS_NAME_TO_HANDLE_AT = 370 - SYS_OPEN_BY_HANDLE_AT = 371 - SYS_CLOCK_ADJTIME = 372 - SYS_SYNCFS = 373 - SYS_SENDMMSG = 374 - SYS_SETNS = 375 - SYS_PROCESS_VM_READV = 376 - SYS_PROCESS_VM_WRITEV = 377 - SYS_KCMP = 378 - SYS_FINIT_MODULE = 379 - SYS_SCHED_SETATTR = 380 - SYS_SCHED_GETATTR = 381 - SYS_RENAMEAT2 = 382 - SYS_SECCOMP = 383 - SYS_GETRANDOM = 384 - SYS_MEMFD_CREATE = 385 - SYS_BPF = 386 - SYS_EXECVEAT = 387 - SYS_USERFAULTFD = 388 - SYS_MEMBARRIER = 389 - SYS_MLOCK2 = 390 - SYS_COPY_FILE_RANGE = 391 - SYS_PREADV2 = 392 - SYS_PWRITEV2 = 393 - SYS_PKEY_MPROTECT = 394 - SYS_PKEY_ALLOC = 395 - SYS_PKEY_FREE = 396 - SYS_STATX = 397 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go deleted file mode 100644 index b1c6b4b..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ /dev/null @@ -1,286 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -fsigned-char /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,linux - -package unix - -const ( - SYS_IO_SETUP = 0 - SYS_IO_DESTROY = 1 - SYS_IO_SUBMIT = 2 - SYS_IO_CANCEL = 3 - SYS_IO_GETEVENTS = 4 - SYS_SETXATTR = 5 - SYS_LSETXATTR = 6 - SYS_FSETXATTR = 7 - SYS_GETXATTR = 8 - SYS_LGETXATTR = 9 - SYS_FGETXATTR = 10 - SYS_LISTXATTR = 11 - SYS_LLISTXATTR = 12 - SYS_FLISTXATTR = 13 - SYS_REMOVEXATTR = 14 - SYS_LREMOVEXATTR = 15 - SYS_FREMOVEXATTR = 16 - SYS_GETCWD = 17 - SYS_LOOKUP_DCOOKIE = 18 - SYS_EVENTFD2 = 19 - SYS_EPOLL_CREATE1 = 20 - SYS_EPOLL_CTL = 21 - SYS_EPOLL_PWAIT = 22 - SYS_DUP = 23 - SYS_DUP3 = 24 - SYS_FCNTL = 25 - SYS_INOTIFY_INIT1 = 26 - SYS_INOTIFY_ADD_WATCH = 27 - SYS_INOTIFY_RM_WATCH = 28 - SYS_IOCTL = 29 - SYS_IOPRIO_SET = 30 - SYS_IOPRIO_GET = 31 - SYS_FLOCK = 32 - SYS_MKNODAT = 33 - SYS_MKDIRAT = 34 - SYS_UNLINKAT = 35 - SYS_SYMLINKAT = 36 - SYS_LINKAT = 37 - SYS_RENAMEAT = 38 - SYS_UMOUNT2 = 39 - SYS_MOUNT = 40 - SYS_PIVOT_ROOT = 41 - SYS_NFSSERVCTL = 42 - SYS_STATFS = 43 - SYS_FSTATFS = 44 - SYS_TRUNCATE = 45 - SYS_FTRUNCATE = 46 - SYS_FALLOCATE = 47 - SYS_FACCESSAT = 48 - SYS_CHDIR = 49 - SYS_FCHDIR = 50 - SYS_CHROOT = 51 - SYS_FCHMOD = 52 - SYS_FCHMODAT = 53 - SYS_FCHOWNAT = 54 - SYS_FCHOWN = 55 - SYS_OPENAT = 56 - SYS_CLOSE = 57 - SYS_VHANGUP = 58 - SYS_PIPE2 = 59 - SYS_QUOTACTL = 60 - SYS_GETDENTS64 = 61 - SYS_LSEEK = 62 - SYS_READ = 63 - SYS_WRITE = 64 - SYS_READV = 65 - SYS_WRITEV = 66 - SYS_PREAD64 = 67 - SYS_PWRITE64 = 68 - SYS_PREADV = 69 - SYS_PWRITEV = 70 - SYS_SENDFILE = 71 - SYS_PSELECT6 = 72 - SYS_PPOLL = 73 - SYS_SIGNALFD4 = 74 - SYS_VMSPLICE = 75 - SYS_SPLICE = 76 - SYS_TEE = 77 - SYS_READLINKAT = 78 - SYS_FSTATAT = 79 - SYS_FSTAT = 80 - SYS_SYNC = 81 - SYS_FSYNC = 82 - SYS_FDATASYNC = 83 - SYS_SYNC_FILE_RANGE = 84 - SYS_TIMERFD_CREATE = 85 - SYS_TIMERFD_SETTIME = 86 - SYS_TIMERFD_GETTIME = 87 - SYS_UTIMENSAT = 88 - SYS_ACCT = 89 - SYS_CAPGET = 90 - SYS_CAPSET = 91 - SYS_PERSONALITY = 92 - SYS_EXIT = 93 - SYS_EXIT_GROUP = 94 - SYS_WAITID = 95 - SYS_SET_TID_ADDRESS = 96 - SYS_UNSHARE = 97 - SYS_FUTEX = 98 - SYS_SET_ROBUST_LIST = 99 - SYS_GET_ROBUST_LIST = 100 - SYS_NANOSLEEP = 101 - SYS_GETITIMER = 102 - SYS_SETITIMER = 103 - SYS_KEXEC_LOAD = 104 - SYS_INIT_MODULE = 105 - SYS_DELETE_MODULE = 106 - SYS_TIMER_CREATE = 107 - SYS_TIMER_GETTIME = 108 - SYS_TIMER_GETOVERRUN = 109 - SYS_TIMER_SETTIME = 110 - SYS_TIMER_DELETE = 111 - SYS_CLOCK_SETTIME = 112 - SYS_CLOCK_GETTIME = 113 - SYS_CLOCK_GETRES = 114 - SYS_CLOCK_NANOSLEEP = 115 - SYS_SYSLOG = 116 - SYS_PTRACE = 117 - SYS_SCHED_SETPARAM = 118 - SYS_SCHED_SETSCHEDULER = 119 - SYS_SCHED_GETSCHEDULER = 120 - SYS_SCHED_GETPARAM = 121 - SYS_SCHED_SETAFFINITY = 122 - SYS_SCHED_GETAFFINITY = 123 - SYS_SCHED_YIELD = 124 - SYS_SCHED_GET_PRIORITY_MAX = 125 - SYS_SCHED_GET_PRIORITY_MIN = 126 - SYS_SCHED_RR_GET_INTERVAL = 127 - SYS_RESTART_SYSCALL = 128 - SYS_KILL = 129 - SYS_TKILL = 130 - SYS_TGKILL = 131 - SYS_SIGALTSTACK = 132 - SYS_RT_SIGSUSPEND = 133 - SYS_RT_SIGACTION = 134 - SYS_RT_SIGPROCMASK = 135 - SYS_RT_SIGPENDING = 136 - SYS_RT_SIGTIMEDWAIT = 137 - SYS_RT_SIGQUEUEINFO = 138 - SYS_RT_SIGRETURN = 139 - SYS_SETPRIORITY = 140 - SYS_GETPRIORITY = 141 - SYS_REBOOT = 142 - SYS_SETREGID = 143 - SYS_SETGID = 144 - SYS_SETREUID = 145 - SYS_SETUID = 146 - SYS_SETRESUID = 147 - SYS_GETRESUID = 148 - SYS_SETRESGID = 149 - SYS_GETRESGID = 150 - SYS_SETFSUID = 151 - SYS_SETFSGID = 152 - SYS_TIMES = 153 - SYS_SETPGID = 154 - SYS_GETPGID = 155 - SYS_GETSID = 156 - SYS_SETSID = 157 - SYS_GETGROUPS = 158 - SYS_SETGROUPS = 159 - SYS_UNAME = 160 - SYS_SETHOSTNAME = 161 - SYS_SETDOMAINNAME = 162 - SYS_GETRLIMIT = 163 - SYS_SETRLIMIT = 164 - SYS_GETRUSAGE = 165 - SYS_UMASK = 166 - SYS_PRCTL = 167 - SYS_GETCPU = 168 - SYS_GETTIMEOFDAY = 169 - SYS_SETTIMEOFDAY = 170 - SYS_ADJTIMEX = 171 - SYS_GETPID = 172 - SYS_GETPPID = 173 - SYS_GETUID = 174 - SYS_GETEUID = 175 - SYS_GETGID = 176 - SYS_GETEGID = 177 - SYS_GETTID = 178 - SYS_SYSINFO = 179 - SYS_MQ_OPEN = 180 - SYS_MQ_UNLINK = 181 - SYS_MQ_TIMEDSEND = 182 - SYS_MQ_TIMEDRECEIVE = 183 - SYS_MQ_NOTIFY = 184 - SYS_MQ_GETSETATTR = 185 - SYS_MSGGET = 186 - SYS_MSGCTL = 187 - SYS_MSGRCV = 188 - SYS_MSGSND = 189 - SYS_SEMGET = 190 - SYS_SEMCTL = 191 - SYS_SEMTIMEDOP = 192 - SYS_SEMOP = 193 - SYS_SHMGET = 194 - SYS_SHMCTL = 195 - SYS_SHMAT = 196 - SYS_SHMDT = 197 - SYS_SOCKET = 198 - SYS_SOCKETPAIR = 199 - SYS_BIND = 200 - SYS_LISTEN = 201 - SYS_ACCEPT = 202 - SYS_CONNECT = 203 - SYS_GETSOCKNAME = 204 - SYS_GETPEERNAME = 205 - SYS_SENDTO = 206 - SYS_RECVFROM = 207 - SYS_SETSOCKOPT = 208 - SYS_GETSOCKOPT = 209 - SYS_SHUTDOWN = 210 - SYS_SENDMSG = 211 - SYS_RECVMSG = 212 - SYS_READAHEAD = 213 - SYS_BRK = 214 - SYS_MUNMAP = 215 - SYS_MREMAP = 216 - SYS_ADD_KEY = 217 - SYS_REQUEST_KEY = 218 - SYS_KEYCTL = 219 - SYS_CLONE = 220 - SYS_EXECVE = 221 - SYS_MMAP = 222 - SYS_FADVISE64 = 223 - SYS_SWAPON = 224 - SYS_SWAPOFF = 225 - SYS_MPROTECT = 226 - SYS_MSYNC = 227 - SYS_MLOCK = 228 - SYS_MUNLOCK = 229 - SYS_MLOCKALL = 230 - SYS_MUNLOCKALL = 231 - SYS_MINCORE = 232 - SYS_MADVISE = 233 - SYS_REMAP_FILE_PAGES = 234 - SYS_MBIND = 235 - SYS_GET_MEMPOLICY = 236 - SYS_SET_MEMPOLICY = 237 - SYS_MIGRATE_PAGES = 238 - SYS_MOVE_PAGES = 239 - SYS_RT_TGSIGQUEUEINFO = 240 - SYS_PERF_EVENT_OPEN = 241 - SYS_ACCEPT4 = 242 - SYS_RECVMMSG = 243 - SYS_ARCH_SPECIFIC_SYSCALL = 244 - SYS_WAIT4 = 260 - SYS_PRLIMIT64 = 261 - SYS_FANOTIFY_INIT = 262 - SYS_FANOTIFY_MARK = 263 - SYS_NAME_TO_HANDLE_AT = 264 - SYS_OPEN_BY_HANDLE_AT = 265 - SYS_CLOCK_ADJTIME = 266 - SYS_SYNCFS = 267 - SYS_SETNS = 268 - SYS_SENDMMSG = 269 - SYS_PROCESS_VM_READV = 270 - SYS_PROCESS_VM_WRITEV = 271 - SYS_KCMP = 272 - SYS_FINIT_MODULE = 273 - SYS_SCHED_SETATTR = 274 - SYS_SCHED_GETATTR = 275 - SYS_RENAMEAT2 = 276 - SYS_SECCOMP = 277 - SYS_GETRANDOM = 278 - SYS_MEMFD_CREATE = 279 - SYS_BPF = 280 - SYS_EXECVEAT = 281 - SYS_USERFAULTFD = 282 - SYS_MEMBARRIER = 283 - SYS_MLOCK2 = 284 - SYS_COPY_FILE_RANGE = 285 - SYS_PREADV2 = 286 - SYS_PWRITEV2 = 287 - SYS_PKEY_MPROTECT = 288 - SYS_PKEY_ALLOC = 289 - SYS_PKEY_FREE = 290 - SYS_STATX = 291 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go deleted file mode 100644 index 2e9aa7a..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ /dev/null @@ -1,375 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips,linux - -package unix - -const ( - SYS_SYSCALL = 4000 - SYS_EXIT = 4001 - SYS_FORK = 4002 - SYS_READ = 4003 - SYS_WRITE = 4004 - SYS_OPEN = 4005 - SYS_CLOSE = 4006 - SYS_WAITPID = 4007 - SYS_CREAT = 4008 - SYS_LINK = 4009 - SYS_UNLINK = 4010 - SYS_EXECVE = 4011 - SYS_CHDIR = 4012 - SYS_TIME = 4013 - SYS_MKNOD = 4014 - SYS_CHMOD = 4015 - SYS_LCHOWN = 4016 - SYS_BREAK = 4017 - SYS_UNUSED18 = 4018 - SYS_LSEEK = 4019 - SYS_GETPID = 4020 - SYS_MOUNT = 4021 - SYS_UMOUNT = 4022 - SYS_SETUID = 4023 - SYS_GETUID = 4024 - SYS_STIME = 4025 - SYS_PTRACE = 4026 - SYS_ALARM = 4027 - SYS_UNUSED28 = 4028 - SYS_PAUSE = 4029 - SYS_UTIME = 4030 - SYS_STTY = 4031 - SYS_GTTY = 4032 - SYS_ACCESS = 4033 - SYS_NICE = 4034 - SYS_FTIME = 4035 - SYS_SYNC = 4036 - SYS_KILL = 4037 - SYS_RENAME = 4038 - SYS_MKDIR = 4039 - SYS_RMDIR = 4040 - SYS_DUP = 4041 - SYS_PIPE = 4042 - SYS_TIMES = 4043 - SYS_PROF = 4044 - SYS_BRK = 4045 - SYS_SETGID = 4046 - SYS_GETGID = 4047 - SYS_SIGNAL = 4048 - SYS_GETEUID = 4049 - SYS_GETEGID = 4050 - SYS_ACCT = 4051 - SYS_UMOUNT2 = 4052 - SYS_LOCK = 4053 - SYS_IOCTL = 4054 - SYS_FCNTL = 4055 - SYS_MPX = 4056 - SYS_SETPGID = 4057 - SYS_ULIMIT = 4058 - SYS_UNUSED59 = 4059 - SYS_UMASK = 4060 - SYS_CHROOT = 4061 - SYS_USTAT = 4062 - SYS_DUP2 = 4063 - SYS_GETPPID = 4064 - SYS_GETPGRP = 4065 - SYS_SETSID = 4066 - SYS_SIGACTION = 4067 - SYS_SGETMASK = 4068 - SYS_SSETMASK = 4069 - SYS_SETREUID = 4070 - SYS_SETREGID = 4071 - SYS_SIGSUSPEND = 4072 - SYS_SIGPENDING = 4073 - SYS_SETHOSTNAME = 4074 - SYS_SETRLIMIT = 4075 - SYS_GETRLIMIT = 4076 - SYS_GETRUSAGE = 4077 - SYS_GETTIMEOFDAY = 4078 - SYS_SETTIMEOFDAY = 4079 - SYS_GETGROUPS = 4080 - SYS_SETGROUPS = 4081 - SYS_RESERVED82 = 4082 - SYS_SYMLINK = 4083 - SYS_UNUSED84 = 4084 - SYS_READLINK = 4085 - SYS_USELIB = 4086 - SYS_SWAPON = 4087 - SYS_REBOOT = 4088 - SYS_READDIR = 4089 - SYS_MMAP = 4090 - SYS_MUNMAP = 4091 - SYS_TRUNCATE = 4092 - SYS_FTRUNCATE = 4093 - SYS_FCHMOD = 4094 - SYS_FCHOWN = 4095 - SYS_GETPRIORITY = 4096 - SYS_SETPRIORITY = 4097 - SYS_PROFIL = 4098 - SYS_STATFS = 4099 - SYS_FSTATFS = 4100 - SYS_IOPERM = 4101 - SYS_SOCKETCALL = 4102 - SYS_SYSLOG = 4103 - SYS_SETITIMER = 4104 - SYS_GETITIMER = 4105 - SYS_STAT = 4106 - SYS_LSTAT = 4107 - SYS_FSTAT = 4108 - SYS_UNUSED109 = 4109 - SYS_IOPL = 4110 - SYS_VHANGUP = 4111 - SYS_IDLE = 4112 - SYS_VM86 = 4113 - SYS_WAIT4 = 4114 - SYS_SWAPOFF = 4115 - SYS_SYSINFO = 4116 - SYS_IPC = 4117 - SYS_FSYNC = 4118 - SYS_SIGRETURN = 4119 - SYS_CLONE = 4120 - SYS_SETDOMAINNAME = 4121 - SYS_UNAME = 4122 - SYS_MODIFY_LDT = 4123 - SYS_ADJTIMEX = 4124 - SYS_MPROTECT = 4125 - SYS_SIGPROCMASK = 4126 - SYS_CREATE_MODULE = 4127 - SYS_INIT_MODULE = 4128 - SYS_DELETE_MODULE = 4129 - SYS_GET_KERNEL_SYMS = 4130 - SYS_QUOTACTL = 4131 - SYS_GETPGID = 4132 - SYS_FCHDIR = 4133 - SYS_BDFLUSH = 4134 - SYS_SYSFS = 4135 - SYS_PERSONALITY = 4136 - SYS_AFS_SYSCALL = 4137 - SYS_SETFSUID = 4138 - SYS_SETFSGID = 4139 - SYS__LLSEEK = 4140 - SYS_GETDENTS = 4141 - SYS__NEWSELECT = 4142 - SYS_FLOCK = 4143 - SYS_MSYNC = 4144 - SYS_READV = 4145 - SYS_WRITEV = 4146 - SYS_CACHEFLUSH = 4147 - SYS_CACHECTL = 4148 - SYS_SYSMIPS = 4149 - SYS_UNUSED150 = 4150 - SYS_GETSID = 4151 - SYS_FDATASYNC = 4152 - SYS__SYSCTL = 4153 - SYS_MLOCK = 4154 - SYS_MUNLOCK = 4155 - SYS_MLOCKALL = 4156 - SYS_MUNLOCKALL = 4157 - SYS_SCHED_SETPARAM = 4158 - SYS_SCHED_GETPARAM = 4159 - SYS_SCHED_SETSCHEDULER = 4160 - SYS_SCHED_GETSCHEDULER = 4161 - SYS_SCHED_YIELD = 4162 - SYS_SCHED_GET_PRIORITY_MAX = 4163 - SYS_SCHED_GET_PRIORITY_MIN = 4164 - SYS_SCHED_RR_GET_INTERVAL = 4165 - SYS_NANOSLEEP = 4166 - SYS_MREMAP = 4167 - SYS_ACCEPT = 4168 - SYS_BIND = 4169 - SYS_CONNECT = 4170 - SYS_GETPEERNAME = 4171 - SYS_GETSOCKNAME = 4172 - SYS_GETSOCKOPT = 4173 - SYS_LISTEN = 4174 - SYS_RECV = 4175 - SYS_RECVFROM = 4176 - SYS_RECVMSG = 4177 - SYS_SEND = 4178 - SYS_SENDMSG = 4179 - SYS_SENDTO = 4180 - SYS_SETSOCKOPT = 4181 - SYS_SHUTDOWN = 4182 - SYS_SOCKET = 4183 - SYS_SOCKETPAIR = 4184 - SYS_SETRESUID = 4185 - SYS_GETRESUID = 4186 - SYS_QUERY_MODULE = 4187 - SYS_POLL = 4188 - SYS_NFSSERVCTL = 4189 - SYS_SETRESGID = 4190 - SYS_GETRESGID = 4191 - SYS_PRCTL = 4192 - SYS_RT_SIGRETURN = 4193 - SYS_RT_SIGACTION = 4194 - SYS_RT_SIGPROCMASK = 4195 - SYS_RT_SIGPENDING = 4196 - SYS_RT_SIGTIMEDWAIT = 4197 - SYS_RT_SIGQUEUEINFO = 4198 - SYS_RT_SIGSUSPEND = 4199 - SYS_PREAD64 = 4200 - SYS_PWRITE64 = 4201 - SYS_CHOWN = 4202 - SYS_GETCWD = 4203 - SYS_CAPGET = 4204 - SYS_CAPSET = 4205 - SYS_SIGALTSTACK = 4206 - SYS_SENDFILE = 4207 - SYS_GETPMSG = 4208 - SYS_PUTPMSG = 4209 - SYS_MMAP2 = 4210 - SYS_TRUNCATE64 = 4211 - SYS_FTRUNCATE64 = 4212 - SYS_STAT64 = 4213 - SYS_LSTAT64 = 4214 - SYS_FSTAT64 = 4215 - SYS_PIVOT_ROOT = 4216 - SYS_MINCORE = 4217 - SYS_MADVISE = 4218 - SYS_GETDENTS64 = 4219 - SYS_FCNTL64 = 4220 - SYS_RESERVED221 = 4221 - SYS_GETTID = 4222 - SYS_READAHEAD = 4223 - SYS_SETXATTR = 4224 - SYS_LSETXATTR = 4225 - SYS_FSETXATTR = 4226 - SYS_GETXATTR = 4227 - SYS_LGETXATTR = 4228 - SYS_FGETXATTR = 4229 - SYS_LISTXATTR = 4230 - SYS_LLISTXATTR = 4231 - SYS_FLISTXATTR = 4232 - SYS_REMOVEXATTR = 4233 - SYS_LREMOVEXATTR = 4234 - SYS_FREMOVEXATTR = 4235 - SYS_TKILL = 4236 - SYS_SENDFILE64 = 4237 - SYS_FUTEX = 4238 - SYS_SCHED_SETAFFINITY = 4239 - SYS_SCHED_GETAFFINITY = 4240 - SYS_IO_SETUP = 4241 - SYS_IO_DESTROY = 4242 - SYS_IO_GETEVENTS = 4243 - SYS_IO_SUBMIT = 4244 - SYS_IO_CANCEL = 4245 - SYS_EXIT_GROUP = 4246 - SYS_LOOKUP_DCOOKIE = 4247 - SYS_EPOLL_CREATE = 4248 - SYS_EPOLL_CTL = 4249 - SYS_EPOLL_WAIT = 4250 - SYS_REMAP_FILE_PAGES = 4251 - SYS_SET_TID_ADDRESS = 4252 - SYS_RESTART_SYSCALL = 4253 - SYS_FADVISE64 = 4254 - SYS_STATFS64 = 4255 - SYS_FSTATFS64 = 4256 - SYS_TIMER_CREATE = 4257 - SYS_TIMER_SETTIME = 4258 - SYS_TIMER_GETTIME = 4259 - SYS_TIMER_GETOVERRUN = 4260 - SYS_TIMER_DELETE = 4261 - SYS_CLOCK_SETTIME = 4262 - SYS_CLOCK_GETTIME = 4263 - SYS_CLOCK_GETRES = 4264 - SYS_CLOCK_NANOSLEEP = 4265 - SYS_TGKILL = 4266 - SYS_UTIMES = 4267 - SYS_MBIND = 4268 - SYS_GET_MEMPOLICY = 4269 - SYS_SET_MEMPOLICY = 4270 - SYS_MQ_OPEN = 4271 - SYS_MQ_UNLINK = 4272 - SYS_MQ_TIMEDSEND = 4273 - SYS_MQ_TIMEDRECEIVE = 4274 - SYS_MQ_NOTIFY = 4275 - SYS_MQ_GETSETATTR = 4276 - SYS_VSERVER = 4277 - SYS_WAITID = 4278 - SYS_ADD_KEY = 4280 - SYS_REQUEST_KEY = 4281 - SYS_KEYCTL = 4282 - SYS_SET_THREAD_AREA = 4283 - SYS_INOTIFY_INIT = 4284 - SYS_INOTIFY_ADD_WATCH = 4285 - SYS_INOTIFY_RM_WATCH = 4286 - SYS_MIGRATE_PAGES = 4287 - SYS_OPENAT = 4288 - SYS_MKDIRAT = 4289 - SYS_MKNODAT = 4290 - SYS_FCHOWNAT = 4291 - SYS_FUTIMESAT = 4292 - SYS_FSTATAT64 = 4293 - SYS_UNLINKAT = 4294 - SYS_RENAMEAT = 4295 - SYS_LINKAT = 4296 - SYS_SYMLINKAT = 4297 - SYS_READLINKAT = 4298 - SYS_FCHMODAT = 4299 - SYS_FACCESSAT = 4300 - SYS_PSELECT6 = 4301 - SYS_PPOLL = 4302 - SYS_UNSHARE = 4303 - SYS_SPLICE = 4304 - SYS_SYNC_FILE_RANGE = 4305 - SYS_TEE = 4306 - SYS_VMSPLICE = 4307 - SYS_MOVE_PAGES = 4308 - SYS_SET_ROBUST_LIST = 4309 - SYS_GET_ROBUST_LIST = 4310 - SYS_KEXEC_LOAD = 4311 - SYS_GETCPU = 4312 - SYS_EPOLL_PWAIT = 4313 - SYS_IOPRIO_SET = 4314 - SYS_IOPRIO_GET = 4315 - SYS_UTIMENSAT = 4316 - SYS_SIGNALFD = 4317 - SYS_TIMERFD = 4318 - SYS_EVENTFD = 4319 - SYS_FALLOCATE = 4320 - SYS_TIMERFD_CREATE = 4321 - SYS_TIMERFD_GETTIME = 4322 - SYS_TIMERFD_SETTIME = 4323 - SYS_SIGNALFD4 = 4324 - SYS_EVENTFD2 = 4325 - SYS_EPOLL_CREATE1 = 4326 - SYS_DUP3 = 4327 - SYS_PIPE2 = 4328 - SYS_INOTIFY_INIT1 = 4329 - SYS_PREADV = 4330 - SYS_PWRITEV = 4331 - SYS_RT_TGSIGQUEUEINFO = 4332 - SYS_PERF_EVENT_OPEN = 4333 - SYS_ACCEPT4 = 4334 - SYS_RECVMMSG = 4335 - SYS_FANOTIFY_INIT = 4336 - SYS_FANOTIFY_MARK = 4337 - SYS_PRLIMIT64 = 4338 - SYS_NAME_TO_HANDLE_AT = 4339 - SYS_OPEN_BY_HANDLE_AT = 4340 - SYS_CLOCK_ADJTIME = 4341 - SYS_SYNCFS = 4342 - SYS_SENDMMSG = 4343 - SYS_SETNS = 4344 - SYS_PROCESS_VM_READV = 4345 - SYS_PROCESS_VM_WRITEV = 4346 - SYS_KCMP = 4347 - SYS_FINIT_MODULE = 4348 - SYS_SCHED_SETATTR = 4349 - SYS_SCHED_GETATTR = 4350 - SYS_RENAMEAT2 = 4351 - SYS_SECCOMP = 4352 - SYS_GETRANDOM = 4353 - SYS_MEMFD_CREATE = 4354 - SYS_BPF = 4355 - SYS_EXECVEAT = 4356 - SYS_USERFAULTFD = 4357 - SYS_MEMBARRIER = 4358 - SYS_MLOCK2 = 4359 - SYS_COPY_FILE_RANGE = 4360 - SYS_PREADV2 = 4361 - SYS_PWRITEV2 = 4362 - SYS_PKEY_MPROTECT = 4363 - SYS_PKEY_ALLOC = 4364 - SYS_PKEY_FREE = 4365 - SYS_STATX = 4366 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go deleted file mode 100644 index 9282763..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ /dev/null @@ -1,335 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64,linux - -package unix - -const ( - SYS_READ = 5000 - SYS_WRITE = 5001 - SYS_OPEN = 5002 - SYS_CLOSE = 5003 - SYS_STAT = 5004 - SYS_FSTAT = 5005 - SYS_LSTAT = 5006 - SYS_POLL = 5007 - SYS_LSEEK = 5008 - SYS_MMAP = 5009 - SYS_MPROTECT = 5010 - SYS_MUNMAP = 5011 - SYS_BRK = 5012 - SYS_RT_SIGACTION = 5013 - SYS_RT_SIGPROCMASK = 5014 - SYS_IOCTL = 5015 - SYS_PREAD64 = 5016 - SYS_PWRITE64 = 5017 - SYS_READV = 5018 - SYS_WRITEV = 5019 - SYS_ACCESS = 5020 - SYS_PIPE = 5021 - SYS__NEWSELECT = 5022 - SYS_SCHED_YIELD = 5023 - SYS_MREMAP = 5024 - SYS_MSYNC = 5025 - SYS_MINCORE = 5026 - SYS_MADVISE = 5027 - SYS_SHMGET = 5028 - SYS_SHMAT = 5029 - SYS_SHMCTL = 5030 - SYS_DUP = 5031 - SYS_DUP2 = 5032 - SYS_PAUSE = 5033 - SYS_NANOSLEEP = 5034 - SYS_GETITIMER = 5035 - SYS_SETITIMER = 5036 - SYS_ALARM = 5037 - SYS_GETPID = 5038 - SYS_SENDFILE = 5039 - SYS_SOCKET = 5040 - SYS_CONNECT = 5041 - SYS_ACCEPT = 5042 - SYS_SENDTO = 5043 - SYS_RECVFROM = 5044 - SYS_SENDMSG = 5045 - SYS_RECVMSG = 5046 - SYS_SHUTDOWN = 5047 - SYS_BIND = 5048 - SYS_LISTEN = 5049 - SYS_GETSOCKNAME = 5050 - SYS_GETPEERNAME = 5051 - SYS_SOCKETPAIR = 5052 - SYS_SETSOCKOPT = 5053 - SYS_GETSOCKOPT = 5054 - SYS_CLONE = 5055 - SYS_FORK = 5056 - SYS_EXECVE = 5057 - SYS_EXIT = 5058 - SYS_WAIT4 = 5059 - SYS_KILL = 5060 - SYS_UNAME = 5061 - SYS_SEMGET = 5062 - SYS_SEMOP = 5063 - SYS_SEMCTL = 5064 - SYS_SHMDT = 5065 - SYS_MSGGET = 5066 - SYS_MSGSND = 5067 - SYS_MSGRCV = 5068 - SYS_MSGCTL = 5069 - SYS_FCNTL = 5070 - SYS_FLOCK = 5071 - SYS_FSYNC = 5072 - SYS_FDATASYNC = 5073 - SYS_TRUNCATE = 5074 - SYS_FTRUNCATE = 5075 - SYS_GETDENTS = 5076 - SYS_GETCWD = 5077 - SYS_CHDIR = 5078 - SYS_FCHDIR = 5079 - SYS_RENAME = 5080 - SYS_MKDIR = 5081 - SYS_RMDIR = 5082 - SYS_CREAT = 5083 - SYS_LINK = 5084 - SYS_UNLINK = 5085 - SYS_SYMLINK = 5086 - SYS_READLINK = 5087 - SYS_CHMOD = 5088 - SYS_FCHMOD = 5089 - SYS_CHOWN = 5090 - SYS_FCHOWN = 5091 - SYS_LCHOWN = 5092 - SYS_UMASK = 5093 - SYS_GETTIMEOFDAY = 5094 - SYS_GETRLIMIT = 5095 - SYS_GETRUSAGE = 5096 - SYS_SYSINFO = 5097 - SYS_TIMES = 5098 - SYS_PTRACE = 5099 - SYS_GETUID = 5100 - SYS_SYSLOG = 5101 - SYS_GETGID = 5102 - SYS_SETUID = 5103 - SYS_SETGID = 5104 - SYS_GETEUID = 5105 - SYS_GETEGID = 5106 - SYS_SETPGID = 5107 - SYS_GETPPID = 5108 - SYS_GETPGRP = 5109 - SYS_SETSID = 5110 - SYS_SETREUID = 5111 - SYS_SETREGID = 5112 - SYS_GETGROUPS = 5113 - SYS_SETGROUPS = 5114 - SYS_SETRESUID = 5115 - SYS_GETRESUID = 5116 - SYS_SETRESGID = 5117 - SYS_GETRESGID = 5118 - SYS_GETPGID = 5119 - SYS_SETFSUID = 5120 - SYS_SETFSGID = 5121 - SYS_GETSID = 5122 - SYS_CAPGET = 5123 - SYS_CAPSET = 5124 - SYS_RT_SIGPENDING = 5125 - SYS_RT_SIGTIMEDWAIT = 5126 - SYS_RT_SIGQUEUEINFO = 5127 - SYS_RT_SIGSUSPEND = 5128 - SYS_SIGALTSTACK = 5129 - SYS_UTIME = 5130 - SYS_MKNOD = 5131 - SYS_PERSONALITY = 5132 - SYS_USTAT = 5133 - SYS_STATFS = 5134 - SYS_FSTATFS = 5135 - SYS_SYSFS = 5136 - SYS_GETPRIORITY = 5137 - SYS_SETPRIORITY = 5138 - SYS_SCHED_SETPARAM = 5139 - SYS_SCHED_GETPARAM = 5140 - SYS_SCHED_SETSCHEDULER = 5141 - SYS_SCHED_GETSCHEDULER = 5142 - SYS_SCHED_GET_PRIORITY_MAX = 5143 - SYS_SCHED_GET_PRIORITY_MIN = 5144 - SYS_SCHED_RR_GET_INTERVAL = 5145 - SYS_MLOCK = 5146 - SYS_MUNLOCK = 5147 - SYS_MLOCKALL = 5148 - SYS_MUNLOCKALL = 5149 - SYS_VHANGUP = 5150 - SYS_PIVOT_ROOT = 5151 - SYS__SYSCTL = 5152 - SYS_PRCTL = 5153 - SYS_ADJTIMEX = 5154 - SYS_SETRLIMIT = 5155 - SYS_CHROOT = 5156 - SYS_SYNC = 5157 - SYS_ACCT = 5158 - SYS_SETTIMEOFDAY = 5159 - SYS_MOUNT = 5160 - SYS_UMOUNT2 = 5161 - SYS_SWAPON = 5162 - SYS_SWAPOFF = 5163 - SYS_REBOOT = 5164 - SYS_SETHOSTNAME = 5165 - SYS_SETDOMAINNAME = 5166 - SYS_CREATE_MODULE = 5167 - SYS_INIT_MODULE = 5168 - SYS_DELETE_MODULE = 5169 - SYS_GET_KERNEL_SYMS = 5170 - SYS_QUERY_MODULE = 5171 - SYS_QUOTACTL = 5172 - SYS_NFSSERVCTL = 5173 - SYS_GETPMSG = 5174 - SYS_PUTPMSG = 5175 - SYS_AFS_SYSCALL = 5176 - SYS_RESERVED177 = 5177 - SYS_GETTID = 5178 - SYS_READAHEAD = 5179 - SYS_SETXATTR = 5180 - SYS_LSETXATTR = 5181 - SYS_FSETXATTR = 5182 - SYS_GETXATTR = 5183 - SYS_LGETXATTR = 5184 - SYS_FGETXATTR = 5185 - SYS_LISTXATTR = 5186 - SYS_LLISTXATTR = 5187 - SYS_FLISTXATTR = 5188 - SYS_REMOVEXATTR = 5189 - SYS_LREMOVEXATTR = 5190 - SYS_FREMOVEXATTR = 5191 - SYS_TKILL = 5192 - SYS_RESERVED193 = 5193 - SYS_FUTEX = 5194 - SYS_SCHED_SETAFFINITY = 5195 - SYS_SCHED_GETAFFINITY = 5196 - SYS_CACHEFLUSH = 5197 - SYS_CACHECTL = 5198 - SYS_SYSMIPS = 5199 - SYS_IO_SETUP = 5200 - SYS_IO_DESTROY = 5201 - SYS_IO_GETEVENTS = 5202 - SYS_IO_SUBMIT = 5203 - SYS_IO_CANCEL = 5204 - SYS_EXIT_GROUP = 5205 - SYS_LOOKUP_DCOOKIE = 5206 - SYS_EPOLL_CREATE = 5207 - SYS_EPOLL_CTL = 5208 - SYS_EPOLL_WAIT = 5209 - SYS_REMAP_FILE_PAGES = 5210 - SYS_RT_SIGRETURN = 5211 - SYS_SET_TID_ADDRESS = 5212 - SYS_RESTART_SYSCALL = 5213 - SYS_SEMTIMEDOP = 5214 - SYS_FADVISE64 = 5215 - SYS_TIMER_CREATE = 5216 - SYS_TIMER_SETTIME = 5217 - SYS_TIMER_GETTIME = 5218 - SYS_TIMER_GETOVERRUN = 5219 - SYS_TIMER_DELETE = 5220 - SYS_CLOCK_SETTIME = 5221 - SYS_CLOCK_GETTIME = 5222 - SYS_CLOCK_GETRES = 5223 - SYS_CLOCK_NANOSLEEP = 5224 - SYS_TGKILL = 5225 - SYS_UTIMES = 5226 - SYS_MBIND = 5227 - SYS_GET_MEMPOLICY = 5228 - SYS_SET_MEMPOLICY = 5229 - SYS_MQ_OPEN = 5230 - SYS_MQ_UNLINK = 5231 - SYS_MQ_TIMEDSEND = 5232 - SYS_MQ_TIMEDRECEIVE = 5233 - SYS_MQ_NOTIFY = 5234 - SYS_MQ_GETSETATTR = 5235 - SYS_VSERVER = 5236 - SYS_WAITID = 5237 - SYS_ADD_KEY = 5239 - SYS_REQUEST_KEY = 5240 - SYS_KEYCTL = 5241 - SYS_SET_THREAD_AREA = 5242 - SYS_INOTIFY_INIT = 5243 - SYS_INOTIFY_ADD_WATCH = 5244 - SYS_INOTIFY_RM_WATCH = 5245 - SYS_MIGRATE_PAGES = 5246 - SYS_OPENAT = 5247 - SYS_MKDIRAT = 5248 - SYS_MKNODAT = 5249 - SYS_FCHOWNAT = 5250 - SYS_FUTIMESAT = 5251 - SYS_NEWFSTATAT = 5252 - SYS_UNLINKAT = 5253 - SYS_RENAMEAT = 5254 - SYS_LINKAT = 5255 - SYS_SYMLINKAT = 5256 - SYS_READLINKAT = 5257 - SYS_FCHMODAT = 5258 - SYS_FACCESSAT = 5259 - SYS_PSELECT6 = 5260 - SYS_PPOLL = 5261 - SYS_UNSHARE = 5262 - SYS_SPLICE = 5263 - SYS_SYNC_FILE_RANGE = 5264 - SYS_TEE = 5265 - SYS_VMSPLICE = 5266 - SYS_MOVE_PAGES = 5267 - SYS_SET_ROBUST_LIST = 5268 - SYS_GET_ROBUST_LIST = 5269 - SYS_KEXEC_LOAD = 5270 - SYS_GETCPU = 5271 - SYS_EPOLL_PWAIT = 5272 - SYS_IOPRIO_SET = 5273 - SYS_IOPRIO_GET = 5274 - SYS_UTIMENSAT = 5275 - SYS_SIGNALFD = 5276 - SYS_TIMERFD = 5277 - SYS_EVENTFD = 5278 - SYS_FALLOCATE = 5279 - SYS_TIMERFD_CREATE = 5280 - SYS_TIMERFD_GETTIME = 5281 - SYS_TIMERFD_SETTIME = 5282 - SYS_SIGNALFD4 = 5283 - SYS_EVENTFD2 = 5284 - SYS_EPOLL_CREATE1 = 5285 - SYS_DUP3 = 5286 - SYS_PIPE2 = 5287 - SYS_INOTIFY_INIT1 = 5288 - SYS_PREADV = 5289 - SYS_PWRITEV = 5290 - SYS_RT_TGSIGQUEUEINFO = 5291 - SYS_PERF_EVENT_OPEN = 5292 - SYS_ACCEPT4 = 5293 - SYS_RECVMMSG = 5294 - SYS_FANOTIFY_INIT = 5295 - SYS_FANOTIFY_MARK = 5296 - SYS_PRLIMIT64 = 5297 - SYS_NAME_TO_HANDLE_AT = 5298 - SYS_OPEN_BY_HANDLE_AT = 5299 - SYS_CLOCK_ADJTIME = 5300 - SYS_SYNCFS = 5301 - SYS_SENDMMSG = 5302 - SYS_SETNS = 5303 - SYS_PROCESS_VM_READV = 5304 - SYS_PROCESS_VM_WRITEV = 5305 - SYS_KCMP = 5306 - SYS_FINIT_MODULE = 5307 - SYS_GETDENTS64 = 5308 - SYS_SCHED_SETATTR = 5309 - SYS_SCHED_GETATTR = 5310 - SYS_RENAMEAT2 = 5311 - SYS_SECCOMP = 5312 - SYS_GETRANDOM = 5313 - SYS_MEMFD_CREATE = 5314 - SYS_BPF = 5315 - SYS_EXECVEAT = 5316 - SYS_USERFAULTFD = 5317 - SYS_MEMBARRIER = 5318 - SYS_MLOCK2 = 5319 - SYS_COPY_FILE_RANGE = 5320 - SYS_PREADV2 = 5321 - SYS_PWRITEV2 = 5322 - SYS_PKEY_MPROTECT = 5323 - SYS_PKEY_ALLOC = 5324 - SYS_PKEY_FREE = 5325 - SYS_STATX = 5326 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go deleted file mode 100644 index 45bd3fd..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ /dev/null @@ -1,335 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64le,linux - -package unix - -const ( - SYS_READ = 5000 - SYS_WRITE = 5001 - SYS_OPEN = 5002 - SYS_CLOSE = 5003 - SYS_STAT = 5004 - SYS_FSTAT = 5005 - SYS_LSTAT = 5006 - SYS_POLL = 5007 - SYS_LSEEK = 5008 - SYS_MMAP = 5009 - SYS_MPROTECT = 5010 - SYS_MUNMAP = 5011 - SYS_BRK = 5012 - SYS_RT_SIGACTION = 5013 - SYS_RT_SIGPROCMASK = 5014 - SYS_IOCTL = 5015 - SYS_PREAD64 = 5016 - SYS_PWRITE64 = 5017 - SYS_READV = 5018 - SYS_WRITEV = 5019 - SYS_ACCESS = 5020 - SYS_PIPE = 5021 - SYS__NEWSELECT = 5022 - SYS_SCHED_YIELD = 5023 - SYS_MREMAP = 5024 - SYS_MSYNC = 5025 - SYS_MINCORE = 5026 - SYS_MADVISE = 5027 - SYS_SHMGET = 5028 - SYS_SHMAT = 5029 - SYS_SHMCTL = 5030 - SYS_DUP = 5031 - SYS_DUP2 = 5032 - SYS_PAUSE = 5033 - SYS_NANOSLEEP = 5034 - SYS_GETITIMER = 5035 - SYS_SETITIMER = 5036 - SYS_ALARM = 5037 - SYS_GETPID = 5038 - SYS_SENDFILE = 5039 - SYS_SOCKET = 5040 - SYS_CONNECT = 5041 - SYS_ACCEPT = 5042 - SYS_SENDTO = 5043 - SYS_RECVFROM = 5044 - SYS_SENDMSG = 5045 - SYS_RECVMSG = 5046 - SYS_SHUTDOWN = 5047 - SYS_BIND = 5048 - SYS_LISTEN = 5049 - SYS_GETSOCKNAME = 5050 - SYS_GETPEERNAME = 5051 - SYS_SOCKETPAIR = 5052 - SYS_SETSOCKOPT = 5053 - SYS_GETSOCKOPT = 5054 - SYS_CLONE = 5055 - SYS_FORK = 5056 - SYS_EXECVE = 5057 - SYS_EXIT = 5058 - SYS_WAIT4 = 5059 - SYS_KILL = 5060 - SYS_UNAME = 5061 - SYS_SEMGET = 5062 - SYS_SEMOP = 5063 - SYS_SEMCTL = 5064 - SYS_SHMDT = 5065 - SYS_MSGGET = 5066 - SYS_MSGSND = 5067 - SYS_MSGRCV = 5068 - SYS_MSGCTL = 5069 - SYS_FCNTL = 5070 - SYS_FLOCK = 5071 - SYS_FSYNC = 5072 - SYS_FDATASYNC = 5073 - SYS_TRUNCATE = 5074 - SYS_FTRUNCATE = 5075 - SYS_GETDENTS = 5076 - SYS_GETCWD = 5077 - SYS_CHDIR = 5078 - SYS_FCHDIR = 5079 - SYS_RENAME = 5080 - SYS_MKDIR = 5081 - SYS_RMDIR = 5082 - SYS_CREAT = 5083 - SYS_LINK = 5084 - SYS_UNLINK = 5085 - SYS_SYMLINK = 5086 - SYS_READLINK = 5087 - SYS_CHMOD = 5088 - SYS_FCHMOD = 5089 - SYS_CHOWN = 5090 - SYS_FCHOWN = 5091 - SYS_LCHOWN = 5092 - SYS_UMASK = 5093 - SYS_GETTIMEOFDAY = 5094 - SYS_GETRLIMIT = 5095 - SYS_GETRUSAGE = 5096 - SYS_SYSINFO = 5097 - SYS_TIMES = 5098 - SYS_PTRACE = 5099 - SYS_GETUID = 5100 - SYS_SYSLOG = 5101 - SYS_GETGID = 5102 - SYS_SETUID = 5103 - SYS_SETGID = 5104 - SYS_GETEUID = 5105 - SYS_GETEGID = 5106 - SYS_SETPGID = 5107 - SYS_GETPPID = 5108 - SYS_GETPGRP = 5109 - SYS_SETSID = 5110 - SYS_SETREUID = 5111 - SYS_SETREGID = 5112 - SYS_GETGROUPS = 5113 - SYS_SETGROUPS = 5114 - SYS_SETRESUID = 5115 - SYS_GETRESUID = 5116 - SYS_SETRESGID = 5117 - SYS_GETRESGID = 5118 - SYS_GETPGID = 5119 - SYS_SETFSUID = 5120 - SYS_SETFSGID = 5121 - SYS_GETSID = 5122 - SYS_CAPGET = 5123 - SYS_CAPSET = 5124 - SYS_RT_SIGPENDING = 5125 - SYS_RT_SIGTIMEDWAIT = 5126 - SYS_RT_SIGQUEUEINFO = 5127 - SYS_RT_SIGSUSPEND = 5128 - SYS_SIGALTSTACK = 5129 - SYS_UTIME = 5130 - SYS_MKNOD = 5131 - SYS_PERSONALITY = 5132 - SYS_USTAT = 5133 - SYS_STATFS = 5134 - SYS_FSTATFS = 5135 - SYS_SYSFS = 5136 - SYS_GETPRIORITY = 5137 - SYS_SETPRIORITY = 5138 - SYS_SCHED_SETPARAM = 5139 - SYS_SCHED_GETPARAM = 5140 - SYS_SCHED_SETSCHEDULER = 5141 - SYS_SCHED_GETSCHEDULER = 5142 - SYS_SCHED_GET_PRIORITY_MAX = 5143 - SYS_SCHED_GET_PRIORITY_MIN = 5144 - SYS_SCHED_RR_GET_INTERVAL = 5145 - SYS_MLOCK = 5146 - SYS_MUNLOCK = 5147 - SYS_MLOCKALL = 5148 - SYS_MUNLOCKALL = 5149 - SYS_VHANGUP = 5150 - SYS_PIVOT_ROOT = 5151 - SYS__SYSCTL = 5152 - SYS_PRCTL = 5153 - SYS_ADJTIMEX = 5154 - SYS_SETRLIMIT = 5155 - SYS_CHROOT = 5156 - SYS_SYNC = 5157 - SYS_ACCT = 5158 - SYS_SETTIMEOFDAY = 5159 - SYS_MOUNT = 5160 - SYS_UMOUNT2 = 5161 - SYS_SWAPON = 5162 - SYS_SWAPOFF = 5163 - SYS_REBOOT = 5164 - SYS_SETHOSTNAME = 5165 - SYS_SETDOMAINNAME = 5166 - SYS_CREATE_MODULE = 5167 - SYS_INIT_MODULE = 5168 - SYS_DELETE_MODULE = 5169 - SYS_GET_KERNEL_SYMS = 5170 - SYS_QUERY_MODULE = 5171 - SYS_QUOTACTL = 5172 - SYS_NFSSERVCTL = 5173 - SYS_GETPMSG = 5174 - SYS_PUTPMSG = 5175 - SYS_AFS_SYSCALL = 5176 - SYS_RESERVED177 = 5177 - SYS_GETTID = 5178 - SYS_READAHEAD = 5179 - SYS_SETXATTR = 5180 - SYS_LSETXATTR = 5181 - SYS_FSETXATTR = 5182 - SYS_GETXATTR = 5183 - SYS_LGETXATTR = 5184 - SYS_FGETXATTR = 5185 - SYS_LISTXATTR = 5186 - SYS_LLISTXATTR = 5187 - SYS_FLISTXATTR = 5188 - SYS_REMOVEXATTR = 5189 - SYS_LREMOVEXATTR = 5190 - SYS_FREMOVEXATTR = 5191 - SYS_TKILL = 5192 - SYS_RESERVED193 = 5193 - SYS_FUTEX = 5194 - SYS_SCHED_SETAFFINITY = 5195 - SYS_SCHED_GETAFFINITY = 5196 - SYS_CACHEFLUSH = 5197 - SYS_CACHECTL = 5198 - SYS_SYSMIPS = 5199 - SYS_IO_SETUP = 5200 - SYS_IO_DESTROY = 5201 - SYS_IO_GETEVENTS = 5202 - SYS_IO_SUBMIT = 5203 - SYS_IO_CANCEL = 5204 - SYS_EXIT_GROUP = 5205 - SYS_LOOKUP_DCOOKIE = 5206 - SYS_EPOLL_CREATE = 5207 - SYS_EPOLL_CTL = 5208 - SYS_EPOLL_WAIT = 5209 - SYS_REMAP_FILE_PAGES = 5210 - SYS_RT_SIGRETURN = 5211 - SYS_SET_TID_ADDRESS = 5212 - SYS_RESTART_SYSCALL = 5213 - SYS_SEMTIMEDOP = 5214 - SYS_FADVISE64 = 5215 - SYS_TIMER_CREATE = 5216 - SYS_TIMER_SETTIME = 5217 - SYS_TIMER_GETTIME = 5218 - SYS_TIMER_GETOVERRUN = 5219 - SYS_TIMER_DELETE = 5220 - SYS_CLOCK_SETTIME = 5221 - SYS_CLOCK_GETTIME = 5222 - SYS_CLOCK_GETRES = 5223 - SYS_CLOCK_NANOSLEEP = 5224 - SYS_TGKILL = 5225 - SYS_UTIMES = 5226 - SYS_MBIND = 5227 - SYS_GET_MEMPOLICY = 5228 - SYS_SET_MEMPOLICY = 5229 - SYS_MQ_OPEN = 5230 - SYS_MQ_UNLINK = 5231 - SYS_MQ_TIMEDSEND = 5232 - SYS_MQ_TIMEDRECEIVE = 5233 - SYS_MQ_NOTIFY = 5234 - SYS_MQ_GETSETATTR = 5235 - SYS_VSERVER = 5236 - SYS_WAITID = 5237 - SYS_ADD_KEY = 5239 - SYS_REQUEST_KEY = 5240 - SYS_KEYCTL = 5241 - SYS_SET_THREAD_AREA = 5242 - SYS_INOTIFY_INIT = 5243 - SYS_INOTIFY_ADD_WATCH = 5244 - SYS_INOTIFY_RM_WATCH = 5245 - SYS_MIGRATE_PAGES = 5246 - SYS_OPENAT = 5247 - SYS_MKDIRAT = 5248 - SYS_MKNODAT = 5249 - SYS_FCHOWNAT = 5250 - SYS_FUTIMESAT = 5251 - SYS_NEWFSTATAT = 5252 - SYS_UNLINKAT = 5253 - SYS_RENAMEAT = 5254 - SYS_LINKAT = 5255 - SYS_SYMLINKAT = 5256 - SYS_READLINKAT = 5257 - SYS_FCHMODAT = 5258 - SYS_FACCESSAT = 5259 - SYS_PSELECT6 = 5260 - SYS_PPOLL = 5261 - SYS_UNSHARE = 5262 - SYS_SPLICE = 5263 - SYS_SYNC_FILE_RANGE = 5264 - SYS_TEE = 5265 - SYS_VMSPLICE = 5266 - SYS_MOVE_PAGES = 5267 - SYS_SET_ROBUST_LIST = 5268 - SYS_GET_ROBUST_LIST = 5269 - SYS_KEXEC_LOAD = 5270 - SYS_GETCPU = 5271 - SYS_EPOLL_PWAIT = 5272 - SYS_IOPRIO_SET = 5273 - SYS_IOPRIO_GET = 5274 - SYS_UTIMENSAT = 5275 - SYS_SIGNALFD = 5276 - SYS_TIMERFD = 5277 - SYS_EVENTFD = 5278 - SYS_FALLOCATE = 5279 - SYS_TIMERFD_CREATE = 5280 - SYS_TIMERFD_GETTIME = 5281 - SYS_TIMERFD_SETTIME = 5282 - SYS_SIGNALFD4 = 5283 - SYS_EVENTFD2 = 5284 - SYS_EPOLL_CREATE1 = 5285 - SYS_DUP3 = 5286 - SYS_PIPE2 = 5287 - SYS_INOTIFY_INIT1 = 5288 - SYS_PREADV = 5289 - SYS_PWRITEV = 5290 - SYS_RT_TGSIGQUEUEINFO = 5291 - SYS_PERF_EVENT_OPEN = 5292 - SYS_ACCEPT4 = 5293 - SYS_RECVMMSG = 5294 - SYS_FANOTIFY_INIT = 5295 - SYS_FANOTIFY_MARK = 5296 - SYS_PRLIMIT64 = 5297 - SYS_NAME_TO_HANDLE_AT = 5298 - SYS_OPEN_BY_HANDLE_AT = 5299 - SYS_CLOCK_ADJTIME = 5300 - SYS_SYNCFS = 5301 - SYS_SENDMMSG = 5302 - SYS_SETNS = 5303 - SYS_PROCESS_VM_READV = 5304 - SYS_PROCESS_VM_WRITEV = 5305 - SYS_KCMP = 5306 - SYS_FINIT_MODULE = 5307 - SYS_GETDENTS64 = 5308 - SYS_SCHED_SETATTR = 5309 - SYS_SCHED_GETATTR = 5310 - SYS_RENAMEAT2 = 5311 - SYS_SECCOMP = 5312 - SYS_GETRANDOM = 5313 - SYS_MEMFD_CREATE = 5314 - SYS_BPF = 5315 - SYS_EXECVEAT = 5316 - SYS_USERFAULTFD = 5317 - SYS_MEMBARRIER = 5318 - SYS_MLOCK2 = 5319 - SYS_COPY_FILE_RANGE = 5320 - SYS_PREADV2 = 5321 - SYS_PWRITEV2 = 5322 - SYS_PKEY_MPROTECT = 5323 - SYS_PKEY_ALLOC = 5324 - SYS_PKEY_FREE = 5325 - SYS_STATX = 5326 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go deleted file mode 100644 index 62ccac4..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ /dev/null @@ -1,375 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mipsle,linux - -package unix - -const ( - SYS_SYSCALL = 4000 - SYS_EXIT = 4001 - SYS_FORK = 4002 - SYS_READ = 4003 - SYS_WRITE = 4004 - SYS_OPEN = 4005 - SYS_CLOSE = 4006 - SYS_WAITPID = 4007 - SYS_CREAT = 4008 - SYS_LINK = 4009 - SYS_UNLINK = 4010 - SYS_EXECVE = 4011 - SYS_CHDIR = 4012 - SYS_TIME = 4013 - SYS_MKNOD = 4014 - SYS_CHMOD = 4015 - SYS_LCHOWN = 4016 - SYS_BREAK = 4017 - SYS_UNUSED18 = 4018 - SYS_LSEEK = 4019 - SYS_GETPID = 4020 - SYS_MOUNT = 4021 - SYS_UMOUNT = 4022 - SYS_SETUID = 4023 - SYS_GETUID = 4024 - SYS_STIME = 4025 - SYS_PTRACE = 4026 - SYS_ALARM = 4027 - SYS_UNUSED28 = 4028 - SYS_PAUSE = 4029 - SYS_UTIME = 4030 - SYS_STTY = 4031 - SYS_GTTY = 4032 - SYS_ACCESS = 4033 - SYS_NICE = 4034 - SYS_FTIME = 4035 - SYS_SYNC = 4036 - SYS_KILL = 4037 - SYS_RENAME = 4038 - SYS_MKDIR = 4039 - SYS_RMDIR = 4040 - SYS_DUP = 4041 - SYS_PIPE = 4042 - SYS_TIMES = 4043 - SYS_PROF = 4044 - SYS_BRK = 4045 - SYS_SETGID = 4046 - SYS_GETGID = 4047 - SYS_SIGNAL = 4048 - SYS_GETEUID = 4049 - SYS_GETEGID = 4050 - SYS_ACCT = 4051 - SYS_UMOUNT2 = 4052 - SYS_LOCK = 4053 - SYS_IOCTL = 4054 - SYS_FCNTL = 4055 - SYS_MPX = 4056 - SYS_SETPGID = 4057 - SYS_ULIMIT = 4058 - SYS_UNUSED59 = 4059 - SYS_UMASK = 4060 - SYS_CHROOT = 4061 - SYS_USTAT = 4062 - SYS_DUP2 = 4063 - SYS_GETPPID = 4064 - SYS_GETPGRP = 4065 - SYS_SETSID = 4066 - SYS_SIGACTION = 4067 - SYS_SGETMASK = 4068 - SYS_SSETMASK = 4069 - SYS_SETREUID = 4070 - SYS_SETREGID = 4071 - SYS_SIGSUSPEND = 4072 - SYS_SIGPENDING = 4073 - SYS_SETHOSTNAME = 4074 - SYS_SETRLIMIT = 4075 - SYS_GETRLIMIT = 4076 - SYS_GETRUSAGE = 4077 - SYS_GETTIMEOFDAY = 4078 - SYS_SETTIMEOFDAY = 4079 - SYS_GETGROUPS = 4080 - SYS_SETGROUPS = 4081 - SYS_RESERVED82 = 4082 - SYS_SYMLINK = 4083 - SYS_UNUSED84 = 4084 - SYS_READLINK = 4085 - SYS_USELIB = 4086 - SYS_SWAPON = 4087 - SYS_REBOOT = 4088 - SYS_READDIR = 4089 - SYS_MMAP = 4090 - SYS_MUNMAP = 4091 - SYS_TRUNCATE = 4092 - SYS_FTRUNCATE = 4093 - SYS_FCHMOD = 4094 - SYS_FCHOWN = 4095 - SYS_GETPRIORITY = 4096 - SYS_SETPRIORITY = 4097 - SYS_PROFIL = 4098 - SYS_STATFS = 4099 - SYS_FSTATFS = 4100 - SYS_IOPERM = 4101 - SYS_SOCKETCALL = 4102 - SYS_SYSLOG = 4103 - SYS_SETITIMER = 4104 - SYS_GETITIMER = 4105 - SYS_STAT = 4106 - SYS_LSTAT = 4107 - SYS_FSTAT = 4108 - SYS_UNUSED109 = 4109 - SYS_IOPL = 4110 - SYS_VHANGUP = 4111 - SYS_IDLE = 4112 - SYS_VM86 = 4113 - SYS_WAIT4 = 4114 - SYS_SWAPOFF = 4115 - SYS_SYSINFO = 4116 - SYS_IPC = 4117 - SYS_FSYNC = 4118 - SYS_SIGRETURN = 4119 - SYS_CLONE = 4120 - SYS_SETDOMAINNAME = 4121 - SYS_UNAME = 4122 - SYS_MODIFY_LDT = 4123 - SYS_ADJTIMEX = 4124 - SYS_MPROTECT = 4125 - SYS_SIGPROCMASK = 4126 - SYS_CREATE_MODULE = 4127 - SYS_INIT_MODULE = 4128 - SYS_DELETE_MODULE = 4129 - SYS_GET_KERNEL_SYMS = 4130 - SYS_QUOTACTL = 4131 - SYS_GETPGID = 4132 - SYS_FCHDIR = 4133 - SYS_BDFLUSH = 4134 - SYS_SYSFS = 4135 - SYS_PERSONALITY = 4136 - SYS_AFS_SYSCALL = 4137 - SYS_SETFSUID = 4138 - SYS_SETFSGID = 4139 - SYS__LLSEEK = 4140 - SYS_GETDENTS = 4141 - SYS__NEWSELECT = 4142 - SYS_FLOCK = 4143 - SYS_MSYNC = 4144 - SYS_READV = 4145 - SYS_WRITEV = 4146 - SYS_CACHEFLUSH = 4147 - SYS_CACHECTL = 4148 - SYS_SYSMIPS = 4149 - SYS_UNUSED150 = 4150 - SYS_GETSID = 4151 - SYS_FDATASYNC = 4152 - SYS__SYSCTL = 4153 - SYS_MLOCK = 4154 - SYS_MUNLOCK = 4155 - SYS_MLOCKALL = 4156 - SYS_MUNLOCKALL = 4157 - SYS_SCHED_SETPARAM = 4158 - SYS_SCHED_GETPARAM = 4159 - SYS_SCHED_SETSCHEDULER = 4160 - SYS_SCHED_GETSCHEDULER = 4161 - SYS_SCHED_YIELD = 4162 - SYS_SCHED_GET_PRIORITY_MAX = 4163 - SYS_SCHED_GET_PRIORITY_MIN = 4164 - SYS_SCHED_RR_GET_INTERVAL = 4165 - SYS_NANOSLEEP = 4166 - SYS_MREMAP = 4167 - SYS_ACCEPT = 4168 - SYS_BIND = 4169 - SYS_CONNECT = 4170 - SYS_GETPEERNAME = 4171 - SYS_GETSOCKNAME = 4172 - SYS_GETSOCKOPT = 4173 - SYS_LISTEN = 4174 - SYS_RECV = 4175 - SYS_RECVFROM = 4176 - SYS_RECVMSG = 4177 - SYS_SEND = 4178 - SYS_SENDMSG = 4179 - SYS_SENDTO = 4180 - SYS_SETSOCKOPT = 4181 - SYS_SHUTDOWN = 4182 - SYS_SOCKET = 4183 - SYS_SOCKETPAIR = 4184 - SYS_SETRESUID = 4185 - SYS_GETRESUID = 4186 - SYS_QUERY_MODULE = 4187 - SYS_POLL = 4188 - SYS_NFSSERVCTL = 4189 - SYS_SETRESGID = 4190 - SYS_GETRESGID = 4191 - SYS_PRCTL = 4192 - SYS_RT_SIGRETURN = 4193 - SYS_RT_SIGACTION = 4194 - SYS_RT_SIGPROCMASK = 4195 - SYS_RT_SIGPENDING = 4196 - SYS_RT_SIGTIMEDWAIT = 4197 - SYS_RT_SIGQUEUEINFO = 4198 - SYS_RT_SIGSUSPEND = 4199 - SYS_PREAD64 = 4200 - SYS_PWRITE64 = 4201 - SYS_CHOWN = 4202 - SYS_GETCWD = 4203 - SYS_CAPGET = 4204 - SYS_CAPSET = 4205 - SYS_SIGALTSTACK = 4206 - SYS_SENDFILE = 4207 - SYS_GETPMSG = 4208 - SYS_PUTPMSG = 4209 - SYS_MMAP2 = 4210 - SYS_TRUNCATE64 = 4211 - SYS_FTRUNCATE64 = 4212 - SYS_STAT64 = 4213 - SYS_LSTAT64 = 4214 - SYS_FSTAT64 = 4215 - SYS_PIVOT_ROOT = 4216 - SYS_MINCORE = 4217 - SYS_MADVISE = 4218 - SYS_GETDENTS64 = 4219 - SYS_FCNTL64 = 4220 - SYS_RESERVED221 = 4221 - SYS_GETTID = 4222 - SYS_READAHEAD = 4223 - SYS_SETXATTR = 4224 - SYS_LSETXATTR = 4225 - SYS_FSETXATTR = 4226 - SYS_GETXATTR = 4227 - SYS_LGETXATTR = 4228 - SYS_FGETXATTR = 4229 - SYS_LISTXATTR = 4230 - SYS_LLISTXATTR = 4231 - SYS_FLISTXATTR = 4232 - SYS_REMOVEXATTR = 4233 - SYS_LREMOVEXATTR = 4234 - SYS_FREMOVEXATTR = 4235 - SYS_TKILL = 4236 - SYS_SENDFILE64 = 4237 - SYS_FUTEX = 4238 - SYS_SCHED_SETAFFINITY = 4239 - SYS_SCHED_GETAFFINITY = 4240 - SYS_IO_SETUP = 4241 - SYS_IO_DESTROY = 4242 - SYS_IO_GETEVENTS = 4243 - SYS_IO_SUBMIT = 4244 - SYS_IO_CANCEL = 4245 - SYS_EXIT_GROUP = 4246 - SYS_LOOKUP_DCOOKIE = 4247 - SYS_EPOLL_CREATE = 4248 - SYS_EPOLL_CTL = 4249 - SYS_EPOLL_WAIT = 4250 - SYS_REMAP_FILE_PAGES = 4251 - SYS_SET_TID_ADDRESS = 4252 - SYS_RESTART_SYSCALL = 4253 - SYS_FADVISE64 = 4254 - SYS_STATFS64 = 4255 - SYS_FSTATFS64 = 4256 - SYS_TIMER_CREATE = 4257 - SYS_TIMER_SETTIME = 4258 - SYS_TIMER_GETTIME = 4259 - SYS_TIMER_GETOVERRUN = 4260 - SYS_TIMER_DELETE = 4261 - SYS_CLOCK_SETTIME = 4262 - SYS_CLOCK_GETTIME = 4263 - SYS_CLOCK_GETRES = 4264 - SYS_CLOCK_NANOSLEEP = 4265 - SYS_TGKILL = 4266 - SYS_UTIMES = 4267 - SYS_MBIND = 4268 - SYS_GET_MEMPOLICY = 4269 - SYS_SET_MEMPOLICY = 4270 - SYS_MQ_OPEN = 4271 - SYS_MQ_UNLINK = 4272 - SYS_MQ_TIMEDSEND = 4273 - SYS_MQ_TIMEDRECEIVE = 4274 - SYS_MQ_NOTIFY = 4275 - SYS_MQ_GETSETATTR = 4276 - SYS_VSERVER = 4277 - SYS_WAITID = 4278 - SYS_ADD_KEY = 4280 - SYS_REQUEST_KEY = 4281 - SYS_KEYCTL = 4282 - SYS_SET_THREAD_AREA = 4283 - SYS_INOTIFY_INIT = 4284 - SYS_INOTIFY_ADD_WATCH = 4285 - SYS_INOTIFY_RM_WATCH = 4286 - SYS_MIGRATE_PAGES = 4287 - SYS_OPENAT = 4288 - SYS_MKDIRAT = 4289 - SYS_MKNODAT = 4290 - SYS_FCHOWNAT = 4291 - SYS_FUTIMESAT = 4292 - SYS_FSTATAT64 = 4293 - SYS_UNLINKAT = 4294 - SYS_RENAMEAT = 4295 - SYS_LINKAT = 4296 - SYS_SYMLINKAT = 4297 - SYS_READLINKAT = 4298 - SYS_FCHMODAT = 4299 - SYS_FACCESSAT = 4300 - SYS_PSELECT6 = 4301 - SYS_PPOLL = 4302 - SYS_UNSHARE = 4303 - SYS_SPLICE = 4304 - SYS_SYNC_FILE_RANGE = 4305 - SYS_TEE = 4306 - SYS_VMSPLICE = 4307 - SYS_MOVE_PAGES = 4308 - SYS_SET_ROBUST_LIST = 4309 - SYS_GET_ROBUST_LIST = 4310 - SYS_KEXEC_LOAD = 4311 - SYS_GETCPU = 4312 - SYS_EPOLL_PWAIT = 4313 - SYS_IOPRIO_SET = 4314 - SYS_IOPRIO_GET = 4315 - SYS_UTIMENSAT = 4316 - SYS_SIGNALFD = 4317 - SYS_TIMERFD = 4318 - SYS_EVENTFD = 4319 - SYS_FALLOCATE = 4320 - SYS_TIMERFD_CREATE = 4321 - SYS_TIMERFD_GETTIME = 4322 - SYS_TIMERFD_SETTIME = 4323 - SYS_SIGNALFD4 = 4324 - SYS_EVENTFD2 = 4325 - SYS_EPOLL_CREATE1 = 4326 - SYS_DUP3 = 4327 - SYS_PIPE2 = 4328 - SYS_INOTIFY_INIT1 = 4329 - SYS_PREADV = 4330 - SYS_PWRITEV = 4331 - SYS_RT_TGSIGQUEUEINFO = 4332 - SYS_PERF_EVENT_OPEN = 4333 - SYS_ACCEPT4 = 4334 - SYS_RECVMMSG = 4335 - SYS_FANOTIFY_INIT = 4336 - SYS_FANOTIFY_MARK = 4337 - SYS_PRLIMIT64 = 4338 - SYS_NAME_TO_HANDLE_AT = 4339 - SYS_OPEN_BY_HANDLE_AT = 4340 - SYS_CLOCK_ADJTIME = 4341 - SYS_SYNCFS = 4342 - SYS_SENDMMSG = 4343 - SYS_SETNS = 4344 - SYS_PROCESS_VM_READV = 4345 - SYS_PROCESS_VM_WRITEV = 4346 - SYS_KCMP = 4347 - SYS_FINIT_MODULE = 4348 - SYS_SCHED_SETATTR = 4349 - SYS_SCHED_GETATTR = 4350 - SYS_RENAMEAT2 = 4351 - SYS_SECCOMP = 4352 - SYS_GETRANDOM = 4353 - SYS_MEMFD_CREATE = 4354 - SYS_BPF = 4355 - SYS_EXECVEAT = 4356 - SYS_USERFAULTFD = 4357 - SYS_MEMBARRIER = 4358 - SYS_MLOCK2 = 4359 - SYS_COPY_FILE_RANGE = 4360 - SYS_PREADV2 = 4361 - SYS_PWRITEV2 = 4362 - SYS_PKEY_MPROTECT = 4363 - SYS_PKEY_ALLOC = 4364 - SYS_PKEY_FREE = 4365 - SYS_STATX = 4366 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go deleted file mode 100644 index dfe5dab..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ /dev/null @@ -1,370 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64,linux - -package unix - -const ( - SYS_RESTART_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAITPID = 7 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECVE = 11 - SYS_CHDIR = 12 - SYS_TIME = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LCHOWN = 16 - SYS_BREAK = 17 - SYS_OLDSTAT = 18 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_MOUNT = 21 - SYS_UMOUNT = 22 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_STIME = 25 - SYS_PTRACE = 26 - SYS_ALARM = 27 - SYS_OLDFSTAT = 28 - SYS_PAUSE = 29 - SYS_UTIME = 30 - SYS_STTY = 31 - SYS_GTTY = 32 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_FTIME = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_RENAME = 38 - SYS_MKDIR = 39 - SYS_RMDIR = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_PROF = 44 - SYS_BRK = 45 - SYS_SETGID = 46 - SYS_GETGID = 47 - SYS_SIGNAL = 48 - SYS_GETEUID = 49 - SYS_GETEGID = 50 - SYS_ACCT = 51 - SYS_UMOUNT2 = 52 - SYS_LOCK = 53 - SYS_IOCTL = 54 - SYS_FCNTL = 55 - SYS_MPX = 56 - SYS_SETPGID = 57 - SYS_ULIMIT = 58 - SYS_OLDOLDUNAME = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_USTAT = 62 - SYS_DUP2 = 63 - SYS_GETPPID = 64 - SYS_GETPGRP = 65 - SYS_SETSID = 66 - SYS_SIGACTION = 67 - SYS_SGETMASK = 68 - SYS_SSETMASK = 69 - SYS_SETREUID = 70 - SYS_SETREGID = 71 - SYS_SIGSUSPEND = 72 - SYS_SIGPENDING = 73 - SYS_SETHOSTNAME = 74 - SYS_SETRLIMIT = 75 - SYS_GETRLIMIT = 76 - SYS_GETRUSAGE = 77 - SYS_GETTIMEOFDAY = 78 - SYS_SETTIMEOFDAY = 79 - SYS_GETGROUPS = 80 - SYS_SETGROUPS = 81 - SYS_SELECT = 82 - SYS_SYMLINK = 83 - SYS_OLDLSTAT = 84 - SYS_READLINK = 85 - SYS_USELIB = 86 - SYS_SWAPON = 87 - SYS_REBOOT = 88 - SYS_READDIR = 89 - SYS_MMAP = 90 - SYS_MUNMAP = 91 - SYS_TRUNCATE = 92 - SYS_FTRUNCATE = 93 - SYS_FCHMOD = 94 - SYS_FCHOWN = 95 - SYS_GETPRIORITY = 96 - SYS_SETPRIORITY = 97 - SYS_PROFIL = 98 - SYS_STATFS = 99 - SYS_FSTATFS = 100 - SYS_IOPERM = 101 - SYS_SOCKETCALL = 102 - SYS_SYSLOG = 103 - SYS_SETITIMER = 104 - SYS_GETITIMER = 105 - SYS_STAT = 106 - SYS_LSTAT = 107 - SYS_FSTAT = 108 - SYS_OLDUNAME = 109 - SYS_IOPL = 110 - SYS_VHANGUP = 111 - SYS_IDLE = 112 - SYS_VM86 = 113 - SYS_WAIT4 = 114 - SYS_SWAPOFF = 115 - SYS_SYSINFO = 116 - SYS_IPC = 117 - SYS_FSYNC = 118 - SYS_SIGRETURN = 119 - SYS_CLONE = 120 - SYS_SETDOMAINNAME = 121 - SYS_UNAME = 122 - SYS_MODIFY_LDT = 123 - SYS_ADJTIMEX = 124 - SYS_MPROTECT = 125 - SYS_SIGPROCMASK = 126 - SYS_CREATE_MODULE = 127 - SYS_INIT_MODULE = 128 - SYS_DELETE_MODULE = 129 - SYS_GET_KERNEL_SYMS = 130 - SYS_QUOTACTL = 131 - SYS_GETPGID = 132 - SYS_FCHDIR = 133 - SYS_BDFLUSH = 134 - SYS_SYSFS = 135 - SYS_PERSONALITY = 136 - SYS_AFS_SYSCALL = 137 - SYS_SETFSUID = 138 - SYS_SETFSGID = 139 - SYS__LLSEEK = 140 - SYS_GETDENTS = 141 - SYS__NEWSELECT = 142 - SYS_FLOCK = 143 - SYS_MSYNC = 144 - SYS_READV = 145 - SYS_WRITEV = 146 - SYS_GETSID = 147 - SYS_FDATASYNC = 148 - SYS__SYSCTL = 149 - SYS_MLOCK = 150 - SYS_MUNLOCK = 151 - SYS_MLOCKALL = 152 - SYS_MUNLOCKALL = 153 - SYS_SCHED_SETPARAM = 154 - SYS_SCHED_GETPARAM = 155 - SYS_SCHED_SETSCHEDULER = 156 - SYS_SCHED_GETSCHEDULER = 157 - SYS_SCHED_YIELD = 158 - SYS_SCHED_GET_PRIORITY_MAX = 159 - SYS_SCHED_GET_PRIORITY_MIN = 160 - SYS_SCHED_RR_GET_INTERVAL = 161 - SYS_NANOSLEEP = 162 - SYS_MREMAP = 163 - SYS_SETRESUID = 164 - SYS_GETRESUID = 165 - SYS_QUERY_MODULE = 166 - SYS_POLL = 167 - SYS_NFSSERVCTL = 168 - SYS_SETRESGID = 169 - SYS_GETRESGID = 170 - SYS_PRCTL = 171 - SYS_RT_SIGRETURN = 172 - SYS_RT_SIGACTION = 173 - SYS_RT_SIGPROCMASK = 174 - SYS_RT_SIGPENDING = 175 - SYS_RT_SIGTIMEDWAIT = 176 - SYS_RT_SIGQUEUEINFO = 177 - SYS_RT_SIGSUSPEND = 178 - SYS_PREAD64 = 179 - SYS_PWRITE64 = 180 - SYS_CHOWN = 181 - SYS_GETCWD = 182 - SYS_CAPGET = 183 - SYS_CAPSET = 184 - SYS_SIGALTSTACK = 185 - SYS_SENDFILE = 186 - SYS_GETPMSG = 187 - SYS_PUTPMSG = 188 - SYS_VFORK = 189 - SYS_UGETRLIMIT = 190 - SYS_READAHEAD = 191 - SYS_PCICONFIG_READ = 198 - SYS_PCICONFIG_WRITE = 199 - SYS_PCICONFIG_IOBASE = 200 - SYS_MULTIPLEXER = 201 - SYS_GETDENTS64 = 202 - SYS_PIVOT_ROOT = 203 - SYS_MADVISE = 205 - SYS_MINCORE = 206 - SYS_GETTID = 207 - SYS_TKILL = 208 - SYS_SETXATTR = 209 - SYS_LSETXATTR = 210 - SYS_FSETXATTR = 211 - SYS_GETXATTR = 212 - SYS_LGETXATTR = 213 - SYS_FGETXATTR = 214 - SYS_LISTXATTR = 215 - SYS_LLISTXATTR = 216 - SYS_FLISTXATTR = 217 - SYS_REMOVEXATTR = 218 - SYS_LREMOVEXATTR = 219 - SYS_FREMOVEXATTR = 220 - SYS_FUTEX = 221 - SYS_SCHED_SETAFFINITY = 222 - SYS_SCHED_GETAFFINITY = 223 - SYS_TUXCALL = 225 - SYS_IO_SETUP = 227 - SYS_IO_DESTROY = 228 - SYS_IO_GETEVENTS = 229 - SYS_IO_SUBMIT = 230 - SYS_IO_CANCEL = 231 - SYS_SET_TID_ADDRESS = 232 - SYS_FADVISE64 = 233 - SYS_EXIT_GROUP = 234 - SYS_LOOKUP_DCOOKIE = 235 - SYS_EPOLL_CREATE = 236 - SYS_EPOLL_CTL = 237 - SYS_EPOLL_WAIT = 238 - SYS_REMAP_FILE_PAGES = 239 - SYS_TIMER_CREATE = 240 - SYS_TIMER_SETTIME = 241 - SYS_TIMER_GETTIME = 242 - SYS_TIMER_GETOVERRUN = 243 - SYS_TIMER_DELETE = 244 - SYS_CLOCK_SETTIME = 245 - SYS_CLOCK_GETTIME = 246 - SYS_CLOCK_GETRES = 247 - SYS_CLOCK_NANOSLEEP = 248 - SYS_SWAPCONTEXT = 249 - SYS_TGKILL = 250 - SYS_UTIMES = 251 - SYS_STATFS64 = 252 - SYS_FSTATFS64 = 253 - SYS_RTAS = 255 - SYS_SYS_DEBUG_SETCONTEXT = 256 - SYS_MIGRATE_PAGES = 258 - SYS_MBIND = 259 - SYS_GET_MEMPOLICY = 260 - SYS_SET_MEMPOLICY = 261 - SYS_MQ_OPEN = 262 - SYS_MQ_UNLINK = 263 - SYS_MQ_TIMEDSEND = 264 - SYS_MQ_TIMEDRECEIVE = 265 - SYS_MQ_NOTIFY = 266 - SYS_MQ_GETSETATTR = 267 - SYS_KEXEC_LOAD = 268 - SYS_ADD_KEY = 269 - SYS_REQUEST_KEY = 270 - SYS_KEYCTL = 271 - SYS_WAITID = 272 - SYS_IOPRIO_SET = 273 - SYS_IOPRIO_GET = 274 - SYS_INOTIFY_INIT = 275 - SYS_INOTIFY_ADD_WATCH = 276 - SYS_INOTIFY_RM_WATCH = 277 - SYS_SPU_RUN = 278 - SYS_SPU_CREATE = 279 - SYS_PSELECT6 = 280 - SYS_PPOLL = 281 - SYS_UNSHARE = 282 - SYS_SPLICE = 283 - SYS_TEE = 284 - SYS_VMSPLICE = 285 - SYS_OPENAT = 286 - SYS_MKDIRAT = 287 - SYS_MKNODAT = 288 - SYS_FCHOWNAT = 289 - SYS_FUTIMESAT = 290 - SYS_NEWFSTATAT = 291 - SYS_UNLINKAT = 292 - SYS_RENAMEAT = 293 - SYS_LINKAT = 294 - SYS_SYMLINKAT = 295 - SYS_READLINKAT = 296 - SYS_FCHMODAT = 297 - SYS_FACCESSAT = 298 - SYS_GET_ROBUST_LIST = 299 - SYS_SET_ROBUST_LIST = 300 - SYS_MOVE_PAGES = 301 - SYS_GETCPU = 302 - SYS_EPOLL_PWAIT = 303 - SYS_UTIMENSAT = 304 - SYS_SIGNALFD = 305 - SYS_TIMERFD_CREATE = 306 - SYS_EVENTFD = 307 - SYS_SYNC_FILE_RANGE2 = 308 - SYS_FALLOCATE = 309 - SYS_SUBPAGE_PROT = 310 - SYS_TIMERFD_SETTIME = 311 - SYS_TIMERFD_GETTIME = 312 - SYS_SIGNALFD4 = 313 - SYS_EVENTFD2 = 314 - SYS_EPOLL_CREATE1 = 315 - SYS_DUP3 = 316 - SYS_PIPE2 = 317 - SYS_INOTIFY_INIT1 = 318 - SYS_PERF_EVENT_OPEN = 319 - SYS_PREADV = 320 - SYS_PWRITEV = 321 - SYS_RT_TGSIGQUEUEINFO = 322 - SYS_FANOTIFY_INIT = 323 - SYS_FANOTIFY_MARK = 324 - SYS_PRLIMIT64 = 325 - SYS_SOCKET = 326 - SYS_BIND = 327 - SYS_CONNECT = 328 - SYS_LISTEN = 329 - SYS_ACCEPT = 330 - SYS_GETSOCKNAME = 331 - SYS_GETPEERNAME = 332 - SYS_SOCKETPAIR = 333 - SYS_SEND = 334 - SYS_SENDTO = 335 - SYS_RECV = 336 - SYS_RECVFROM = 337 - SYS_SHUTDOWN = 338 - SYS_SETSOCKOPT = 339 - SYS_GETSOCKOPT = 340 - SYS_SENDMSG = 341 - SYS_RECVMSG = 342 - SYS_RECVMMSG = 343 - SYS_ACCEPT4 = 344 - SYS_NAME_TO_HANDLE_AT = 345 - SYS_OPEN_BY_HANDLE_AT = 346 - SYS_CLOCK_ADJTIME = 347 - SYS_SYNCFS = 348 - SYS_SENDMMSG = 349 - SYS_SETNS = 350 - SYS_PROCESS_VM_READV = 351 - SYS_PROCESS_VM_WRITEV = 352 - SYS_FINIT_MODULE = 353 - SYS_KCMP = 354 - SYS_SCHED_SETATTR = 355 - SYS_SCHED_GETATTR = 356 - SYS_RENAMEAT2 = 357 - SYS_SECCOMP = 358 - SYS_GETRANDOM = 359 - SYS_MEMFD_CREATE = 360 - SYS_BPF = 361 - SYS_EXECVEAT = 362 - SYS_SWITCH_ENDIAN = 363 - SYS_USERFAULTFD = 364 - SYS_MEMBARRIER = 365 - SYS_MLOCK2 = 378 - SYS_COPY_FILE_RANGE = 379 - SYS_PREADV2 = 380 - SYS_PWRITEV2 = 381 - SYS_KEXEC_FILE_LOAD = 382 - SYS_STATX = 383 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go deleted file mode 100644 index eca97f7..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ /dev/null @@ -1,370 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64le,linux - -package unix - -const ( - SYS_RESTART_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAITPID = 7 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECVE = 11 - SYS_CHDIR = 12 - SYS_TIME = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LCHOWN = 16 - SYS_BREAK = 17 - SYS_OLDSTAT = 18 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_MOUNT = 21 - SYS_UMOUNT = 22 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_STIME = 25 - SYS_PTRACE = 26 - SYS_ALARM = 27 - SYS_OLDFSTAT = 28 - SYS_PAUSE = 29 - SYS_UTIME = 30 - SYS_STTY = 31 - SYS_GTTY = 32 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_FTIME = 35 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_RENAME = 38 - SYS_MKDIR = 39 - SYS_RMDIR = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_PROF = 44 - SYS_BRK = 45 - SYS_SETGID = 46 - SYS_GETGID = 47 - SYS_SIGNAL = 48 - SYS_GETEUID = 49 - SYS_GETEGID = 50 - SYS_ACCT = 51 - SYS_UMOUNT2 = 52 - SYS_LOCK = 53 - SYS_IOCTL = 54 - SYS_FCNTL = 55 - SYS_MPX = 56 - SYS_SETPGID = 57 - SYS_ULIMIT = 58 - SYS_OLDOLDUNAME = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_USTAT = 62 - SYS_DUP2 = 63 - SYS_GETPPID = 64 - SYS_GETPGRP = 65 - SYS_SETSID = 66 - SYS_SIGACTION = 67 - SYS_SGETMASK = 68 - SYS_SSETMASK = 69 - SYS_SETREUID = 70 - SYS_SETREGID = 71 - SYS_SIGSUSPEND = 72 - SYS_SIGPENDING = 73 - SYS_SETHOSTNAME = 74 - SYS_SETRLIMIT = 75 - SYS_GETRLIMIT = 76 - SYS_GETRUSAGE = 77 - SYS_GETTIMEOFDAY = 78 - SYS_SETTIMEOFDAY = 79 - SYS_GETGROUPS = 80 - SYS_SETGROUPS = 81 - SYS_SELECT = 82 - SYS_SYMLINK = 83 - SYS_OLDLSTAT = 84 - SYS_READLINK = 85 - SYS_USELIB = 86 - SYS_SWAPON = 87 - SYS_REBOOT = 88 - SYS_READDIR = 89 - SYS_MMAP = 90 - SYS_MUNMAP = 91 - SYS_TRUNCATE = 92 - SYS_FTRUNCATE = 93 - SYS_FCHMOD = 94 - SYS_FCHOWN = 95 - SYS_GETPRIORITY = 96 - SYS_SETPRIORITY = 97 - SYS_PROFIL = 98 - SYS_STATFS = 99 - SYS_FSTATFS = 100 - SYS_IOPERM = 101 - SYS_SOCKETCALL = 102 - SYS_SYSLOG = 103 - SYS_SETITIMER = 104 - SYS_GETITIMER = 105 - SYS_STAT = 106 - SYS_LSTAT = 107 - SYS_FSTAT = 108 - SYS_OLDUNAME = 109 - SYS_IOPL = 110 - SYS_VHANGUP = 111 - SYS_IDLE = 112 - SYS_VM86 = 113 - SYS_WAIT4 = 114 - SYS_SWAPOFF = 115 - SYS_SYSINFO = 116 - SYS_IPC = 117 - SYS_FSYNC = 118 - SYS_SIGRETURN = 119 - SYS_CLONE = 120 - SYS_SETDOMAINNAME = 121 - SYS_UNAME = 122 - SYS_MODIFY_LDT = 123 - SYS_ADJTIMEX = 124 - SYS_MPROTECT = 125 - SYS_SIGPROCMASK = 126 - SYS_CREATE_MODULE = 127 - SYS_INIT_MODULE = 128 - SYS_DELETE_MODULE = 129 - SYS_GET_KERNEL_SYMS = 130 - SYS_QUOTACTL = 131 - SYS_GETPGID = 132 - SYS_FCHDIR = 133 - SYS_BDFLUSH = 134 - SYS_SYSFS = 135 - SYS_PERSONALITY = 136 - SYS_AFS_SYSCALL = 137 - SYS_SETFSUID = 138 - SYS_SETFSGID = 139 - SYS__LLSEEK = 140 - SYS_GETDENTS = 141 - SYS__NEWSELECT = 142 - SYS_FLOCK = 143 - SYS_MSYNC = 144 - SYS_READV = 145 - SYS_WRITEV = 146 - SYS_GETSID = 147 - SYS_FDATASYNC = 148 - SYS__SYSCTL = 149 - SYS_MLOCK = 150 - SYS_MUNLOCK = 151 - SYS_MLOCKALL = 152 - SYS_MUNLOCKALL = 153 - SYS_SCHED_SETPARAM = 154 - SYS_SCHED_GETPARAM = 155 - SYS_SCHED_SETSCHEDULER = 156 - SYS_SCHED_GETSCHEDULER = 157 - SYS_SCHED_YIELD = 158 - SYS_SCHED_GET_PRIORITY_MAX = 159 - SYS_SCHED_GET_PRIORITY_MIN = 160 - SYS_SCHED_RR_GET_INTERVAL = 161 - SYS_NANOSLEEP = 162 - SYS_MREMAP = 163 - SYS_SETRESUID = 164 - SYS_GETRESUID = 165 - SYS_QUERY_MODULE = 166 - SYS_POLL = 167 - SYS_NFSSERVCTL = 168 - SYS_SETRESGID = 169 - SYS_GETRESGID = 170 - SYS_PRCTL = 171 - SYS_RT_SIGRETURN = 172 - SYS_RT_SIGACTION = 173 - SYS_RT_SIGPROCMASK = 174 - SYS_RT_SIGPENDING = 175 - SYS_RT_SIGTIMEDWAIT = 176 - SYS_RT_SIGQUEUEINFO = 177 - SYS_RT_SIGSUSPEND = 178 - SYS_PREAD64 = 179 - SYS_PWRITE64 = 180 - SYS_CHOWN = 181 - SYS_GETCWD = 182 - SYS_CAPGET = 183 - SYS_CAPSET = 184 - SYS_SIGALTSTACK = 185 - SYS_SENDFILE = 186 - SYS_GETPMSG = 187 - SYS_PUTPMSG = 188 - SYS_VFORK = 189 - SYS_UGETRLIMIT = 190 - SYS_READAHEAD = 191 - SYS_PCICONFIG_READ = 198 - SYS_PCICONFIG_WRITE = 199 - SYS_PCICONFIG_IOBASE = 200 - SYS_MULTIPLEXER = 201 - SYS_GETDENTS64 = 202 - SYS_PIVOT_ROOT = 203 - SYS_MADVISE = 205 - SYS_MINCORE = 206 - SYS_GETTID = 207 - SYS_TKILL = 208 - SYS_SETXATTR = 209 - SYS_LSETXATTR = 210 - SYS_FSETXATTR = 211 - SYS_GETXATTR = 212 - SYS_LGETXATTR = 213 - SYS_FGETXATTR = 214 - SYS_LISTXATTR = 215 - SYS_LLISTXATTR = 216 - SYS_FLISTXATTR = 217 - SYS_REMOVEXATTR = 218 - SYS_LREMOVEXATTR = 219 - SYS_FREMOVEXATTR = 220 - SYS_FUTEX = 221 - SYS_SCHED_SETAFFINITY = 222 - SYS_SCHED_GETAFFINITY = 223 - SYS_TUXCALL = 225 - SYS_IO_SETUP = 227 - SYS_IO_DESTROY = 228 - SYS_IO_GETEVENTS = 229 - SYS_IO_SUBMIT = 230 - SYS_IO_CANCEL = 231 - SYS_SET_TID_ADDRESS = 232 - SYS_FADVISE64 = 233 - SYS_EXIT_GROUP = 234 - SYS_LOOKUP_DCOOKIE = 235 - SYS_EPOLL_CREATE = 236 - SYS_EPOLL_CTL = 237 - SYS_EPOLL_WAIT = 238 - SYS_REMAP_FILE_PAGES = 239 - SYS_TIMER_CREATE = 240 - SYS_TIMER_SETTIME = 241 - SYS_TIMER_GETTIME = 242 - SYS_TIMER_GETOVERRUN = 243 - SYS_TIMER_DELETE = 244 - SYS_CLOCK_SETTIME = 245 - SYS_CLOCK_GETTIME = 246 - SYS_CLOCK_GETRES = 247 - SYS_CLOCK_NANOSLEEP = 248 - SYS_SWAPCONTEXT = 249 - SYS_TGKILL = 250 - SYS_UTIMES = 251 - SYS_STATFS64 = 252 - SYS_FSTATFS64 = 253 - SYS_RTAS = 255 - SYS_SYS_DEBUG_SETCONTEXT = 256 - SYS_MIGRATE_PAGES = 258 - SYS_MBIND = 259 - SYS_GET_MEMPOLICY = 260 - SYS_SET_MEMPOLICY = 261 - SYS_MQ_OPEN = 262 - SYS_MQ_UNLINK = 263 - SYS_MQ_TIMEDSEND = 264 - SYS_MQ_TIMEDRECEIVE = 265 - SYS_MQ_NOTIFY = 266 - SYS_MQ_GETSETATTR = 267 - SYS_KEXEC_LOAD = 268 - SYS_ADD_KEY = 269 - SYS_REQUEST_KEY = 270 - SYS_KEYCTL = 271 - SYS_WAITID = 272 - SYS_IOPRIO_SET = 273 - SYS_IOPRIO_GET = 274 - SYS_INOTIFY_INIT = 275 - SYS_INOTIFY_ADD_WATCH = 276 - SYS_INOTIFY_RM_WATCH = 277 - SYS_SPU_RUN = 278 - SYS_SPU_CREATE = 279 - SYS_PSELECT6 = 280 - SYS_PPOLL = 281 - SYS_UNSHARE = 282 - SYS_SPLICE = 283 - SYS_TEE = 284 - SYS_VMSPLICE = 285 - SYS_OPENAT = 286 - SYS_MKDIRAT = 287 - SYS_MKNODAT = 288 - SYS_FCHOWNAT = 289 - SYS_FUTIMESAT = 290 - SYS_NEWFSTATAT = 291 - SYS_UNLINKAT = 292 - SYS_RENAMEAT = 293 - SYS_LINKAT = 294 - SYS_SYMLINKAT = 295 - SYS_READLINKAT = 296 - SYS_FCHMODAT = 297 - SYS_FACCESSAT = 298 - SYS_GET_ROBUST_LIST = 299 - SYS_SET_ROBUST_LIST = 300 - SYS_MOVE_PAGES = 301 - SYS_GETCPU = 302 - SYS_EPOLL_PWAIT = 303 - SYS_UTIMENSAT = 304 - SYS_SIGNALFD = 305 - SYS_TIMERFD_CREATE = 306 - SYS_EVENTFD = 307 - SYS_SYNC_FILE_RANGE2 = 308 - SYS_FALLOCATE = 309 - SYS_SUBPAGE_PROT = 310 - SYS_TIMERFD_SETTIME = 311 - SYS_TIMERFD_GETTIME = 312 - SYS_SIGNALFD4 = 313 - SYS_EVENTFD2 = 314 - SYS_EPOLL_CREATE1 = 315 - SYS_DUP3 = 316 - SYS_PIPE2 = 317 - SYS_INOTIFY_INIT1 = 318 - SYS_PERF_EVENT_OPEN = 319 - SYS_PREADV = 320 - SYS_PWRITEV = 321 - SYS_RT_TGSIGQUEUEINFO = 322 - SYS_FANOTIFY_INIT = 323 - SYS_FANOTIFY_MARK = 324 - SYS_PRLIMIT64 = 325 - SYS_SOCKET = 326 - SYS_BIND = 327 - SYS_CONNECT = 328 - SYS_LISTEN = 329 - SYS_ACCEPT = 330 - SYS_GETSOCKNAME = 331 - SYS_GETPEERNAME = 332 - SYS_SOCKETPAIR = 333 - SYS_SEND = 334 - SYS_SENDTO = 335 - SYS_RECV = 336 - SYS_RECVFROM = 337 - SYS_SHUTDOWN = 338 - SYS_SETSOCKOPT = 339 - SYS_GETSOCKOPT = 340 - SYS_SENDMSG = 341 - SYS_RECVMSG = 342 - SYS_RECVMMSG = 343 - SYS_ACCEPT4 = 344 - SYS_NAME_TO_HANDLE_AT = 345 - SYS_OPEN_BY_HANDLE_AT = 346 - SYS_CLOCK_ADJTIME = 347 - SYS_SYNCFS = 348 - SYS_SENDMMSG = 349 - SYS_SETNS = 350 - SYS_PROCESS_VM_READV = 351 - SYS_PROCESS_VM_WRITEV = 352 - SYS_FINIT_MODULE = 353 - SYS_KCMP = 354 - SYS_SCHED_SETATTR = 355 - SYS_SCHED_GETATTR = 356 - SYS_RENAMEAT2 = 357 - SYS_SECCOMP = 358 - SYS_GETRANDOM = 359 - SYS_MEMFD_CREATE = 360 - SYS_BPF = 361 - SYS_EXECVEAT = 362 - SYS_SWITCH_ENDIAN = 363 - SYS_USERFAULTFD = 364 - SYS_MEMBARRIER = 365 - SYS_MLOCK2 = 378 - SYS_COPY_FILE_RANGE = 379 - SYS_PREADV2 = 380 - SYS_PWRITEV2 = 381 - SYS_KEXEC_FILE_LOAD = 382 - SYS_STATX = 383 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go deleted file mode 100644 index 8ea18e6..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ /dev/null @@ -1,333 +0,0 @@ -// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -fsigned-char /tmp/include/asm/unistd.h -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build s390x,linux - -package unix - -const ( - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_RESTART_SYSCALL = 7 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECVE = 11 - SYS_CHDIR = 12 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_MOUNT = 21 - SYS_UMOUNT = 22 - SYS_PTRACE = 26 - SYS_ALARM = 27 - SYS_PAUSE = 29 - SYS_UTIME = 30 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_RENAME = 38 - SYS_MKDIR = 39 - SYS_RMDIR = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_BRK = 45 - SYS_SIGNAL = 48 - SYS_ACCT = 51 - SYS_UMOUNT2 = 52 - SYS_IOCTL = 54 - SYS_FCNTL = 55 - SYS_SETPGID = 57 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_USTAT = 62 - SYS_DUP2 = 63 - SYS_GETPPID = 64 - SYS_GETPGRP = 65 - SYS_SETSID = 66 - SYS_SIGACTION = 67 - SYS_SIGSUSPEND = 72 - SYS_SIGPENDING = 73 - SYS_SETHOSTNAME = 74 - SYS_SETRLIMIT = 75 - SYS_GETRUSAGE = 77 - SYS_GETTIMEOFDAY = 78 - SYS_SETTIMEOFDAY = 79 - SYS_SYMLINK = 83 - SYS_READLINK = 85 - SYS_USELIB = 86 - SYS_SWAPON = 87 - SYS_REBOOT = 88 - SYS_READDIR = 89 - SYS_MMAP = 90 - SYS_MUNMAP = 91 - SYS_TRUNCATE = 92 - SYS_FTRUNCATE = 93 - SYS_FCHMOD = 94 - SYS_GETPRIORITY = 96 - SYS_SETPRIORITY = 97 - SYS_STATFS = 99 - SYS_FSTATFS = 100 - SYS_SOCKETCALL = 102 - SYS_SYSLOG = 103 - SYS_SETITIMER = 104 - SYS_GETITIMER = 105 - SYS_STAT = 106 - SYS_LSTAT = 107 - SYS_FSTAT = 108 - SYS_LOOKUP_DCOOKIE = 110 - SYS_VHANGUP = 111 - SYS_IDLE = 112 - SYS_WAIT4 = 114 - SYS_SWAPOFF = 115 - SYS_SYSINFO = 116 - SYS_IPC = 117 - SYS_FSYNC = 118 - SYS_SIGRETURN = 119 - SYS_CLONE = 120 - SYS_SETDOMAINNAME = 121 - SYS_UNAME = 122 - SYS_ADJTIMEX = 124 - SYS_MPROTECT = 125 - SYS_SIGPROCMASK = 126 - SYS_CREATE_MODULE = 127 - SYS_INIT_MODULE = 128 - SYS_DELETE_MODULE = 129 - SYS_GET_KERNEL_SYMS = 130 - SYS_QUOTACTL = 131 - SYS_GETPGID = 132 - SYS_FCHDIR = 133 - SYS_BDFLUSH = 134 - SYS_SYSFS = 135 - SYS_PERSONALITY = 136 - SYS_AFS_SYSCALL = 137 - SYS_GETDENTS = 141 - SYS_FLOCK = 143 - SYS_MSYNC = 144 - SYS_READV = 145 - SYS_WRITEV = 146 - SYS_GETSID = 147 - SYS_FDATASYNC = 148 - SYS__SYSCTL = 149 - SYS_MLOCK = 150 - SYS_MUNLOCK = 151 - SYS_MLOCKALL = 152 - SYS_MUNLOCKALL = 153 - SYS_SCHED_SETPARAM = 154 - SYS_SCHED_GETPARAM = 155 - SYS_SCHED_SETSCHEDULER = 156 - SYS_SCHED_GETSCHEDULER = 157 - SYS_SCHED_YIELD = 158 - SYS_SCHED_GET_PRIORITY_MAX = 159 - SYS_SCHED_GET_PRIORITY_MIN = 160 - SYS_SCHED_RR_GET_INTERVAL = 161 - SYS_NANOSLEEP = 162 - SYS_MREMAP = 163 - SYS_QUERY_MODULE = 167 - SYS_POLL = 168 - SYS_NFSSERVCTL = 169 - SYS_PRCTL = 172 - SYS_RT_SIGRETURN = 173 - SYS_RT_SIGACTION = 174 - SYS_RT_SIGPROCMASK = 175 - SYS_RT_SIGPENDING = 176 - SYS_RT_SIGTIMEDWAIT = 177 - SYS_RT_SIGQUEUEINFO = 178 - SYS_RT_SIGSUSPEND = 179 - SYS_PREAD64 = 180 - SYS_PWRITE64 = 181 - SYS_GETCWD = 183 - SYS_CAPGET = 184 - SYS_CAPSET = 185 - SYS_SIGALTSTACK = 186 - SYS_SENDFILE = 187 - SYS_GETPMSG = 188 - SYS_PUTPMSG = 189 - SYS_VFORK = 190 - SYS_PIVOT_ROOT = 217 - SYS_MINCORE = 218 - SYS_MADVISE = 219 - SYS_GETDENTS64 = 220 - SYS_READAHEAD = 222 - SYS_SETXATTR = 224 - SYS_LSETXATTR = 225 - SYS_FSETXATTR = 226 - SYS_GETXATTR = 227 - SYS_LGETXATTR = 228 - SYS_FGETXATTR = 229 - SYS_LISTXATTR = 230 - SYS_LLISTXATTR = 231 - SYS_FLISTXATTR = 232 - SYS_REMOVEXATTR = 233 - SYS_LREMOVEXATTR = 234 - SYS_FREMOVEXATTR = 235 - SYS_GETTID = 236 - SYS_TKILL = 237 - SYS_FUTEX = 238 - SYS_SCHED_SETAFFINITY = 239 - SYS_SCHED_GETAFFINITY = 240 - SYS_TGKILL = 241 - SYS_IO_SETUP = 243 - SYS_IO_DESTROY = 244 - SYS_IO_GETEVENTS = 245 - SYS_IO_SUBMIT = 246 - SYS_IO_CANCEL = 247 - SYS_EXIT_GROUP = 248 - SYS_EPOLL_CREATE = 249 - SYS_EPOLL_CTL = 250 - SYS_EPOLL_WAIT = 251 - SYS_SET_TID_ADDRESS = 252 - SYS_FADVISE64 = 253 - SYS_TIMER_CREATE = 254 - SYS_TIMER_SETTIME = 255 - SYS_TIMER_GETTIME = 256 - SYS_TIMER_GETOVERRUN = 257 - SYS_TIMER_DELETE = 258 - SYS_CLOCK_SETTIME = 259 - SYS_CLOCK_GETTIME = 260 - SYS_CLOCK_GETRES = 261 - SYS_CLOCK_NANOSLEEP = 262 - SYS_STATFS64 = 265 - SYS_FSTATFS64 = 266 - SYS_REMAP_FILE_PAGES = 267 - SYS_MBIND = 268 - SYS_GET_MEMPOLICY = 269 - SYS_SET_MEMPOLICY = 270 - SYS_MQ_OPEN = 271 - SYS_MQ_UNLINK = 272 - SYS_MQ_TIMEDSEND = 273 - SYS_MQ_TIMEDRECEIVE = 274 - SYS_MQ_NOTIFY = 275 - SYS_MQ_GETSETATTR = 276 - SYS_KEXEC_LOAD = 277 - SYS_ADD_KEY = 278 - SYS_REQUEST_KEY = 279 - SYS_KEYCTL = 280 - SYS_WAITID = 281 - SYS_IOPRIO_SET = 282 - SYS_IOPRIO_GET = 283 - SYS_INOTIFY_INIT = 284 - SYS_INOTIFY_ADD_WATCH = 285 - SYS_INOTIFY_RM_WATCH = 286 - SYS_MIGRATE_PAGES = 287 - SYS_OPENAT = 288 - SYS_MKDIRAT = 289 - SYS_MKNODAT = 290 - SYS_FCHOWNAT = 291 - SYS_FUTIMESAT = 292 - SYS_UNLINKAT = 294 - SYS_RENAMEAT = 295 - SYS_LINKAT = 296 - SYS_SYMLINKAT = 297 - SYS_READLINKAT = 298 - SYS_FCHMODAT = 299 - SYS_FACCESSAT = 300 - SYS_PSELECT6 = 301 - SYS_PPOLL = 302 - SYS_UNSHARE = 303 - SYS_SET_ROBUST_LIST = 304 - SYS_GET_ROBUST_LIST = 305 - SYS_SPLICE = 306 - SYS_SYNC_FILE_RANGE = 307 - SYS_TEE = 308 - SYS_VMSPLICE = 309 - SYS_MOVE_PAGES = 310 - SYS_GETCPU = 311 - SYS_EPOLL_PWAIT = 312 - SYS_UTIMES = 313 - SYS_FALLOCATE = 314 - SYS_UTIMENSAT = 315 - SYS_SIGNALFD = 316 - SYS_TIMERFD = 317 - SYS_EVENTFD = 318 - SYS_TIMERFD_CREATE = 319 - SYS_TIMERFD_SETTIME = 320 - SYS_TIMERFD_GETTIME = 321 - SYS_SIGNALFD4 = 322 - SYS_EVENTFD2 = 323 - SYS_INOTIFY_INIT1 = 324 - SYS_PIPE2 = 325 - SYS_DUP3 = 326 - SYS_EPOLL_CREATE1 = 327 - SYS_PREADV = 328 - SYS_PWRITEV = 329 - SYS_RT_TGSIGQUEUEINFO = 330 - SYS_PERF_EVENT_OPEN = 331 - SYS_FANOTIFY_INIT = 332 - SYS_FANOTIFY_MARK = 333 - SYS_PRLIMIT64 = 334 - SYS_NAME_TO_HANDLE_AT = 335 - SYS_OPEN_BY_HANDLE_AT = 336 - SYS_CLOCK_ADJTIME = 337 - SYS_SYNCFS = 338 - SYS_SETNS = 339 - SYS_PROCESS_VM_READV = 340 - SYS_PROCESS_VM_WRITEV = 341 - SYS_S390_RUNTIME_INSTR = 342 - SYS_KCMP = 343 - SYS_FINIT_MODULE = 344 - SYS_SCHED_SETATTR = 345 - SYS_SCHED_GETATTR = 346 - SYS_RENAMEAT2 = 347 - SYS_SECCOMP = 348 - SYS_GETRANDOM = 349 - SYS_MEMFD_CREATE = 350 - SYS_BPF = 351 - SYS_S390_PCI_MMIO_WRITE = 352 - SYS_S390_PCI_MMIO_READ = 353 - SYS_EXECVEAT = 354 - SYS_USERFAULTFD = 355 - SYS_MEMBARRIER = 356 - SYS_RECVMMSG = 357 - SYS_SENDMMSG = 358 - SYS_SOCKET = 359 - SYS_SOCKETPAIR = 360 - SYS_BIND = 361 - SYS_CONNECT = 362 - SYS_LISTEN = 363 - SYS_ACCEPT4 = 364 - SYS_GETSOCKOPT = 365 - SYS_SETSOCKOPT = 366 - SYS_GETSOCKNAME = 367 - SYS_GETPEERNAME = 368 - SYS_SENDTO = 369 - SYS_SENDMSG = 370 - SYS_RECVFROM = 371 - SYS_RECVMSG = 372 - SYS_SHUTDOWN = 373 - SYS_MLOCK2 = 374 - SYS_COPY_FILE_RANGE = 375 - SYS_PREADV2 = 376 - SYS_PWRITEV2 = 377 - SYS_S390_GUARDED_STORAGE = 378 - SYS_STATX = 379 - SYS_SELECT = 142 - SYS_GETRLIMIT = 191 - SYS_LCHOWN = 198 - SYS_GETUID = 199 - SYS_GETGID = 200 - SYS_GETEUID = 201 - SYS_GETEGID = 202 - SYS_SETREUID = 203 - SYS_SETREGID = 204 - SYS_GETGROUPS = 205 - SYS_SETGROUPS = 206 - SYS_FCHOWN = 207 - SYS_SETRESUID = 208 - SYS_GETRESUID = 209 - SYS_SETRESGID = 210 - SYS_GETRESGID = 211 - SYS_CHOWN = 212 - SYS_SETUID = 213 - SYS_SETGID = 214 - SYS_SETFSUID = 215 - SYS_SETFSGID = 216 - SYS_NEWFSTATAT = 293 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go deleted file mode 100644 index c9c129d..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ /dev/null @@ -1,348 +0,0 @@ -// mksysnum_linux.pl -Ilinux/usr/include -m64 -D__arch64__ linux/usr/include/asm/unistd.h -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build sparc64,linux - -package unix - -const ( - SYS_RESTART_SYSCALL = 0 - SYS_EXIT = 1 - SYS_FORK = 2 - SYS_READ = 3 - SYS_WRITE = 4 - SYS_OPEN = 5 - SYS_CLOSE = 6 - SYS_WAIT4 = 7 - SYS_CREAT = 8 - SYS_LINK = 9 - SYS_UNLINK = 10 - SYS_EXECV = 11 - SYS_CHDIR = 12 - SYS_CHOWN = 13 - SYS_MKNOD = 14 - SYS_CHMOD = 15 - SYS_LCHOWN = 16 - SYS_BRK = 17 - SYS_PERFCTR = 18 - SYS_LSEEK = 19 - SYS_GETPID = 20 - SYS_CAPGET = 21 - SYS_CAPSET = 22 - SYS_SETUID = 23 - SYS_GETUID = 24 - SYS_VMSPLICE = 25 - SYS_PTRACE = 26 - SYS_ALARM = 27 - SYS_SIGALTSTACK = 28 - SYS_PAUSE = 29 - SYS_UTIME = 30 - SYS_ACCESS = 33 - SYS_NICE = 34 - SYS_SYNC = 36 - SYS_KILL = 37 - SYS_STAT = 38 - SYS_SENDFILE = 39 - SYS_LSTAT = 40 - SYS_DUP = 41 - SYS_PIPE = 42 - SYS_TIMES = 43 - SYS_UMOUNT2 = 45 - SYS_SETGID = 46 - SYS_GETGID = 47 - SYS_SIGNAL = 48 - SYS_GETEUID = 49 - SYS_GETEGID = 50 - SYS_ACCT = 51 - SYS_MEMORY_ORDERING = 52 - SYS_IOCTL = 54 - SYS_REBOOT = 55 - SYS_SYMLINK = 57 - SYS_READLINK = 58 - SYS_EXECVE = 59 - SYS_UMASK = 60 - SYS_CHROOT = 61 - SYS_FSTAT = 62 - SYS_FSTAT64 = 63 - SYS_GETPAGESIZE = 64 - SYS_MSYNC = 65 - SYS_VFORK = 66 - SYS_PREAD64 = 67 - SYS_PWRITE64 = 68 - SYS_MMAP = 71 - SYS_MUNMAP = 73 - SYS_MPROTECT = 74 - SYS_MADVISE = 75 - SYS_VHANGUP = 76 - SYS_MINCORE = 78 - SYS_GETGROUPS = 79 - SYS_SETGROUPS = 80 - SYS_GETPGRP = 81 - SYS_SETITIMER = 83 - SYS_SWAPON = 85 - SYS_GETITIMER = 86 - SYS_SETHOSTNAME = 88 - SYS_DUP2 = 90 - SYS_FCNTL = 92 - SYS_SELECT = 93 - SYS_FSYNC = 95 - SYS_SETPRIORITY = 96 - SYS_SOCKET = 97 - SYS_CONNECT = 98 - SYS_ACCEPT = 99 - SYS_GETPRIORITY = 100 - SYS_RT_SIGRETURN = 101 - SYS_RT_SIGACTION = 102 - SYS_RT_SIGPROCMASK = 103 - SYS_RT_SIGPENDING = 104 - SYS_RT_SIGTIMEDWAIT = 105 - SYS_RT_SIGQUEUEINFO = 106 - SYS_RT_SIGSUSPEND = 107 - SYS_SETRESUID = 108 - SYS_GETRESUID = 109 - SYS_SETRESGID = 110 - SYS_GETRESGID = 111 - SYS_RECVMSG = 113 - SYS_SENDMSG = 114 - SYS_GETTIMEOFDAY = 116 - SYS_GETRUSAGE = 117 - SYS_GETSOCKOPT = 118 - SYS_GETCWD = 119 - SYS_READV = 120 - SYS_WRITEV = 121 - SYS_SETTIMEOFDAY = 122 - SYS_FCHOWN = 123 - SYS_FCHMOD = 124 - SYS_RECVFROM = 125 - SYS_SETREUID = 126 - SYS_SETREGID = 127 - SYS_RENAME = 128 - SYS_TRUNCATE = 129 - SYS_FTRUNCATE = 130 - SYS_FLOCK = 131 - SYS_LSTAT64 = 132 - SYS_SENDTO = 133 - SYS_SHUTDOWN = 134 - SYS_SOCKETPAIR = 135 - SYS_MKDIR = 136 - SYS_RMDIR = 137 - SYS_UTIMES = 138 - SYS_STAT64 = 139 - SYS_SENDFILE64 = 140 - SYS_GETPEERNAME = 141 - SYS_FUTEX = 142 - SYS_GETTID = 143 - SYS_GETRLIMIT = 144 - SYS_SETRLIMIT = 145 - SYS_PIVOT_ROOT = 146 - SYS_PRCTL = 147 - SYS_PCICONFIG_READ = 148 - SYS_PCICONFIG_WRITE = 149 - SYS_GETSOCKNAME = 150 - SYS_INOTIFY_INIT = 151 - SYS_INOTIFY_ADD_WATCH = 152 - SYS_POLL = 153 - SYS_GETDENTS64 = 154 - SYS_INOTIFY_RM_WATCH = 156 - SYS_STATFS = 157 - SYS_FSTATFS = 158 - SYS_UMOUNT = 159 - SYS_SCHED_SET_AFFINITY = 160 - SYS_SCHED_GET_AFFINITY = 161 - SYS_GETDOMAINNAME = 162 - SYS_SETDOMAINNAME = 163 - SYS_UTRAP_INSTALL = 164 - SYS_QUOTACTL = 165 - SYS_SET_TID_ADDRESS = 166 - SYS_MOUNT = 167 - SYS_USTAT = 168 - SYS_SETXATTR = 169 - SYS_LSETXATTR = 170 - SYS_FSETXATTR = 171 - SYS_GETXATTR = 172 - SYS_LGETXATTR = 173 - SYS_GETDENTS = 174 - SYS_SETSID = 175 - SYS_FCHDIR = 176 - SYS_FGETXATTR = 177 - SYS_LISTXATTR = 178 - SYS_LLISTXATTR = 179 - SYS_FLISTXATTR = 180 - SYS_REMOVEXATTR = 181 - SYS_LREMOVEXATTR = 182 - SYS_SIGPENDING = 183 - SYS_QUERY_MODULE = 184 - SYS_SETPGID = 185 - SYS_FREMOVEXATTR = 186 - SYS_TKILL = 187 - SYS_EXIT_GROUP = 188 - SYS_UNAME = 189 - SYS_INIT_MODULE = 190 - SYS_PERSONALITY = 191 - SYS_REMAP_FILE_PAGES = 192 - SYS_EPOLL_CREATE = 193 - SYS_EPOLL_CTL = 194 - SYS_EPOLL_WAIT = 195 - SYS_IOPRIO_SET = 196 - SYS_GETPPID = 197 - SYS_SIGACTION = 198 - SYS_SGETMASK = 199 - SYS_SSETMASK = 200 - SYS_SIGSUSPEND = 201 - SYS_OLDLSTAT = 202 - SYS_USELIB = 203 - SYS_READDIR = 204 - SYS_READAHEAD = 205 - SYS_SOCKETCALL = 206 - SYS_SYSLOG = 207 - SYS_LOOKUP_DCOOKIE = 208 - SYS_FADVISE64 = 209 - SYS_FADVISE64_64 = 210 - SYS_TGKILL = 211 - SYS_WAITPID = 212 - SYS_SWAPOFF = 213 - SYS_SYSINFO = 214 - SYS_IPC = 215 - SYS_SIGRETURN = 216 - SYS_CLONE = 217 - SYS_IOPRIO_GET = 218 - SYS_ADJTIMEX = 219 - SYS_SIGPROCMASK = 220 - SYS_CREATE_MODULE = 221 - SYS_DELETE_MODULE = 222 - SYS_GET_KERNEL_SYMS = 223 - SYS_GETPGID = 224 - SYS_BDFLUSH = 225 - SYS_SYSFS = 226 - SYS_AFS_SYSCALL = 227 - SYS_SETFSUID = 228 - SYS_SETFSGID = 229 - SYS__NEWSELECT = 230 - SYS_SPLICE = 232 - SYS_STIME = 233 - SYS_STATFS64 = 234 - SYS_FSTATFS64 = 235 - SYS__LLSEEK = 236 - SYS_MLOCK = 237 - SYS_MUNLOCK = 238 - SYS_MLOCKALL = 239 - SYS_MUNLOCKALL = 240 - SYS_SCHED_SETPARAM = 241 - SYS_SCHED_GETPARAM = 242 - SYS_SCHED_SETSCHEDULER = 243 - SYS_SCHED_GETSCHEDULER = 244 - SYS_SCHED_YIELD = 245 - SYS_SCHED_GET_PRIORITY_MAX = 246 - SYS_SCHED_GET_PRIORITY_MIN = 247 - SYS_SCHED_RR_GET_INTERVAL = 248 - SYS_NANOSLEEP = 249 - SYS_MREMAP = 250 - SYS__SYSCTL = 251 - SYS_GETSID = 252 - SYS_FDATASYNC = 253 - SYS_NFSSERVCTL = 254 - SYS_SYNC_FILE_RANGE = 255 - SYS_CLOCK_SETTIME = 256 - SYS_CLOCK_GETTIME = 257 - SYS_CLOCK_GETRES = 258 - SYS_CLOCK_NANOSLEEP = 259 - SYS_SCHED_GETAFFINITY = 260 - SYS_SCHED_SETAFFINITY = 261 - SYS_TIMER_SETTIME = 262 - SYS_TIMER_GETTIME = 263 - SYS_TIMER_GETOVERRUN = 264 - SYS_TIMER_DELETE = 265 - SYS_TIMER_CREATE = 266 - SYS_IO_SETUP = 268 - SYS_IO_DESTROY = 269 - SYS_IO_SUBMIT = 270 - SYS_IO_CANCEL = 271 - SYS_IO_GETEVENTS = 272 - SYS_MQ_OPEN = 273 - SYS_MQ_UNLINK = 274 - SYS_MQ_TIMEDSEND = 275 - SYS_MQ_TIMEDRECEIVE = 276 - SYS_MQ_NOTIFY = 277 - SYS_MQ_GETSETATTR = 278 - SYS_WAITID = 279 - SYS_TEE = 280 - SYS_ADD_KEY = 281 - SYS_REQUEST_KEY = 282 - SYS_KEYCTL = 283 - SYS_OPENAT = 284 - SYS_MKDIRAT = 285 - SYS_MKNODAT = 286 - SYS_FCHOWNAT = 287 - SYS_FUTIMESAT = 288 - SYS_FSTATAT64 = 289 - SYS_UNLINKAT = 290 - SYS_RENAMEAT = 291 - SYS_LINKAT = 292 - SYS_SYMLINKAT = 293 - SYS_READLINKAT = 294 - SYS_FCHMODAT = 295 - SYS_FACCESSAT = 296 - SYS_PSELECT6 = 297 - SYS_PPOLL = 298 - SYS_UNSHARE = 299 - SYS_SET_ROBUST_LIST = 300 - SYS_GET_ROBUST_LIST = 301 - SYS_MIGRATE_PAGES = 302 - SYS_MBIND = 303 - SYS_GET_MEMPOLICY = 304 - SYS_SET_MEMPOLICY = 305 - SYS_KEXEC_LOAD = 306 - SYS_MOVE_PAGES = 307 - SYS_GETCPU = 308 - SYS_EPOLL_PWAIT = 309 - SYS_UTIMENSAT = 310 - SYS_SIGNALFD = 311 - SYS_TIMERFD_CREATE = 312 - SYS_EVENTFD = 313 - SYS_FALLOCATE = 314 - SYS_TIMERFD_SETTIME = 315 - SYS_TIMERFD_GETTIME = 316 - SYS_SIGNALFD4 = 317 - SYS_EVENTFD2 = 318 - SYS_EPOLL_CREATE1 = 319 - SYS_DUP3 = 320 - SYS_PIPE2 = 321 - SYS_INOTIFY_INIT1 = 322 - SYS_ACCEPT4 = 323 - SYS_PREADV = 324 - SYS_PWRITEV = 325 - SYS_RT_TGSIGQUEUEINFO = 326 - SYS_PERF_EVENT_OPEN = 327 - SYS_RECVMMSG = 328 - SYS_FANOTIFY_INIT = 329 - SYS_FANOTIFY_MARK = 330 - SYS_PRLIMIT64 = 331 - SYS_NAME_TO_HANDLE_AT = 332 - SYS_OPEN_BY_HANDLE_AT = 333 - SYS_CLOCK_ADJTIME = 334 - SYS_SYNCFS = 335 - SYS_SENDMMSG = 336 - SYS_SETNS = 337 - SYS_PROCESS_VM_READV = 338 - SYS_PROCESS_VM_WRITEV = 339 - SYS_KERN_FEATURES = 340 - SYS_KCMP = 341 - SYS_FINIT_MODULE = 342 - SYS_SCHED_SETATTR = 343 - SYS_SCHED_GETATTR = 344 - SYS_RENAMEAT2 = 345 - SYS_SECCOMP = 346 - SYS_GETRANDOM = 347 - SYS_MEMFD_CREATE = 348 - SYS_BPF = 349 - SYS_EXECVEAT = 350 - SYS_MEMBARRIER = 351 - SYS_USERFAULTFD = 352 - SYS_BIND = 353 - SYS_LISTEN = 354 - SYS_SETSOCKOPT = 355 - SYS_MLOCK2 = 356 - SYS_COPY_FILE_RANGE = 357 - SYS_PREADV2 = 358 - SYS_PWRITEV2 = 359 -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go deleted file mode 100644 index 8afda9c..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +++ /dev/null @@ -1,274 +0,0 @@ -// mksysnum_netbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build 386,netbsd - -package unix - -const ( - SYS_EXIT = 1 // { void|sys||exit(int rval); } - SYS_FORK = 2 // { int|sys||fork(void); } - SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } - SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } - SYS_CLOSE = 6 // { int|sys||close(int fd); } - SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } - SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } - SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } - SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } - SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } - SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } - SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } - SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } - SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } - SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } - SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } - SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } - SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } - SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } - SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { void|sys||sync(void); } - SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } - SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } - SYS_DUP = 41 // { int|sys||dup(int fd); } - SYS_PIPE = 42 // { int|sys||pipe(void); } - SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } - SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } - SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } - SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } - SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } - SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int|sys||acct(const char *path); } - SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } - SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } - SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } - SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } - SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } - SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } - SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } - SYS_VFORK = 66 // { int|sys||vfork(void); } - SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } - SYS_SSTK = 70 // { int|sys||sstk(int incr); } - SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } - SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } - SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } - SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } - SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } - SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } - SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } - SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } - SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } - SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } - SYS_FSYNC = 95 // { int|sys||fsync(int fd); } - SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } - SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } - SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } - SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } - SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } - SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } - SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } - SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } - SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } - SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } - SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } - SYS_SETSID = 147 // { int|sys||setsid(void); } - SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } - SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } - SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } - SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } - SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } - SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } - SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } - SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } - SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } - SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } - SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } - SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } - SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } - SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } - SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } - SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } - SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } - SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } - SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } - SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } - SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } - SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } - SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } - SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } - SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } - SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } - SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } - SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } - SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } - SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } - SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } - SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } - SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } - SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } - SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } - SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } - SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } - SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } - SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } - SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } - SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } - SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } - SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } - SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } - SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } - SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } - SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } - SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } - SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } - SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } - SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } - SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } - SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } - SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } - SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } - SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } - SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } - SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } - SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } - SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } - SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } - SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } - SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } - SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } - SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } - SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } - SYS_KQUEUE = 344 // { int|sys||kqueue(void); } - SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } - SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } - SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } - SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } - SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } - SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } - SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } - SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } - SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } - SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } - SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } - SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } - SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } - SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } - SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } - SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } - SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } - SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } - SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } - SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } - SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } - SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } - SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } - SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } - SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } - SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } - SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } - SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } - SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } - SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } - SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } - SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } - SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } - SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } - SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } - SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } - SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } - SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } - SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } - SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } - SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } - SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } - SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } - SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } - SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } - SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } - SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } - SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } - SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } - SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } - SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } - SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } - SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } - SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } - SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } - SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } - SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } - SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } - SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } - SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } - SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } - SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } - SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } - SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } - SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } - SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } - SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } - SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } - SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } - SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } - SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } - SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } - SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } - SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } - SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } - SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } - SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } - SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } - SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } - SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } - SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } - SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } - SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } - SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } - SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go deleted file mode 100644 index aea8dbe..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +++ /dev/null @@ -1,274 +0,0 @@ -// mksysnum_netbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build amd64,netbsd - -package unix - -const ( - SYS_EXIT = 1 // { void|sys||exit(int rval); } - SYS_FORK = 2 // { int|sys||fork(void); } - SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } - SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } - SYS_CLOSE = 6 // { int|sys||close(int fd); } - SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } - SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } - SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } - SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } - SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } - SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } - SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } - SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } - SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } - SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } - SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } - SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } - SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } - SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } - SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { void|sys||sync(void); } - SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } - SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } - SYS_DUP = 41 // { int|sys||dup(int fd); } - SYS_PIPE = 42 // { int|sys||pipe(void); } - SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } - SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } - SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } - SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } - SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } - SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int|sys||acct(const char *path); } - SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } - SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } - SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } - SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } - SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } - SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } - SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } - SYS_VFORK = 66 // { int|sys||vfork(void); } - SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } - SYS_SSTK = 70 // { int|sys||sstk(int incr); } - SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } - SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } - SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } - SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } - SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } - SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } - SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } - SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } - SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } - SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } - SYS_FSYNC = 95 // { int|sys||fsync(int fd); } - SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } - SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } - SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } - SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } - SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } - SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } - SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } - SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } - SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } - SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } - SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } - SYS_SETSID = 147 // { int|sys||setsid(void); } - SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } - SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } - SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } - SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } - SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } - SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } - SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } - SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } - SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } - SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } - SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } - SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } - SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } - SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } - SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } - SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } - SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } - SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } - SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } - SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } - SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } - SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } - SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } - SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } - SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } - SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } - SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } - SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } - SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } - SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } - SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } - SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } - SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } - SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } - SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } - SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } - SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } - SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } - SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } - SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } - SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } - SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } - SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } - SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } - SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } - SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } - SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } - SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } - SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } - SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } - SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } - SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } - SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } - SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } - SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } - SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } - SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } - SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } - SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } - SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } - SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } - SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } - SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } - SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } - SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } - SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } - SYS_KQUEUE = 344 // { int|sys||kqueue(void); } - SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } - SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } - SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } - SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } - SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } - SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } - SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } - SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } - SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } - SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } - SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } - SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } - SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } - SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } - SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } - SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } - SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } - SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } - SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } - SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } - SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } - SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } - SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } - SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } - SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } - SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } - SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } - SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } - SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } - SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } - SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } - SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } - SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } - SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } - SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } - SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } - SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } - SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } - SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } - SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } - SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } - SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } - SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } - SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } - SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } - SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } - SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } - SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } - SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } - SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } - SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } - SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } - SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } - SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } - SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } - SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } - SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } - SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } - SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } - SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } - SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } - SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } - SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } - SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } - SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } - SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } - SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } - SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } - SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } - SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } - SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } - SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } - SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } - SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } - SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } - SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } - SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } - SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } - SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } - SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } - SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } - SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } - SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } - SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } - SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go deleted file mode 100644 index c6158a7..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +++ /dev/null @@ -1,274 +0,0 @@ -// mksysnum_netbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build arm,netbsd - -package unix - -const ( - SYS_EXIT = 1 // { void|sys||exit(int rval); } - SYS_FORK = 2 // { int|sys||fork(void); } - SYS_READ = 3 // { ssize_t|sys||read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t|sys||write(int fd, const void *buf, size_t nbyte); } - SYS_OPEN = 5 // { int|sys||open(const char *path, int flags, ... mode_t mode); } - SYS_CLOSE = 6 // { int|sys||close(int fd); } - SYS_LINK = 9 // { int|sys||link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int|sys||unlink(const char *path); } - SYS_CHDIR = 12 // { int|sys||chdir(const char *path); } - SYS_FCHDIR = 13 // { int|sys||fchdir(int fd); } - SYS_CHMOD = 15 // { int|sys||chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int|sys||chown(const char *path, uid_t uid, gid_t gid); } - SYS_BREAK = 17 // { int|sys||obreak(char *nsize); } - SYS_GETPID = 20 // { pid_t|sys||getpid_with_ppid(void); } - SYS_UNMOUNT = 22 // { int|sys||unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int|sys||setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t|sys||getuid_with_euid(void); } - SYS_GETEUID = 25 // { uid_t|sys||geteuid(void); } - SYS_PTRACE = 26 // { int|sys||ptrace(int req, pid_t pid, void *addr, int data); } - SYS_RECVMSG = 27 // { ssize_t|sys||recvmsg(int s, struct msghdr *msg, int flags); } - SYS_SENDMSG = 28 // { ssize_t|sys||sendmsg(int s, const struct msghdr *msg, int flags); } - SYS_RECVFROM = 29 // { ssize_t|sys||recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlenaddr); } - SYS_ACCEPT = 30 // { int|sys||accept(int s, struct sockaddr *name, socklen_t *anamelen); } - SYS_GETPEERNAME = 31 // { int|sys||getpeername(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_GETSOCKNAME = 32 // { int|sys||getsockname(int fdes, struct sockaddr *asa, socklen_t *alen); } - SYS_ACCESS = 33 // { int|sys||access(const char *path, int flags); } - SYS_CHFLAGS = 34 // { int|sys||chflags(const char *path, u_long flags); } - SYS_FCHFLAGS = 35 // { int|sys||fchflags(int fd, u_long flags); } - SYS_SYNC = 36 // { void|sys||sync(void); } - SYS_KILL = 37 // { int|sys||kill(pid_t pid, int signum); } - SYS_GETPPID = 39 // { pid_t|sys||getppid(void); } - SYS_DUP = 41 // { int|sys||dup(int fd); } - SYS_PIPE = 42 // { int|sys||pipe(void); } - SYS_GETEGID = 43 // { gid_t|sys||getegid(void); } - SYS_PROFIL = 44 // { int|sys||profil(char *samples, size_t size, u_long offset, u_int scale); } - SYS_KTRACE = 45 // { int|sys||ktrace(const char *fname, int ops, int facs, pid_t pid); } - SYS_GETGID = 47 // { gid_t|sys||getgid_with_egid(void); } - SYS___GETLOGIN = 49 // { int|sys||__getlogin(char *namebuf, size_t namelen); } - SYS___SETLOGIN = 50 // { int|sys||__setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int|sys||acct(const char *path); } - SYS_IOCTL = 54 // { int|sys||ioctl(int fd, u_long com, ... void *data); } - SYS_REVOKE = 56 // { int|sys||revoke(const char *path); } - SYS_SYMLINK = 57 // { int|sys||symlink(const char *path, const char *link); } - SYS_READLINK = 58 // { ssize_t|sys||readlink(const char *path, char *buf, size_t count); } - SYS_EXECVE = 59 // { int|sys||execve(const char *path, char * const *argp, char * const *envp); } - SYS_UMASK = 60 // { mode_t|sys||umask(mode_t newmask); } - SYS_CHROOT = 61 // { int|sys||chroot(const char *path); } - SYS_VFORK = 66 // { int|sys||vfork(void); } - SYS_SBRK = 69 // { int|sys||sbrk(intptr_t incr); } - SYS_SSTK = 70 // { int|sys||sstk(int incr); } - SYS_VADVISE = 72 // { int|sys||ovadvise(int anom); } - SYS_MUNMAP = 73 // { int|sys||munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int|sys||mprotect(void *addr, size_t len, int prot); } - SYS_MADVISE = 75 // { int|sys||madvise(void *addr, size_t len, int behav); } - SYS_MINCORE = 78 // { int|sys||mincore(void *addr, size_t len, char *vec); } - SYS_GETGROUPS = 79 // { int|sys||getgroups(int gidsetsize, gid_t *gidset); } - SYS_SETGROUPS = 80 // { int|sys||setgroups(int gidsetsize, const gid_t *gidset); } - SYS_GETPGRP = 81 // { int|sys||getpgrp(void); } - SYS_SETPGID = 82 // { int|sys||setpgid(pid_t pid, pid_t pgid); } - SYS_DUP2 = 90 // { int|sys||dup2(int from, int to); } - SYS_FCNTL = 92 // { int|sys||fcntl(int fd, int cmd, ... void *arg); } - SYS_FSYNC = 95 // { int|sys||fsync(int fd); } - SYS_SETPRIORITY = 96 // { int|sys||setpriority(int which, id_t who, int prio); } - SYS_CONNECT = 98 // { int|sys||connect(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_GETPRIORITY = 100 // { int|sys||getpriority(int which, id_t who); } - SYS_BIND = 104 // { int|sys||bind(int s, const struct sockaddr *name, socklen_t namelen); } - SYS_SETSOCKOPT = 105 // { int|sys||setsockopt(int s, int level, int name, const void *val, socklen_t valsize); } - SYS_LISTEN = 106 // { int|sys||listen(int s, int backlog); } - SYS_GETSOCKOPT = 118 // { int|sys||getsockopt(int s, int level, int name, void *val, socklen_t *avalsize); } - SYS_READV = 120 // { ssize_t|sys||readv(int fd, const struct iovec *iovp, int iovcnt); } - SYS_WRITEV = 121 // { ssize_t|sys||writev(int fd, const struct iovec *iovp, int iovcnt); } - SYS_FCHOWN = 123 // { int|sys||fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int|sys||fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int|sys||setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int|sys||setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int|sys||rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int|sys||flock(int fd, int how); } - SYS_MKFIFO = 132 // { int|sys||mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t|sys||sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); } - SYS_SHUTDOWN = 134 // { int|sys||shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int|sys||socketpair(int domain, int type, int protocol, int *rsv); } - SYS_MKDIR = 136 // { int|sys||mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int|sys||rmdir(const char *path); } - SYS_SETSID = 147 // { int|sys||setsid(void); } - SYS_SYSARCH = 165 // { int|sys||sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t|sys||pread(int fd, void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_PWRITE = 174 // { ssize_t|sys||pwrite(int fd, const void *buf, size_t nbyte, int PAD, off_t offset); } - SYS_NTP_ADJTIME = 176 // { int|sys||ntp_adjtime(struct timex *tp); } - SYS_SETGID = 181 // { int|sys||setgid(gid_t gid); } - SYS_SETEGID = 182 // { int|sys||setegid(gid_t egid); } - SYS_SETEUID = 183 // { int|sys||seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long|sys||pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long|sys||fpathconf(int fd, int name); } - SYS_GETRLIMIT = 194 // { int|sys||getrlimit(int which, struct rlimit *rlp); } - SYS_SETRLIMIT = 195 // { int|sys||setrlimit(int which, const struct rlimit *rlp); } - SYS_MMAP = 197 // { void *|sys||mmap(void *addr, size_t len, int prot, int flags, int fd, long PAD, off_t pos); } - SYS_LSEEK = 199 // { off_t|sys||lseek(int fd, int PAD, off_t offset, int whence); } - SYS_TRUNCATE = 200 // { int|sys||truncate(const char *path, int PAD, off_t length); } - SYS_FTRUNCATE = 201 // { int|sys||ftruncate(int fd, int PAD, off_t length); } - SYS___SYSCTL = 202 // { int|sys||__sysctl(const int *name, u_int namelen, void *old, size_t *oldlenp, const void *new, size_t newlen); } - SYS_MLOCK = 203 // { int|sys||mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int|sys||munlock(const void *addr, size_t len); } - SYS_UNDELETE = 205 // { int|sys||undelete(const char *path); } - SYS_GETPGID = 207 // { pid_t|sys||getpgid(pid_t pid); } - SYS_REBOOT = 208 // { int|sys||reboot(int opt, char *bootstr); } - SYS_POLL = 209 // { int|sys||poll(struct pollfd *fds, u_int nfds, int timeout); } - SYS_SEMGET = 221 // { int|sys||semget(key_t key, int nsems, int semflg); } - SYS_SEMOP = 222 // { int|sys||semop(int semid, struct sembuf *sops, size_t nsops); } - SYS_SEMCONFIG = 223 // { int|sys||semconfig(int flag); } - SYS_MSGGET = 225 // { int|sys||msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int|sys||msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); } - SYS_MSGRCV = 227 // { ssize_t|sys||msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } - SYS_SHMAT = 228 // { void *|sys||shmat(int shmid, const void *shmaddr, int shmflg); } - SYS_SHMDT = 230 // { int|sys||shmdt(const void *shmaddr); } - SYS_SHMGET = 231 // { int|sys||shmget(key_t key, size_t size, int shmflg); } - SYS_TIMER_CREATE = 235 // { int|sys||timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid); } - SYS_TIMER_DELETE = 236 // { int|sys||timer_delete(timer_t timerid); } - SYS_TIMER_GETOVERRUN = 239 // { int|sys||timer_getoverrun(timer_t timerid); } - SYS_FDATASYNC = 241 // { int|sys||fdatasync(int fd); } - SYS_MLOCKALL = 242 // { int|sys||mlockall(int flags); } - SYS_MUNLOCKALL = 243 // { int|sys||munlockall(void); } - SYS_SIGQUEUEINFO = 245 // { int|sys||sigqueueinfo(pid_t pid, const siginfo_t *info); } - SYS_MODCTL = 246 // { int|sys||modctl(int cmd, void *arg); } - SYS___POSIX_RENAME = 270 // { int|sys||__posix_rename(const char *from, const char *to); } - SYS_SWAPCTL = 271 // { int|sys||swapctl(int cmd, void *arg, int misc); } - SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); } - SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); } - SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); } - SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); } - SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); } - SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); } - SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 286 // { pid_t|sys||getsid(pid_t pid); } - SYS___CLONE = 287 // { pid_t|sys||__clone(int flags, void *stack); } - SYS_FKTRACE = 288 // { int|sys||fktrace(int fd, int ops, int facs, pid_t pid); } - SYS_PREADV = 289 // { ssize_t|sys||preadv(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS_PWRITEV = 290 // { ssize_t|sys||pwritev(int fd, const struct iovec *iovp, int iovcnt, int PAD, off_t offset); } - SYS___GETCWD = 296 // { int|sys||__getcwd(char *bufp, size_t length); } - SYS_FCHROOT = 297 // { int|sys||fchroot(int fd); } - SYS_LCHFLAGS = 304 // { int|sys||lchflags(const char *path, u_long flags); } - SYS_ISSETUGID = 305 // { int|sys||issetugid(void); } - SYS_UTRACE = 306 // { int|sys||utrace(const char *label, void *addr, size_t len); } - SYS_GETCONTEXT = 307 // { int|sys||getcontext(struct __ucontext *ucp); } - SYS_SETCONTEXT = 308 // { int|sys||setcontext(const struct __ucontext *ucp); } - SYS__LWP_CREATE = 309 // { int|sys||_lwp_create(const struct __ucontext *ucp, u_long flags, lwpid_t *new_lwp); } - SYS__LWP_EXIT = 310 // { int|sys||_lwp_exit(void); } - SYS__LWP_SELF = 311 // { lwpid_t|sys||_lwp_self(void); } - SYS__LWP_WAIT = 312 // { int|sys||_lwp_wait(lwpid_t wait_for, lwpid_t *departed); } - SYS__LWP_SUSPEND = 313 // { int|sys||_lwp_suspend(lwpid_t target); } - SYS__LWP_CONTINUE = 314 // { int|sys||_lwp_continue(lwpid_t target); } - SYS__LWP_WAKEUP = 315 // { int|sys||_lwp_wakeup(lwpid_t target); } - SYS__LWP_GETPRIVATE = 316 // { void *|sys||_lwp_getprivate(void); } - SYS__LWP_SETPRIVATE = 317 // { void|sys||_lwp_setprivate(void *ptr); } - SYS__LWP_KILL = 318 // { int|sys||_lwp_kill(lwpid_t target, int signo); } - SYS__LWP_DETACH = 319 // { int|sys||_lwp_detach(lwpid_t target); } - SYS__LWP_UNPARK = 321 // { int|sys||_lwp_unpark(lwpid_t target, const void *hint); } - SYS__LWP_UNPARK_ALL = 322 // { ssize_t|sys||_lwp_unpark_all(const lwpid_t *targets, size_t ntargets, const void *hint); } - SYS__LWP_SETNAME = 323 // { int|sys||_lwp_setname(lwpid_t target, const char *name); } - SYS__LWP_GETNAME = 324 // { int|sys||_lwp_getname(lwpid_t target, char *name, size_t len); } - SYS__LWP_CTL = 325 // { int|sys||_lwp_ctl(int features, struct lwpctl **address); } - SYS___SIGACTION_SIGTRAMP = 340 // { int|sys||__sigaction_sigtramp(int signum, const struct sigaction *nsa, struct sigaction *osa, const void *tramp, int vers); } - SYS_PMC_GET_INFO = 341 // { int|sys||pmc_get_info(int ctr, int op, void *args); } - SYS_PMC_CONTROL = 342 // { int|sys||pmc_control(int ctr, int op, void *args); } - SYS_RASCTL = 343 // { int|sys||rasctl(void *addr, size_t len, int op); } - SYS_KQUEUE = 344 // { int|sys||kqueue(void); } - SYS__SCHED_SETPARAM = 346 // { int|sys||_sched_setparam(pid_t pid, lwpid_t lid, int policy, const struct sched_param *params); } - SYS__SCHED_GETPARAM = 347 // { int|sys||_sched_getparam(pid_t pid, lwpid_t lid, int *policy, struct sched_param *params); } - SYS__SCHED_SETAFFINITY = 348 // { int|sys||_sched_setaffinity(pid_t pid, lwpid_t lid, size_t size, const cpuset_t *cpuset); } - SYS__SCHED_GETAFFINITY = 349 // { int|sys||_sched_getaffinity(pid_t pid, lwpid_t lid, size_t size, cpuset_t *cpuset); } - SYS_SCHED_YIELD = 350 // { int|sys||sched_yield(void); } - SYS_FSYNC_RANGE = 354 // { int|sys||fsync_range(int fd, int flags, off_t start, off_t length); } - SYS_UUIDGEN = 355 // { int|sys||uuidgen(struct uuid *store, int count); } - SYS_GETVFSSTAT = 356 // { int|sys||getvfsstat(struct statvfs *buf, size_t bufsize, int flags); } - SYS_STATVFS1 = 357 // { int|sys||statvfs1(const char *path, struct statvfs *buf, int flags); } - SYS_FSTATVFS1 = 358 // { int|sys||fstatvfs1(int fd, struct statvfs *buf, int flags); } - SYS_EXTATTRCTL = 360 // { int|sys||extattrctl(const char *path, int cmd, const char *filename, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FILE = 361 // { int|sys||extattr_set_file(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FILE = 362 // { ssize_t|sys||extattr_get_file(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FILE = 363 // { int|sys||extattr_delete_file(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_FD = 364 // { int|sys||extattr_set_fd(int fd, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_FD = 365 // { ssize_t|sys||extattr_get_fd(int fd, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_FD = 366 // { int|sys||extattr_delete_fd(int fd, int attrnamespace, const char *attrname); } - SYS_EXTATTR_SET_LINK = 367 // { int|sys||extattr_set_link(const char *path, int attrnamespace, const char *attrname, const void *data, size_t nbytes); } - SYS_EXTATTR_GET_LINK = 368 // { ssize_t|sys||extattr_get_link(const char *path, int attrnamespace, const char *attrname, void *data, size_t nbytes); } - SYS_EXTATTR_DELETE_LINK = 369 // { int|sys||extattr_delete_link(const char *path, int attrnamespace, const char *attrname); } - SYS_EXTATTR_LIST_FD = 370 // { ssize_t|sys||extattr_list_fd(int fd, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_FILE = 371 // { ssize_t|sys||extattr_list_file(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_EXTATTR_LIST_LINK = 372 // { ssize_t|sys||extattr_list_link(const char *path, int attrnamespace, void *data, size_t nbytes); } - SYS_SETXATTR = 375 // { int|sys||setxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_LSETXATTR = 376 // { int|sys||lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); } - SYS_FSETXATTR = 377 // { int|sys||fsetxattr(int fd, const char *name, const void *value, size_t size, int flags); } - SYS_GETXATTR = 378 // { int|sys||getxattr(const char *path, const char *name, void *value, size_t size); } - SYS_LGETXATTR = 379 // { int|sys||lgetxattr(const char *path, const char *name, void *value, size_t size); } - SYS_FGETXATTR = 380 // { int|sys||fgetxattr(int fd, const char *name, void *value, size_t size); } - SYS_LISTXATTR = 381 // { int|sys||listxattr(const char *path, char *list, size_t size); } - SYS_LLISTXATTR = 382 // { int|sys||llistxattr(const char *path, char *list, size_t size); } - SYS_FLISTXATTR = 383 // { int|sys||flistxattr(int fd, char *list, size_t size); } - SYS_REMOVEXATTR = 384 // { int|sys||removexattr(const char *path, const char *name); } - SYS_LREMOVEXATTR = 385 // { int|sys||lremovexattr(const char *path, const char *name); } - SYS_FREMOVEXATTR = 386 // { int|sys||fremovexattr(int fd, const char *name); } - SYS_GETDENTS = 390 // { int|sys|30|getdents(int fd, char *buf, size_t count); } - SYS_SOCKET = 394 // { int|sys|30|socket(int domain, int type, int protocol); } - SYS_GETFH = 395 // { int|sys|30|getfh(const char *fname, void *fhp, size_t *fh_size); } - SYS_MOUNT = 410 // { int|sys|50|mount(const char *type, const char *path, int flags, void *data, size_t data_len); } - SYS_MREMAP = 411 // { void *|sys||mremap(void *old_address, size_t old_size, void *new_address, size_t new_size, int flags); } - SYS_PSET_CREATE = 412 // { int|sys||pset_create(psetid_t *psid); } - SYS_PSET_DESTROY = 413 // { int|sys||pset_destroy(psetid_t psid); } - SYS_PSET_ASSIGN = 414 // { int|sys||pset_assign(psetid_t psid, cpuid_t cpuid, psetid_t *opsid); } - SYS__PSET_BIND = 415 // { int|sys||_pset_bind(idtype_t idtype, id_t first_id, id_t second_id, psetid_t psid, psetid_t *opsid); } - SYS_POSIX_FADVISE = 416 // { int|sys|50|posix_fadvise(int fd, int PAD, off_t offset, off_t len, int advice); } - SYS_SELECT = 417 // { int|sys|50|select(int nd, fd_set *in, fd_set *ou, fd_set *ex, struct timeval *tv); } - SYS_GETTIMEOFDAY = 418 // { int|sys|50|gettimeofday(struct timeval *tp, void *tzp); } - SYS_SETTIMEOFDAY = 419 // { int|sys|50|settimeofday(const struct timeval *tv, const void *tzp); } - SYS_UTIMES = 420 // { int|sys|50|utimes(const char *path, const struct timeval *tptr); } - SYS_ADJTIME = 421 // { int|sys|50|adjtime(const struct timeval *delta, struct timeval *olddelta); } - SYS_FUTIMES = 423 // { int|sys|50|futimes(int fd, const struct timeval *tptr); } - SYS_LUTIMES = 424 // { int|sys|50|lutimes(const char *path, const struct timeval *tptr); } - SYS_SETITIMER = 425 // { int|sys|50|setitimer(int which, const struct itimerval *itv, struct itimerval *oitv); } - SYS_GETITIMER = 426 // { int|sys|50|getitimer(int which, struct itimerval *itv); } - SYS_CLOCK_GETTIME = 427 // { int|sys|50|clock_gettime(clockid_t clock_id, struct timespec *tp); } - SYS_CLOCK_SETTIME = 428 // { int|sys|50|clock_settime(clockid_t clock_id, const struct timespec *tp); } - SYS_CLOCK_GETRES = 429 // { int|sys|50|clock_getres(clockid_t clock_id, struct timespec *tp); } - SYS_NANOSLEEP = 430 // { int|sys|50|nanosleep(const struct timespec *rqtp, struct timespec *rmtp); } - SYS___SIGTIMEDWAIT = 431 // { int|sys|50|__sigtimedwait(const sigset_t *set, siginfo_t *info, struct timespec *timeout); } - SYS__LWP_PARK = 434 // { int|sys|50|_lwp_park(const struct timespec *ts, lwpid_t unpark, const void *hint, const void *unparkhint); } - SYS_KEVENT = 435 // { int|sys|50|kevent(int fd, const struct kevent *changelist, size_t nchanges, struct kevent *eventlist, size_t nevents, const struct timespec *timeout); } - SYS_PSELECT = 436 // { int|sys|50|pselect(int nd, fd_set *in, fd_set *ou, fd_set *ex, const struct timespec *ts, const sigset_t *mask); } - SYS_POLLTS = 437 // { int|sys|50|pollts(struct pollfd *fds, u_int nfds, const struct timespec *ts, const sigset_t *mask); } - SYS_STAT = 439 // { int|sys|50|stat(const char *path, struct stat *ub); } - SYS_FSTAT = 440 // { int|sys|50|fstat(int fd, struct stat *sb); } - SYS_LSTAT = 441 // { int|sys|50|lstat(const char *path, struct stat *ub); } - SYS___SEMCTL = 442 // { int|sys|50|__semctl(int semid, int semnum, int cmd, ... union __semun *arg); } - SYS_SHMCTL = 443 // { int|sys|50|shmctl(int shmid, int cmd, struct shmid_ds *buf); } - SYS_MSGCTL = 444 // { int|sys|50|msgctl(int msqid, int cmd, struct msqid_ds *buf); } - SYS_GETRUSAGE = 445 // { int|sys|50|getrusage(int who, struct rusage *rusage); } - SYS_TIMER_SETTIME = 446 // { int|sys|50|timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue); } - SYS_TIMER_GETTIME = 447 // { int|sys|50|timer_gettime(timer_t timerid, struct itimerspec *value); } - SYS_NTP_GETTIME = 448 // { int|sys|50|ntp_gettime(struct ntptimeval *ntvp); } - SYS_WAIT4 = 449 // { int|sys|50|wait4(pid_t pid, int *status, int options, struct rusage *rusage); } - SYS_MKNOD = 450 // { int|sys|50|mknod(const char *path, mode_t mode, dev_t dev); } - SYS_FHSTAT = 451 // { int|sys|50|fhstat(const void *fhp, size_t fh_size, struct stat *sb); } - SYS_PIPE2 = 453 // { int|sys||pipe2(int *fildes, int flags); } - SYS_DUP3 = 454 // { int|sys||dup3(int from, int to, int flags); } - SYS_KQUEUE1 = 455 // { int|sys||kqueue1(int flags); } - SYS_PACCEPT = 456 // { int|sys||paccept(int s, struct sockaddr *name, socklen_t *anamelen, const sigset_t *mask, int flags); } - SYS_LINKAT = 457 // { int|sys||linkat(int fd1, const char *name1, int fd2, const char *name2, int flags); } - SYS_RENAMEAT = 458 // { int|sys||renameat(int fromfd, const char *from, int tofd, const char *to); } - SYS_MKFIFOAT = 459 // { int|sys||mkfifoat(int fd, const char *path, mode_t mode); } - SYS_MKNODAT = 460 // { int|sys||mknodat(int fd, const char *path, mode_t mode, uint32_t dev); } - SYS_MKDIRAT = 461 // { int|sys||mkdirat(int fd, const char *path, mode_t mode); } - SYS_FACCESSAT = 462 // { int|sys||faccessat(int fd, const char *path, int amode, int flag); } - SYS_FCHMODAT = 463 // { int|sys||fchmodat(int fd, const char *path, mode_t mode, int flag); } - SYS_FCHOWNAT = 464 // { int|sys||fchownat(int fd, const char *path, uid_t owner, gid_t group, int flag); } - SYS_FEXECVE = 465 // { int|sys||fexecve(int fd, char * const *argp, char * const *envp); } - SYS_FSTATAT = 466 // { int|sys||fstatat(int fd, const char *path, struct stat *buf, int flag); } - SYS_UTIMENSAT = 467 // { int|sys||utimensat(int fd, const char *path, const struct timespec *tptr, int flag); } - SYS_OPENAT = 468 // { int|sys||openat(int fd, const char *path, int oflags, ... mode_t mode); } - SYS_READLINKAT = 469 // { int|sys||readlinkat(int fd, const char *path, char *buf, size_t bufsize); } - SYS_SYMLINKAT = 470 // { int|sys||symlinkat(const char *path1, int fd, const char *path2); } - SYS_UNLINKAT = 471 // { int|sys||unlinkat(int fd, const char *path, int flag); } - SYS_FUTIMENS = 472 // { int|sys||futimens(int fd, const struct timespec *tptr); } - SYS___QUOTACTL = 473 // { int|sys||__quotactl(const char *path, struct quotactl_args *args); } - SYS_POSIX_SPAWN = 474 // { int|sys||posix_spawn(pid_t *pid, const char *path, const struct posix_spawn_file_actions *file_actions, const struct posix_spawnattr *attrp, char *const *argv, char *const *envp); } - SYS_RECVMMSG = 475 // { int|sys||recvmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags, struct timespec *timeout); } - SYS_SENDMMSG = 476 // { int|sys||sendmmsg(int s, struct mmsghdr *mmsg, unsigned int vlen, unsigned int flags); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go deleted file mode 100644 index 3e8ce2a..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +++ /dev/null @@ -1,207 +0,0 @@ -// mksysnum_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build 386,openbsd - -package unix - -const ( - SYS_EXIT = 1 // { void sys_exit(int rval); } - SYS_FORK = 2 // { int sys_fork(void); } - SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int sys_open(const char *path, \ - SYS_CLOSE = 6 // { int sys_close(int fd); } - SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ - SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int sys_unlink(const char *path); } - SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ - SYS_CHDIR = 12 // { int sys_chdir(const char *path); } - SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } - SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ - SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ - SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break - SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } - SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ - SYS_GETPID = 20 // { pid_t sys_getpid(void); } - SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ - SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t sys_getuid(void); } - SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } - SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ - SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ - SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ - SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ - SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ - SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ - SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); } - SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } - SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } - SYS_SYNC = 36 // { void sys_sync(void); } - SYS_KILL = 37 // { int sys_kill(int pid, int signum); } - SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } - SYS_GETPPID = 39 // { pid_t sys_getppid(void); } - SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } - SYS_DUP = 41 // { int sys_dup(int fd); } - SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ - SYS_GETEGID = 43 // { gid_t sys_getegid(void); } - SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ - SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ - SYS_GETGID = 47 // { gid_t sys_getgid(void); } - SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } - SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } - SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int sys_acct(const char *path); } - SYS_SIGPENDING = 52 // { int sys_sigpending(void); } - SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } - SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ - SYS_REBOOT = 55 // { int sys_reboot(int opt); } - SYS_REVOKE = 56 // { int sys_revoke(const char *path); } - SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ - SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \ - SYS_EXECVE = 59 // { int sys_execve(const char *path, \ - SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } - SYS_CHROOT = 61 // { int sys_chroot(const char *path); } - SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ - SYS_STATFS = 63 // { int sys_statfs(const char *path, \ - SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ - SYS_VFORK = 66 // { int sys_vfork(void); } - SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ - SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ - SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ - SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ - SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ - SYS_KEVENT = 72 // { int sys_kevent(int fd, \ - SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ - SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ - SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ - SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ - SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ - SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ - SYS_GETPGRP = 81 // { int sys_getpgrp(void); } - SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); } - SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ - SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ - SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ - SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ - SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } - SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ - SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } - SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ - SYS_FSYNC = 95 // { int sys_fsync(int fd); } - SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } - SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } - SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ - SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } - SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } - SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } - SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ - SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } - SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ - SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ - SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } - SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { ssize_t sys_readv(int fd, \ - SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ - SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } - SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ - SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } - SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ - SYS_SETSID = 147 // { int sys_setsid(void); } - SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ - SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } - SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } - SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ - SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ - SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } - SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } - SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } - SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } - SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ - SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ - SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ - SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ - SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ - SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } - SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } - SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } - SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ - SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } - SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ - SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ - SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ - SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } - SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ - SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int sys_issetugid(void); } - SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } - SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } - SYS_PIPE = 263 // { int sys_pipe(int *fdp); } - SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } - SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ - SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ - SYS_KQUEUE = 269 // { int sys_kqueue(void); } - SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } - SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } - SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ - SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ - SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ - SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ - SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ - SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } - SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ - SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } - SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ - SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ - SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ - SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ - SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ - SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } - SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } - SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ - SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } - SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ - SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } - SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ - SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } - SYS_GETRTABLE = 311 // { int sys_getrtable(void); } - SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ - SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ - SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ - SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ - SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ - SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ - SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ - SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ - SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ - SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ - SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ - SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ - SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } - SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go deleted file mode 100644 index bd28146..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +++ /dev/null @@ -1,207 +0,0 @@ -// mksysnum_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build amd64,openbsd - -package unix - -const ( - SYS_EXIT = 1 // { void sys_exit(int rval); } - SYS_FORK = 2 // { int sys_fork(void); } - SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int sys_open(const char *path, \ - SYS_CLOSE = 6 // { int sys_close(int fd); } - SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ - SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int sys_unlink(const char *path); } - SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ - SYS_CHDIR = 12 // { int sys_chdir(const char *path); } - SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } - SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ - SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ - SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break - SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } - SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ - SYS_GETPID = 20 // { pid_t sys_getpid(void); } - SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ - SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t sys_getuid(void); } - SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } - SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ - SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ - SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ - SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ - SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ - SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ - SYS_ACCESS = 33 // { int sys_access(const char *path, int flags); } - SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } - SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } - SYS_SYNC = 36 // { void sys_sync(void); } - SYS_KILL = 37 // { int sys_kill(int pid, int signum); } - SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } - SYS_GETPPID = 39 // { pid_t sys_getppid(void); } - SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } - SYS_DUP = 41 // { int sys_dup(int fd); } - SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ - SYS_GETEGID = 43 // { gid_t sys_getegid(void); } - SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ - SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ - SYS_GETGID = 47 // { gid_t sys_getgid(void); } - SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } - SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } - SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int sys_acct(const char *path); } - SYS_SIGPENDING = 52 // { int sys_sigpending(void); } - SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } - SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ - SYS_REBOOT = 55 // { int sys_reboot(int opt); } - SYS_REVOKE = 56 // { int sys_revoke(const char *path); } - SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ - SYS_READLINK = 58 // { int sys_readlink(const char *path, char *buf, \ - SYS_EXECVE = 59 // { int sys_execve(const char *path, \ - SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } - SYS_CHROOT = 61 // { int sys_chroot(const char *path); } - SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ - SYS_STATFS = 63 // { int sys_statfs(const char *path, \ - SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ - SYS_VFORK = 66 // { int sys_vfork(void); } - SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ - SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ - SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ - SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ - SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ - SYS_KEVENT = 72 // { int sys_kevent(int fd, \ - SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ - SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ - SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ - SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ - SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ - SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ - SYS_GETPGRP = 81 // { int sys_getpgrp(void); } - SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, int pgid); } - SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ - SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ - SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ - SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ - SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } - SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ - SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } - SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ - SYS_FSYNC = 95 // { int sys_fsync(int fd); } - SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } - SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } - SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ - SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } - SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } - SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } - SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ - SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } - SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ - SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ - SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } - SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { ssize_t sys_readv(int fd, \ - SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ - SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } - SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ - SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } - SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ - SYS_SETSID = 147 // { int sys_setsid(void); } - SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ - SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } - SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } - SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ - SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ - SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } - SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } - SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } - SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } - SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ - SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ - SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ - SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ - SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ - SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } - SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } - SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } - SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ - SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } - SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ - SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ - SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ - SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } - SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ - SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int sys_issetugid(void); } - SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } - SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } - SYS_PIPE = 263 // { int sys_pipe(int *fdp); } - SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } - SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ - SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ - SYS_KQUEUE = 269 // { int sys_kqueue(void); } - SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } - SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } - SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ - SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ - SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ - SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ - SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ - SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } - SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ - SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } - SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ - SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ - SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ - SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ - SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ - SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } - SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } - SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ - SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } - SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ - SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } - SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ - SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } - SYS_GETRTABLE = 311 // { int sys_getrtable(void); } - SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ - SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ - SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ - SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ - SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ - SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ - SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ - SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ - SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ - SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ - SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ - SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ - SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } - SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } -) diff --git a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go deleted file mode 100644 index 32653e5..0000000 --- a/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +++ /dev/null @@ -1,213 +0,0 @@ -// mksysnum_openbsd.pl -// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT - -// +build arm,openbsd - -package unix - -const ( - SYS_EXIT = 1 // { void sys_exit(int rval); } - SYS_FORK = 2 // { int sys_fork(void); } - SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); } - SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \ - SYS_OPEN = 5 // { int sys_open(const char *path, \ - SYS_CLOSE = 6 // { int sys_close(int fd); } - SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); } - SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \ - SYS_LINK = 9 // { int sys_link(const char *path, const char *link); } - SYS_UNLINK = 10 // { int sys_unlink(const char *path); } - SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \ - SYS_CHDIR = 12 // { int sys_chdir(const char *path); } - SYS_FCHDIR = 13 // { int sys_fchdir(int fd); } - SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \ - SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); } - SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \ - SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break - SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); } - SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \ - SYS_GETPID = 20 // { pid_t sys_getpid(void); } - SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \ - SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); } - SYS_SETUID = 23 // { int sys_setuid(uid_t uid); } - SYS_GETUID = 24 // { uid_t sys_getuid(void); } - SYS_GETEUID = 25 // { uid_t sys_geteuid(void); } - SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \ - SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \ - SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \ - SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \ - SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \ - SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \ - SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \ - SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); } - SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); } - SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); } - SYS_SYNC = 36 // { void sys_sync(void); } - SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); } - SYS_GETPPID = 39 // { pid_t sys_getppid(void); } - SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); } - SYS_DUP = 41 // { int sys_dup(int fd); } - SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \ - SYS_GETEGID = 43 // { gid_t sys_getegid(void); } - SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \ - SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \ - SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \ - SYS_GETGID = 47 // { gid_t sys_getgid(void); } - SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); } - SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); } - SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); } - SYS_ACCT = 51 // { int sys_acct(const char *path); } - SYS_SIGPENDING = 52 // { int sys_sigpending(void); } - SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); } - SYS_IOCTL = 54 // { int sys_ioctl(int fd, \ - SYS_REBOOT = 55 // { int sys_reboot(int opt); } - SYS_REVOKE = 56 // { int sys_revoke(const char *path); } - SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \ - SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \ - SYS_EXECVE = 59 // { int sys_execve(const char *path, \ - SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); } - SYS_CHROOT = 61 // { int sys_chroot(const char *path); } - SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \ - SYS_STATFS = 63 // { int sys_statfs(const char *path, \ - SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); } - SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \ - SYS_VFORK = 66 // { int sys_vfork(void); } - SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \ - SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \ - SYS_SETITIMER = 69 // { int sys_setitimer(int which, \ - SYS_GETITIMER = 70 // { int sys_getitimer(int which, \ - SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \ - SYS_KEVENT = 72 // { int sys_kevent(int fd, \ - SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); } - SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \ - SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \ - SYS_UTIMES = 76 // { int sys_utimes(const char *path, \ - SYS_FUTIMES = 77 // { int sys_futimes(int fd, \ - SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \ - SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \ - SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \ - SYS_GETPGRP = 81 // { int sys_getpgrp(void); } - SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); } - SYS_SENDSYSLOG = 83 // { int sys_sendsyslog(const void *buf, size_t nbyte); } - SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \ - SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \ - SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \ - SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \ - SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \ - SYS_DUP2 = 90 // { int sys_dup2(int from, int to); } - SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \ - SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); } - SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \ - SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \ - SYS_FSYNC = 95 // { int sys_fsync(int fd); } - SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); } - SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); } - SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \ - SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); } - SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); } - SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); } - SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); } - SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); } - SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \ - SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \ - SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); } - SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \ - SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \ - SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \ - SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); } - SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \ - SYS_READV = 120 // { ssize_t sys_readv(int fd, \ - SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \ - SYS_KILL = 122 // { int sys_kill(int pid, int signum); } - SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); } - SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); } - SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); } - SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); } - SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); } - SYS_FLOCK = 131 // { int sys_flock(int fd, int how); } - SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); } - SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \ - SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); } - SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \ - SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); } - SYS_RMDIR = 137 // { int sys_rmdir(const char *path); } - SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \ - SYS_SETSID = 147 // { int sys_setsid(void); } - SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \ - SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); } - SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); } - SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); } - SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \ - SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \ - SYS_SETGID = 181 // { int sys_setgid(gid_t gid); } - SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); } - SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); } - SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); } - SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); } - SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); } - SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \ - SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \ - SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \ - SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \ - SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \ - SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); } - SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \ - SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); } - SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); } - SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); } - SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \ - SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); } - SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); } - SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ - SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ - SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \ - SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); } - SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \ - SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \ - SYS_ISSETUGID = 253 // { int sys_issetugid(void); } - SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); } - SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); } - SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); } - SYS_PIPE = 263 // { int sys_pipe(int *fdp); } - SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); } - SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \ - SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \ - SYS_KQUEUE = 269 // { int sys_kqueue(void); } - SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); } - SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); } - SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \ - SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \ - SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \ - SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \ - SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \ - SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); } - SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \ - SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); } - SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \ - SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \ - SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \ - SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \ - SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \ - SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); } - SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); } - SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \ - SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); } - SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \ - SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); } - SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \ - SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); } - SYS_GETRTABLE = 311 // { int sys_getrtable(void); } - SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \ - SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \ - SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \ - SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \ - SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \ - SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \ - SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \ - SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \ - SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \ - SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \ - SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \ - SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \ - SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); } - SYS___GET_TCB = 330 // { void *sys___get_tcb(void); } -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go deleted file mode 100644 index bc4bc89..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_386.go +++ /dev/null @@ -1,489 +0,0 @@ -// cgo -godefs types_darwin.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,darwin - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timeval32 struct{} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev int32 - Mode uint16 - Nlink uint16 - Ino uint64 - Uid uint32 - Gid uint32 - Rdev int32 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Qspare [2]int64 -} - -type Statfs_t struct { - Bsize uint32 - Iosize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Owner uint32 - Type uint32 - Flags uint32 - Fssubtype uint32 - Fstypename [16]int8 - Mntonname [1024]int8 - Mntfromname [1024]int8 - Reserved [8]uint32 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Fstore_t struct { - Flags uint32 - Posmode int32 - Offset int64 - Length int64 - Bytesalloc int64 -} - -type Radvisory_t struct { - Offset int64 - Count int32 -} - -type Fbootstraptransfer_t struct { - Offset int64 - Length uint32 - Buffer *byte -} - -type Log2phys_t struct { - Flags uint32 - Contigbytes int64 - Devoffset int64 -} - -type Fsid struct { - Val [2]int32 -} - -type Dirent struct { - Ino uint64 - Seekoff uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [1024]int8 - Pad_cgo_0 [3]byte -} - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex uint32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int32 - Udata *byte -} - -type FdSet struct { - Bits [32]int32 -} - -const ( - SizeofIfMsghdr = 0x70 - SizeofIfData = 0x60 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfmaMsghdr2 = 0x14 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Typelen uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Recvquota uint8 - Xmitquota uint8 - Unused1 uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Recvtiming uint32 - Xmittiming uint32 - Lastchange Timeval - Unused2 uint32 - Hwassist uint32 - Reserved1 uint32 - Reserved2 uint32 -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfmaMsghdr2 struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Refcount int32 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire int32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Filler [4]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x2 - AT_REMOVEDIR = 0x80 - AT_SYMLINK_FOLLOW = 0x40 - AT_SYMLINK_NOFOLLOW = 0x20 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go deleted file mode 100644 index d8abcab..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +++ /dev/null @@ -1,499 +0,0 @@ -// cgo -godefs types_darwin.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,darwin - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Timeval32 struct { - Sec int32 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev int32 - Mode uint16 - Nlink uint16 - Ino uint64 - Uid uint32 - Gid uint32 - Rdev int32 - Pad_cgo_0 [4]byte - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Qspare [2]int64 -} - -type Statfs_t struct { - Bsize uint32 - Iosize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Owner uint32 - Type uint32 - Flags uint32 - Fssubtype uint32 - Fstypename [16]int8 - Mntonname [1024]int8 - Mntfromname [1024]int8 - Reserved [8]uint32 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Fstore_t struct { - Flags uint32 - Posmode int32 - Offset int64 - Length int64 - Bytesalloc int64 -} - -type Radvisory_t struct { - Offset int64 - Count int32 - Pad_cgo_0 [4]byte -} - -type Fbootstraptransfer_t struct { - Offset int64 - Length uint64 - Buffer *byte -} - -type Log2phys_t struct { - Flags uint32 - Pad_cgo_0 [8]byte - Pad_cgo_1 [8]byte -} - -type Fsid struct { - Val [2]int32 -} - -type Dirent struct { - Ino uint64 - Seekoff uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [1024]int8 - Pad_cgo_0 [3]byte -} - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex uint32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [32]int32 -} - -const ( - SizeofIfMsghdr = 0x70 - SizeofIfData = 0x60 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfmaMsghdr2 = 0x14 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Typelen uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Recvquota uint8 - Xmitquota uint8 - Unused1 uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Recvtiming uint32 - Xmittiming uint32 - Lastchange Timeval32 - Unused2 uint32 - Hwassist uint32 - Reserved1 uint32 - Reserved2 uint32 -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfmaMsghdr2 struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Refcount int32 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire int32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Filler [4]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval32 - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type Termios struct { - Iflag uint64 - Oflag uint64 - Cflag uint64 - Lflag uint64 - Cc [20]uint8 - Pad_cgo_0 [4]byte - Ispeed uint64 - Ospeed uint64 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x2 - AT_REMOVEDIR = 0x80 - AT_SYMLINK_FOLLOW = 0x40 - AT_SYMLINK_NOFOLLOW = 0x20 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go deleted file mode 100644 index 9749c9f..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm.go +++ /dev/null @@ -1,490 +0,0 @@ -// NOTE: cgo can't generate struct Stat_t and struct Statfs_t yet -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs types_darwin.go - -// +build arm,darwin - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timeval32 [0]byte - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev int32 - Mode uint16 - Nlink uint16 - Ino uint64 - Uid uint32 - Gid uint32 - Rdev int32 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Qspare [2]int64 -} - -type Statfs_t struct { - Bsize uint32 - Iosize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Owner uint32 - Type uint32 - Flags uint32 - Fssubtype uint32 - Fstypename [16]int8 - Mntonname [1024]int8 - Mntfromname [1024]int8 - Reserved [8]uint32 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Fstore_t struct { - Flags uint32 - Posmode int32 - Offset int64 - Length int64 - Bytesalloc int64 -} - -type Radvisory_t struct { - Offset int64 - Count int32 -} - -type Fbootstraptransfer_t struct { - Offset int64 - Length uint32 - Buffer *byte -} - -type Log2phys_t struct { - Flags uint32 - Contigbytes int64 - Devoffset int64 -} - -type Fsid struct { - Val [2]int32 -} - -type Dirent struct { - Ino uint64 - Seekoff uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [1024]int8 - Pad_cgo_0 [3]byte -} - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex uint32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int32 - Udata *byte -} - -type FdSet struct { - Bits [32]int32 -} - -const ( - SizeofIfMsghdr = 0x70 - SizeofIfData = 0x60 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfmaMsghdr2 = 0x14 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Typelen uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Recvquota uint8 - Xmitquota uint8 - Unused1 uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Recvtiming uint32 - Xmittiming uint32 - Lastchange Timeval - Unused2 uint32 - Hwassist uint32 - Reserved1 uint32 - Reserved2 uint32 -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfmaMsghdr2 struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Refcount int32 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire int32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Filler [4]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x2 - AT_REMOVEDIR = 0x80 - AT_SYMLINK_FOLLOW = 0x40 - AT_SYMLINK_NOFOLLOW = 0x20 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go deleted file mode 100644 index 810b0bd..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +++ /dev/null @@ -1,499 +0,0 @@ -// cgo -godefs types_darwin.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,darwin - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Timeval32 struct { - Sec int32 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev int32 - Mode uint16 - Nlink uint16 - Ino uint64 - Uid uint32 - Gid uint32 - Rdev int32 - Pad_cgo_0 [4]byte - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Qspare [2]int64 -} - -type Statfs_t struct { - Bsize uint32 - Iosize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Owner uint32 - Type uint32 - Flags uint32 - Fssubtype uint32 - Fstypename [16]int8 - Mntonname [1024]int8 - Mntfromname [1024]int8 - Reserved [8]uint32 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Fstore_t struct { - Flags uint32 - Posmode int32 - Offset int64 - Length int64 - Bytesalloc int64 -} - -type Radvisory_t struct { - Offset int64 - Count int32 - Pad_cgo_0 [4]byte -} - -type Fbootstraptransfer_t struct { - Offset int64 - Length uint64 - Buffer *byte -} - -type Log2phys_t struct { - Flags uint32 - Pad_cgo_0 [8]byte - Pad_cgo_1 [8]byte -} - -type Fsid struct { - Val [2]int32 -} - -type Dirent struct { - Ino uint64 - Seekoff uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [1024]int8 - Pad_cgo_0 [3]byte -} - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex uint32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [32]int32 -} - -const ( - SizeofIfMsghdr = 0x70 - SizeofIfData = 0x60 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfmaMsghdr2 = 0x14 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Typelen uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Recvquota uint8 - Xmitquota uint8 - Unused1 uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Recvtiming uint32 - Xmittiming uint32 - Lastchange Timeval32 - Unused2 uint32 - Hwassist uint32 - Reserved1 uint32 - Reserved2 uint32 -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfmaMsghdr2 struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Refcount int32 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire int32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Filler [4]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval32 - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type Termios struct { - Iflag uint64 - Oflag uint64 - Cflag uint64 - Lflag uint64 - Cc [20]uint8 - Pad_cgo_0 [4]byte - Ispeed uint64 - Ospeed uint64 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x2 - AT_REMOVEDIR = 0x80 - AT_SYMLINK_FOLLOW = 0x40 - AT_SYMLINK_NOFOLLOW = 0x20 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go deleted file mode 100644 index e3b8ebb..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +++ /dev/null @@ -1,486 +0,0 @@ -// cgo -godefs types_dragonfly.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,dragonfly - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur int64 - Max int64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Ino uint64 - Nlink uint32 - Dev uint32 - Mode uint16 - Padding1 uint16 - Uid uint32 - Gid uint32 - Rdev uint32 - Atim Timespec - Mtim Timespec - Ctim Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - Lspare int32 - Qspare1 int64 - Qspare2 int64 -} - -type Statfs_t struct { - Spare2 int64 - Bsize int64 - Iosize int64 - Blocks int64 - Bfree int64 - Bavail int64 - Files int64 - Ffree int64 - Fsid Fsid - Owner uint32 - Type int32 - Flags int32 - Pad_cgo_0 [4]byte - Syncwrites int64 - Asyncwrites int64 - Fstypename [16]int8 - Mntonname [80]int8 - Syncreads int64 - Asyncreads int64 - Spares1 int16 - Mntfromname [80]int8 - Spares2 int16 - Pad_cgo_1 [4]byte - Spare [2]int64 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Namlen uint16 - Type uint8 - Unused1 uint8 - Unused2 uint32 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 - Rcf uint16 - Route [16]uint16 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x36 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [16]uint64 -} - -const ( - SizeofIfMsghdr = 0xb0 - SizeofIfData = 0xa0 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x98 - SizeofRtMetrics = 0x70 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Recvquota uint8 - Xmitquota uint8 - Pad_cgo_0 [2]byte - Mtu uint64 - Metric uint64 - Link_state uint64 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Hwassist uint64 - Oqdrops uint64 - Lastchange Timeval -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint64 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint64 - Mtu uint64 - Pksent uint64 - Expire uint64 - Sendpipe uint64 - Ssthresh uint64 - Rtt uint64 - Rttvar uint64 - Recvpipe uint64 - Hopcount uint64 - Mssopt uint16 - Pad uint16 - Pad_cgo_0 [4]byte - Msl uint64 - Iwmaxsegs uint64 - Iwcapsegs uint64 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x20 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [6]byte -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = 0xfffafdcd - AT_SYMLINK_NOFOLLOW = 0x1 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [32]byte - Nodename [32]byte - Release [32]byte - Version [32]byte - Machine [32]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go deleted file mode 100644 index 878a21a..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +++ /dev/null @@ -1,553 +0,0 @@ -// cgo -godefs types_freebsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,freebsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur int64 - Max int64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Dev uint32 - Ino uint32 - Mode uint16 - Nlink uint16 - Uid uint32 - Gid uint32 - Rdev uint32 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Birthtimespec Timespec - Pad_cgo_0 [8]byte -} - -type Statfs_t struct { - Version uint32 - Type uint32 - Flags uint64 - Bsize uint64 - Iosize uint64 - Blocks uint64 - Bfree uint64 - Bavail int64 - Files uint64 - Ffree int64 - Syncwrites uint64 - Asyncwrites uint64 - Syncreads uint64 - Asyncreads uint64 - Spare [10]uint64 - Namemax uint32 - Owner uint32 - Fsid Fsid - Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 - Sysid int32 -} - -type Dirent struct { - Fileno uint32 - Reclen uint16 - Type uint8 - Namlen uint8 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [46]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x36 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int32 - Udata *byte -} - -type FdSet struct { - X__fds_bits [32]uint32 -} - -const ( - sizeofIfMsghdr = 0xa8 - SizeofIfMsghdr = 0x60 - sizeofIfData = 0x98 - SizeofIfData = 0x50 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type ifMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data ifData -} - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type ifData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Vhid uint8 - Datalen uint16 - Mtu uint32 - Metric uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Oqdrops uint64 - Noproto uint64 - Hwassist uint64 - X__ifi_epoch [8]byte - X__ifi_lastchange [16]byte -} - -type IfData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Spare_char1 uint8 - Spare_char2 uint8 - Datalen uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Hwassist uint32 - Epoch int32 - Lastchange Timeval -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Fmask int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Weight uint32 - Filler [3]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfZbuf = 0xc - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 - SizeofBpfZbufHeader = 0x20 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfZbuf struct { - Bufa *byte - Bufb *byte - Buflen uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfZbufHeader struct { - Kernel_gen uint32 - Kernel_len uint32 - User_gen uint32 - X_bzh_pad [5]uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_REMOVEDIR = 0x800 - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLINIGNEOF = 0x2000 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type CapRights struct { - Rights [2]uint64 -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go deleted file mode 100644 index 8408af1..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +++ /dev/null @@ -1,556 +0,0 @@ -// cgo -godefs types_freebsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,freebsd - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur int64 - Max int64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Dev uint32 - Ino uint32 - Mode uint16 - Nlink uint16 - Uid uint32 - Gid uint32 - Rdev uint32 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Birthtimespec Timespec -} - -type Statfs_t struct { - Version uint32 - Type uint32 - Flags uint64 - Bsize uint64 - Iosize uint64 - Blocks uint64 - Bfree uint64 - Bavail int64 - Files uint64 - Ffree int64 - Syncwrites uint64 - Asyncwrites uint64 - Syncreads uint64 - Asyncreads uint64 - Spare [10]uint64 - Namemax uint32 - Owner uint32 - Fsid Fsid - Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 - Sysid int32 - Pad_cgo_0 [4]byte -} - -type Dirent struct { - Fileno uint32 - Reclen uint16 - Type uint8 - Namlen uint8 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [46]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x36 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - X__fds_bits [16]uint64 -} - -const ( - sizeofIfMsghdr = 0xa8 - SizeofIfMsghdr = 0xa8 - sizeofIfData = 0x98 - SizeofIfData = 0x98 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x98 - SizeofRtMetrics = 0x70 -) - -type ifMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data ifData -} - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type ifData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Vhid uint8 - Datalen uint16 - Mtu uint32 - Metric uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Oqdrops uint64 - Noproto uint64 - Hwassist uint64 - X__ifi_epoch [8]byte - X__ifi_lastchange [16]byte -} - -type IfData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Spare_char1 uint8 - Spare_char2 uint8 - Datalen uint8 - Mtu uint64 - Metric uint64 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Hwassist uint64 - Epoch int64 - Lastchange Timeval -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Fmask int32 - Inits uint64 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint64 - Mtu uint64 - Hopcount uint64 - Expire uint64 - Recvpipe uint64 - Sendpipe uint64 - Ssthresh uint64 - Rtt uint64 - Rttvar uint64 - Pksent uint64 - Weight uint64 - Filler [3]uint64 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfZbuf = 0x18 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x20 - SizeofBpfZbufHeader = 0x20 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfZbuf struct { - Bufa *byte - Bufb *byte - Buflen uint64 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [6]byte -} - -type BpfZbufHeader struct { - Kernel_gen uint32 - Kernel_len uint32 - User_gen uint32 - X_bzh_pad [5]uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_REMOVEDIR = 0x800 - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLINIGNEOF = 0x2000 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type CapRights struct { - Rights [2]uint64 -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go deleted file mode 100644 index 4b2d9a4..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +++ /dev/null @@ -1,556 +0,0 @@ -// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,freebsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int32 - Pad_cgo_0 [4]byte -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur int64 - Max int64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Dev uint32 - Ino uint32 - Mode uint16 - Nlink uint16 - Uid uint32 - Gid uint32 - Rdev uint32 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - Lspare int32 - Birthtimespec Timespec -} - -type Statfs_t struct { - Version uint32 - Type uint32 - Flags uint64 - Bsize uint64 - Iosize uint64 - Blocks uint64 - Bfree uint64 - Bavail int64 - Files uint64 - Ffree int64 - Syncwrites uint64 - Asyncwrites uint64 - Syncreads uint64 - Asyncreads uint64 - Spare [10]uint64 - Namemax uint32 - Owner uint32 - Fsid Fsid - Charspare [80]int8 - Fstypename [16]int8 - Mntfromname [88]int8 - Mntonname [88]int8 -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 - Sysid int32 - Pad_cgo_0 [4]byte -} - -type Dirent struct { - Fileno uint32 - Reclen uint16 - Type uint8 - Namlen uint8 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [46]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x36 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int32 - Udata *byte -} - -type FdSet struct { - X__fds_bits [32]uint32 -} - -const ( - sizeofIfMsghdr = 0xa8 - SizeofIfMsghdr = 0x70 - sizeofIfData = 0x98 - SizeofIfData = 0x60 - SizeofIfaMsghdr = 0x14 - SizeofIfmaMsghdr = 0x10 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x5c - SizeofRtMetrics = 0x38 -) - -type ifMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data ifData -} - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type ifData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Vhid uint8 - Datalen uint16 - Mtu uint32 - Metric uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Oqdrops uint64 - Noproto uint64 - Hwassist uint64 - X__ifi_epoch [8]byte - X__ifi_lastchange [16]byte -} - -type IfData struct { - Type uint8 - Physical uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Spare_char1 uint8 - Spare_char2 uint8 - Datalen uint8 - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Hwassist uint32 - Pad_cgo_0 [4]byte - Epoch int64 - Lastchange Timeval -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type IfmaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Fmask int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 - Weight uint32 - Filler [3]uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfZbuf = 0xc - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x20 - SizeofBpfZbufHeader = 0x20 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfZbuf struct { - Bufa *byte - Bufb *byte - Buflen uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp Timeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [6]byte -} - -type BpfZbufHeader struct { - Kernel_gen uint32 - Kernel_len uint32 - User_gen uint32 - X_bzh_pad [5]uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_REMOVEDIR = 0x800 - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLINIGNEOF = 0x2000 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type CapRights struct { - Rights [2]uint64 -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vendor/golang.org/x/sys/unix/ztypes_linux_386.go deleted file mode 100644 index 7aa206e..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ /dev/null @@ -1,871 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,linux - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timex struct { - Modes uint32 - Offset int32 - Freq int32 - Maxerror int32 - Esterror int32 - Status int32 - Constant int32 - Precision int32 - Tolerance int32 - Time Timeval - Tick int32 - Ppsfreq int32 - Jitter int32 - Shift int32 - Stabil int32 - Jitcnt int32 - Calcnt int32 - Errcnt int32 - Stbcnt int32 - Tai int32 - _ [44]byte -} - -type Time_t int32 - -type Tms struct { - Utime int32 - Stime int32 - Cutime int32 - Cstime int32 -} - -type Utimbuf struct { - Actime int32 - Modtime int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - X__pad1 uint16 - _ [2]byte - X__st_ino uint32 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - X__pad2 uint16 - _ [2]byte - Size int64 - Blksize int32 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Ino uint64 -} - -type Statfs_t struct { - Type int32 - Bsize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int32 - Frsize int32 - Flags int32 - Spare [4]int32 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [1]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - Start int64 - Len int64 - Pid int32 -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [2]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Ebx int32 - Ecx int32 - Edx int32 - Esi int32 - Edi int32 - Ebp int32 - Eax int32 - Xds int32 - Xes int32 - Xfs int32 - Xgs int32 - Orig_eax int32 - Eip int32 - Xcs int32 - Eflags int32 - Esp int32 - Xss int32 -} - -type FdSet struct { - Bits [32]int32 -} - -type Sysinfo_t struct { - Uptime int32 - Loads [3]uint32 - Totalram uint32 - Freeram uint32 - Sharedram uint32 - Bufferram uint32 - Totalswap uint32 - Freeswap uint32 - Procs uint16 - Pad uint16 - Totalhigh uint32 - Freehigh uint32 - Unit uint32 - X_f [8]int8 -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - Tinode uint32 - Fname [6]int8 - Fpack [6]int8 -} - -type EpollEvent struct { - Events uint32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [32]uint32 -} - -const RNDGETENTCNT = 0x80045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint32 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go deleted file mode 100644 index abb3d89..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ /dev/null @@ -1,889 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Ino uint64 - Nlink uint64 - Mode uint32 - Uid uint32 - Gid uint32 - X__pad0 int32 - Rdev uint64 - Size int64 - Blksize int64 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - _ [3]int64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int64 - Frsize int64 - Flags int64 - Spare [4]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - R15 uint64 - R14 uint64 - R13 uint64 - R12 uint64 - Rbp uint64 - Rbx uint64 - R11 uint64 - R10 uint64 - R9 uint64 - R8 uint64 - Rax uint64 - Rcx uint64 - Rdx uint64 - Rsi uint64 - Rdi uint64 - Orig_rax uint64 - Rip uint64 - Cs uint64 - Eflags uint64 - Rsp uint64 - Ss uint64 - Fs_base uint64 - Gs_base uint64 - Ds uint64 - Es uint64 - Fs uint64 - Gs uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]int8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x80045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go deleted file mode 100644 index 1165417..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ /dev/null @@ -1,860 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,linux - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timex struct { - Modes uint32 - Offset int32 - Freq int32 - Maxerror int32 - Esterror int32 - Status int32 - Constant int32 - Precision int32 - Tolerance int32 - Time Timeval - Tick int32 - Ppsfreq int32 - Jitter int32 - Shift int32 - Stabil int32 - Jitcnt int32 - Calcnt int32 - Errcnt int32 - Stbcnt int32 - Tai int32 - _ [44]byte -} - -type Time_t int32 - -type Tms struct { - Utime int32 - Stime int32 - Cutime int32 - Cstime int32 -} - -type Utimbuf struct { - Actime int32 - Modtime int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - X__pad1 uint16 - _ [2]byte - X__st_ino uint32 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - X__pad2 uint16 - _ [6]byte - Size int64 - Blksize int32 - _ [4]byte - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Ino uint64 -} - -type Statfs_t struct { - Type int32 - Bsize int32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int32 - Frsize int32 - Flags int32 - Spare [4]int32 - _ [4]byte -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]uint8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]uint8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]uint8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [2]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Uregs [18]uint32 -} - -type FdSet struct { - Bits [32]int32 -} - -type Sysinfo_t struct { - Uptime int32 - Loads [3]uint32 - Totalram uint32 - Freeram uint32 - Sharedram uint32 - Bufferram uint32 - Totalswap uint32 - Freeswap uint32 - Procs uint16 - Pad uint16 - Totalhigh uint32 - Freehigh uint32 - Unit uint32 - X_f [8]uint8 -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - Tinode uint32 - Fname [6]uint8 - Fpack [6]uint8 -} - -type EpollEvent struct { - Events uint32 - PadFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [32]uint32 -} - -const RNDGETENTCNT = 0x80045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]uint8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint32 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go deleted file mode 100644 index 0d0de46..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ /dev/null @@ -1,868 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm64,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - X__pad1 uint64 - Size int64 - Blksize int32 - X__pad2 int32 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - _ [2]int32 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int64 - Frsize int64 - Flags int64 - Spare [4]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [31]uint64 - Sp uint64 - Pc uint64 - Pstate uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]int8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - PadFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x80045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go deleted file mode 100644 index a9087c5..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ /dev/null @@ -1,865 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips,linux - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timex struct { - Modes uint32 - Offset int32 - Freq int32 - Maxerror int32 - Esterror int32 - Status int32 - Constant int32 - Precision int32 - Tolerance int32 - Time Timeval - Tick int32 - Ppsfreq int32 - Jitter int32 - Shift int32 - Stabil int32 - Jitcnt int32 - Calcnt int32 - Errcnt int32 - Stbcnt int32 - Tai int32 - _ [44]byte -} - -type Time_t int32 - -type Tms struct { - Utime int32 - Stime int32 - Cutime int32 - Cstime int32 -} - -type Utimbuf struct { - Actime int32 - Modtime int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint32 - Pad1 [3]int32 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint32 - Pad2 [3]int32 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize int32 - Pad4 int32 - Blocks int64 - Pad5 [14]int32 -} - -type Statfs_t struct { - Type int32 - Bsize int32 - Frsize int32 - _ [4]byte - Blocks uint64 - Bfree uint64 - Files uint64 - Ffree uint64 - Bavail uint64 - Fsid Fsid - Namelen int32 - Flags int32 - Spare [5]int32 - _ [4]byte -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [2]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -type FdSet struct { - Bits [32]int32 -} - -type Sysinfo_t struct { - Uptime int32 - Loads [3]uint32 - Totalram uint32 - Freeram uint32 - Sharedram uint32 - Bufferram uint32 - Totalswap uint32 - Freeswap uint32 - Procs uint16 - Pad uint16 - Totalhigh uint32 - Freehigh uint32 - Unit uint32 - X_f [8]int8 -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - Tinode uint32 - Fname [6]int8 - Fpack [6]int8 -} - -type EpollEvent struct { - Events uint32 - PadFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [32]uint32 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [23]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint32 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go deleted file mode 100644 index 01e8f65..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ /dev/null @@ -1,870 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint32 - Pad1 [3]uint32 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint32 - Pad2 [3]uint32 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize uint32 - Pad4 uint32 - Blocks int64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Frsize int64 - Blocks uint64 - Bfree uint64 - Files uint64 - Ffree uint64 - Bavail uint64 - Fsid Fsid - Namelen int64 - Flags int64 - Spare [5]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]int8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [23]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go deleted file mode 100644 index 6f9452d..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ /dev/null @@ -1,870 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mips64le,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint32 - Pad1 [3]uint32 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint32 - Pad2 [3]uint32 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize uint32 - Pad4 uint32 - Blocks int64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Frsize int64 - Blocks uint64 - Bfree uint64 - Files uint64 - Ffree uint64 - Bavail uint64 - Fsid Fsid - Namelen int64 - Flags int64 - Spare [5]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]int8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [23]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go deleted file mode 100644 index 6de721f..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ /dev/null @@ -1,865 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build mipsle,linux - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int32 - Nsec int32 -} - -type Timeval struct { - Sec int32 - Usec int32 -} - -type Timex struct { - Modes uint32 - Offset int32 - Freq int32 - Maxerror int32 - Esterror int32 - Status int32 - Constant int32 - Precision int32 - Tolerance int32 - Time Timeval - Tick int32 - Ppsfreq int32 - Jitter int32 - Shift int32 - Stabil int32 - Jitcnt int32 - Calcnt int32 - Errcnt int32 - Stbcnt int32 - Tai int32 - _ [44]byte -} - -type Time_t int32 - -type Tms struct { - Utime int32 - Stime int32 - Cutime int32 - Cstime int32 -} - -type Utimbuf struct { - Actime int32 - Modtime int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint32 - Pad1 [3]int32 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint32 - Pad2 [3]int32 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize int32 - Pad4 int32 - Blocks int64 - Pad5 [14]int32 -} - -type Statfs_t struct { - Type int32 - Bsize int32 - Frsize int32 - _ [4]byte - Blocks uint64 - Bfree uint64 - Files uint64 - Ffree uint64 - Bavail uint64 - Fsid Fsid - Namelen int32 - Flags int32 - Spare [5]int32 - _ [4]byte -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x8 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [2]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [32]uint64 - Lo uint64 - Hi uint64 - Epc uint64 - Badvaddr uint64 - Status uint64 - Cause uint64 -} - -type FdSet struct { - Bits [32]int32 -} - -type Sysinfo_t struct { - Uptime int32 - Loads [3]uint32 - Totalram uint32 - Freeram uint32 - Sharedram uint32 - Bufferram uint32 - Totalswap uint32 - Freeswap uint32 - Procs uint16 - Pad uint16 - Totalhigh uint32 - Freehigh uint32 - Unit uint32 - X_f [8]int8 -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - Tinode uint32 - Fname [6]int8 - Fpack [6]int8 -} - -type EpollEvent struct { - Events uint32 - PadFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [32]uint32 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [23]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint32 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x20 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go deleted file mode 100644 index cb2701f..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ /dev/null @@ -1,878 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Ino uint64 - Nlink uint64 - Mode uint32 - Uid uint32 - Gid uint32 - X__pad2 int32 - Rdev uint64 - Size int64 - Blksize int64 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - _ uint64 - _ uint64 - _ uint64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int64 - Frsize int64 - Flags int64 - Spare [4]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]uint8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]uint8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]uint8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Gpr [32]uint64 - Nip uint64 - Msr uint64 - Orig_gpr3 uint64 - Ctr uint64 - Link uint64 - Xer uint64 - Ccr uint64 - Softe uint64 - Trap uint64 - Dar uint64 - Dsisr uint64 - Result uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]uint8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]uint8 - Fpack [6]uint8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - X_padFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [19]uint8 - Line uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]uint8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go deleted file mode 100644 index fa5b15b..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ /dev/null @@ -1,878 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build ppc64le,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Ino uint64 - Nlink uint64 - Mode uint32 - Uid uint32 - Gid uint32 - X__pad2 int32 - Rdev uint64 - Size int64 - Blksize int64 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - _ uint64 - _ uint64 - _ uint64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int64 - Frsize int64 - Flags int64 - Spare [4]int64 -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - X__reserved int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]uint8 - _ [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]uint8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]uint8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Gpr [32]uint64 - Nip uint64 - Msr uint64 - Orig_gpr3 uint64 - Ctr uint64 - Link uint64 - Xer uint64 - Ccr uint64 - Softe uint64 - Trap uint64 - Dar uint64 - Dsisr uint64 - Result uint64 -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]uint8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]uint8 - Fpack [6]uint8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - X_padFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -const RNDGETENTCNT = 0x40045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [19]uint8 - Line uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]uint8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go deleted file mode 100644 index 64952cb..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ /dev/null @@ -1,895 +0,0 @@ -// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build s390x,linux - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timex struct { - Modes uint32 - _ [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - _ [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - _ [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - _ [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Ino uint64 - Nlink uint64 - Mode uint32 - Uid uint32 - Gid uint32 - _ int32 - Rdev uint64 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize int64 - Blocks int64 - _ [3]int64 -} - -type Statfs_t struct { - Type uint32 - Bsize uint32 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen uint32 - Frsize uint32 - Flags uint32 - Spare [4]uint32 - _ [4]byte -} - -type StatxTimestamp struct { - Sec int64 - Nsec uint32 - _ int32 -} - -type Statx_t struct { - Mask uint32 - Blksize uint32 - Attributes uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Mode uint16 - _ [1]uint16 - Ino uint64 - Size uint64 - Blocks uint64 - Attributes_mask uint64 - Atime StatxTimestamp - Btime StatxTimestamp - Ctime StatxTimestamp - Mtime StatxTimestamp - Rdev_major uint32 - Rdev_minor uint32 - Dev_major uint32 - Dev_minor uint32 - _ [14]uint64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - _ [5]byte -} - -type Fsid struct { - _ [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - _ [4]byte - Start int64 - Len int64 - Pid int32 - _ [4]byte -} - -type FscryptPolicy struct { - Version uint8 - Contents_encryption_mode uint8 - Filenames_encryption_mode uint8 - Flags uint8 - Master_key_descriptor [8]uint8 -} - -type FscryptKey struct { - Mode uint32 - Raw [64]uint8 - Size uint32 -} - -type KeyctlDHParams struct { - Private int32 - Prime int32 - Base int32 -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x6 - FADV_NOREUSE = 0x7 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrL2 struct { - Family uint16 - Psm uint16 - Bdaddr [6]uint8 - Cid uint16 - Bdaddr_type uint8 - _ [1]byte -} - -type RawSockaddrCAN struct { - Family uint16 - _ [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type PacketMreq struct { - Ifindex int32 - Type uint16 - Alen uint16 - Address [8]uint8 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - _ [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - _ [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - _ [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrL2 = 0xe - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIovec = 0x10 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofPacketMreq = 0x10 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2c - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - _ uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - _ [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Psw PtracePsw - Gprs [16]uint64 - Acrs [16]uint32 - Orig_gpr2 uint64 - Fp_regs PtraceFpregs - Per_info PtracePer - Ieee_instruction_pointer uint64 -} - -type PtracePsw struct { - Mask uint64 - Addr uint64 -} - -type PtraceFpregs struct { - Fpc uint32 - _ [4]byte - Fprs [16]float64 -} - -type PtracePer struct { - _ [0]uint64 - _ [24]byte - _ [8]byte - Starting_addr uint64 - Ending_addr uint64 - Perc_atmid uint16 - _ [6]byte - Address uint64 - Access_id uint8 - _ [7]byte -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - _ [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - _ [0]int8 - _ [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - _ [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - _ [4]byte -} - -type EpollEvent struct { - Events uint32 - _ int32 - Fd int32 - Pad int32 -} - -const ( - AT_EMPTY_PATH = 0x1000 - AT_FDCWD = -0x64 - AT_NO_AUTOMOUNT = 0x800 - AT_REMOVEDIR = 0x200 - - AT_STATX_SYNC_AS_STAT = 0x0 - AT_STATX_FORCE_SYNC = 0x2000 - AT_STATX_DONT_SYNC = 0x4000 - - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x2000 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - _ [16]uint64 -} - -const RNDGETENTCNT = 0x80045200 - -const PERF_IOC_FLAG_GROUP = 0x1 - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type Taskstats struct { - Version uint16 - _ [2]byte - Ac_exitcode uint32 - Ac_flag uint8 - Ac_nice uint8 - _ [6]byte - Cpu_count uint64 - Cpu_delay_total uint64 - Blkio_count uint64 - Blkio_delay_total uint64 - Swapin_count uint64 - Swapin_delay_total uint64 - Cpu_run_real_total uint64 - Cpu_run_virtual_total uint64 - Ac_comm [32]int8 - Ac_sched uint8 - Ac_pad [3]uint8 - _ [4]byte - Ac_uid uint32 - Ac_gid uint32 - Ac_pid uint32 - Ac_ppid uint32 - Ac_btime uint32 - _ [4]byte - Ac_etime uint64 - Ac_utime uint64 - Ac_stime uint64 - Ac_minflt uint64 - Ac_majflt uint64 - Coremem uint64 - Virtmem uint64 - Hiwater_rss uint64 - Hiwater_vm uint64 - Read_char uint64 - Write_char uint64 - Read_syscalls uint64 - Write_syscalls uint64 - Read_bytes uint64 - Write_bytes uint64 - Cancelled_write_bytes uint64 - Nvcsw uint64 - Nivcsw uint64 - Ac_utimescaled uint64 - Ac_stimescaled uint64 - Cpu_scaled_run_real_total uint64 - Freepages_count uint64 - Freepages_delay_total uint64 -} - -const ( - TASKSTATS_CMD_UNSPEC = 0x0 - TASKSTATS_CMD_GET = 0x1 - TASKSTATS_CMD_NEW = 0x2 - TASKSTATS_TYPE_UNSPEC = 0x0 - TASKSTATS_TYPE_PID = 0x1 - TASKSTATS_TYPE_TGID = 0x2 - TASKSTATS_TYPE_STATS = 0x3 - TASKSTATS_TYPE_AGGR_PID = 0x4 - TASKSTATS_TYPE_AGGR_TGID = 0x5 - TASKSTATS_TYPE_NULL = 0x6 - TASKSTATS_CMD_ATTR_UNSPEC = 0x0 - TASKSTATS_CMD_ATTR_PID = 0x1 - TASKSTATS_CMD_ATTR_TGID = 0x2 - TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 - TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 -) - -type CGroupStats struct { - Sleeping uint64 - Running uint64 - Stopped uint64 - Uninterruptible uint64 - Io_wait uint64 -} - -const ( - CGROUPSTATS_CMD_UNSPEC = 0x3 - CGROUPSTATS_CMD_GET = 0x4 - CGROUPSTATS_CMD_NEW = 0x5 - CGROUPSTATS_TYPE_UNSPEC = 0x0 - CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 - CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 - CGROUPSTATS_CMD_ATTR_FD = 0x1 -) - -type Genlmsghdr struct { - Cmd uint8 - Version uint8 - Reserved uint16 -} - -const ( - CTRL_CMD_UNSPEC = 0x0 - CTRL_CMD_NEWFAMILY = 0x1 - CTRL_CMD_DELFAMILY = 0x2 - CTRL_CMD_GETFAMILY = 0x3 - CTRL_CMD_NEWOPS = 0x4 - CTRL_CMD_DELOPS = 0x5 - CTRL_CMD_GETOPS = 0x6 - CTRL_CMD_NEWMCAST_GRP = 0x7 - CTRL_CMD_DELMCAST_GRP = 0x8 - CTRL_CMD_GETMCAST_GRP = 0x9 - CTRL_ATTR_UNSPEC = 0x0 - CTRL_ATTR_FAMILY_ID = 0x1 - CTRL_ATTR_FAMILY_NAME = 0x2 - CTRL_ATTR_VERSION = 0x3 - CTRL_ATTR_HDRSIZE = 0x4 - CTRL_ATTR_MAXATTR = 0x5 - CTRL_ATTR_OPS = 0x6 - CTRL_ATTR_MCAST_GROUPS = 0x7 - CTRL_ATTR_OP_UNSPEC = 0x0 - CTRL_ATTR_OP_ID = 0x1 - CTRL_ATTR_OP_FLAGS = 0x2 - CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 - CTRL_ATTR_MCAST_GRP_NAME = 0x1 - CTRL_ATTR_MCAST_GRP_ID = 0x2 -) - -type cpuMask uint64 - -const ( - _CPU_SETSIZE = 0x400 - _NCPUBITS = 0x40 -) - -const ( - BDADDR_BREDR = 0x0 - BDADDR_LE_PUBLIC = 0x1 - BDADDR_LE_RANDOM = 0x2 -) diff --git a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go deleted file mode 100644 index 9dbbb1c..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ /dev/null @@ -1,664 +0,0 @@ -// +build sparc64,linux -// Created by cgo -godefs - DO NOT EDIT -// cgo -godefs types_linux.go | go run mkpost.go - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x1000 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Timex struct { - Modes uint32 - Pad_cgo_0 [4]byte - Offset int64 - Freq int64 - Maxerror int64 - Esterror int64 - Status int32 - Pad_cgo_1 [4]byte - Constant int64 - Precision int64 - Tolerance int64 - Time Timeval - Tick int64 - Ppsfreq int64 - Jitter int64 - Shift int32 - Pad_cgo_2 [4]byte - Stabil int64 - Jitcnt int64 - Calcnt int64 - Errcnt int64 - Stbcnt int64 - Tai int32 - Pad_cgo_3 [44]byte -} - -type Time_t int64 - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - X__pad1 uint16 - Pad_cgo_0 [6]byte - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - X__pad2 uint16 - Pad_cgo_1 [6]byte - Size int64 - Blksize int64 - Blocks int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - X__glibc_reserved4 uint64 - X__glibc_reserved5 uint64 -} - -type Statfs_t struct { - Type int64 - Bsize int64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Fsid Fsid - Namelen int64 - Frsize int64 - Flags int64 - Spare [4]int64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Type uint8 - Name [256]int8 - Pad_cgo_0 [5]byte -} - -type Fsid struct { - X__val [2]int32 -} - -type Flock_t struct { - Type int16 - Whence int16 - Pad_cgo_0 [4]byte - Start int64 - Len int64 - Pid int32 - X__glibc_reserved int16 - Pad_cgo_1 [2]byte -} - -const ( - FADV_NORMAL = 0x0 - FADV_RANDOM = 0x1 - FADV_SEQUENTIAL = 0x2 - FADV_WILLNEED = 0x3 - FADV_DONTNEED = 0x4 - FADV_NOREUSE = 0x5 -) - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrLinklayer struct { - Family uint16 - Protocol uint16 - Ifindex int32 - Hatype uint16 - Pkttype uint8 - Halen uint8 - Addr [8]uint8 -} - -type RawSockaddrNetlink struct { - Family uint16 - Pad uint16 - Pid uint32 - Groups uint32 -} - -type RawSockaddrHCI struct { - Family uint16 - Dev uint16 - Channel uint16 -} - -type RawSockaddrCAN struct { - Family uint16 - Pad_cgo_0 [2]byte - Ifindex int32 - Addr [8]byte -} - -type RawSockaddrALG struct { - Family uint16 - Type [14]uint8 - Feat uint32 - Mask uint32 - Name [64]uint8 -} - -type RawSockaddrVM struct { - Family uint16 - Reserved1 uint16 - Port uint32 - Cid uint32 - Zero [4]uint8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPMreqn struct { - Multiaddr [4]byte /* in_addr */ - Address [4]byte /* in_addr */ - Ifindex int32 -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen uint64 - Control *byte - Controllen uint64 - Flags int32 - Pad_cgo_1 [4]byte -} - -type Cmsghdr struct { - Len uint64 - Level int32 - Type int32 -} - -type Inet4Pktinfo struct { - Ifindex int32 - Spec_dst [4]byte /* in_addr */ - Addr [4]byte /* in_addr */ -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Data [8]uint32 -} - -type Ucred struct { - Pid int32 - Uid uint32 - Gid uint32 -} - -type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Pad_cgo_0 [2]byte - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x70 - SizeofSockaddrUnix = 0x6e - SizeofSockaddrLinklayer = 0x14 - SizeofSockaddrNetlink = 0xc - SizeofSockaddrHCI = 0x6 - SizeofSockaddrCAN = 0x10 - SizeofSockaddrALG = 0x58 - SizeofSockaddrVM = 0x10 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPMreqn = 0xc - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x38 - SizeofCmsghdr = 0x10 - SizeofInet4Pktinfo = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 - SizeofUcred = 0xc - SizeofTCPInfo = 0x68 -) - -const ( - IFA_UNSPEC = 0x0 - IFA_ADDRESS = 0x1 - IFA_LOCAL = 0x2 - IFA_LABEL = 0x3 - IFA_BROADCAST = 0x4 - IFA_ANYCAST = 0x5 - IFA_CACHEINFO = 0x6 - IFA_MULTICAST = 0x7 - IFLA_UNSPEC = 0x0 - IFLA_ADDRESS = 0x1 - IFLA_BROADCAST = 0x2 - IFLA_IFNAME = 0x3 - IFLA_MTU = 0x4 - IFLA_LINK = 0x5 - IFLA_QDISC = 0x6 - IFLA_STATS = 0x7 - IFLA_COST = 0x8 - IFLA_PRIORITY = 0x9 - IFLA_MASTER = 0xa - IFLA_WIRELESS = 0xb - IFLA_PROTINFO = 0xc - IFLA_TXQLEN = 0xd - IFLA_MAP = 0xe - IFLA_WEIGHT = 0xf - IFLA_OPERSTATE = 0x10 - IFLA_LINKMODE = 0x11 - IFLA_LINKINFO = 0x12 - IFLA_NET_NS_PID = 0x13 - IFLA_IFALIAS = 0x14 - IFLA_MAX = 0x2a - RT_SCOPE_UNIVERSE = 0x0 - RT_SCOPE_SITE = 0xc8 - RT_SCOPE_LINK = 0xfd - RT_SCOPE_HOST = 0xfe - RT_SCOPE_NOWHERE = 0xff - RT_TABLE_UNSPEC = 0x0 - RT_TABLE_COMPAT = 0xfc - RT_TABLE_DEFAULT = 0xfd - RT_TABLE_MAIN = 0xfe - RT_TABLE_LOCAL = 0xff - RT_TABLE_MAX = 0xffffffff - RTA_UNSPEC = 0x0 - RTA_DST = 0x1 - RTA_SRC = 0x2 - RTA_IIF = 0x3 - RTA_OIF = 0x4 - RTA_GATEWAY = 0x5 - RTA_PRIORITY = 0x6 - RTA_PREFSRC = 0x7 - RTA_METRICS = 0x8 - RTA_MULTIPATH = 0x9 - RTA_FLOW = 0xb - RTA_CACHEINFO = 0xc - RTA_TABLE = 0xf - RTN_UNSPEC = 0x0 - RTN_UNICAST = 0x1 - RTN_LOCAL = 0x2 - RTN_BROADCAST = 0x3 - RTN_ANYCAST = 0x4 - RTN_MULTICAST = 0x5 - RTN_BLACKHOLE = 0x6 - RTN_UNREACHABLE = 0x7 - RTN_PROHIBIT = 0x8 - RTN_THROW = 0x9 - RTN_NAT = 0xa - RTN_XRESOLVE = 0xb - RTNLGRP_NONE = 0x0 - RTNLGRP_LINK = 0x1 - RTNLGRP_NOTIFY = 0x2 - RTNLGRP_NEIGH = 0x3 - RTNLGRP_TC = 0x4 - RTNLGRP_IPV4_IFADDR = 0x5 - RTNLGRP_IPV4_MROUTE = 0x6 - RTNLGRP_IPV4_ROUTE = 0x7 - RTNLGRP_IPV4_RULE = 0x8 - RTNLGRP_IPV6_IFADDR = 0x9 - RTNLGRP_IPV6_MROUTE = 0xa - RTNLGRP_IPV6_ROUTE = 0xb - RTNLGRP_IPV6_IFINFO = 0xc - RTNLGRP_IPV6_PREFIX = 0x12 - RTNLGRP_IPV6_RULE = 0x13 - RTNLGRP_ND_USEROPT = 0x14 - SizeofNlMsghdr = 0x10 - SizeofNlMsgerr = 0x14 - SizeofRtGenmsg = 0x1 - SizeofNlAttr = 0x4 - SizeofRtAttr = 0x4 - SizeofIfInfomsg = 0x10 - SizeofIfAddrmsg = 0x8 - SizeofRtMsg = 0xc - SizeofRtNexthop = 0x8 -) - -type NlMsghdr struct { - Len uint32 - Type uint16 - Flags uint16 - Seq uint32 - Pid uint32 -} - -type NlMsgerr struct { - Error int32 - Msg NlMsghdr -} - -type RtGenmsg struct { - Family uint8 -} - -type NlAttr struct { - Len uint16 - Type uint16 -} - -type RtAttr struct { - Len uint16 - Type uint16 -} - -type IfInfomsg struct { - Family uint8 - X__ifi_pad uint8 - Type uint16 - Index int32 - Flags uint32 - Change uint32 -} - -type IfAddrmsg struct { - Family uint8 - Prefixlen uint8 - Flags uint8 - Scope uint8 - Index uint32 -} - -type RtMsg struct { - Family uint8 - Dst_len uint8 - Src_len uint8 - Tos uint8 - Table uint8 - Protocol uint8 - Scope uint8 - Type uint8 - Flags uint32 -} - -type RtNexthop struct { - Len uint16 - Flags uint8 - Hops uint8 - Ifindex int32 -} - -const ( - SizeofSockFilter = 0x8 - SizeofSockFprog = 0x10 -) - -type SockFilter struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type SockFprog struct { - Len uint16 - Pad_cgo_0 [6]byte - Filter *SockFilter -} - -type InotifyEvent struct { - Wd int32 - Mask uint32 - Cookie uint32 - Len uint32 -} - -const SizeofInotifyEvent = 0x10 - -type PtraceRegs struct { - Regs [16]uint64 - Tstate uint64 - Tpc uint64 - Tnpc uint64 - Y uint32 - Magic uint32 -} - -type ptracePsw struct { -} - -type ptraceFpregs struct { -} - -type ptracePer struct { -} - -type FdSet struct { - Bits [16]int64 -} - -type Sysinfo_t struct { - Uptime int64 - Loads [3]uint64 - Totalram uint64 - Freeram uint64 - Sharedram uint64 - Bufferram uint64 - Totalswap uint64 - Freeswap uint64 - Procs uint16 - Pad uint16 - Pad_cgo_0 [4]byte - Totalhigh uint64 - Freehigh uint64 - Unit uint32 - X_f [0]int8 - Pad_cgo_1 [4]byte -} - -type Utsname struct { - Sysname [65]byte - Nodename [65]byte - Release [65]byte - Version [65]byte - Machine [65]byte - Domainname [65]byte -} - -type Ustat_t struct { - Tfree int32 - Pad_cgo_0 [4]byte - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - Pad_cgo_1 [4]byte -} - -type EpollEvent struct { - Events uint32 - X_padFd int32 - Fd int32 - Pad int32 -} - -const ( - AT_FDCWD = -0x64 - AT_REMOVEDIR = 0x200 - AT_SYMLINK_FOLLOW = 0x400 - AT_SYMLINK_NOFOLLOW = 0x100 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLIN = 0x1 - POLLPRI = 0x2 - POLLOUT = 0x4 - POLLRDHUP = 0x800 - POLLERR = 0x8 - POLLHUP = 0x10 - POLLNVAL = 0x20 -) - -type Sigset_t struct { - X__val [16]uint64 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Line uint8 - Cc [19]uint8 - Ispeed uint32 - Ospeed uint32 -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go deleted file mode 100644 index da70faa..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +++ /dev/null @@ -1,439 +0,0 @@ -// cgo -godefs types_netbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,netbsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int32 -} - -type Timeval struct { - Sec int64 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Mode uint32 - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - Spare [2]uint32 -} - -type Statfs_t [0]byte - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [512]int8 - Pad_cgo_0 [3]byte -} - -type Fsid struct { - X__fsid_val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter uint32 - Flags uint32 - Fflags uint32 - Data int64 - Udata int32 -} - -type FdSet struct { - Bits [8]uint32 -} - -const ( - SizeofIfMsghdr = 0x98 - SizeofIfData = 0x84 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x78 - SizeofRtMetrics = 0x50 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData - Pad_cgo_1 [4]byte -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Pad_cgo_0 [1]byte - Link_state int32 - Mtu uint64 - Metric uint64 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Lastchange Timespec -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Metric int32 - Index uint16 - Pad_cgo_0 [6]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits int32 - Pad_cgo_1 [4]byte - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint64 - Mtu uint64 - Hopcount uint64 - Recvpipe uint64 - Sendpipe uint64 - Ssthresh uint64 - Rtt uint64 - Rttvar uint64 - Expire int64 - Pksent int64 -} - -type Mclpool [0]byte - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x80 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint64 - Drop uint64 - Capt uint64 - Padding [13]uint64 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfTimeval struct { - Sec int32 - Usec int32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Sysctlnode struct { - Flags uint32 - Num int32 - Name [32]int8 - Ver uint32 - X__rsvd uint32 - Un [16]byte - X_sysctl_size [8]byte - X_sysctl_func [8]byte - X_sysctl_parent [8]byte - X_sysctl_desc [8]byte -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go deleted file mode 100644 index 0963ab8..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +++ /dev/null @@ -1,446 +0,0 @@ -// cgo -godefs types_netbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,netbsd - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Mode uint32 - Pad_cgo_0 [4]byte - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Pad_cgo_1 [4]byte - Rdev uint64 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - Spare [2]uint32 - Pad_cgo_2 [4]byte -} - -type Statfs_t [0]byte - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [512]int8 - Pad_cgo_0 [3]byte -} - -type Fsid struct { - X__fsid_val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter uint32 - Flags uint32 - Fflags uint32 - Pad_cgo_0 [4]byte - Data int64 - Udata int64 -} - -type FdSet struct { - Bits [8]uint32 -} - -const ( - SizeofIfMsghdr = 0x98 - SizeofIfData = 0x88 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x78 - SizeofRtMetrics = 0x50 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Pad_cgo_0 [1]byte - Link_state int32 - Mtu uint64 - Metric uint64 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Lastchange Timespec -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Metric int32 - Index uint16 - Pad_cgo_0 [6]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits int32 - Pad_cgo_1 [4]byte - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint64 - Mtu uint64 - Hopcount uint64 - Recvpipe uint64 - Sendpipe uint64 - Ssthresh uint64 - Rtt uint64 - Rttvar uint64 - Expire int64 - Pksent int64 -} - -type Mclpool [0]byte - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x80 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x20 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint64 - Drop uint64 - Capt uint64 - Padding [13]uint64 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [6]byte -} - -type BpfTimeval struct { - Sec int64 - Usec int64 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Sysctlnode struct { - Flags uint32 - Num int32 - Name [32]int8 - Ver uint32 - X__rsvd uint32 - Un [16]byte - X_sysctl_size [8]byte - X_sysctl_func [8]byte - X_sysctl_parent [8]byte - X_sysctl_desc [8]byte -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go deleted file mode 100644 index 211f641..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +++ /dev/null @@ -1,444 +0,0 @@ -// cgo -godefs types_netbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,netbsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int32 - Pad_cgo_0 [4]byte -} - -type Timeval struct { - Sec int64 - Usec int32 - Pad_cgo_0 [4]byte -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -type Stat_t struct { - Dev uint64 - Mode uint32 - Pad_cgo_0 [4]byte - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Pad_cgo_1 [4]byte - Rdev uint64 - Atimespec Timespec - Mtimespec Timespec - Ctimespec Timespec - Birthtimespec Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - Spare [2]uint32 - Pad_cgo_2 [4]byte -} - -type Statfs_t [0]byte - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Reclen uint16 - Namlen uint16 - Type uint8 - Name [512]int8 - Pad_cgo_0 [3]byte -} - -type Fsid struct { - X__fsid_val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [12]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen int32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x14 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter uint32 - Flags uint32 - Fflags uint32 - Data int64 - Udata int32 - Pad_cgo_0 [4]byte -} - -type FdSet struct { - Bits [8]uint32 -} - -const ( - SizeofIfMsghdr = 0x98 - SizeofIfData = 0x88 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x18 - SizeofRtMsghdr = 0x78 - SizeofRtMetrics = 0x50 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Pad_cgo_0 [1]byte - Link_state int32 - Mtu uint64 - Metric uint64 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Lastchange Timespec -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Metric int32 - Index uint16 - Pad_cgo_0 [6]byte -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Name [16]int8 - What uint16 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits int32 - Pad_cgo_1 [4]byte - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint64 - Mtu uint64 - Hopcount uint64 - Recvpipe uint64 - Sendpipe uint64 - Ssthresh uint64 - Rtt uint64 - Rttvar uint64 - Expire int64 - Pksent int64 -} - -type Mclpool [0]byte - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x80 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint64 - Drop uint64 - Capt uint64 - Padding [13]uint64 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfTimeval struct { - Sec int32 - Usec int32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x200 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Sysctlnode struct { - Flags uint32 - Num int32 - Name [32]int8 - Ver uint32 - X__rsvd uint32 - Un [16]byte - X_sysctl_size [8]byte - X_sysctl_func [8]byte - X_sysctl_parent [8]byte - X_sysctl_desc [8]byte -} - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go deleted file mode 100644 index d5a2d75..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +++ /dev/null @@ -1,484 +0,0 @@ -// cgo -godefs types_openbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build 386,openbsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int32 -} - -type Timeval struct { - Sec int64 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Mode uint32 - Dev int32 - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev int32 - Atim Timespec - Mtim Timespec - Ctim Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - X__st_birthtim Timespec -} - -type Statfs_t struct { - F_flags uint32 - F_bsize uint32 - F_iosize uint32 - F_blocks uint64 - F_bfree uint64 - F_bavail int64 - F_files uint64 - F_ffree uint64 - F_favail int64 - F_syncwrites uint64 - F_syncreads uint64 - F_asyncwrites uint64 - F_asyncreads uint64 - F_fsid Fsid - F_namemax uint32 - F_owner uint32 - F_ctime uint64 - F_fstypename [16]int8 - F_mntonname [90]int8 - F_mntfromname [90]int8 - F_mntfromspec [90]int8 - Pad_cgo_0 [2]byte - Mount_info [160]byte -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Off int64 - Reclen uint16 - Type uint8 - Namlen uint8 - X__d_padding [4]uint8 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [24]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x20 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [32]uint32 -} - -const ( - SizeofIfMsghdr = 0xec - SizeofIfData = 0xd4 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x1a - SizeofRtMsghdr = 0x60 - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Xflags int32 - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Mtu uint32 - Metric uint32 - Pad uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Capabilities uint32 - Lastchange Timeval - Mclpool [7]Mclpool -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Metric int32 -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - What uint16 - Name [16]int8 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Priority uint8 - Mpls uint8 - Addrs int32 - Flags int32 - Fmask int32 - Pid int32 - Seq int32 - Errno int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Pksent uint64 - Expire int64 - Locks uint32 - Mtu uint32 - Refcnt uint32 - Hopcount uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pad uint32 -} - -type Mclpool struct { - Grown int32 - Alive uint16 - Hwm uint16 - Cwm uint16 - Lwm uint16 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfTimeval struct { - Sec uint32 - Usec uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x2 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go deleted file mode 100644 index d531410..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +++ /dev/null @@ -1,491 +0,0 @@ -// cgo -godefs types_openbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,openbsd - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Mode uint32 - Dev int32 - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev int32 - Atim Timespec - Mtim Timespec - Ctim Timespec - Size int64 - Blocks int64 - Blksize uint32 - Flags uint32 - Gen uint32 - Pad_cgo_0 [4]byte - X__st_birthtim Timespec -} - -type Statfs_t struct { - F_flags uint32 - F_bsize uint32 - F_iosize uint32 - Pad_cgo_0 [4]byte - F_blocks uint64 - F_bfree uint64 - F_bavail int64 - F_files uint64 - F_ffree uint64 - F_favail int64 - F_syncwrites uint64 - F_syncreads uint64 - F_asyncwrites uint64 - F_asyncreads uint64 - F_fsid Fsid - F_namemax uint32 - F_owner uint32 - F_ctime uint64 - F_fstypename [16]int8 - F_mntonname [90]int8 - F_mntfromname [90]int8 - F_mntfromspec [90]int8 - Pad_cgo_1 [2]byte - Mount_info [160]byte -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Off int64 - Reclen uint16 - Type uint8 - Namlen uint8 - X__d_padding [4]uint8 - Name [256]int8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [24]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen uint32 - Pad_cgo_1 [4]byte - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x20 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint64 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [32]uint32 -} - -const ( - SizeofIfMsghdr = 0xf8 - SizeofIfData = 0xe0 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x1a - SizeofRtMsghdr = 0x60 - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Xflags int32 - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Mtu uint32 - Metric uint32 - Pad uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Capabilities uint32 - Pad_cgo_0 [4]byte - Lastchange Timeval - Mclpool [7]Mclpool - Pad_cgo_1 [4]byte -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Metric int32 -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - What uint16 - Name [16]int8 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Priority uint8 - Mpls uint8 - Addrs int32 - Flags int32 - Fmask int32 - Pid int32 - Seq int32 - Errno int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Pksent uint64 - Expire int64 - Locks uint32 - Mtu uint32 - Refcnt uint32 - Hopcount uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pad uint32 -} - -type Mclpool struct { - Grown int32 - Alive uint16 - Hwm uint16 - Cwm uint16 - Lwm uint16 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfTimeval struct { - Sec uint32 - Usec uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x2 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go b/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go deleted file mode 100644 index e35b13b..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +++ /dev/null @@ -1,477 +0,0 @@ -// cgo -godefs types_openbsd.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build arm,openbsd - -package unix - -const ( - sizeofPtr = 0x4 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x4 - sizeofLongLong = 0x8 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int32 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int32 -} - -type Timeval struct { - Sec int64 - Usec int32 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int32 - Ixrss int32 - Idrss int32 - Isrss int32 - Minflt int32 - Majflt int32 - Nswap int32 - Inblock int32 - Oublock int32 - Msgsnd int32 - Msgrcv int32 - Nsignals int32 - Nvcsw int32 - Nivcsw int32 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Mode uint32 - Dev int32 - Ino uint64 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev int32 - Atim Timespec - Mtim Timespec - Ctim Timespec - Size int64 - Blocks int64 - Blksize int32 - Flags uint32 - Gen uint32 - X__st_birthtim Timespec -} - -type Statfs_t struct { - F_flags uint32 - F_bsize uint32 - F_iosize uint32 - F_blocks uint64 - F_bfree uint64 - F_bavail int64 - F_files uint64 - F_ffree uint64 - F_favail int64 - F_syncwrites uint64 - F_syncreads uint64 - F_asyncwrites uint64 - F_asyncreads uint64 - F_fsid Fsid - F_namemax uint32 - F_owner uint32 - F_ctime uint64 - F_fstypename [16]uint8 - F_mntonname [90]uint8 - F_mntfromname [90]uint8 - F_mntfromspec [90]uint8 - Pad_cgo_0 [2]byte - Mount_info [160]byte -} - -type Flock_t struct { - Start int64 - Len int64 - Pid int32 - Type int16 - Whence int16 -} - -type Dirent struct { - Fileno uint64 - Off int64 - Reclen uint16 - Type uint8 - Namlen uint8 - X__d_padding [4]uint8 - Name [256]uint8 -} - -type Fsid struct { - Val [2]int32 -} - -const ( - PathMax = 0x400 -) - -type RawSockaddrInet4 struct { - Len uint8 - Family uint8 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Len uint8 - Family uint8 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddrUnix struct { - Len uint8 - Family uint8 - Path [104]int8 -} - -type RawSockaddrDatalink struct { - Len uint8 - Family uint8 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [24]int8 -} - -type RawSockaddr struct { - Len uint8 - Family uint8 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [92]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *byte - Len uint32 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Iov *Iovec - Iovlen uint32 - Control *byte - Controllen uint32 - Flags int32 -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - Filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x1c - SizeofSockaddrAny = 0x6c - SizeofSockaddrUnix = 0x6a - SizeofSockaddrDatalink = 0x20 - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x1c - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x20 - SizeofICMPv6Filter = 0x20 -) - -const ( - PTRACE_TRACEME = 0x0 - PTRACE_CONT = 0x7 - PTRACE_KILL = 0x8 -) - -type Kevent_t struct { - Ident uint32 - Filter int16 - Flags uint16 - Fflags uint32 - Data int64 - Udata *byte -} - -type FdSet struct { - Bits [32]uint32 -} - -const ( - SizeofIfMsghdr = 0x98 - SizeofIfData = 0x80 - SizeofIfaMsghdr = 0x18 - SizeofIfAnnounceMsghdr = 0x1a - SizeofRtMsghdr = 0x60 - SizeofRtMetrics = 0x38 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Xflags int32 - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Link_state uint8 - Mtu uint32 - Metric uint32 - Pad uint32 - Baudrate uint64 - Ipackets uint64 - Ierrors uint64 - Opackets uint64 - Oerrors uint64 - Collisions uint64 - Ibytes uint64 - Obytes uint64 - Imcasts uint64 - Omcasts uint64 - Iqdrops uint64 - Noproto uint64 - Capabilities uint32 - Lastchange Timeval -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Pad1 uint8 - Pad2 uint8 - Addrs int32 - Flags int32 - Metric int32 -} - -type IfAnnounceMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - What uint16 - Name [16]uint8 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Hdrlen uint16 - Index uint16 - Tableid uint16 - Priority uint8 - Mpls uint8 - Addrs int32 - Flags int32 - Fmask int32 - Pid int32 - Seq int32 - Errno int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Pksent uint64 - Expire int64 - Locks uint32 - Mtu uint32 - Refcnt uint32 - Hopcount uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pad uint32 -} - -type Mclpool struct{} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x8 - SizeofBpfProgram = 0x8 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint32 - Drop uint32 -} - -type BpfProgram struct { - Len uint32 - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type BpfTimeval struct { - Sec uint32 - Usec uint32 -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [20]uint8 - Ispeed int32 - Ospeed int32 -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -const ( - AT_FDCWD = -0x64 - AT_SYMLINK_NOFOLLOW = 0x2 -) - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) - -type Utsname struct { - Sysname [256]byte - Nodename [256]byte - Release [256]byte - Version [256]byte - Machine [256]byte -} diff --git a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go deleted file mode 100644 index d445452..0000000 --- a/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +++ /dev/null @@ -1,459 +0,0 @@ -// cgo -godefs types_solaris.go | go run mkpost.go -// Code generated by the command above; see README.md. DO NOT EDIT. - -// +build amd64,solaris - -package unix - -const ( - sizeofPtr = 0x8 - sizeofShort = 0x2 - sizeofInt = 0x4 - sizeofLong = 0x8 - sizeofLongLong = 0x8 - PathMax = 0x400 - MaxHostNameLen = 0x100 -) - -type ( - _C_short int16 - _C_int int32 - _C_long int64 - _C_long_long int64 -) - -type Timespec struct { - Sec int64 - Nsec int64 -} - -type Timeval struct { - Sec int64 - Usec int64 -} - -type Timeval32 struct { - Sec int32 - Usec int32 -} - -type Tms struct { - Utime int64 - Stime int64 - Cutime int64 - Cstime int64 -} - -type Utimbuf struct { - Actime int64 - Modtime int64 -} - -type Rusage struct { - Utime Timeval - Stime Timeval - Maxrss int64 - Ixrss int64 - Idrss int64 - Isrss int64 - Minflt int64 - Majflt int64 - Nswap int64 - Inblock int64 - Oublock int64 - Msgsnd int64 - Msgrcv int64 - Nsignals int64 - Nvcsw int64 - Nivcsw int64 -} - -type Rlimit struct { - Cur uint64 - Max uint64 -} - -type _Gid_t uint32 - -const ( - S_IFMT = 0xf000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -type Stat_t struct { - Dev uint64 - Ino uint64 - Mode uint32 - Nlink uint32 - Uid uint32 - Gid uint32 - Rdev uint64 - Size int64 - Atim Timespec - Mtim Timespec - Ctim Timespec - Blksize int32 - Pad_cgo_0 [4]byte - Blocks int64 - Fstype [16]int8 -} - -type Flock_t struct { - Type int16 - Whence int16 - Pad_cgo_0 [4]byte - Start int64 - Len int64 - Sysid int32 - Pid int32 - Pad [4]int64 -} - -type Dirent struct { - Ino uint64 - Off int64 - Reclen uint16 - Name [1]int8 - Pad_cgo_0 [5]byte -} - -type _Fsblkcnt_t uint64 - -type Statvfs_t struct { - Bsize uint64 - Frsize uint64 - Blocks uint64 - Bfree uint64 - Bavail uint64 - Files uint64 - Ffree uint64 - Favail uint64 - Fsid uint64 - Basetype [16]int8 - Flag uint64 - Namemax uint64 - Fstr [32]int8 -} - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]int8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 - X__sin6_src_id uint32 -} - -type RawSockaddrUnix struct { - Family uint16 - Path [108]int8 -} - -type RawSockaddrDatalink struct { - Family uint16 - Index uint16 - Type uint8 - Nlen uint8 - Alen uint8 - Slen uint8 - Data [244]int8 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [236]int8 -} - -type _Socklen uint32 - -type Linger struct { - Onoff int32 - Linger int32 -} - -type Iovec struct { - Base *int8 - Len uint64 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -type Msghdr struct { - Name *byte - Namelen uint32 - Pad_cgo_0 [4]byte - Iov *Iovec - Iovlen int32 - Pad_cgo_1 [4]byte - Accrights *int8 - Accrightslen int32 - Pad_cgo_2 [4]byte -} - -type Cmsghdr struct { - Len uint32 - Level int32 - Type int32 -} - -type Inet6Pktinfo struct { - Addr [16]byte /* in6_addr */ - Ifindex uint32 -} - -type IPv6MTUInfo struct { - Addr RawSockaddrInet6 - Mtu uint32 -} - -type ICMPv6Filter struct { - X__icmp6_filt [8]uint32 -} - -const ( - SizeofSockaddrInet4 = 0x10 - SizeofSockaddrInet6 = 0x20 - SizeofSockaddrAny = 0xfc - SizeofSockaddrUnix = 0x6e - SizeofSockaddrDatalink = 0xfc - SizeofLinger = 0x8 - SizeofIPMreq = 0x8 - SizeofIPv6Mreq = 0x14 - SizeofMsghdr = 0x30 - SizeofCmsghdr = 0xc - SizeofInet6Pktinfo = 0x14 - SizeofIPv6MTUInfo = 0x24 - SizeofICMPv6Filter = 0x20 -) - -type FdSet struct { - Bits [1024]int64 -} - -type Utsname struct { - Sysname [257]byte - Nodename [257]byte - Release [257]byte - Version [257]byte - Machine [257]byte -} - -type Ustat_t struct { - Tfree int64 - Tinode uint64 - Fname [6]int8 - Fpack [6]int8 - Pad_cgo_0 [4]byte -} - -const ( - AT_FDCWD = 0xffd19553 - AT_SYMLINK_NOFOLLOW = 0x1000 - AT_SYMLINK_FOLLOW = 0x2000 - AT_REMOVEDIR = 0x1 - AT_EACCESS = 0x4 -) - -const ( - SizeofIfMsghdr = 0x54 - SizeofIfData = 0x44 - SizeofIfaMsghdr = 0x14 - SizeofRtMsghdr = 0x4c - SizeofRtMetrics = 0x28 -) - -type IfMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Data IfData -} - -type IfData struct { - Type uint8 - Addrlen uint8 - Hdrlen uint8 - Pad_cgo_0 [1]byte - Mtu uint32 - Metric uint32 - Baudrate uint32 - Ipackets uint32 - Ierrors uint32 - Opackets uint32 - Oerrors uint32 - Collisions uint32 - Ibytes uint32 - Obytes uint32 - Imcasts uint32 - Omcasts uint32 - Iqdrops uint32 - Noproto uint32 - Lastchange Timeval32 -} - -type IfaMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Addrs int32 - Flags int32 - Index uint16 - Pad_cgo_0 [2]byte - Metric int32 -} - -type RtMsghdr struct { - Msglen uint16 - Version uint8 - Type uint8 - Index uint16 - Pad_cgo_0 [2]byte - Flags int32 - Addrs int32 - Pid int32 - Seq int32 - Errno int32 - Use int32 - Inits uint32 - Rmx RtMetrics -} - -type RtMetrics struct { - Locks uint32 - Mtu uint32 - Hopcount uint32 - Expire uint32 - Recvpipe uint32 - Sendpipe uint32 - Ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Pksent uint32 -} - -const ( - SizeofBpfVersion = 0x4 - SizeofBpfStat = 0x80 - SizeofBpfProgram = 0x10 - SizeofBpfInsn = 0x8 - SizeofBpfHdr = 0x14 -) - -type BpfVersion struct { - Major uint16 - Minor uint16 -} - -type BpfStat struct { - Recv uint64 - Drop uint64 - Capt uint64 - Padding [13]uint64 -} - -type BpfProgram struct { - Len uint32 - Pad_cgo_0 [4]byte - Insns *BpfInsn -} - -type BpfInsn struct { - Code uint16 - Jt uint8 - Jf uint8 - K uint32 -} - -type BpfTimeval struct { - Sec int32 - Usec int32 -} - -type BpfHdr struct { - Tstamp BpfTimeval - Caplen uint32 - Datalen uint32 - Hdrlen uint16 - Pad_cgo_0 [2]byte -} - -type Termios struct { - Iflag uint32 - Oflag uint32 - Cflag uint32 - Lflag uint32 - Cc [19]uint8 - Pad_cgo_0 [1]byte -} - -type Termio struct { - Iflag uint16 - Oflag uint16 - Cflag uint16 - Lflag uint16 - Line int8 - Cc [8]uint8 - Pad_cgo_0 [1]byte -} - -type Winsize struct { - Row uint16 - Col uint16 - Xpixel uint16 - Ypixel uint16 -} - -type PollFd struct { - Fd int32 - Events int16 - Revents int16 -} - -const ( - POLLERR = 0x8 - POLLHUP = 0x10 - POLLIN = 0x1 - POLLNVAL = 0x20 - POLLOUT = 0x4 - POLLPRI = 0x2 - POLLRDBAND = 0x80 - POLLRDNORM = 0x40 - POLLWRBAND = 0x100 - POLLWRNORM = 0x4 -) diff --git a/vendor/golang.org/x/sys/windows/asm_windows_386.s b/vendor/golang.org/x/sys/windows/asm_windows_386.s deleted file mode 100644 index 1c20dd2..0000000 --- a/vendor/golang.org/x/sys/windows/asm_windows_386.s +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2009 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. - -// -// System calls for 386, Windows are implemented in runtime/syscall_windows.goc -// - -TEXT ·getprocaddress(SB), 7, $0-8 - JMP syscall·getprocaddress(SB) - -TEXT ·loadlibrary(SB), 7, $0-4 - JMP syscall·loadlibrary(SB) diff --git a/vendor/golang.org/x/sys/windows/asm_windows_amd64.s b/vendor/golang.org/x/sys/windows/asm_windows_amd64.s deleted file mode 100644 index 4d025ab..0000000 --- a/vendor/golang.org/x/sys/windows/asm_windows_amd64.s +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2009 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. - -// -// System calls for amd64, Windows are implemented in runtime/syscall_windows.goc -// - -TEXT ·getprocaddress(SB), 7, $0-32 - JMP syscall·getprocaddress(SB) - -TEXT ·loadlibrary(SB), 7, $0-8 - JMP syscall·loadlibrary(SB) diff --git a/vendor/golang.org/x/sys/windows/dll_windows.go b/vendor/golang.org/x/sys/windows/dll_windows.go deleted file mode 100644 index e92c05b..0000000 --- a/vendor/golang.org/x/sys/windows/dll_windows.go +++ /dev/null @@ -1,378 +0,0 @@ -// Copyright 2011 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 windows - -import ( - "sync" - "sync/atomic" - "syscall" - "unsafe" -) - -// DLLError describes reasons for DLL load failures. -type DLLError struct { - Err error - ObjName string - Msg string -} - -func (e *DLLError) Error() string { return e.Msg } - -// Implemented in runtime/syscall_windows.goc; we provide jumps to them in our assembly file. -func loadlibrary(filename *uint16) (handle uintptr, err syscall.Errno) -func getprocaddress(handle uintptr, procname *uint8) (proc uintptr, err syscall.Errno) - -// A DLL implements access to a single DLL. -type DLL struct { - Name string - Handle Handle -} - -// LoadDLL loads DLL file into memory. -// -// Warning: using LoadDLL without an absolute path name is subject to -// DLL preloading attacks. To safely load a system DLL, use LazyDLL -// with System set to true, or use LoadLibraryEx directly. -func LoadDLL(name string) (dll *DLL, err error) { - namep, err := UTF16PtrFromString(name) - if err != nil { - return nil, err - } - h, e := loadlibrary(namep) - if e != 0 { - return nil, &DLLError{ - Err: e, - ObjName: name, - Msg: "Failed to load " + name + ": " + e.Error(), - } - } - d := &DLL{ - Name: name, - Handle: Handle(h), - } - return d, nil -} - -// MustLoadDLL is like LoadDLL but panics if load operation failes. -func MustLoadDLL(name string) *DLL { - d, e := LoadDLL(name) - if e != nil { - panic(e) - } - return d -} - -// FindProc searches DLL d for procedure named name and returns *Proc -// if found. It returns an error if search fails. -func (d *DLL) FindProc(name string) (proc *Proc, err error) { - namep, err := BytePtrFromString(name) - if err != nil { - return nil, err - } - a, e := getprocaddress(uintptr(d.Handle), namep) - if e != 0 { - return nil, &DLLError{ - Err: e, - ObjName: name, - Msg: "Failed to find " + name + " procedure in " + d.Name + ": " + e.Error(), - } - } - p := &Proc{ - Dll: d, - Name: name, - addr: a, - } - return p, nil -} - -// MustFindProc is like FindProc but panics if search fails. -func (d *DLL) MustFindProc(name string) *Proc { - p, e := d.FindProc(name) - if e != nil { - panic(e) - } - return p -} - -// Release unloads DLL d from memory. -func (d *DLL) Release() (err error) { - return FreeLibrary(d.Handle) -} - -// A Proc implements access to a procedure inside a DLL. -type Proc struct { - Dll *DLL - Name string - addr uintptr -} - -// Addr returns the address of the procedure represented by p. -// The return value can be passed to Syscall to run the procedure. -func (p *Proc) Addr() uintptr { - return p.addr -} - -//go:uintptrescapes - -// Call executes procedure p with arguments a. It will panic, if more than 15 arguments -// are supplied. -// -// The returned error is always non-nil, constructed from the result of GetLastError. -// Callers must inspect the primary return value to decide whether an error occurred -// (according to the semantics of the specific function being called) before consulting -// the error. The error will be guaranteed to contain windows.Errno. -func (p *Proc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) { - switch len(a) { - case 0: - return syscall.Syscall(p.Addr(), uintptr(len(a)), 0, 0, 0) - case 1: - return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], 0, 0) - case 2: - return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], a[1], 0) - case 3: - return syscall.Syscall(p.Addr(), uintptr(len(a)), a[0], a[1], a[2]) - case 4: - return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], 0, 0) - case 5: - return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], 0) - case 6: - return syscall.Syscall6(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5]) - case 7: - return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], 0, 0) - case 8: - return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], 0) - case 9: - return syscall.Syscall9(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]) - case 10: - return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], 0, 0) - case 11: - return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], 0) - case 12: - return syscall.Syscall12(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11]) - case 13: - return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], 0, 0) - case 14: - return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], 0) - case 15: - return syscall.Syscall15(p.Addr(), uintptr(len(a)), a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14]) - default: - panic("Call " + p.Name + " with too many arguments " + itoa(len(a)) + ".") - } -} - -// A LazyDLL implements access to a single DLL. -// It will delay the load of the DLL until the first -// call to its Handle method or to one of its -// LazyProc's Addr method. -type LazyDLL struct { - Name string - - // System determines whether the DLL must be loaded from the - // Windows System directory, bypassing the normal DLL search - // path. - System bool - - mu sync.Mutex - dll *DLL // non nil once DLL is loaded -} - -// Load loads DLL file d.Name into memory. It returns an error if fails. -// Load will not try to load DLL, if it is already loaded into memory. -func (d *LazyDLL) Load() error { - // Non-racy version of: - // if d.dll != nil { - if atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&d.dll))) != nil { - return nil - } - d.mu.Lock() - defer d.mu.Unlock() - if d.dll != nil { - return nil - } - - // kernel32.dll is special, since it's where LoadLibraryEx comes from. - // The kernel already special-cases its name, so it's always - // loaded from system32. - var dll *DLL - var err error - if d.Name == "kernel32.dll" { - dll, err = LoadDLL(d.Name) - } else { - dll, err = loadLibraryEx(d.Name, d.System) - } - if err != nil { - return err - } - - // Non-racy version of: - // d.dll = dll - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&d.dll)), unsafe.Pointer(dll)) - return nil -} - -// mustLoad is like Load but panics if search fails. -func (d *LazyDLL) mustLoad() { - e := d.Load() - if e != nil { - panic(e) - } -} - -// Handle returns d's module handle. -func (d *LazyDLL) Handle() uintptr { - d.mustLoad() - return uintptr(d.dll.Handle) -} - -// NewProc returns a LazyProc for accessing the named procedure in the DLL d. -func (d *LazyDLL) NewProc(name string) *LazyProc { - return &LazyProc{l: d, Name: name} -} - -// NewLazyDLL creates new LazyDLL associated with DLL file. -func NewLazyDLL(name string) *LazyDLL { - return &LazyDLL{Name: name} -} - -// NewLazySystemDLL is like NewLazyDLL, but will only -// search Windows System directory for the DLL if name is -// a base name (like "advapi32.dll"). -func NewLazySystemDLL(name string) *LazyDLL { - return &LazyDLL{Name: name, System: true} -} - -// A LazyProc implements access to a procedure inside a LazyDLL. -// It delays the lookup until the Addr method is called. -type LazyProc struct { - Name string - - mu sync.Mutex - l *LazyDLL - proc *Proc -} - -// Find searches DLL for procedure named p.Name. It returns -// an error if search fails. Find will not search procedure, -// if it is already found and loaded into memory. -func (p *LazyProc) Find() error { - // Non-racy version of: - // if p.proc == nil { - if atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc))) == nil { - p.mu.Lock() - defer p.mu.Unlock() - if p.proc == nil { - e := p.l.Load() - if e != nil { - return e - } - proc, e := p.l.dll.FindProc(p.Name) - if e != nil { - return e - } - // Non-racy version of: - // p.proc = proc - atomic.StorePointer((*unsafe.Pointer)(unsafe.Pointer(&p.proc)), unsafe.Pointer(proc)) - } - } - return nil -} - -// mustFind is like Find but panics if search fails. -func (p *LazyProc) mustFind() { - e := p.Find() - if e != nil { - panic(e) - } -} - -// Addr returns the address of the procedure represented by p. -// The return value can be passed to Syscall to run the procedure. -// It will panic if the procedure cannot be found. -func (p *LazyProc) Addr() uintptr { - p.mustFind() - return p.proc.Addr() -} - -//go:uintptrescapes - -// Call executes procedure p with arguments a. It will panic, if more than 15 arguments -// are supplied. It will also panic if the procedure cannot be found. -// -// The returned error is always non-nil, constructed from the result of GetLastError. -// Callers must inspect the primary return value to decide whether an error occurred -// (according to the semantics of the specific function being called) before consulting -// the error. The error will be guaranteed to contain windows.Errno. -func (p *LazyProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) { - p.mustFind() - return p.proc.Call(a...) -} - -var canDoSearchSystem32Once struct { - sync.Once - v bool -} - -func initCanDoSearchSystem32() { - // https://msdn.microsoft.com/en-us/library/ms684179(v=vs.85).aspx says: - // "Windows 7, Windows Server 2008 R2, Windows Vista, and Windows - // Server 2008: The LOAD_LIBRARY_SEARCH_* flags are available on - // systems that have KB2533623 installed. To determine whether the - // flags are available, use GetProcAddress to get the address of the - // AddDllDirectory, RemoveDllDirectory, or SetDefaultDllDirectories - // function. If GetProcAddress succeeds, the LOAD_LIBRARY_SEARCH_* - // flags can be used with LoadLibraryEx." - canDoSearchSystem32Once.v = (modkernel32.NewProc("AddDllDirectory").Find() == nil) -} - -func canDoSearchSystem32() bool { - canDoSearchSystem32Once.Do(initCanDoSearchSystem32) - return canDoSearchSystem32Once.v -} - -func isBaseName(name string) bool { - for _, c := range name { - if c == ':' || c == '/' || c == '\\' { - return false - } - } - return true -} - -// loadLibraryEx wraps the Windows LoadLibraryEx function. -// -// See https://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx -// -// If name is not an absolute path, LoadLibraryEx searches for the DLL -// in a variety of automatic locations unless constrained by flags. -// See: https://msdn.microsoft.com/en-us/library/ff919712%28VS.85%29.aspx -func loadLibraryEx(name string, system bool) (*DLL, error) { - loadDLL := name - var flags uintptr - if system { - if canDoSearchSystem32() { - const LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800 - flags = LOAD_LIBRARY_SEARCH_SYSTEM32 - } else if isBaseName(name) { - // WindowsXP or unpatched Windows machine - // trying to load "foo.dll" out of the system - // folder, but LoadLibraryEx doesn't support - // that yet on their system, so emulate it. - windir, _ := Getenv("WINDIR") // old var; apparently works on XP - if windir == "" { - return nil, errString("%WINDIR% not defined") - } - loadDLL = windir + "\\System32\\" + name - } - } - h, err := LoadLibraryEx(loadDLL, 0, flags) - if err != nil { - return nil, err - } - return &DLL{Name: name, Handle: h}, nil -} - -type errString string - -func (s errString) Error() string { return string(s) } diff --git a/vendor/golang.org/x/sys/windows/env_windows.go b/vendor/golang.org/x/sys/windows/env_windows.go deleted file mode 100644 index bdc71e2..0000000 --- a/vendor/golang.org/x/sys/windows/env_windows.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2010 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. - -// Windows environment variables. - -package windows - -import "syscall" - -func Getenv(key string) (value string, found bool) { - return syscall.Getenv(key) -} - -func Setenv(key, value string) error { - return syscall.Setenv(key, value) -} - -func Clearenv() { - syscall.Clearenv() -} - -func Environ() []string { - return syscall.Environ() -} - -func Unsetenv(key string) error { - return syscall.Unsetenv(key) -} diff --git a/vendor/golang.org/x/sys/windows/eventlog.go b/vendor/golang.org/x/sys/windows/eventlog.go deleted file mode 100644 index 40af946..0000000 --- a/vendor/golang.org/x/sys/windows/eventlog.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2012 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. - -// +build windows - -package windows - -const ( - EVENTLOG_SUCCESS = 0 - EVENTLOG_ERROR_TYPE = 1 - EVENTLOG_WARNING_TYPE = 2 - EVENTLOG_INFORMATION_TYPE = 4 - EVENTLOG_AUDIT_SUCCESS = 8 - EVENTLOG_AUDIT_FAILURE = 16 -) - -//sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW -//sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource -//sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW diff --git a/vendor/golang.org/x/sys/windows/exec_windows.go b/vendor/golang.org/x/sys/windows/exec_windows.go deleted file mode 100644 index 3606c3a..0000000 --- a/vendor/golang.org/x/sys/windows/exec_windows.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2009 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. - -// Fork, exec, wait, etc. - -package windows - -// EscapeArg rewrites command line argument s as prescribed -// in http://msdn.microsoft.com/en-us/library/ms880421. -// This function returns "" (2 double quotes) if s is empty. -// Alternatively, these transformations are done: -// - every back slash (\) is doubled, but only if immediately -// followed by double quote ("); -// - every double quote (") is escaped by back slash (\); -// - finally, s is wrapped with double quotes (arg -> "arg"), -// but only if there is space or tab inside s. -func EscapeArg(s string) string { - if len(s) == 0 { - return "\"\"" - } - n := len(s) - hasSpace := false - for i := 0; i < len(s); i++ { - switch s[i] { - case '"', '\\': - n++ - case ' ', '\t': - hasSpace = true - } - } - if hasSpace { - n += 2 - } - if n == len(s) { - return s - } - - qs := make([]byte, n) - j := 0 - if hasSpace { - qs[j] = '"' - j++ - } - slashes := 0 - for i := 0; i < len(s); i++ { - switch s[i] { - default: - slashes = 0 - qs[j] = s[i] - case '\\': - slashes++ - qs[j] = s[i] - case '"': - for ; slashes > 0; slashes-- { - qs[j] = '\\' - j++ - } - qs[j] = '\\' - j++ - qs[j] = s[i] - } - j++ - } - if hasSpace { - for ; slashes > 0; slashes-- { - qs[j] = '\\' - j++ - } - qs[j] = '"' - j++ - } - return string(qs[:j]) -} - -func CloseOnExec(fd Handle) { - SetHandleInformation(Handle(fd), HANDLE_FLAG_INHERIT, 0) -} - -// FullPath retrieves the full path of the specified file. -func FullPath(name string) (path string, err error) { - p, err := UTF16PtrFromString(name) - if err != nil { - return "", err - } - n := uint32(100) - for { - buf := make([]uint16, n) - n, err = GetFullPathName(p, uint32(len(buf)), &buf[0], nil) - if err != nil { - return "", err - } - if n <= uint32(len(buf)) { - return UTF16ToString(buf[:n]), nil - } - } -} diff --git a/vendor/golang.org/x/sys/windows/memory_windows.go b/vendor/golang.org/x/sys/windows/memory_windows.go deleted file mode 100644 index f80a420..0000000 --- a/vendor/golang.org/x/sys/windows/memory_windows.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2017 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 windows - -const ( - MEM_COMMIT = 0x00001000 - MEM_RESERVE = 0x00002000 - MEM_DECOMMIT = 0x00004000 - MEM_RELEASE = 0x00008000 - MEM_RESET = 0x00080000 - MEM_TOP_DOWN = 0x00100000 - MEM_WRITE_WATCH = 0x00200000 - MEM_PHYSICAL = 0x00400000 - MEM_RESET_UNDO = 0x01000000 - MEM_LARGE_PAGES = 0x20000000 - - PAGE_NOACCESS = 0x01 - PAGE_READONLY = 0x02 - PAGE_READWRITE = 0x04 - PAGE_WRITECOPY = 0x08 - PAGE_EXECUTE_READ = 0x20 - PAGE_EXECUTE_READWRITE = 0x40 - PAGE_EXECUTE_WRITECOPY = 0x80 -) diff --git a/vendor/golang.org/x/sys/windows/mksyscall.go b/vendor/golang.org/x/sys/windows/mksyscall.go deleted file mode 100644 index fb7db0e..0000000 --- a/vendor/golang.org/x/sys/windows/mksyscall.go +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2009 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 windows - -//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go diff --git a/vendor/golang.org/x/sys/windows/race.go b/vendor/golang.org/x/sys/windows/race.go deleted file mode 100644 index a74e3e2..0000000 --- a/vendor/golang.org/x/sys/windows/race.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2012 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. - -// +build windows,race - -package windows - -import ( - "runtime" - "unsafe" -) - -const raceenabled = true - -func raceAcquire(addr unsafe.Pointer) { - runtime.RaceAcquire(addr) -} - -func raceReleaseMerge(addr unsafe.Pointer) { - runtime.RaceReleaseMerge(addr) -} - -func raceReadRange(addr unsafe.Pointer, len int) { - runtime.RaceReadRange(addr, len) -} - -func raceWriteRange(addr unsafe.Pointer, len int) { - runtime.RaceWriteRange(addr, len) -} diff --git a/vendor/golang.org/x/sys/windows/race0.go b/vendor/golang.org/x/sys/windows/race0.go deleted file mode 100644 index e44a3cb..0000000 --- a/vendor/golang.org/x/sys/windows/race0.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2012 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. - -// +build windows,!race - -package windows - -import ( - "unsafe" -) - -const raceenabled = false - -func raceAcquire(addr unsafe.Pointer) { -} - -func raceReleaseMerge(addr unsafe.Pointer) { -} - -func raceReadRange(addr unsafe.Pointer, len int) { -} - -func raceWriteRange(addr unsafe.Pointer, len int) { -} diff --git a/vendor/golang.org/x/sys/windows/security_windows.go b/vendor/golang.org/x/sys/windows/security_windows.go deleted file mode 100644 index f1ec5dc..0000000 --- a/vendor/golang.org/x/sys/windows/security_windows.go +++ /dev/null @@ -1,476 +0,0 @@ -// Copyright 2012 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 windows - -import ( - "syscall" - "unsafe" -) - -const ( - STANDARD_RIGHTS_REQUIRED = 0xf0000 - STANDARD_RIGHTS_READ = 0x20000 - STANDARD_RIGHTS_WRITE = 0x20000 - STANDARD_RIGHTS_EXECUTE = 0x20000 - STANDARD_RIGHTS_ALL = 0x1F0000 -) - -const ( - NameUnknown = 0 - NameFullyQualifiedDN = 1 - NameSamCompatible = 2 - NameDisplay = 3 - NameUniqueId = 6 - NameCanonical = 7 - NameUserPrincipal = 8 - NameCanonicalEx = 9 - NameServicePrincipal = 10 - NameDnsDomain = 12 -) - -// This function returns 1 byte BOOLEAN rather than the 4 byte BOOL. -// http://blogs.msdn.com/b/drnick/archive/2007/12/19/windows-and-upn-format-credentials.aspx -//sys TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint32, translatedName *uint16, nSize *uint32) (err error) [failretval&0xff==0] = secur32.TranslateNameW -//sys GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) [failretval&0xff==0] = secur32.GetUserNameExW - -// TranslateAccountName converts a directory service -// object name from one format to another. -func TranslateAccountName(username string, from, to uint32, initSize int) (string, error) { - u, e := UTF16PtrFromString(username) - if e != nil { - return "", e - } - n := uint32(50) - for { - b := make([]uint16, n) - e = TranslateName(u, from, to, &b[0], &n) - if e == nil { - return UTF16ToString(b[:n]), nil - } - if e != ERROR_INSUFFICIENT_BUFFER { - return "", e - } - if n <= uint32(len(b)) { - return "", e - } - } -} - -const ( - // do not reorder - NetSetupUnknownStatus = iota - NetSetupUnjoined - NetSetupWorkgroupName - NetSetupDomainName -) - -type UserInfo10 struct { - Name *uint16 - Comment *uint16 - UsrComment *uint16 - FullName *uint16 -} - -//sys NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) = netapi32.NetUserGetInfo -//sys NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) = netapi32.NetGetJoinInformation -//sys NetApiBufferFree(buf *byte) (neterr error) = netapi32.NetApiBufferFree - -const ( - // do not reorder - SidTypeUser = 1 + iota - SidTypeGroup - SidTypeDomain - SidTypeAlias - SidTypeWellKnownGroup - SidTypeDeletedAccount - SidTypeInvalid - SidTypeUnknown - SidTypeComputer - SidTypeLabel -) - -type SidIdentifierAuthority struct { - Value [6]byte -} - -var ( - SECURITY_NULL_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 0}} - SECURITY_WORLD_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 1}} - SECURITY_LOCAL_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 2}} - SECURITY_CREATOR_SID_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 3}} - SECURITY_NON_UNIQUE_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 4}} - SECURITY_NT_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 5}} - SECURITY_MANDATORY_LABEL_AUTHORITY = SidIdentifierAuthority{[6]byte{0, 0, 0, 0, 0, 16}} -) - -const ( - SECURITY_NULL_RID = 0 - SECURITY_WORLD_RID = 0 - SECURITY_LOCAL_RID = 0 - SECURITY_CREATOR_OWNER_RID = 0 - SECURITY_CREATOR_GROUP_RID = 1 - SECURITY_DIALUP_RID = 1 - SECURITY_NETWORK_RID = 2 - SECURITY_BATCH_RID = 3 - SECURITY_INTERACTIVE_RID = 4 - SECURITY_LOGON_IDS_RID = 5 - SECURITY_SERVICE_RID = 6 - SECURITY_LOCAL_SYSTEM_RID = 18 - SECURITY_BUILTIN_DOMAIN_RID = 32 - SECURITY_PRINCIPAL_SELF_RID = 10 - SECURITY_CREATOR_OWNER_SERVER_RID = 0x2 - SECURITY_CREATOR_GROUP_SERVER_RID = 0x3 - SECURITY_LOGON_IDS_RID_COUNT = 0x3 - SECURITY_ANONYMOUS_LOGON_RID = 0x7 - SECURITY_PROXY_RID = 0x8 - SECURITY_ENTERPRISE_CONTROLLERS_RID = 0x9 - SECURITY_SERVER_LOGON_RID = SECURITY_ENTERPRISE_CONTROLLERS_RID - SECURITY_AUTHENTICATED_USER_RID = 0xb - SECURITY_RESTRICTED_CODE_RID = 0xc - SECURITY_NT_NON_UNIQUE_RID = 0x15 -) - -// Predefined domain-relative RIDs for local groups. -// See https://msdn.microsoft.com/en-us/library/windows/desktop/aa379649(v=vs.85).aspx -const ( - DOMAIN_ALIAS_RID_ADMINS = 0x220 - DOMAIN_ALIAS_RID_USERS = 0x221 - DOMAIN_ALIAS_RID_GUESTS = 0x222 - DOMAIN_ALIAS_RID_POWER_USERS = 0x223 - DOMAIN_ALIAS_RID_ACCOUNT_OPS = 0x224 - DOMAIN_ALIAS_RID_SYSTEM_OPS = 0x225 - DOMAIN_ALIAS_RID_PRINT_OPS = 0x226 - DOMAIN_ALIAS_RID_BACKUP_OPS = 0x227 - DOMAIN_ALIAS_RID_REPLICATOR = 0x228 - DOMAIN_ALIAS_RID_RAS_SERVERS = 0x229 - DOMAIN_ALIAS_RID_PREW2KCOMPACCESS = 0x22a - DOMAIN_ALIAS_RID_REMOTE_DESKTOP_USERS = 0x22b - DOMAIN_ALIAS_RID_NETWORK_CONFIGURATION_OPS = 0x22c - DOMAIN_ALIAS_RID_INCOMING_FOREST_TRUST_BUILDERS = 0x22d - DOMAIN_ALIAS_RID_MONITORING_USERS = 0X22e - DOMAIN_ALIAS_RID_LOGGING_USERS = 0x22f - DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS = 0x230 - DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS = 0x231 - DOMAIN_ALIAS_RID_DCOM_USERS = 0x232 - DOMAIN_ALIAS_RID_IUSERS = 0x238 - DOMAIN_ALIAS_RID_CRYPTO_OPERATORS = 0x239 - DOMAIN_ALIAS_RID_CACHEABLE_PRINCIPALS_GROUP = 0x23b - DOMAIN_ALIAS_RID_NON_CACHEABLE_PRINCIPALS_GROUP = 0x23c - DOMAIN_ALIAS_RID_EVENT_LOG_READERS_GROUP = 0x23d - DOMAIN_ALIAS_RID_CERTSVC_DCOM_ACCESS_GROUP = 0x23e -) - -//sys LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) = advapi32.LookupAccountSidW -//sys LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) = advapi32.LookupAccountNameW -//sys ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) = advapi32.ConvertSidToStringSidW -//sys ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) = advapi32.ConvertStringSidToSidW -//sys GetLengthSid(sid *SID) (len uint32) = advapi32.GetLengthSid -//sys CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) = advapi32.CopySid -//sys AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) = advapi32.AllocateAndInitializeSid -//sys FreeSid(sid *SID) (err error) [failretval!=0] = advapi32.FreeSid -//sys EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) = advapi32.EqualSid - -// The security identifier (SID) structure is a variable-length -// structure used to uniquely identify users or groups. -type SID struct{} - -// StringToSid converts a string-format security identifier -// sid into a valid, functional sid. -func StringToSid(s string) (*SID, error) { - var sid *SID - p, e := UTF16PtrFromString(s) - if e != nil { - return nil, e - } - e = ConvertStringSidToSid(p, &sid) - if e != nil { - return nil, e - } - defer LocalFree((Handle)(unsafe.Pointer(sid))) - return sid.Copy() -} - -// LookupSID retrieves a security identifier sid for the account -// and the name of the domain on which the account was found. -// System specify target computer to search. -func LookupSID(system, account string) (sid *SID, domain string, accType uint32, err error) { - if len(account) == 0 { - return nil, "", 0, syscall.EINVAL - } - acc, e := UTF16PtrFromString(account) - if e != nil { - return nil, "", 0, e - } - var sys *uint16 - if len(system) > 0 { - sys, e = UTF16PtrFromString(system) - if e != nil { - return nil, "", 0, e - } - } - n := uint32(50) - dn := uint32(50) - for { - b := make([]byte, n) - db := make([]uint16, dn) - sid = (*SID)(unsafe.Pointer(&b[0])) - e = LookupAccountName(sys, acc, sid, &n, &db[0], &dn, &accType) - if e == nil { - return sid, UTF16ToString(db), accType, nil - } - if e != ERROR_INSUFFICIENT_BUFFER { - return nil, "", 0, e - } - if n <= uint32(len(b)) { - return nil, "", 0, e - } - } -} - -// String converts sid to a string format -// suitable for display, storage, or transmission. -func (sid *SID) String() (string, error) { - var s *uint16 - e := ConvertSidToStringSid(sid, &s) - if e != nil { - return "", e - } - defer LocalFree((Handle)(unsafe.Pointer(s))) - return UTF16ToString((*[256]uint16)(unsafe.Pointer(s))[:]), nil -} - -// Len returns the length, in bytes, of a valid security identifier sid. -func (sid *SID) Len() int { - return int(GetLengthSid(sid)) -} - -// Copy creates a duplicate of security identifier sid. -func (sid *SID) Copy() (*SID, error) { - b := make([]byte, sid.Len()) - sid2 := (*SID)(unsafe.Pointer(&b[0])) - e := CopySid(uint32(len(b)), sid2, sid) - if e != nil { - return nil, e - } - return sid2, nil -} - -// LookupAccount retrieves the name of the account for this sid -// and the name of the first domain on which this sid is found. -// System specify target computer to search for. -func (sid *SID) LookupAccount(system string) (account, domain string, accType uint32, err error) { - var sys *uint16 - if len(system) > 0 { - sys, err = UTF16PtrFromString(system) - if err != nil { - return "", "", 0, err - } - } - n := uint32(50) - dn := uint32(50) - for { - b := make([]uint16, n) - db := make([]uint16, dn) - e := LookupAccountSid(sys, sid, &b[0], &n, &db[0], &dn, &accType) - if e == nil { - return UTF16ToString(b), UTF16ToString(db), accType, nil - } - if e != ERROR_INSUFFICIENT_BUFFER { - return "", "", 0, e - } - if n <= uint32(len(b)) { - return "", "", 0, e - } - } -} - -const ( - // do not reorder - TOKEN_ASSIGN_PRIMARY = 1 << iota - TOKEN_DUPLICATE - TOKEN_IMPERSONATE - TOKEN_QUERY - TOKEN_QUERY_SOURCE - TOKEN_ADJUST_PRIVILEGES - TOKEN_ADJUST_GROUPS - TOKEN_ADJUST_DEFAULT - - TOKEN_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | - TOKEN_ASSIGN_PRIMARY | - TOKEN_DUPLICATE | - TOKEN_IMPERSONATE | - TOKEN_QUERY | - TOKEN_QUERY_SOURCE | - TOKEN_ADJUST_PRIVILEGES | - TOKEN_ADJUST_GROUPS | - TOKEN_ADJUST_DEFAULT - TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY - TOKEN_WRITE = STANDARD_RIGHTS_WRITE | - TOKEN_ADJUST_PRIVILEGES | - TOKEN_ADJUST_GROUPS | - TOKEN_ADJUST_DEFAULT - TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE -) - -const ( - // do not reorder - TokenUser = 1 + iota - TokenGroups - TokenPrivileges - TokenOwner - TokenPrimaryGroup - TokenDefaultDacl - TokenSource - TokenType - TokenImpersonationLevel - TokenStatistics - TokenRestrictedSids - TokenSessionId - TokenGroupsAndPrivileges - TokenSessionReference - TokenSandBoxInert - TokenAuditPolicy - TokenOrigin - TokenElevationType - TokenLinkedToken - TokenElevation - TokenHasRestrictions - TokenAccessInformation - TokenVirtualizationAllowed - TokenVirtualizationEnabled - TokenIntegrityLevel - TokenUIAccess - TokenMandatoryPolicy - TokenLogonSid - MaxTokenInfoClass -) - -type SIDAndAttributes struct { - Sid *SID - Attributes uint32 -} - -type Tokenuser struct { - User SIDAndAttributes -} - -type Tokenprimarygroup struct { - PrimaryGroup *SID -} - -type Tokengroups struct { - GroupCount uint32 - Groups [1]SIDAndAttributes -} - -// Authorization Functions -//sys checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) = advapi32.CheckTokenMembership -//sys OpenProcessToken(h Handle, access uint32, token *Token) (err error) = advapi32.OpenProcessToken -//sys GetTokenInformation(t Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) = advapi32.GetTokenInformation -//sys GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) = userenv.GetUserProfileDirectoryW - -// An access token contains the security information for a logon session. -// The system creates an access token when a user logs on, and every -// process executed on behalf of the user has a copy of the token. -// The token identifies the user, the user's groups, and the user's -// privileges. The system uses the token to control access to securable -// objects and to control the ability of the user to perform various -// system-related operations on the local computer. -type Token Handle - -// OpenCurrentProcessToken opens the access token -// associated with current process. -func OpenCurrentProcessToken() (Token, error) { - p, e := GetCurrentProcess() - if e != nil { - return 0, e - } - var t Token - e = OpenProcessToken(p, TOKEN_QUERY, &t) - if e != nil { - return 0, e - } - return t, nil -} - -// Close releases access to access token. -func (t Token) Close() error { - return CloseHandle(Handle(t)) -} - -// getInfo retrieves a specified type of information about an access token. -func (t Token) getInfo(class uint32, initSize int) (unsafe.Pointer, error) { - n := uint32(initSize) - for { - b := make([]byte, n) - e := GetTokenInformation(t, class, &b[0], uint32(len(b)), &n) - if e == nil { - return unsafe.Pointer(&b[0]), nil - } - if e != ERROR_INSUFFICIENT_BUFFER { - return nil, e - } - if n <= uint32(len(b)) { - return nil, e - } - } -} - -// GetTokenUser retrieves access token t user account information. -func (t Token) GetTokenUser() (*Tokenuser, error) { - i, e := t.getInfo(TokenUser, 50) - if e != nil { - return nil, e - } - return (*Tokenuser)(i), nil -} - -// GetTokenGroups retrieves group accounts associated with access token t. -func (t Token) GetTokenGroups() (*Tokengroups, error) { - i, e := t.getInfo(TokenGroups, 50) - if e != nil { - return nil, e - } - return (*Tokengroups)(i), nil -} - -// GetTokenPrimaryGroup retrieves access token t primary group information. -// A pointer to a SID structure representing a group that will become -// the primary group of any objects created by a process using this access token. -func (t Token) GetTokenPrimaryGroup() (*Tokenprimarygroup, error) { - i, e := t.getInfo(TokenPrimaryGroup, 50) - if e != nil { - return nil, e - } - return (*Tokenprimarygroup)(i), nil -} - -// GetUserProfileDirectory retrieves path to the -// root directory of the access token t user's profile. -func (t Token) GetUserProfileDirectory() (string, error) { - n := uint32(100) - for { - b := make([]uint16, n) - e := GetUserProfileDirectory(t, &b[0], &n) - if e == nil { - return UTF16ToString(b), nil - } - if e != ERROR_INSUFFICIENT_BUFFER { - return "", e - } - if n <= uint32(len(b)) { - return "", e - } - } -} - -// IsMember reports whether the access token t is a member of the provided SID. -func (t Token) IsMember(sid *SID) (bool, error) { - var b int32 - if e := checkTokenMembership(t, sid, &b); e != nil { - return false, e - } - return b != 0, nil -} diff --git a/vendor/golang.org/x/sys/windows/service.go b/vendor/golang.org/x/sys/windows/service.go deleted file mode 100644 index a500dd7..0000000 --- a/vendor/golang.org/x/sys/windows/service.go +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright 2012 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. - -// +build windows - -package windows - -const ( - SC_MANAGER_CONNECT = 1 - SC_MANAGER_CREATE_SERVICE = 2 - SC_MANAGER_ENUMERATE_SERVICE = 4 - SC_MANAGER_LOCK = 8 - SC_MANAGER_QUERY_LOCK_STATUS = 16 - SC_MANAGER_MODIFY_BOOT_CONFIG = 32 - SC_MANAGER_ALL_ACCESS = 0xf003f -) - -//sys OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenSCManagerW - -const ( - SERVICE_KERNEL_DRIVER = 1 - SERVICE_FILE_SYSTEM_DRIVER = 2 - SERVICE_ADAPTER = 4 - SERVICE_RECOGNIZER_DRIVER = 8 - SERVICE_WIN32_OWN_PROCESS = 16 - SERVICE_WIN32_SHARE_PROCESS = 32 - SERVICE_WIN32 = SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS - SERVICE_INTERACTIVE_PROCESS = 256 - SERVICE_DRIVER = SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | SERVICE_RECOGNIZER_DRIVER - SERVICE_TYPE_ALL = SERVICE_WIN32 | SERVICE_ADAPTER | SERVICE_DRIVER | SERVICE_INTERACTIVE_PROCESS - - SERVICE_BOOT_START = 0 - SERVICE_SYSTEM_START = 1 - SERVICE_AUTO_START = 2 - SERVICE_DEMAND_START = 3 - SERVICE_DISABLED = 4 - - SERVICE_ERROR_IGNORE = 0 - SERVICE_ERROR_NORMAL = 1 - SERVICE_ERROR_SEVERE = 2 - SERVICE_ERROR_CRITICAL = 3 - - SC_STATUS_PROCESS_INFO = 0 - - SERVICE_STOPPED = 1 - SERVICE_START_PENDING = 2 - SERVICE_STOP_PENDING = 3 - SERVICE_RUNNING = 4 - SERVICE_CONTINUE_PENDING = 5 - SERVICE_PAUSE_PENDING = 6 - SERVICE_PAUSED = 7 - SERVICE_NO_CHANGE = 0xffffffff - - SERVICE_ACCEPT_STOP = 1 - SERVICE_ACCEPT_PAUSE_CONTINUE = 2 - SERVICE_ACCEPT_SHUTDOWN = 4 - SERVICE_ACCEPT_PARAMCHANGE = 8 - SERVICE_ACCEPT_NETBINDCHANGE = 16 - SERVICE_ACCEPT_HARDWAREPROFILECHANGE = 32 - SERVICE_ACCEPT_POWEREVENT = 64 - SERVICE_ACCEPT_SESSIONCHANGE = 128 - - SERVICE_CONTROL_STOP = 1 - SERVICE_CONTROL_PAUSE = 2 - SERVICE_CONTROL_CONTINUE = 3 - SERVICE_CONTROL_INTERROGATE = 4 - SERVICE_CONTROL_SHUTDOWN = 5 - SERVICE_CONTROL_PARAMCHANGE = 6 - SERVICE_CONTROL_NETBINDADD = 7 - SERVICE_CONTROL_NETBINDREMOVE = 8 - SERVICE_CONTROL_NETBINDENABLE = 9 - SERVICE_CONTROL_NETBINDDISABLE = 10 - SERVICE_CONTROL_DEVICEEVENT = 11 - SERVICE_CONTROL_HARDWAREPROFILECHANGE = 12 - SERVICE_CONTROL_POWEREVENT = 13 - SERVICE_CONTROL_SESSIONCHANGE = 14 - - SERVICE_ACTIVE = 1 - SERVICE_INACTIVE = 2 - SERVICE_STATE_ALL = 3 - - SERVICE_QUERY_CONFIG = 1 - SERVICE_CHANGE_CONFIG = 2 - SERVICE_QUERY_STATUS = 4 - SERVICE_ENUMERATE_DEPENDENTS = 8 - SERVICE_START = 16 - SERVICE_STOP = 32 - SERVICE_PAUSE_CONTINUE = 64 - SERVICE_INTERROGATE = 128 - SERVICE_USER_DEFINED_CONTROL = 256 - SERVICE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG | SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_START | SERVICE_STOP | SERVICE_PAUSE_CONTINUE | SERVICE_INTERROGATE | SERVICE_USER_DEFINED_CONTROL - SERVICE_RUNS_IN_SYSTEM_PROCESS = 1 - SERVICE_CONFIG_DESCRIPTION = 1 - SERVICE_CONFIG_FAILURE_ACTIONS = 2 - - NO_ERROR = 0 - - SC_ENUM_PROCESS_INFO = 0 -) - -type SERVICE_STATUS struct { - ServiceType uint32 - CurrentState uint32 - ControlsAccepted uint32 - Win32ExitCode uint32 - ServiceSpecificExitCode uint32 - CheckPoint uint32 - WaitHint uint32 -} - -type SERVICE_TABLE_ENTRY struct { - ServiceName *uint16 - ServiceProc uintptr -} - -type QUERY_SERVICE_CONFIG struct { - ServiceType uint32 - StartType uint32 - ErrorControl uint32 - BinaryPathName *uint16 - LoadOrderGroup *uint16 - TagId uint32 - Dependencies *uint16 - ServiceStartName *uint16 - DisplayName *uint16 -} - -type SERVICE_DESCRIPTION struct { - Description *uint16 -} - -type SERVICE_STATUS_PROCESS struct { - ServiceType uint32 - CurrentState uint32 - ControlsAccepted uint32 - Win32ExitCode uint32 - ServiceSpecificExitCode uint32 - CheckPoint uint32 - WaitHint uint32 - ProcessId uint32 - ServiceFlags uint32 -} - -type ENUM_SERVICE_STATUS_PROCESS struct { - ServiceName *uint16 - DisplayName *uint16 - ServiceStatusProcess SERVICE_STATUS_PROCESS -} - -//sys CloseServiceHandle(handle Handle) (err error) = advapi32.CloseServiceHandle -//sys CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) [failretval==0] = advapi32.CreateServiceW -//sys OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) [failretval==0] = advapi32.OpenServiceW -//sys DeleteService(service Handle) (err error) = advapi32.DeleteService -//sys StartService(service Handle, numArgs uint32, argVectors **uint16) (err error) = advapi32.StartServiceW -//sys QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) = advapi32.QueryServiceStatus -//sys ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err error) = advapi32.ControlService -//sys StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) = advapi32.StartServiceCtrlDispatcherW -//sys SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error) = advapi32.SetServiceStatus -//sys ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) (err error) = advapi32.ChangeServiceConfigW -//sys QueryServiceConfig(service Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfigW -//sys ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) = advapi32.ChangeServiceConfig2W -//sys QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) = advapi32.QueryServiceConfig2W -//sys EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) = advapi32.EnumServicesStatusExW diff --git a/vendor/golang.org/x/sys/windows/str.go b/vendor/golang.org/x/sys/windows/str.go deleted file mode 100644 index 917cc2a..0000000 --- a/vendor/golang.org/x/sys/windows/str.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2009 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. - -// +build windows - -package windows - -func itoa(val int) string { // do it here rather than with fmt to avoid dependency - if val < 0 { - return "-" + itoa(-val) - } - var buf [32]byte // big enough for int64 - i := len(buf) - 1 - for val >= 10 { - buf[i] = byte(val%10 + '0') - i-- - val /= 10 - } - buf[i] = byte(val + '0') - return string(buf[i:]) -} diff --git a/vendor/golang.org/x/sys/windows/syscall.go b/vendor/golang.org/x/sys/windows/syscall.go deleted file mode 100644 index b07bc23..0000000 --- a/vendor/golang.org/x/sys/windows/syscall.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2009 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. - -// +build windows - -// Package windows contains an interface to the low-level operating system -// primitives. OS details vary depending on the underlying system, and -// by default, godoc will display the OS-specific documentation for the current -// system. If you want godoc to display syscall documentation for another -// system, set $GOOS and $GOARCH to the desired system. For example, if -// you want to view documentation for freebsd/arm on linux/amd64, set $GOOS -// to freebsd and $GOARCH to arm. -// The primary use of this package is inside other packages that provide a more -// portable interface to the system, such as "os", "time" and "net". Use -// those packages rather than this one if you can. -// For details of the functions and data types in this package consult -// the manuals for the appropriate operating system. -// These calls return err == nil to indicate success; otherwise -// err represents an operating system error describing the failure and -// holds a value of type syscall.Errno. -package windows // import "golang.org/x/sys/windows" - -import ( - "syscall" -) - -// ByteSliceFromString returns a NUL-terminated slice of bytes -// containing the text of s. If s contains a NUL byte at any -// location, it returns (nil, syscall.EINVAL). -func ByteSliceFromString(s string) ([]byte, error) { - for i := 0; i < len(s); i++ { - if s[i] == 0 { - return nil, syscall.EINVAL - } - } - a := make([]byte, len(s)+1) - copy(a, s) - return a, nil -} - -// BytePtrFromString returns a pointer to a NUL-terminated array of -// bytes containing the text of s. If s contains a NUL byte at any -// location, it returns (nil, syscall.EINVAL). -func BytePtrFromString(s string) (*byte, error) { - a, err := ByteSliceFromString(s) - if err != nil { - return nil, err - } - return &a[0], nil -} - -// Single-word zero for use when we need a valid pointer to 0 bytes. -// See mksyscall.pl. -var _zero uintptr - -func (ts *Timespec) Unix() (sec int64, nsec int64) { - return int64(ts.Sec), int64(ts.Nsec) -} - -func (tv *Timeval) Unix() (sec int64, nsec int64) { - return int64(tv.Sec), int64(tv.Usec) * 1000 -} - -func (ts *Timespec) Nano() int64 { - return int64(ts.Sec)*1e9 + int64(ts.Nsec) -} - -func (tv *Timeval) Nano() int64 { - return int64(tv.Sec)*1e9 + int64(tv.Usec)*1000 -} diff --git a/vendor/golang.org/x/sys/windows/syscall_windows.go b/vendor/golang.org/x/sys/windows/syscall_windows.go deleted file mode 100644 index 1e9f4bb..0000000 --- a/vendor/golang.org/x/sys/windows/syscall_windows.go +++ /dev/null @@ -1,1153 +0,0 @@ -// Copyright 2009 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. - -// Windows system calls. - -package windows - -import ( - errorspkg "errors" - "sync" - "syscall" - "unicode/utf16" - "unsafe" -) - -type Handle uintptr - -const ( - InvalidHandle = ^Handle(0) - - // Flags for DefineDosDevice. - DDD_EXACT_MATCH_ON_REMOVE = 0x00000004 - DDD_NO_BROADCAST_SYSTEM = 0x00000008 - DDD_RAW_TARGET_PATH = 0x00000001 - DDD_REMOVE_DEFINITION = 0x00000002 - - // Return values for GetDriveType. - DRIVE_UNKNOWN = 0 - DRIVE_NO_ROOT_DIR = 1 - DRIVE_REMOVABLE = 2 - DRIVE_FIXED = 3 - DRIVE_REMOTE = 4 - DRIVE_CDROM = 5 - DRIVE_RAMDISK = 6 - - // File system flags from GetVolumeInformation and GetVolumeInformationByHandle. - FILE_CASE_SENSITIVE_SEARCH = 0x00000001 - FILE_CASE_PRESERVED_NAMES = 0x00000002 - FILE_FILE_COMPRESSION = 0x00000010 - FILE_DAX_VOLUME = 0x20000000 - FILE_NAMED_STREAMS = 0x00040000 - FILE_PERSISTENT_ACLS = 0x00000008 - FILE_READ_ONLY_VOLUME = 0x00080000 - FILE_SEQUENTIAL_WRITE_ONCE = 0x00100000 - FILE_SUPPORTS_ENCRYPTION = 0x00020000 - FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000 - FILE_SUPPORTS_HARD_LINKS = 0x00400000 - FILE_SUPPORTS_OBJECT_IDS = 0x00010000 - FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000 - FILE_SUPPORTS_REPARSE_POINTS = 0x00000080 - FILE_SUPPORTS_SPARSE_FILES = 0x00000040 - FILE_SUPPORTS_TRANSACTIONS = 0x00200000 - FILE_SUPPORTS_USN_JOURNAL = 0x02000000 - FILE_UNICODE_ON_DISK = 0x00000004 - FILE_VOLUME_IS_COMPRESSED = 0x00008000 - FILE_VOLUME_QUOTAS = 0x00000020 -) - -// StringToUTF16 is deprecated. Use UTF16FromString instead. -// If s contains a NUL byte this function panics instead of -// returning an error. -func StringToUTF16(s string) []uint16 { - a, err := UTF16FromString(s) - if err != nil { - panic("windows: string with NUL passed to StringToUTF16") - } - return a -} - -// UTF16FromString returns the UTF-16 encoding of the UTF-8 string -// s, with a terminating NUL added. If s contains a NUL byte at any -// location, it returns (nil, syscall.EINVAL). -func UTF16FromString(s string) ([]uint16, error) { - for i := 0; i < len(s); i++ { - if s[i] == 0 { - return nil, syscall.EINVAL - } - } - return utf16.Encode([]rune(s + "\x00")), nil -} - -// UTF16ToString returns the UTF-8 encoding of the UTF-16 sequence s, -// with a terminating NUL removed. -func UTF16ToString(s []uint16) string { - for i, v := range s { - if v == 0 { - s = s[0:i] - break - } - } - return string(utf16.Decode(s)) -} - -// StringToUTF16Ptr is deprecated. Use UTF16PtrFromString instead. -// If s contains a NUL byte this function panics instead of -// returning an error. -func StringToUTF16Ptr(s string) *uint16 { return &StringToUTF16(s)[0] } - -// UTF16PtrFromString returns pointer to the UTF-16 encoding of -// the UTF-8 string s, with a terminating NUL added. If s -// contains a NUL byte at any location, it returns (nil, syscall.EINVAL). -func UTF16PtrFromString(s string) (*uint16, error) { - a, err := UTF16FromString(s) - if err != nil { - return nil, err - } - return &a[0], nil -} - -func Getpagesize() int { return 4096 } - -// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention. -// This is useful when interoperating with Windows code requiring callbacks. -func NewCallback(fn interface{}) uintptr { - return syscall.NewCallback(fn) -} - -// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention. -// This is useful when interoperating with Windows code requiring callbacks. -func NewCallbackCDecl(fn interface{}) uintptr { - return syscall.NewCallbackCDecl(fn) -} - -// windows api calls - -//sys GetLastError() (lasterr error) -//sys LoadLibrary(libname string) (handle Handle, err error) = LoadLibraryW -//sys LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) = LoadLibraryExW -//sys FreeLibrary(handle Handle) (err error) -//sys GetProcAddress(module Handle, procname string) (proc uintptr, err error) -//sys GetVersion() (ver uint32, err error) -//sys FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW -//sys ExitProcess(exitcode uint32) -//sys CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) [failretval==InvalidHandle] = CreateFileW -//sys ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) -//sys WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) -//sys SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) [failretval==0xffffffff] -//sys CloseHandle(handle Handle) (err error) -//sys GetStdHandle(stdhandle uint32) (handle Handle, err error) [failretval==InvalidHandle] -//sys SetStdHandle(stdhandle uint32, handle Handle) (err error) -//sys findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstFileW -//sys findNextFile1(handle Handle, data *win32finddata1) (err error) = FindNextFileW -//sys FindClose(handle Handle) (err error) -//sys GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error) -//sys GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) = GetCurrentDirectoryW -//sys SetCurrentDirectory(path *uint16) (err error) = SetCurrentDirectoryW -//sys CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) = CreateDirectoryW -//sys RemoveDirectory(path *uint16) (err error) = RemoveDirectoryW -//sys DeleteFile(path *uint16) (err error) = DeleteFileW -//sys MoveFile(from *uint16, to *uint16) (err error) = MoveFileW -//sys MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) = MoveFileExW -//sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW -//sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW -//sys SetEndOfFile(handle Handle) (err error) -//sys GetSystemTimeAsFileTime(time *Filetime) -//sys GetSystemTimePreciseAsFileTime(time *Filetime) -//sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff] -//sys CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uint32, threadcnt uint32) (handle Handle, err error) -//sys GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) (err error) -//sys PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uint32, overlapped *Overlapped) (err error) -//sys CancelIo(s Handle) (err error) -//sys CancelIoEx(s Handle, o *Overlapped) (err error) -//sys CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) = CreateProcessW -//sys OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error) -//sys TerminateProcess(handle Handle, exitcode uint32) (err error) -//sys GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) -//sys GetStartupInfo(startupInfo *StartupInfo) (err error) = GetStartupInfoW -//sys GetCurrentProcess() (pseudoHandle Handle, err error) -//sys GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) -//sys DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error) -//sys WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) [failretval==0xffffffff] -//sys GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) = GetTempPathW -//sys CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error) -//sys GetFileType(filehandle Handle) (n uint32, err error) -//sys CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) = advapi32.CryptAcquireContextW -//sys CryptReleaseContext(provhandle Handle, flags uint32) (err error) = advapi32.CryptReleaseContext -//sys CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) = advapi32.CryptGenRandom -//sys GetEnvironmentStrings() (envs *uint16, err error) [failretval==nil] = kernel32.GetEnvironmentStringsW -//sys FreeEnvironmentStrings(envs *uint16) (err error) = kernel32.FreeEnvironmentStringsW -//sys GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) = kernel32.GetEnvironmentVariableW -//sys SetEnvironmentVariable(name *uint16, value *uint16) (err error) = kernel32.SetEnvironmentVariableW -//sys SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) -//sys GetFileAttributes(name *uint16) (attrs uint32, err error) [failretval==INVALID_FILE_ATTRIBUTES] = kernel32.GetFileAttributesW -//sys SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW -//sys GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) = kernel32.GetFileAttributesExW -//sys GetCommandLine() (cmd *uint16) = kernel32.GetCommandLineW -//sys CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) [failretval==nil] = shell32.CommandLineToArgvW -//sys LocalFree(hmem Handle) (handle Handle, err error) [failretval!=0] -//sys SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) -//sys FlushFileBuffers(handle Handle) (err error) -//sys GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) = kernel32.GetFullPathNameW -//sys GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) = kernel32.GetLongPathNameW -//sys GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) = kernel32.GetShortPathNameW -//sys CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) = kernel32.CreateFileMappingW -//sys MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) -//sys UnmapViewOfFile(addr uintptr) (err error) -//sys FlushViewOfFile(addr uintptr, length uintptr) (err error) -//sys VirtualLock(addr uintptr, length uintptr) (err error) -//sys VirtualUnlock(addr uintptr, length uintptr) (err error) -//sys VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) = kernel32.VirtualAlloc -//sys VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) = kernel32.VirtualFree -//sys VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect *uint32) (err error) = kernel32.VirtualProtect -//sys TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) = mswsock.TransmitFile -//sys ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) = kernel32.ReadDirectoryChangesW -//sys CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) = crypt32.CertOpenSystemStoreW -//sys CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) [failretval==InvalidHandle] = crypt32.CertOpenStore -//sys CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) [failretval==nil] = crypt32.CertEnumCertificatesInStore -//sys CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) = crypt32.CertAddCertificateContextToStore -//sys CertCloseStore(store Handle, flags uint32) (err error) = crypt32.CertCloseStore -//sys CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) = crypt32.CertGetCertificateChain -//sys CertFreeCertificateChain(ctx *CertChainContext) = crypt32.CertFreeCertificateChain -//sys CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) [failretval==nil] = crypt32.CertCreateCertificateContext -//sys CertFreeCertificateContext(ctx *CertContext) (err error) = crypt32.CertFreeCertificateContext -//sys CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) = crypt32.CertVerifyCertificateChainPolicy -//sys RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) = advapi32.RegOpenKeyExW -//sys RegCloseKey(key Handle) (regerrno error) = advapi32.RegCloseKey -//sys RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegQueryInfoKeyW -//sys RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) = advapi32.RegEnumKeyExW -//sys RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW -//sys getCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId -//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode -//sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode -//sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo -//sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW -//sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW -//sys CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot -//sys Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32FirstW -//sys Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) = kernel32.Process32NextW -//sys DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error) -// This function returns 1 byte BOOLEAN rather than the 4 byte BOOL. -//sys CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) [failretval&0xff==0] = CreateSymbolicLinkW -//sys CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) [failretval&0xff==0] = CreateHardLinkW -//sys GetCurrentThreadId() (id uint32) -//sys CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) = kernel32.CreateEventW -//sys CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) = kernel32.CreateEventExW -//sys OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) = kernel32.OpenEventW -//sys SetEvent(event Handle) (err error) = kernel32.SetEvent -//sys ResetEvent(event Handle) (err error) = kernel32.ResetEvent -//sys PulseEvent(event Handle) (err error) = kernel32.PulseEvent - -// Volume Management Functions -//sys DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) = DefineDosDeviceW -//sys DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) = DeleteVolumeMountPointW -//sys FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstVolumeW -//sys FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, bufferLength uint32) (handle Handle, err error) [failretval==InvalidHandle] = FindFirstVolumeMountPointW -//sys FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32) (err error) = FindNextVolumeW -//sys FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) = FindNextVolumeMountPointW -//sys FindVolumeClose(findVolume Handle) (err error) -//sys FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error) -//sys GetDriveType(rootPathName *uint16) (driveType uint32) = GetDriveTypeW -//sys GetLogicalDrives() (drivesBitMask uint32, err error) [failretval==0] -//sys GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) [failretval==0] = GetLogicalDriveStringsW -//sys GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) = GetVolumeInformationW -//sys GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) = GetVolumeInformationByHandleW -//sys GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error) = GetVolumeNameForVolumeMountPointW -//sys GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) (err error) = GetVolumePathNameW -//sys GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16, bufferLength uint32, returnLength *uint32) (err error) = GetVolumePathNamesForVolumeNameW -//sys QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) [failretval==0] = QueryDosDeviceW -//sys SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) = SetVolumeLabelW -//sys SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) = SetVolumeMountPointW - -// syscall interface implementation for other packages - -// GetProcAddressByOrdinal retrieves the address of the exported -// function from module by ordinal. -func GetProcAddressByOrdinal(module Handle, ordinal uintptr) (proc uintptr, err error) { - r0, _, e1 := syscall.Syscall(procGetProcAddress.Addr(), 2, uintptr(module), ordinal, 0) - proc = uintptr(r0) - if proc == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Exit(code int) { ExitProcess(uint32(code)) } - -func makeInheritSa() *SecurityAttributes { - var sa SecurityAttributes - sa.Length = uint32(unsafe.Sizeof(sa)) - sa.InheritHandle = 1 - return &sa -} - -func Open(path string, mode int, perm uint32) (fd Handle, err error) { - if len(path) == 0 { - return InvalidHandle, ERROR_FILE_NOT_FOUND - } - pathp, err := UTF16PtrFromString(path) - if err != nil { - return InvalidHandle, err - } - var access uint32 - switch mode & (O_RDONLY | O_WRONLY | O_RDWR) { - case O_RDONLY: - access = GENERIC_READ - case O_WRONLY: - access = GENERIC_WRITE - case O_RDWR: - access = GENERIC_READ | GENERIC_WRITE - } - if mode&O_CREAT != 0 { - access |= GENERIC_WRITE - } - if mode&O_APPEND != 0 { - access &^= GENERIC_WRITE - access |= FILE_APPEND_DATA - } - sharemode := uint32(FILE_SHARE_READ | FILE_SHARE_WRITE) - var sa *SecurityAttributes - if mode&O_CLOEXEC == 0 { - sa = makeInheritSa() - } - var createmode uint32 - switch { - case mode&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL): - createmode = CREATE_NEW - case mode&(O_CREAT|O_TRUNC) == (O_CREAT | O_TRUNC): - createmode = CREATE_ALWAYS - case mode&O_CREAT == O_CREAT: - createmode = OPEN_ALWAYS - case mode&O_TRUNC == O_TRUNC: - createmode = TRUNCATE_EXISTING - default: - createmode = OPEN_EXISTING - } - h, e := CreateFile(pathp, access, sharemode, sa, createmode, FILE_ATTRIBUTE_NORMAL, 0) - return h, e -} - -func Read(fd Handle, p []byte) (n int, err error) { - var done uint32 - e := ReadFile(fd, p, &done, nil) - if e != nil { - if e == ERROR_BROKEN_PIPE { - // NOTE(brainman): work around ERROR_BROKEN_PIPE is returned on reading EOF from stdin - return 0, nil - } - return 0, e - } - if raceenabled { - if done > 0 { - raceWriteRange(unsafe.Pointer(&p[0]), int(done)) - } - raceAcquire(unsafe.Pointer(&ioSync)) - } - return int(done), nil -} - -func Write(fd Handle, p []byte) (n int, err error) { - if raceenabled { - raceReleaseMerge(unsafe.Pointer(&ioSync)) - } - var done uint32 - e := WriteFile(fd, p, &done, nil) - if e != nil { - return 0, e - } - if raceenabled && done > 0 { - raceReadRange(unsafe.Pointer(&p[0]), int(done)) - } - return int(done), nil -} - -var ioSync int64 - -func Seek(fd Handle, offset int64, whence int) (newoffset int64, err error) { - var w uint32 - switch whence { - case 0: - w = FILE_BEGIN - case 1: - w = FILE_CURRENT - case 2: - w = FILE_END - } - hi := int32(offset >> 32) - lo := int32(offset) - // use GetFileType to check pipe, pipe can't do seek - ft, _ := GetFileType(fd) - if ft == FILE_TYPE_PIPE { - return 0, syscall.EPIPE - } - rlo, e := SetFilePointer(fd, lo, &hi, w) - if e != nil { - return 0, e - } - return int64(hi)<<32 + int64(rlo), nil -} - -func Close(fd Handle) (err error) { - return CloseHandle(fd) -} - -var ( - Stdin = getStdHandle(STD_INPUT_HANDLE) - Stdout = getStdHandle(STD_OUTPUT_HANDLE) - Stderr = getStdHandle(STD_ERROR_HANDLE) -) - -func getStdHandle(stdhandle uint32) (fd Handle) { - r, _ := GetStdHandle(stdhandle) - CloseOnExec(r) - return r -} - -const ImplementsGetwd = true - -func Getwd() (wd string, err error) { - b := make([]uint16, 300) - n, e := GetCurrentDirectory(uint32(len(b)), &b[0]) - if e != nil { - return "", e - } - return string(utf16.Decode(b[0:n])), nil -} - -func Chdir(path string) (err error) { - pathp, err := UTF16PtrFromString(path) - if err != nil { - return err - } - return SetCurrentDirectory(pathp) -} - -func Mkdir(path string, mode uint32) (err error) { - pathp, err := UTF16PtrFromString(path) - if err != nil { - return err - } - return CreateDirectory(pathp, nil) -} - -func Rmdir(path string) (err error) { - pathp, err := UTF16PtrFromString(path) - if err != nil { - return err - } - return RemoveDirectory(pathp) -} - -func Unlink(path string) (err error) { - pathp, err := UTF16PtrFromString(path) - if err != nil { - return err - } - return DeleteFile(pathp) -} - -func Rename(oldpath, newpath string) (err error) { - from, err := UTF16PtrFromString(oldpath) - if err != nil { - return err - } - to, err := UTF16PtrFromString(newpath) - if err != nil { - return err - } - return MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING) -} - -func ComputerName() (name string, err error) { - var n uint32 = MAX_COMPUTERNAME_LENGTH + 1 - b := make([]uint16, n) - e := GetComputerName(&b[0], &n) - if e != nil { - return "", e - } - return string(utf16.Decode(b[0:n])), nil -} - -func Ftruncate(fd Handle, length int64) (err error) { - curoffset, e := Seek(fd, 0, 1) - if e != nil { - return e - } - defer Seek(fd, curoffset, 0) - _, e = Seek(fd, length, 0) - if e != nil { - return e - } - e = SetEndOfFile(fd) - if e != nil { - return e - } - return nil -} - -func Gettimeofday(tv *Timeval) (err error) { - var ft Filetime - GetSystemTimeAsFileTime(&ft) - *tv = NsecToTimeval(ft.Nanoseconds()) - return nil -} - -func Pipe(p []Handle) (err error) { - if len(p) != 2 { - return syscall.EINVAL - } - var r, w Handle - e := CreatePipe(&r, &w, makeInheritSa(), 0) - if e != nil { - return e - } - p[0] = r - p[1] = w - return nil -} - -func Utimes(path string, tv []Timeval) (err error) { - if len(tv) != 2 { - return syscall.EINVAL - } - pathp, e := UTF16PtrFromString(path) - if e != nil { - return e - } - h, e := CreateFile(pathp, - FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil, - OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0) - if e != nil { - return e - } - defer Close(h) - a := NsecToFiletime(tv[0].Nanoseconds()) - w := NsecToFiletime(tv[1].Nanoseconds()) - return SetFileTime(h, nil, &a, &w) -} - -func UtimesNano(path string, ts []Timespec) (err error) { - if len(ts) != 2 { - return syscall.EINVAL - } - pathp, e := UTF16PtrFromString(path) - if e != nil { - return e - } - h, e := CreateFile(pathp, - FILE_WRITE_ATTRIBUTES, FILE_SHARE_WRITE, nil, - OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0) - if e != nil { - return e - } - defer Close(h) - a := NsecToFiletime(TimespecToNsec(ts[0])) - w := NsecToFiletime(TimespecToNsec(ts[1])) - return SetFileTime(h, nil, &a, &w) -} - -func Fsync(fd Handle) (err error) { - return FlushFileBuffers(fd) -} - -func Chmod(path string, mode uint32) (err error) { - if mode == 0 { - return syscall.EINVAL - } - p, e := UTF16PtrFromString(path) - if e != nil { - return e - } - attrs, e := GetFileAttributes(p) - if e != nil { - return e - } - if mode&S_IWRITE != 0 { - attrs &^= FILE_ATTRIBUTE_READONLY - } else { - attrs |= FILE_ATTRIBUTE_READONLY - } - return SetFileAttributes(p, attrs) -} - -func LoadGetSystemTimePreciseAsFileTime() error { - return procGetSystemTimePreciseAsFileTime.Find() -} - -func LoadCancelIoEx() error { - return procCancelIoEx.Find() -} - -func LoadSetFileCompletionNotificationModes() error { - return procSetFileCompletionNotificationModes.Find() -} - -// net api calls - -const socket_error = uintptr(^uint32(0)) - -//sys WSAStartup(verreq uint32, data *WSAData) (sockerr error) = ws2_32.WSAStartup -//sys WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup -//sys WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl -//sys socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket -//sys Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) [failretval==socket_error] = ws2_32.setsockopt -//sys Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockopt -//sys bind(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.bind -//sys connect(s Handle, name unsafe.Pointer, namelen int32) (err error) [failretval==socket_error] = ws2_32.connect -//sys getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getsockname -//sys getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) [failretval==socket_error] = ws2_32.getpeername -//sys listen(s Handle, backlog int32) (err error) [failretval==socket_error] = ws2_32.listen -//sys shutdown(s Handle, how int32) (err error) [failretval==socket_error] = ws2_32.shutdown -//sys Closesocket(s Handle) (err error) [failretval==socket_error] = ws2_32.closesocket -//sys AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) = mswsock.AcceptEx -//sys GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) = mswsock.GetAcceptExSockaddrs -//sys WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecv -//sys WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASend -//sys WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSARecvFrom -//sys WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) [failretval==socket_error] = ws2_32.WSASendTo -//sys GetHostByName(name string) (h *Hostent, err error) [failretval==nil] = ws2_32.gethostbyname -//sys GetServByName(name string, proto string) (s *Servent, err error) [failretval==nil] = ws2_32.getservbyname -//sys Ntohs(netshort uint16) (u uint16) = ws2_32.ntohs -//sys GetProtoByName(name string) (p *Protoent, err error) [failretval==nil] = ws2_32.getprotobyname -//sys DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) = dnsapi.DnsQuery_W -//sys DnsRecordListFree(rl *DNSRecord, freetype uint32) = dnsapi.DnsRecordListFree -//sys DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) = dnsapi.DnsNameCompare_W -//sys GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) = ws2_32.GetAddrInfoW -//sys FreeAddrInfoW(addrinfo *AddrinfoW) = ws2_32.FreeAddrInfoW -//sys GetIfEntry(pIfRow *MibIfRow) (errcode error) = iphlpapi.GetIfEntry -//sys GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) = iphlpapi.GetAdaptersInfo -//sys SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) = kernel32.SetFileCompletionNotificationModes -//sys WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) [failretval==-1] = ws2_32.WSAEnumProtocolsW -//sys GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) = iphlpapi.GetAdaptersAddresses -//sys GetACP() (acp uint32) = kernel32.GetACP -//sys MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) = kernel32.MultiByteToWideChar - -// For testing: clients can set this flag to force -// creation of IPv6 sockets to return EAFNOSUPPORT. -var SocketDisableIPv6 bool - -type RawSockaddrInet4 struct { - Family uint16 - Port uint16 - Addr [4]byte /* in_addr */ - Zero [8]uint8 -} - -type RawSockaddrInet6 struct { - Family uint16 - Port uint16 - Flowinfo uint32 - Addr [16]byte /* in6_addr */ - Scope_id uint32 -} - -type RawSockaddr struct { - Family uint16 - Data [14]int8 -} - -type RawSockaddrAny struct { - Addr RawSockaddr - Pad [96]int8 -} - -type Sockaddr interface { - sockaddr() (ptr unsafe.Pointer, len int32, err error) // lowercase; only we can define Sockaddrs -} - -type SockaddrInet4 struct { - Port int - Addr [4]byte - raw RawSockaddrInet4 -} - -func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, int32, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, syscall.EINVAL - } - sa.raw.Family = AF_INET - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil -} - -type SockaddrInet6 struct { - Port int - ZoneId uint32 - Addr [16]byte - raw RawSockaddrInet6 -} - -func (sa *SockaddrInet6) sockaddr() (unsafe.Pointer, int32, error) { - if sa.Port < 0 || sa.Port > 0xFFFF { - return nil, 0, syscall.EINVAL - } - sa.raw.Family = AF_INET6 - p := (*[2]byte)(unsafe.Pointer(&sa.raw.Port)) - p[0] = byte(sa.Port >> 8) - p[1] = byte(sa.Port) - sa.raw.Scope_id = sa.ZoneId - for i := 0; i < len(sa.Addr); i++ { - sa.raw.Addr[i] = sa.Addr[i] - } - return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil -} - -type SockaddrUnix struct { - Name string -} - -func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) { - // TODO(brainman): implement SockaddrUnix.sockaddr() - return nil, 0, syscall.EWINDOWS -} - -func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) { - switch rsa.Addr.Family { - case AF_UNIX: - return nil, syscall.EWINDOWS - - case AF_INET: - pp := (*RawSockaddrInet4)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet4) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - - case AF_INET6: - pp := (*RawSockaddrInet6)(unsafe.Pointer(rsa)) - sa := new(SockaddrInet6) - p := (*[2]byte)(unsafe.Pointer(&pp.Port)) - sa.Port = int(p[0])<<8 + int(p[1]) - sa.ZoneId = pp.Scope_id - for i := 0; i < len(sa.Addr); i++ { - sa.Addr[i] = pp.Addr[i] - } - return sa, nil - } - return nil, syscall.EAFNOSUPPORT -} - -func Socket(domain, typ, proto int) (fd Handle, err error) { - if domain == AF_INET6 && SocketDisableIPv6 { - return InvalidHandle, syscall.EAFNOSUPPORT - } - return socket(int32(domain), int32(typ), int32(proto)) -} - -func SetsockoptInt(fd Handle, level, opt int, value int) (err error) { - v := int32(value) - return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&v)), int32(unsafe.Sizeof(v))) -} - -func Bind(fd Handle, sa Sockaddr) (err error) { - ptr, n, err := sa.sockaddr() - if err != nil { - return err - } - return bind(fd, ptr, n) -} - -func Connect(fd Handle, sa Sockaddr) (err error) { - ptr, n, err := sa.sockaddr() - if err != nil { - return err - } - return connect(fd, ptr, n) -} - -func Getsockname(fd Handle) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - l := int32(unsafe.Sizeof(rsa)) - if err = getsockname(fd, &rsa, &l); err != nil { - return - } - return rsa.Sockaddr() -} - -func Getpeername(fd Handle) (sa Sockaddr, err error) { - var rsa RawSockaddrAny - l := int32(unsafe.Sizeof(rsa)) - if err = getpeername(fd, &rsa, &l); err != nil { - return - } - return rsa.Sockaddr() -} - -func Listen(s Handle, n int) (err error) { - return listen(s, int32(n)) -} - -func Shutdown(fd Handle, how int) (err error) { - return shutdown(fd, int32(how)) -} - -func WSASendto(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to Sockaddr, overlapped *Overlapped, croutine *byte) (err error) { - rsa, l, err := to.sockaddr() - if err != nil { - return err - } - return WSASendTo(s, bufs, bufcnt, sent, flags, (*RawSockaddrAny)(unsafe.Pointer(rsa)), l, overlapped, croutine) -} - -func LoadGetAddrInfo() error { - return procGetAddrInfoW.Find() -} - -var connectExFunc struct { - once sync.Once - addr uintptr - err error -} - -func LoadConnectEx() error { - connectExFunc.once.Do(func() { - var s Handle - s, connectExFunc.err = Socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) - if connectExFunc.err != nil { - return - } - defer CloseHandle(s) - var n uint32 - connectExFunc.err = WSAIoctl(s, - SIO_GET_EXTENSION_FUNCTION_POINTER, - (*byte)(unsafe.Pointer(&WSAID_CONNECTEX)), - uint32(unsafe.Sizeof(WSAID_CONNECTEX)), - (*byte)(unsafe.Pointer(&connectExFunc.addr)), - uint32(unsafe.Sizeof(connectExFunc.addr)), - &n, nil, 0) - }) - return connectExFunc.err -} - -func connectEx(s Handle, name unsafe.Pointer, namelen int32, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) (err error) { - r1, _, e1 := syscall.Syscall9(connectExFunc.addr, 7, uintptr(s), uintptr(name), uintptr(namelen), uintptr(unsafe.Pointer(sendBuf)), uintptr(sendDataLen), uintptr(unsafe.Pointer(bytesSent)), uintptr(unsafe.Pointer(overlapped)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = error(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ConnectEx(fd Handle, sa Sockaddr, sendBuf *byte, sendDataLen uint32, bytesSent *uint32, overlapped *Overlapped) error { - err := LoadConnectEx() - if err != nil { - return errorspkg.New("failed to find ConnectEx: " + err.Error()) - } - ptr, n, err := sa.sockaddr() - if err != nil { - return err - } - return connectEx(fd, ptr, n, sendBuf, sendDataLen, bytesSent, overlapped) -} - -var sendRecvMsgFunc struct { - once sync.Once - sendAddr uintptr - recvAddr uintptr - err error -} - -func loadWSASendRecvMsg() error { - sendRecvMsgFunc.once.Do(func() { - var s Handle - s, sendRecvMsgFunc.err = Socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP) - if sendRecvMsgFunc.err != nil { - return - } - defer CloseHandle(s) - var n uint32 - sendRecvMsgFunc.err = WSAIoctl(s, - SIO_GET_EXTENSION_FUNCTION_POINTER, - (*byte)(unsafe.Pointer(&WSAID_WSARECVMSG)), - uint32(unsafe.Sizeof(WSAID_WSARECVMSG)), - (*byte)(unsafe.Pointer(&sendRecvMsgFunc.recvAddr)), - uint32(unsafe.Sizeof(sendRecvMsgFunc.recvAddr)), - &n, nil, 0) - if sendRecvMsgFunc.err != nil { - return - } - sendRecvMsgFunc.err = WSAIoctl(s, - SIO_GET_EXTENSION_FUNCTION_POINTER, - (*byte)(unsafe.Pointer(&WSAID_WSASENDMSG)), - uint32(unsafe.Sizeof(WSAID_WSASENDMSG)), - (*byte)(unsafe.Pointer(&sendRecvMsgFunc.sendAddr)), - uint32(unsafe.Sizeof(sendRecvMsgFunc.sendAddr)), - &n, nil, 0) - }) - return sendRecvMsgFunc.err -} - -func WSASendMsg(fd Handle, msg *WSAMsg, flags uint32, bytesSent *uint32, overlapped *Overlapped, croutine *byte) error { - err := loadWSASendRecvMsg() - if err != nil { - return err - } - r1, _, e1 := syscall.Syscall6(sendRecvMsgFunc.sendAddr, 6, uintptr(fd), uintptr(unsafe.Pointer(msg)), uintptr(flags), uintptr(unsafe.Pointer(bytesSent)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine))) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return err -} - -func WSARecvMsg(fd Handle, msg *WSAMsg, bytesReceived *uint32, overlapped *Overlapped, croutine *byte) error { - err := loadWSASendRecvMsg() - if err != nil { - return err - } - r1, _, e1 := syscall.Syscall6(sendRecvMsgFunc.recvAddr, 5, uintptr(fd), uintptr(unsafe.Pointer(msg)), uintptr(unsafe.Pointer(bytesReceived)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return err -} - -// Invented structures to support what package os expects. -type Rusage struct { - CreationTime Filetime - ExitTime Filetime - KernelTime Filetime - UserTime Filetime -} - -type WaitStatus struct { - ExitCode uint32 -} - -func (w WaitStatus) Exited() bool { return true } - -func (w WaitStatus) ExitStatus() int { return int(w.ExitCode) } - -func (w WaitStatus) Signal() Signal { return -1 } - -func (w WaitStatus) CoreDump() bool { return false } - -func (w WaitStatus) Stopped() bool { return false } - -func (w WaitStatus) Continued() bool { return false } - -func (w WaitStatus) StopSignal() Signal { return -1 } - -func (w WaitStatus) Signaled() bool { return false } - -func (w WaitStatus) TrapCause() int { return -1 } - -// Timespec is an invented structure on Windows, but here for -// consistency with the corresponding package for other operating systems. -type Timespec struct { - Sec int64 - Nsec int64 -} - -func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) } - -func NsecToTimespec(nsec int64) (ts Timespec) { - ts.Sec = nsec / 1e9 - ts.Nsec = nsec % 1e9 - return -} - -// TODO(brainman): fix all needed for net - -func Accept(fd Handle) (nfd Handle, sa Sockaddr, err error) { return 0, nil, syscall.EWINDOWS } -func Recvfrom(fd Handle, p []byte, flags int) (n int, from Sockaddr, err error) { - return 0, nil, syscall.EWINDOWS -} -func Sendto(fd Handle, p []byte, flags int, to Sockaddr) (err error) { return syscall.EWINDOWS } -func SetsockoptTimeval(fd Handle, level, opt int, tv *Timeval) (err error) { return syscall.EWINDOWS } - -// The Linger struct is wrong but we only noticed after Go 1. -// sysLinger is the real system call structure. - -// BUG(brainman): The definition of Linger is not appropriate for direct use -// with Setsockopt and Getsockopt. -// Use SetsockoptLinger instead. - -type Linger struct { - Onoff int32 - Linger int32 -} - -type sysLinger struct { - Onoff uint16 - Linger uint16 -} - -type IPMreq struct { - Multiaddr [4]byte /* in_addr */ - Interface [4]byte /* in_addr */ -} - -type IPv6Mreq struct { - Multiaddr [16]byte /* in6_addr */ - Interface uint32 -} - -func GetsockoptInt(fd Handle, level, opt int) (int, error) { return -1, syscall.EWINDOWS } - -func SetsockoptLinger(fd Handle, level, opt int, l *Linger) (err error) { - sys := sysLinger{Onoff: uint16(l.Onoff), Linger: uint16(l.Linger)} - return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&sys)), int32(unsafe.Sizeof(sys))) -} - -func SetsockoptInet4Addr(fd Handle, level, opt int, value [4]byte) (err error) { - return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(&value[0])), 4) -} -func SetsockoptIPMreq(fd Handle, level, opt int, mreq *IPMreq) (err error) { - return Setsockopt(fd, int32(level), int32(opt), (*byte)(unsafe.Pointer(mreq)), int32(unsafe.Sizeof(*mreq))) -} -func SetsockoptIPv6Mreq(fd Handle, level, opt int, mreq *IPv6Mreq) (err error) { - return syscall.EWINDOWS -} - -func Getpid() (pid int) { return int(getCurrentProcessId()) } - -func FindFirstFile(name *uint16, data *Win32finddata) (handle Handle, err error) { - // NOTE(rsc): The Win32finddata struct is wrong for the system call: - // the two paths are each one uint16 short. Use the correct struct, - // a win32finddata1, and then copy the results out. - // There is no loss of expressivity here, because the final - // uint16, if it is used, is supposed to be a NUL, and Go doesn't need that. - // For Go 1.1, we might avoid the allocation of win32finddata1 here - // by adding a final Bug [2]uint16 field to the struct and then - // adjusting the fields in the result directly. - var data1 win32finddata1 - handle, err = findFirstFile1(name, &data1) - if err == nil { - copyFindData(data, &data1) - } - return -} - -func FindNextFile(handle Handle, data *Win32finddata) (err error) { - var data1 win32finddata1 - err = findNextFile1(handle, &data1) - if err == nil { - copyFindData(data, &data1) - } - return -} - -func getProcessEntry(pid int) (*ProcessEntry32, error) { - snapshot, err := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) - if err != nil { - return nil, err - } - defer CloseHandle(snapshot) - var procEntry ProcessEntry32 - procEntry.Size = uint32(unsafe.Sizeof(procEntry)) - if err = Process32First(snapshot, &procEntry); err != nil { - return nil, err - } - for { - if procEntry.ProcessID == uint32(pid) { - return &procEntry, nil - } - err = Process32Next(snapshot, &procEntry) - if err != nil { - return nil, err - } - } -} - -func Getppid() (ppid int) { - pe, err := getProcessEntry(Getpid()) - if err != nil { - return -1 - } - return int(pe.ParentProcessID) -} - -// TODO(brainman): fix all needed for os -func Fchdir(fd Handle) (err error) { return syscall.EWINDOWS } -func Link(oldpath, newpath string) (err error) { return syscall.EWINDOWS } -func Symlink(path, link string) (err error) { return syscall.EWINDOWS } - -func Fchmod(fd Handle, mode uint32) (err error) { return syscall.EWINDOWS } -func Chown(path string, uid int, gid int) (err error) { return syscall.EWINDOWS } -func Lchown(path string, uid int, gid int) (err error) { return syscall.EWINDOWS } -func Fchown(fd Handle, uid int, gid int) (err error) { return syscall.EWINDOWS } - -func Getuid() (uid int) { return -1 } -func Geteuid() (euid int) { return -1 } -func Getgid() (gid int) { return -1 } -func Getegid() (egid int) { return -1 } -func Getgroups() (gids []int, err error) { return nil, syscall.EWINDOWS } - -type Signal int - -func (s Signal) Signal() {} - -func (s Signal) String() string { - if 0 <= s && int(s) < len(signals) { - str := signals[s] - if str != "" { - return str - } - } - return "signal " + itoa(int(s)) -} - -func LoadCreateSymbolicLink() error { - return procCreateSymbolicLinkW.Find() -} - -// Readlink returns the destination of the named symbolic link. -func Readlink(path string, buf []byte) (n int, err error) { - fd, err := CreateFile(StringToUTF16Ptr(path), GENERIC_READ, 0, nil, OPEN_EXISTING, - FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, 0) - if err != nil { - return -1, err - } - defer CloseHandle(fd) - - rdbbuf := make([]byte, MAXIMUM_REPARSE_DATA_BUFFER_SIZE) - var bytesReturned uint32 - err = DeviceIoControl(fd, FSCTL_GET_REPARSE_POINT, nil, 0, &rdbbuf[0], uint32(len(rdbbuf)), &bytesReturned, nil) - if err != nil { - return -1, err - } - - rdb := (*reparseDataBuffer)(unsafe.Pointer(&rdbbuf[0])) - var s string - switch rdb.ReparseTag { - case IO_REPARSE_TAG_SYMLINK: - data := (*symbolicLinkReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer)) - p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0])) - s = UTF16ToString(p[data.PrintNameOffset/2 : (data.PrintNameLength-data.PrintNameOffset)/2]) - case IO_REPARSE_TAG_MOUNT_POINT: - data := (*mountPointReparseBuffer)(unsafe.Pointer(&rdb.reparseBuffer)) - p := (*[0xffff]uint16)(unsafe.Pointer(&data.PathBuffer[0])) - s = UTF16ToString(p[data.PrintNameOffset/2 : (data.PrintNameLength-data.PrintNameOffset)/2]) - default: - // the path is not a symlink or junction but another type of reparse - // point - return -1, syscall.ENOENT - } - n = copy(buf, []byte(s)) - - return n, nil -} diff --git a/vendor/golang.org/x/sys/windows/types_windows.go b/vendor/golang.org/x/sys/windows/types_windows.go deleted file mode 100644 index 52c2037..0000000 --- a/vendor/golang.org/x/sys/windows/types_windows.go +++ /dev/null @@ -1,1333 +0,0 @@ -// Copyright 2011 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 windows - -import "syscall" - -const ( - // Windows errors. - ERROR_FILE_NOT_FOUND syscall.Errno = 2 - ERROR_PATH_NOT_FOUND syscall.Errno = 3 - ERROR_ACCESS_DENIED syscall.Errno = 5 - ERROR_NO_MORE_FILES syscall.Errno = 18 - ERROR_HANDLE_EOF syscall.Errno = 38 - ERROR_NETNAME_DELETED syscall.Errno = 64 - ERROR_FILE_EXISTS syscall.Errno = 80 - ERROR_BROKEN_PIPE syscall.Errno = 109 - ERROR_BUFFER_OVERFLOW syscall.Errno = 111 - ERROR_INSUFFICIENT_BUFFER syscall.Errno = 122 - ERROR_MOD_NOT_FOUND syscall.Errno = 126 - ERROR_PROC_NOT_FOUND syscall.Errno = 127 - ERROR_ALREADY_EXISTS syscall.Errno = 183 - ERROR_ENVVAR_NOT_FOUND syscall.Errno = 203 - ERROR_MORE_DATA syscall.Errno = 234 - ERROR_OPERATION_ABORTED syscall.Errno = 995 - ERROR_IO_PENDING syscall.Errno = 997 - ERROR_SERVICE_SPECIFIC_ERROR syscall.Errno = 1066 - ERROR_NOT_FOUND syscall.Errno = 1168 - ERROR_PRIVILEGE_NOT_HELD syscall.Errno = 1314 - WSAEACCES syscall.Errno = 10013 - WSAEMSGSIZE syscall.Errno = 10040 - WSAECONNRESET syscall.Errno = 10054 -) - -const ( - // Invented values to support what package os expects. - O_RDONLY = 0x00000 - O_WRONLY = 0x00001 - O_RDWR = 0x00002 - O_CREAT = 0x00040 - O_EXCL = 0x00080 - O_NOCTTY = 0x00100 - O_TRUNC = 0x00200 - O_NONBLOCK = 0x00800 - O_APPEND = 0x00400 - O_SYNC = 0x01000 - O_ASYNC = 0x02000 - O_CLOEXEC = 0x80000 -) - -const ( - // More invented values for signals - SIGHUP = Signal(0x1) - SIGINT = Signal(0x2) - SIGQUIT = Signal(0x3) - SIGILL = Signal(0x4) - SIGTRAP = Signal(0x5) - SIGABRT = Signal(0x6) - SIGBUS = Signal(0x7) - SIGFPE = Signal(0x8) - SIGKILL = Signal(0x9) - SIGSEGV = Signal(0xb) - SIGPIPE = Signal(0xd) - SIGALRM = Signal(0xe) - SIGTERM = Signal(0xf) -) - -var signals = [...]string{ - 1: "hangup", - 2: "interrupt", - 3: "quit", - 4: "illegal instruction", - 5: "trace/breakpoint trap", - 6: "aborted", - 7: "bus error", - 8: "floating point exception", - 9: "killed", - 10: "user defined signal 1", - 11: "segmentation fault", - 12: "user defined signal 2", - 13: "broken pipe", - 14: "alarm clock", - 15: "terminated", -} - -const ( - GENERIC_READ = 0x80000000 - GENERIC_WRITE = 0x40000000 - GENERIC_EXECUTE = 0x20000000 - GENERIC_ALL = 0x10000000 - - FILE_LIST_DIRECTORY = 0x00000001 - FILE_APPEND_DATA = 0x00000004 - FILE_WRITE_ATTRIBUTES = 0x00000100 - - FILE_SHARE_READ = 0x00000001 - FILE_SHARE_WRITE = 0x00000002 - FILE_SHARE_DELETE = 0x00000004 - FILE_ATTRIBUTE_READONLY = 0x00000001 - FILE_ATTRIBUTE_HIDDEN = 0x00000002 - FILE_ATTRIBUTE_SYSTEM = 0x00000004 - FILE_ATTRIBUTE_DIRECTORY = 0x00000010 - FILE_ATTRIBUTE_ARCHIVE = 0x00000020 - FILE_ATTRIBUTE_NORMAL = 0x00000080 - FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400 - - INVALID_FILE_ATTRIBUTES = 0xffffffff - - CREATE_NEW = 1 - CREATE_ALWAYS = 2 - OPEN_EXISTING = 3 - OPEN_ALWAYS = 4 - TRUNCATE_EXISTING = 5 - - FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000 - FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - FILE_FLAG_OVERLAPPED = 0x40000000 - - HANDLE_FLAG_INHERIT = 0x00000001 - STARTF_USESTDHANDLES = 0x00000100 - STARTF_USESHOWWINDOW = 0x00000001 - DUPLICATE_CLOSE_SOURCE = 0x00000001 - DUPLICATE_SAME_ACCESS = 0x00000002 - - STD_INPUT_HANDLE = -10 & (1<<32 - 1) - STD_OUTPUT_HANDLE = -11 & (1<<32 - 1) - STD_ERROR_HANDLE = -12 & (1<<32 - 1) - - FILE_BEGIN = 0 - FILE_CURRENT = 1 - FILE_END = 2 - - LANG_ENGLISH = 0x09 - SUBLANG_ENGLISH_US = 0x01 - - FORMAT_MESSAGE_ALLOCATE_BUFFER = 256 - FORMAT_MESSAGE_IGNORE_INSERTS = 512 - FORMAT_MESSAGE_FROM_STRING = 1024 - FORMAT_MESSAGE_FROM_HMODULE = 2048 - FORMAT_MESSAGE_FROM_SYSTEM = 4096 - FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192 - FORMAT_MESSAGE_MAX_WIDTH_MASK = 255 - - MAX_PATH = 260 - MAX_LONG_PATH = 32768 - - MAX_COMPUTERNAME_LENGTH = 15 - - TIME_ZONE_ID_UNKNOWN = 0 - TIME_ZONE_ID_STANDARD = 1 - - TIME_ZONE_ID_DAYLIGHT = 2 - IGNORE = 0 - INFINITE = 0xffffffff - - WAIT_TIMEOUT = 258 - WAIT_ABANDONED = 0x00000080 - WAIT_OBJECT_0 = 0x00000000 - WAIT_FAILED = 0xFFFFFFFF - - PROCESS_TERMINATE = 1 - PROCESS_QUERY_INFORMATION = 0x00000400 - SYNCHRONIZE = 0x00100000 - - FILE_MAP_COPY = 0x01 - FILE_MAP_WRITE = 0x02 - FILE_MAP_READ = 0x04 - FILE_MAP_EXECUTE = 0x20 - - CTRL_C_EVENT = 0 - CTRL_BREAK_EVENT = 1 - - // Windows reserves errors >= 1<<29 for application use. - APPLICATION_ERROR = 1 << 29 -) - -const ( - // Process creation flags. - CREATE_BREAKAWAY_FROM_JOB = 0x01000000 - CREATE_DEFAULT_ERROR_MODE = 0x04000000 - CREATE_NEW_CONSOLE = 0x00000010 - CREATE_NEW_PROCESS_GROUP = 0x00000200 - CREATE_NO_WINDOW = 0x08000000 - CREATE_PROTECTED_PROCESS = 0x00040000 - CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000 - CREATE_SEPARATE_WOW_VDM = 0x00000800 - CREATE_SHARED_WOW_VDM = 0x00001000 - CREATE_SUSPENDED = 0x00000004 - CREATE_UNICODE_ENVIRONMENT = 0x00000400 - DEBUG_ONLY_THIS_PROCESS = 0x00000002 - DEBUG_PROCESS = 0x00000001 - DETACHED_PROCESS = 0x00000008 - EXTENDED_STARTUPINFO_PRESENT = 0x00080000 - INHERIT_PARENT_AFFINITY = 0x00010000 -) - -const ( - // flags for CreateToolhelp32Snapshot - TH32CS_SNAPHEAPLIST = 0x01 - TH32CS_SNAPPROCESS = 0x02 - TH32CS_SNAPTHREAD = 0x04 - TH32CS_SNAPMODULE = 0x08 - TH32CS_SNAPMODULE32 = 0x10 - TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD - TH32CS_INHERIT = 0x80000000 -) - -const ( - // filters for ReadDirectoryChangesW - FILE_NOTIFY_CHANGE_FILE_NAME = 0x001 - FILE_NOTIFY_CHANGE_DIR_NAME = 0x002 - FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x004 - FILE_NOTIFY_CHANGE_SIZE = 0x008 - FILE_NOTIFY_CHANGE_LAST_WRITE = 0x010 - FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020 - FILE_NOTIFY_CHANGE_CREATION = 0x040 - FILE_NOTIFY_CHANGE_SECURITY = 0x100 -) - -const ( - // do not reorder - FILE_ACTION_ADDED = iota + 1 - FILE_ACTION_REMOVED - FILE_ACTION_MODIFIED - FILE_ACTION_RENAMED_OLD_NAME - FILE_ACTION_RENAMED_NEW_NAME -) - -const ( - // wincrypt.h - PROV_RSA_FULL = 1 - PROV_RSA_SIG = 2 - PROV_DSS = 3 - PROV_FORTEZZA = 4 - PROV_MS_EXCHANGE = 5 - PROV_SSL = 6 - PROV_RSA_SCHANNEL = 12 - PROV_DSS_DH = 13 - PROV_EC_ECDSA_SIG = 14 - PROV_EC_ECNRA_SIG = 15 - PROV_EC_ECDSA_FULL = 16 - PROV_EC_ECNRA_FULL = 17 - PROV_DH_SCHANNEL = 18 - PROV_SPYRUS_LYNKS = 20 - PROV_RNG = 21 - PROV_INTEL_SEC = 22 - PROV_REPLACE_OWF = 23 - PROV_RSA_AES = 24 - CRYPT_VERIFYCONTEXT = 0xF0000000 - CRYPT_NEWKEYSET = 0x00000008 - CRYPT_DELETEKEYSET = 0x00000010 - CRYPT_MACHINE_KEYSET = 0x00000020 - CRYPT_SILENT = 0x00000040 - CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080 - - USAGE_MATCH_TYPE_AND = 0 - USAGE_MATCH_TYPE_OR = 1 - - X509_ASN_ENCODING = 0x00000001 - PKCS_7_ASN_ENCODING = 0x00010000 - - CERT_STORE_PROV_MEMORY = 2 - - CERT_STORE_ADD_ALWAYS = 4 - - CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004 - - CERT_TRUST_NO_ERROR = 0x00000000 - CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001 - CERT_TRUST_IS_REVOKED = 0x00000004 - CERT_TRUST_IS_NOT_SIGNATURE_VALID = 0x00000008 - CERT_TRUST_IS_NOT_VALID_FOR_USAGE = 0x00000010 - CERT_TRUST_IS_UNTRUSTED_ROOT = 0x00000020 - CERT_TRUST_REVOCATION_STATUS_UNKNOWN = 0x00000040 - CERT_TRUST_IS_CYCLIC = 0x00000080 - CERT_TRUST_INVALID_EXTENSION = 0x00000100 - CERT_TRUST_INVALID_POLICY_CONSTRAINTS = 0x00000200 - CERT_TRUST_INVALID_BASIC_CONSTRAINTS = 0x00000400 - CERT_TRUST_INVALID_NAME_CONSTRAINTS = 0x00000800 - CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT = 0x00001000 - CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000 - CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000 - CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000 - CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000 - CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000 - CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000 - CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000 - - CERT_CHAIN_POLICY_BASE = 1 - CERT_CHAIN_POLICY_AUTHENTICODE = 2 - CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3 - CERT_CHAIN_POLICY_SSL = 4 - CERT_CHAIN_POLICY_BASIC_CONSTRAINTS = 5 - CERT_CHAIN_POLICY_NT_AUTH = 6 - CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7 - CERT_CHAIN_POLICY_EV = 8 - - CERT_E_EXPIRED = 0x800B0101 - CERT_E_ROLE = 0x800B0103 - CERT_E_PURPOSE = 0x800B0106 - CERT_E_UNTRUSTEDROOT = 0x800B0109 - CERT_E_CN_NO_MATCH = 0x800B010F - - AUTHTYPE_CLIENT = 1 - AUTHTYPE_SERVER = 2 -) - -var ( - OID_PKIX_KP_SERVER_AUTH = []byte("1.3.6.1.5.5.7.3.1\x00") - OID_SERVER_GATED_CRYPTO = []byte("1.3.6.1.4.1.311.10.3.3\x00") - OID_SGC_NETSCAPE = []byte("2.16.840.1.113730.4.1\x00") -) - -// Invented values to support what package os expects. -type Timeval struct { - Sec int32 - Usec int32 -} - -func (tv *Timeval) Nanoseconds() int64 { - return (int64(tv.Sec)*1e6 + int64(tv.Usec)) * 1e3 -} - -func NsecToTimeval(nsec int64) (tv Timeval) { - tv.Sec = int32(nsec / 1e9) - tv.Usec = int32(nsec % 1e9 / 1e3) - return -} - -type SecurityAttributes struct { - Length uint32 - SecurityDescriptor uintptr - InheritHandle uint32 -} - -type Overlapped struct { - Internal uintptr - InternalHigh uintptr - Offset uint32 - OffsetHigh uint32 - HEvent Handle -} - -type FileNotifyInformation struct { - NextEntryOffset uint32 - Action uint32 - FileNameLength uint32 - FileName uint16 -} - -type Filetime struct { - LowDateTime uint32 - HighDateTime uint32 -} - -// Nanoseconds returns Filetime ft in nanoseconds -// since Epoch (00:00:00 UTC, January 1, 1970). -func (ft *Filetime) Nanoseconds() int64 { - // 100-nanosecond intervals since January 1, 1601 - nsec := int64(ft.HighDateTime)<<32 + int64(ft.LowDateTime) - // change starting time to the Epoch (00:00:00 UTC, January 1, 1970) - nsec -= 116444736000000000 - // convert into nanoseconds - nsec *= 100 - return nsec -} - -func NsecToFiletime(nsec int64) (ft Filetime) { - // convert into 100-nanosecond - nsec /= 100 - // change starting time to January 1, 1601 - nsec += 116444736000000000 - // split into high / low - ft.LowDateTime = uint32(nsec & 0xffffffff) - ft.HighDateTime = uint32(nsec >> 32 & 0xffffffff) - return ft -} - -type Win32finddata struct { - FileAttributes uint32 - CreationTime Filetime - LastAccessTime Filetime - LastWriteTime Filetime - FileSizeHigh uint32 - FileSizeLow uint32 - Reserved0 uint32 - Reserved1 uint32 - FileName [MAX_PATH - 1]uint16 - AlternateFileName [13]uint16 -} - -// This is the actual system call structure. -// Win32finddata is what we committed to in Go 1. -type win32finddata1 struct { - FileAttributes uint32 - CreationTime Filetime - LastAccessTime Filetime - LastWriteTime Filetime - FileSizeHigh uint32 - FileSizeLow uint32 - Reserved0 uint32 - Reserved1 uint32 - FileName [MAX_PATH]uint16 - AlternateFileName [14]uint16 -} - -func copyFindData(dst *Win32finddata, src *win32finddata1) { - dst.FileAttributes = src.FileAttributes - dst.CreationTime = src.CreationTime - dst.LastAccessTime = src.LastAccessTime - dst.LastWriteTime = src.LastWriteTime - dst.FileSizeHigh = src.FileSizeHigh - dst.FileSizeLow = src.FileSizeLow - dst.Reserved0 = src.Reserved0 - dst.Reserved1 = src.Reserved1 - - // The src is 1 element bigger than dst, but it must be NUL. - copy(dst.FileName[:], src.FileName[:]) - copy(dst.AlternateFileName[:], src.AlternateFileName[:]) -} - -type ByHandleFileInformation struct { - FileAttributes uint32 - CreationTime Filetime - LastAccessTime Filetime - LastWriteTime Filetime - VolumeSerialNumber uint32 - FileSizeHigh uint32 - FileSizeLow uint32 - NumberOfLinks uint32 - FileIndexHigh uint32 - FileIndexLow uint32 -} - -const ( - GetFileExInfoStandard = 0 - GetFileExMaxInfoLevel = 1 -) - -type Win32FileAttributeData struct { - FileAttributes uint32 - CreationTime Filetime - LastAccessTime Filetime - LastWriteTime Filetime - FileSizeHigh uint32 - FileSizeLow uint32 -} - -// ShowWindow constants -const ( - // winuser.h - SW_HIDE = 0 - SW_NORMAL = 1 - SW_SHOWNORMAL = 1 - SW_SHOWMINIMIZED = 2 - SW_SHOWMAXIMIZED = 3 - SW_MAXIMIZE = 3 - SW_SHOWNOACTIVATE = 4 - SW_SHOW = 5 - SW_MINIMIZE = 6 - SW_SHOWMINNOACTIVE = 7 - SW_SHOWNA = 8 - SW_RESTORE = 9 - SW_SHOWDEFAULT = 10 - SW_FORCEMINIMIZE = 11 -) - -type StartupInfo struct { - Cb uint32 - _ *uint16 - Desktop *uint16 - Title *uint16 - X uint32 - Y uint32 - XSize uint32 - YSize uint32 - XCountChars uint32 - YCountChars uint32 - FillAttribute uint32 - Flags uint32 - ShowWindow uint16 - _ uint16 - _ *byte - StdInput Handle - StdOutput Handle - StdErr Handle -} - -type ProcessInformation struct { - Process Handle - Thread Handle - ProcessId uint32 - ThreadId uint32 -} - -type ProcessEntry32 struct { - Size uint32 - Usage uint32 - ProcessID uint32 - DefaultHeapID uintptr - ModuleID uint32 - Threads uint32 - ParentProcessID uint32 - PriClassBase int32 - Flags uint32 - ExeFile [MAX_PATH]uint16 -} - -type Systemtime struct { - Year uint16 - Month uint16 - DayOfWeek uint16 - Day uint16 - Hour uint16 - Minute uint16 - Second uint16 - Milliseconds uint16 -} - -type Timezoneinformation struct { - Bias int32 - StandardName [32]uint16 - StandardDate Systemtime - StandardBias int32 - DaylightName [32]uint16 - DaylightDate Systemtime - DaylightBias int32 -} - -// Socket related. - -const ( - AF_UNSPEC = 0 - AF_UNIX = 1 - AF_INET = 2 - AF_INET6 = 23 - AF_NETBIOS = 17 - - SOCK_STREAM = 1 - SOCK_DGRAM = 2 - SOCK_RAW = 3 - SOCK_SEQPACKET = 5 - - IPPROTO_IP = 0 - IPPROTO_IPV6 = 0x29 - IPPROTO_TCP = 6 - IPPROTO_UDP = 17 - - SOL_SOCKET = 0xffff - SO_REUSEADDR = 4 - SO_KEEPALIVE = 8 - SO_DONTROUTE = 16 - SO_BROADCAST = 32 - SO_LINGER = 128 - SO_RCVBUF = 0x1002 - SO_SNDBUF = 0x1001 - SO_UPDATE_ACCEPT_CONTEXT = 0x700b - SO_UPDATE_CONNECT_CONTEXT = 0x7010 - - IOC_OUT = 0x40000000 - IOC_IN = 0x80000000 - IOC_VENDOR = 0x18000000 - IOC_INOUT = IOC_IN | IOC_OUT - IOC_WS2 = 0x08000000 - SIO_GET_EXTENSION_FUNCTION_POINTER = IOC_INOUT | IOC_WS2 | 6 - SIO_KEEPALIVE_VALS = IOC_IN | IOC_VENDOR | 4 - SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12 - - // cf. http://support.microsoft.com/default.aspx?scid=kb;en-us;257460 - - IP_TOS = 0x3 - IP_TTL = 0x4 - IP_MULTICAST_IF = 0x9 - IP_MULTICAST_TTL = 0xa - IP_MULTICAST_LOOP = 0xb - IP_ADD_MEMBERSHIP = 0xc - IP_DROP_MEMBERSHIP = 0xd - - IPV6_V6ONLY = 0x1b - IPV6_UNICAST_HOPS = 0x4 - IPV6_MULTICAST_IF = 0x9 - IPV6_MULTICAST_HOPS = 0xa - IPV6_MULTICAST_LOOP = 0xb - IPV6_JOIN_GROUP = 0xc - IPV6_LEAVE_GROUP = 0xd - - MSG_OOB = 0x1 - MSG_PEEK = 0x2 - MSG_DONTROUTE = 0x4 - MSG_WAITALL = 0x8 - - MSG_TRUNC = 0x0100 - MSG_CTRUNC = 0x0200 - MSG_BCAST = 0x0400 - MSG_MCAST = 0x0800 - - SOMAXCONN = 0x7fffffff - - TCP_NODELAY = 1 - - SHUT_RD = 0 - SHUT_WR = 1 - SHUT_RDWR = 2 - - WSADESCRIPTION_LEN = 256 - WSASYS_STATUS_LEN = 128 -) - -type WSABuf struct { - Len uint32 - Buf *byte -} - -type WSAMsg struct { - Name *syscall.RawSockaddrAny - Namelen int32 - Buffers *WSABuf - BufferCount uint32 - Control WSABuf - Flags uint32 -} - -// Invented values to support what package os expects. -const ( - S_IFMT = 0x1f000 - S_IFIFO = 0x1000 - S_IFCHR = 0x2000 - S_IFDIR = 0x4000 - S_IFBLK = 0x6000 - S_IFREG = 0x8000 - S_IFLNK = 0xa000 - S_IFSOCK = 0xc000 - S_ISUID = 0x800 - S_ISGID = 0x400 - S_ISVTX = 0x200 - S_IRUSR = 0x100 - S_IWRITE = 0x80 - S_IWUSR = 0x80 - S_IXUSR = 0x40 -) - -const ( - FILE_TYPE_CHAR = 0x0002 - FILE_TYPE_DISK = 0x0001 - FILE_TYPE_PIPE = 0x0003 - FILE_TYPE_REMOTE = 0x8000 - FILE_TYPE_UNKNOWN = 0x0000 -) - -type Hostent struct { - Name *byte - Aliases **byte - AddrType uint16 - Length uint16 - AddrList **byte -} - -type Protoent struct { - Name *byte - Aliases **byte - Proto uint16 -} - -const ( - DNS_TYPE_A = 0x0001 - DNS_TYPE_NS = 0x0002 - DNS_TYPE_MD = 0x0003 - DNS_TYPE_MF = 0x0004 - DNS_TYPE_CNAME = 0x0005 - DNS_TYPE_SOA = 0x0006 - DNS_TYPE_MB = 0x0007 - DNS_TYPE_MG = 0x0008 - DNS_TYPE_MR = 0x0009 - DNS_TYPE_NULL = 0x000a - DNS_TYPE_WKS = 0x000b - DNS_TYPE_PTR = 0x000c - DNS_TYPE_HINFO = 0x000d - DNS_TYPE_MINFO = 0x000e - DNS_TYPE_MX = 0x000f - DNS_TYPE_TEXT = 0x0010 - DNS_TYPE_RP = 0x0011 - DNS_TYPE_AFSDB = 0x0012 - DNS_TYPE_X25 = 0x0013 - DNS_TYPE_ISDN = 0x0014 - DNS_TYPE_RT = 0x0015 - DNS_TYPE_NSAP = 0x0016 - DNS_TYPE_NSAPPTR = 0x0017 - DNS_TYPE_SIG = 0x0018 - DNS_TYPE_KEY = 0x0019 - DNS_TYPE_PX = 0x001a - DNS_TYPE_GPOS = 0x001b - DNS_TYPE_AAAA = 0x001c - DNS_TYPE_LOC = 0x001d - DNS_TYPE_NXT = 0x001e - DNS_TYPE_EID = 0x001f - DNS_TYPE_NIMLOC = 0x0020 - DNS_TYPE_SRV = 0x0021 - DNS_TYPE_ATMA = 0x0022 - DNS_TYPE_NAPTR = 0x0023 - DNS_TYPE_KX = 0x0024 - DNS_TYPE_CERT = 0x0025 - DNS_TYPE_A6 = 0x0026 - DNS_TYPE_DNAME = 0x0027 - DNS_TYPE_SINK = 0x0028 - DNS_TYPE_OPT = 0x0029 - DNS_TYPE_DS = 0x002B - DNS_TYPE_RRSIG = 0x002E - DNS_TYPE_NSEC = 0x002F - DNS_TYPE_DNSKEY = 0x0030 - DNS_TYPE_DHCID = 0x0031 - DNS_TYPE_UINFO = 0x0064 - DNS_TYPE_UID = 0x0065 - DNS_TYPE_GID = 0x0066 - DNS_TYPE_UNSPEC = 0x0067 - DNS_TYPE_ADDRS = 0x00f8 - DNS_TYPE_TKEY = 0x00f9 - DNS_TYPE_TSIG = 0x00fa - DNS_TYPE_IXFR = 0x00fb - DNS_TYPE_AXFR = 0x00fc - DNS_TYPE_MAILB = 0x00fd - DNS_TYPE_MAILA = 0x00fe - DNS_TYPE_ALL = 0x00ff - DNS_TYPE_ANY = 0x00ff - DNS_TYPE_WINS = 0xff01 - DNS_TYPE_WINSR = 0xff02 - DNS_TYPE_NBSTAT = 0xff01 -) - -const ( - DNS_INFO_NO_RECORDS = 0x251D -) - -const ( - // flags inside DNSRecord.Dw - DnsSectionQuestion = 0x0000 - DnsSectionAnswer = 0x0001 - DnsSectionAuthority = 0x0002 - DnsSectionAdditional = 0x0003 -) - -type DNSSRVData struct { - Target *uint16 - Priority uint16 - Weight uint16 - Port uint16 - Pad uint16 -} - -type DNSPTRData struct { - Host *uint16 -} - -type DNSMXData struct { - NameExchange *uint16 - Preference uint16 - Pad uint16 -} - -type DNSTXTData struct { - StringCount uint16 - StringArray [1]*uint16 -} - -type DNSRecord struct { - Next *DNSRecord - Name *uint16 - Type uint16 - Length uint16 - Dw uint32 - Ttl uint32 - Reserved uint32 - Data [40]byte -} - -const ( - TF_DISCONNECT = 1 - TF_REUSE_SOCKET = 2 - TF_WRITE_BEHIND = 4 - TF_USE_DEFAULT_WORKER = 0 - TF_USE_SYSTEM_THREAD = 16 - TF_USE_KERNEL_APC = 32 -) - -type TransmitFileBuffers struct { - Head uintptr - HeadLength uint32 - Tail uintptr - TailLength uint32 -} - -const ( - IFF_UP = 1 - IFF_BROADCAST = 2 - IFF_LOOPBACK = 4 - IFF_POINTTOPOINT = 8 - IFF_MULTICAST = 16 -) - -const SIO_GET_INTERFACE_LIST = 0x4004747F - -// TODO(mattn): SockaddrGen is union of sockaddr/sockaddr_in/sockaddr_in6_old. -// will be fixed to change variable type as suitable. - -type SockaddrGen [24]byte - -type InterfaceInfo struct { - Flags uint32 - Address SockaddrGen - BroadcastAddress SockaddrGen - Netmask SockaddrGen -} - -type IpAddressString struct { - String [16]byte -} - -type IpMaskString IpAddressString - -type IpAddrString struct { - Next *IpAddrString - IpAddress IpAddressString - IpMask IpMaskString - Context uint32 -} - -const MAX_ADAPTER_NAME_LENGTH = 256 -const MAX_ADAPTER_DESCRIPTION_LENGTH = 128 -const MAX_ADAPTER_ADDRESS_LENGTH = 8 - -type IpAdapterInfo struct { - Next *IpAdapterInfo - ComboIndex uint32 - AdapterName [MAX_ADAPTER_NAME_LENGTH + 4]byte - Description [MAX_ADAPTER_DESCRIPTION_LENGTH + 4]byte - AddressLength uint32 - Address [MAX_ADAPTER_ADDRESS_LENGTH]byte - Index uint32 - Type uint32 - DhcpEnabled uint32 - CurrentIpAddress *IpAddrString - IpAddressList IpAddrString - GatewayList IpAddrString - DhcpServer IpAddrString - HaveWins bool - PrimaryWinsServer IpAddrString - SecondaryWinsServer IpAddrString - LeaseObtained int64 - LeaseExpires int64 -} - -const MAXLEN_PHYSADDR = 8 -const MAX_INTERFACE_NAME_LEN = 256 -const MAXLEN_IFDESCR = 256 - -type MibIfRow struct { - Name [MAX_INTERFACE_NAME_LEN]uint16 - Index uint32 - Type uint32 - Mtu uint32 - Speed uint32 - PhysAddrLen uint32 - PhysAddr [MAXLEN_PHYSADDR]byte - AdminStatus uint32 - OperStatus uint32 - LastChange uint32 - InOctets uint32 - InUcastPkts uint32 - InNUcastPkts uint32 - InDiscards uint32 - InErrors uint32 - InUnknownProtos uint32 - OutOctets uint32 - OutUcastPkts uint32 - OutNUcastPkts uint32 - OutDiscards uint32 - OutErrors uint32 - OutQLen uint32 - DescrLen uint32 - Descr [MAXLEN_IFDESCR]byte -} - -type CertContext struct { - EncodingType uint32 - EncodedCert *byte - Length uint32 - CertInfo uintptr - Store Handle -} - -type CertChainContext struct { - Size uint32 - TrustStatus CertTrustStatus - ChainCount uint32 - Chains **CertSimpleChain - LowerQualityChainCount uint32 - LowerQualityChains **CertChainContext - HasRevocationFreshnessTime uint32 - RevocationFreshnessTime uint32 -} - -type CertSimpleChain struct { - Size uint32 - TrustStatus CertTrustStatus - NumElements uint32 - Elements **CertChainElement - TrustListInfo uintptr - HasRevocationFreshnessTime uint32 - RevocationFreshnessTime uint32 -} - -type CertChainElement struct { - Size uint32 - CertContext *CertContext - TrustStatus CertTrustStatus - RevocationInfo *CertRevocationInfo - IssuanceUsage *CertEnhKeyUsage - ApplicationUsage *CertEnhKeyUsage - ExtendedErrorInfo *uint16 -} - -type CertRevocationInfo struct { - Size uint32 - RevocationResult uint32 - RevocationOid *byte - OidSpecificInfo uintptr - HasFreshnessTime uint32 - FreshnessTime uint32 - CrlInfo uintptr // *CertRevocationCrlInfo -} - -type CertTrustStatus struct { - ErrorStatus uint32 - InfoStatus uint32 -} - -type CertUsageMatch struct { - Type uint32 - Usage CertEnhKeyUsage -} - -type CertEnhKeyUsage struct { - Length uint32 - UsageIdentifiers **byte -} - -type CertChainPara struct { - Size uint32 - RequestedUsage CertUsageMatch - RequstedIssuancePolicy CertUsageMatch - URLRetrievalTimeout uint32 - CheckRevocationFreshnessTime uint32 - RevocationFreshnessTime uint32 - CacheResync *Filetime -} - -type CertChainPolicyPara struct { - Size uint32 - Flags uint32 - ExtraPolicyPara uintptr -} - -type SSLExtraCertChainPolicyPara struct { - Size uint32 - AuthType uint32 - Checks uint32 - ServerName *uint16 -} - -type CertChainPolicyStatus struct { - Size uint32 - Error uint32 - ChainIndex uint32 - ElementIndex uint32 - ExtraPolicyStatus uintptr -} - -const ( - // do not reorder - HKEY_CLASSES_ROOT = 0x80000000 + iota - HKEY_CURRENT_USER - HKEY_LOCAL_MACHINE - HKEY_USERS - HKEY_PERFORMANCE_DATA - HKEY_CURRENT_CONFIG - HKEY_DYN_DATA - - KEY_QUERY_VALUE = 1 - KEY_SET_VALUE = 2 - KEY_CREATE_SUB_KEY = 4 - KEY_ENUMERATE_SUB_KEYS = 8 - KEY_NOTIFY = 16 - KEY_CREATE_LINK = 32 - KEY_WRITE = 0x20006 - KEY_EXECUTE = 0x20019 - KEY_READ = 0x20019 - KEY_WOW64_64KEY = 0x0100 - KEY_WOW64_32KEY = 0x0200 - KEY_ALL_ACCESS = 0xf003f -) - -const ( - // do not reorder - REG_NONE = iota - REG_SZ - REG_EXPAND_SZ - REG_BINARY - REG_DWORD_LITTLE_ENDIAN - REG_DWORD_BIG_ENDIAN - REG_LINK - REG_MULTI_SZ - REG_RESOURCE_LIST - REG_FULL_RESOURCE_DESCRIPTOR - REG_RESOURCE_REQUIREMENTS_LIST - REG_QWORD_LITTLE_ENDIAN - REG_DWORD = REG_DWORD_LITTLE_ENDIAN - REG_QWORD = REG_QWORD_LITTLE_ENDIAN -) - -type AddrinfoW struct { - Flags int32 - Family int32 - Socktype int32 - Protocol int32 - Addrlen uintptr - Canonname *uint16 - Addr uintptr - Next *AddrinfoW -} - -const ( - AI_PASSIVE = 1 - AI_CANONNAME = 2 - AI_NUMERICHOST = 4 -) - -type GUID struct { - Data1 uint32 - Data2 uint16 - Data3 uint16 - Data4 [8]byte -} - -var WSAID_CONNECTEX = GUID{ - 0x25a207b9, - 0xddf3, - 0x4660, - [8]byte{0x8e, 0xe9, 0x76, 0xe5, 0x8c, 0x74, 0x06, 0x3e}, -} - -var WSAID_WSASENDMSG = GUID{ - 0xa441e712, - 0x754f, - 0x43ca, - [8]byte{0x84, 0xa7, 0x0d, 0xee, 0x44, 0xcf, 0x60, 0x6d}, -} - -var WSAID_WSARECVMSG = GUID{ - 0xf689d7c8, - 0x6f1f, - 0x436b, - [8]byte{0x8a, 0x53, 0xe5, 0x4f, 0xe3, 0x51, 0xc3, 0x22}, -} - -const ( - FILE_SKIP_COMPLETION_PORT_ON_SUCCESS = 1 - FILE_SKIP_SET_EVENT_ON_HANDLE = 2 -) - -const ( - WSAPROTOCOL_LEN = 255 - MAX_PROTOCOL_CHAIN = 7 - BASE_PROTOCOL = 1 - LAYERED_PROTOCOL = 0 - - XP1_CONNECTIONLESS = 0x00000001 - XP1_GUARANTEED_DELIVERY = 0x00000002 - XP1_GUARANTEED_ORDER = 0x00000004 - XP1_MESSAGE_ORIENTED = 0x00000008 - XP1_PSEUDO_STREAM = 0x00000010 - XP1_GRACEFUL_CLOSE = 0x00000020 - XP1_EXPEDITED_DATA = 0x00000040 - XP1_CONNECT_DATA = 0x00000080 - XP1_DISCONNECT_DATA = 0x00000100 - XP1_SUPPORT_BROADCAST = 0x00000200 - XP1_SUPPORT_MULTIPOINT = 0x00000400 - XP1_MULTIPOINT_CONTROL_PLANE = 0x00000800 - XP1_MULTIPOINT_DATA_PLANE = 0x00001000 - XP1_QOS_SUPPORTED = 0x00002000 - XP1_UNI_SEND = 0x00008000 - XP1_UNI_RECV = 0x00010000 - XP1_IFS_HANDLES = 0x00020000 - XP1_PARTIAL_MESSAGE = 0x00040000 - XP1_SAN_SUPPORT_SDP = 0x00080000 - - PFL_MULTIPLE_PROTO_ENTRIES = 0x00000001 - PFL_RECOMMENDED_PROTO_ENTRY = 0x00000002 - PFL_HIDDEN = 0x00000004 - PFL_MATCHES_PROTOCOL_ZERO = 0x00000008 - PFL_NETWORKDIRECT_PROVIDER = 0x00000010 -) - -type WSAProtocolInfo struct { - ServiceFlags1 uint32 - ServiceFlags2 uint32 - ServiceFlags3 uint32 - ServiceFlags4 uint32 - ProviderFlags uint32 - ProviderId GUID - CatalogEntryId uint32 - ProtocolChain WSAProtocolChain - Version int32 - AddressFamily int32 - MaxSockAddr int32 - MinSockAddr int32 - SocketType int32 - Protocol int32 - ProtocolMaxOffset int32 - NetworkByteOrder int32 - SecurityScheme int32 - MessageSize uint32 - ProviderReserved uint32 - ProtocolName [WSAPROTOCOL_LEN + 1]uint16 -} - -type WSAProtocolChain struct { - ChainLen int32 - ChainEntries [MAX_PROTOCOL_CHAIN]uint32 -} - -type TCPKeepalive struct { - OnOff uint32 - Time uint32 - Interval uint32 -} - -type symbolicLinkReparseBuffer struct { - SubstituteNameOffset uint16 - SubstituteNameLength uint16 - PrintNameOffset uint16 - PrintNameLength uint16 - Flags uint32 - PathBuffer [1]uint16 -} - -type mountPointReparseBuffer struct { - SubstituteNameOffset uint16 - SubstituteNameLength uint16 - PrintNameOffset uint16 - PrintNameLength uint16 - PathBuffer [1]uint16 -} - -type reparseDataBuffer struct { - ReparseTag uint32 - ReparseDataLength uint16 - Reserved uint16 - - // GenericReparseBuffer - reparseBuffer byte -} - -const ( - FSCTL_GET_REPARSE_POINT = 0x900A8 - MAXIMUM_REPARSE_DATA_BUFFER_SIZE = 16 * 1024 - IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003 - IO_REPARSE_TAG_SYMLINK = 0xA000000C - SYMBOLIC_LINK_FLAG_DIRECTORY = 0x1 -) - -const ( - ComputerNameNetBIOS = 0 - ComputerNameDnsHostname = 1 - ComputerNameDnsDomain = 2 - ComputerNameDnsFullyQualified = 3 - ComputerNamePhysicalNetBIOS = 4 - ComputerNamePhysicalDnsHostname = 5 - ComputerNamePhysicalDnsDomain = 6 - ComputerNamePhysicalDnsFullyQualified = 7 - ComputerNameMax = 8 -) - -const ( - MOVEFILE_REPLACE_EXISTING = 0x1 - MOVEFILE_COPY_ALLOWED = 0x2 - MOVEFILE_DELAY_UNTIL_REBOOT = 0x4 - MOVEFILE_WRITE_THROUGH = 0x8 - MOVEFILE_CREATE_HARDLINK = 0x10 - MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20 -) - -const GAA_FLAG_INCLUDE_PREFIX = 0x00000010 - -const ( - IF_TYPE_OTHER = 1 - IF_TYPE_ETHERNET_CSMACD = 6 - IF_TYPE_ISO88025_TOKENRING = 9 - IF_TYPE_PPP = 23 - IF_TYPE_SOFTWARE_LOOPBACK = 24 - IF_TYPE_ATM = 37 - IF_TYPE_IEEE80211 = 71 - IF_TYPE_TUNNEL = 131 - IF_TYPE_IEEE1394 = 144 -) - -type SocketAddress struct { - Sockaddr *syscall.RawSockaddrAny - SockaddrLength int32 -} - -type IpAdapterUnicastAddress struct { - Length uint32 - Flags uint32 - Next *IpAdapterUnicastAddress - Address SocketAddress - PrefixOrigin int32 - SuffixOrigin int32 - DadState int32 - ValidLifetime uint32 - PreferredLifetime uint32 - LeaseLifetime uint32 - OnLinkPrefixLength uint8 -} - -type IpAdapterAnycastAddress struct { - Length uint32 - Flags uint32 - Next *IpAdapterAnycastAddress - Address SocketAddress -} - -type IpAdapterMulticastAddress struct { - Length uint32 - Flags uint32 - Next *IpAdapterMulticastAddress - Address SocketAddress -} - -type IpAdapterDnsServerAdapter struct { - Length uint32 - Reserved uint32 - Next *IpAdapterDnsServerAdapter - Address SocketAddress -} - -type IpAdapterPrefix struct { - Length uint32 - Flags uint32 - Next *IpAdapterPrefix - Address SocketAddress - PrefixLength uint32 -} - -type IpAdapterAddresses struct { - Length uint32 - IfIndex uint32 - Next *IpAdapterAddresses - AdapterName *byte - FirstUnicastAddress *IpAdapterUnicastAddress - FirstAnycastAddress *IpAdapterAnycastAddress - FirstMulticastAddress *IpAdapterMulticastAddress - FirstDnsServerAddress *IpAdapterDnsServerAdapter - DnsSuffix *uint16 - Description *uint16 - FriendlyName *uint16 - PhysicalAddress [syscall.MAX_ADAPTER_ADDRESS_LENGTH]byte - PhysicalAddressLength uint32 - Flags uint32 - Mtu uint32 - IfType uint32 - OperStatus uint32 - Ipv6IfIndex uint32 - ZoneIndices [16]uint32 - FirstPrefix *IpAdapterPrefix - /* more fields might be present here. */ -} - -const ( - IfOperStatusUp = 1 - IfOperStatusDown = 2 - IfOperStatusTesting = 3 - IfOperStatusUnknown = 4 - IfOperStatusDormant = 5 - IfOperStatusNotPresent = 6 - IfOperStatusLowerLayerDown = 7 -) - -// Console related constants used for the mode parameter to SetConsoleMode. See -// https://docs.microsoft.com/en-us/windows/console/setconsolemode for details. - -const ( - ENABLE_PROCESSED_INPUT = 0x1 - ENABLE_LINE_INPUT = 0x2 - ENABLE_ECHO_INPUT = 0x4 - ENABLE_WINDOW_INPUT = 0x8 - ENABLE_MOUSE_INPUT = 0x10 - ENABLE_INSERT_MODE = 0x20 - ENABLE_QUICK_EDIT_MODE = 0x40 - ENABLE_EXTENDED_FLAGS = 0x80 - ENABLE_AUTO_POSITION = 0x100 - ENABLE_VIRTUAL_TERMINAL_INPUT = 0x200 - - ENABLE_PROCESSED_OUTPUT = 0x1 - ENABLE_WRAP_AT_EOL_OUTPUT = 0x2 - ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x4 - DISABLE_NEWLINE_AUTO_RETURN = 0x8 - ENABLE_LVB_GRID_WORLDWIDE = 0x10 -) - -type Coord struct { - X int16 - Y int16 -} - -type SmallRect struct { - Left int16 - Top int16 - Right int16 - Bottom int16 -} - -// Used with GetConsoleScreenBuffer to retreive information about a console -// screen buffer. See -// https://docs.microsoft.com/en-us/windows/console/console-screen-buffer-info-str -// for details. - -type ConsoleScreenBufferInfo struct { - Size Coord - CursorPosition Coord - Attributes uint16 - Window SmallRect - MaximumWindowSize Coord -} diff --git a/vendor/golang.org/x/sys/windows/types_windows_386.go b/vendor/golang.org/x/sys/windows/types_windows_386.go deleted file mode 100644 index fe0ddd0..0000000 --- a/vendor/golang.org/x/sys/windows/types_windows_386.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2011 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 windows - -type WSAData struct { - Version uint16 - HighVersion uint16 - Description [WSADESCRIPTION_LEN + 1]byte - SystemStatus [WSASYS_STATUS_LEN + 1]byte - MaxSockets uint16 - MaxUdpDg uint16 - VendorInfo *byte -} - -type Servent struct { - Name *byte - Aliases **byte - Port uint16 - Proto *byte -} diff --git a/vendor/golang.org/x/sys/windows/types_windows_amd64.go b/vendor/golang.org/x/sys/windows/types_windows_amd64.go deleted file mode 100644 index 7e154c2..0000000 --- a/vendor/golang.org/x/sys/windows/types_windows_amd64.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2011 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 windows - -type WSAData struct { - Version uint16 - HighVersion uint16 - MaxSockets uint16 - MaxUdpDg uint16 - VendorInfo *byte - Description [WSADESCRIPTION_LEN + 1]byte - SystemStatus [WSASYS_STATUS_LEN + 1]byte -} - -type Servent struct { - Name *byte - Aliases **byte - Proto *byte - Port uint16 -} diff --git a/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vendor/golang.org/x/sys/windows/zsyscall_windows.go deleted file mode 100644 index c7b3b15..0000000 --- a/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ /dev/null @@ -1,2687 +0,0 @@ -// MACHINE GENERATED BY 'go generate' COMMAND; DO NOT EDIT - -package windows - -import ( - "syscall" - "unsafe" -) - -var _ unsafe.Pointer - -// Do the interface allocations only once for common -// Errno values. -const ( - errnoERROR_IO_PENDING = 997 -) - -var ( - errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING) -) - -// errnoErr returns common boxed Errno values, to prevent -// allocations at runtime. -func errnoErr(e syscall.Errno) error { - switch e { - case 0: - return nil - case errnoERROR_IO_PENDING: - return errERROR_IO_PENDING - } - // TODO: add more here, after collecting data on the common - // error values see on Windows. (perhaps when running - // all.bat?) - return e -} - -var ( - modadvapi32 = NewLazySystemDLL("advapi32.dll") - modkernel32 = NewLazySystemDLL("kernel32.dll") - modshell32 = NewLazySystemDLL("shell32.dll") - modmswsock = NewLazySystemDLL("mswsock.dll") - modcrypt32 = NewLazySystemDLL("crypt32.dll") - modws2_32 = NewLazySystemDLL("ws2_32.dll") - moddnsapi = NewLazySystemDLL("dnsapi.dll") - modiphlpapi = NewLazySystemDLL("iphlpapi.dll") - modsecur32 = NewLazySystemDLL("secur32.dll") - modnetapi32 = NewLazySystemDLL("netapi32.dll") - moduserenv = NewLazySystemDLL("userenv.dll") - - procRegisterEventSourceW = modadvapi32.NewProc("RegisterEventSourceW") - procDeregisterEventSource = modadvapi32.NewProc("DeregisterEventSource") - procReportEventW = modadvapi32.NewProc("ReportEventW") - procOpenSCManagerW = modadvapi32.NewProc("OpenSCManagerW") - procCloseServiceHandle = modadvapi32.NewProc("CloseServiceHandle") - procCreateServiceW = modadvapi32.NewProc("CreateServiceW") - procOpenServiceW = modadvapi32.NewProc("OpenServiceW") - procDeleteService = modadvapi32.NewProc("DeleteService") - procStartServiceW = modadvapi32.NewProc("StartServiceW") - procQueryServiceStatus = modadvapi32.NewProc("QueryServiceStatus") - procControlService = modadvapi32.NewProc("ControlService") - procStartServiceCtrlDispatcherW = modadvapi32.NewProc("StartServiceCtrlDispatcherW") - procSetServiceStatus = modadvapi32.NewProc("SetServiceStatus") - procChangeServiceConfigW = modadvapi32.NewProc("ChangeServiceConfigW") - procQueryServiceConfigW = modadvapi32.NewProc("QueryServiceConfigW") - procChangeServiceConfig2W = modadvapi32.NewProc("ChangeServiceConfig2W") - procQueryServiceConfig2W = modadvapi32.NewProc("QueryServiceConfig2W") - procEnumServicesStatusExW = modadvapi32.NewProc("EnumServicesStatusExW") - procGetLastError = modkernel32.NewProc("GetLastError") - procLoadLibraryW = modkernel32.NewProc("LoadLibraryW") - procLoadLibraryExW = modkernel32.NewProc("LoadLibraryExW") - procFreeLibrary = modkernel32.NewProc("FreeLibrary") - procGetProcAddress = modkernel32.NewProc("GetProcAddress") - procGetVersion = modkernel32.NewProc("GetVersion") - procFormatMessageW = modkernel32.NewProc("FormatMessageW") - procExitProcess = modkernel32.NewProc("ExitProcess") - procCreateFileW = modkernel32.NewProc("CreateFileW") - procReadFile = modkernel32.NewProc("ReadFile") - procWriteFile = modkernel32.NewProc("WriteFile") - procSetFilePointer = modkernel32.NewProc("SetFilePointer") - procCloseHandle = modkernel32.NewProc("CloseHandle") - procGetStdHandle = modkernel32.NewProc("GetStdHandle") - procSetStdHandle = modkernel32.NewProc("SetStdHandle") - procFindFirstFileW = modkernel32.NewProc("FindFirstFileW") - procFindNextFileW = modkernel32.NewProc("FindNextFileW") - procFindClose = modkernel32.NewProc("FindClose") - procGetFileInformationByHandle = modkernel32.NewProc("GetFileInformationByHandle") - procGetCurrentDirectoryW = modkernel32.NewProc("GetCurrentDirectoryW") - procSetCurrentDirectoryW = modkernel32.NewProc("SetCurrentDirectoryW") - procCreateDirectoryW = modkernel32.NewProc("CreateDirectoryW") - procRemoveDirectoryW = modkernel32.NewProc("RemoveDirectoryW") - procDeleteFileW = modkernel32.NewProc("DeleteFileW") - procMoveFileW = modkernel32.NewProc("MoveFileW") - procMoveFileExW = modkernel32.NewProc("MoveFileExW") - procGetComputerNameW = modkernel32.NewProc("GetComputerNameW") - procGetComputerNameExW = modkernel32.NewProc("GetComputerNameExW") - procSetEndOfFile = modkernel32.NewProc("SetEndOfFile") - procGetSystemTimeAsFileTime = modkernel32.NewProc("GetSystemTimeAsFileTime") - procGetSystemTimePreciseAsFileTime = modkernel32.NewProc("GetSystemTimePreciseAsFileTime") - procGetTimeZoneInformation = modkernel32.NewProc("GetTimeZoneInformation") - procCreateIoCompletionPort = modkernel32.NewProc("CreateIoCompletionPort") - procGetQueuedCompletionStatus = modkernel32.NewProc("GetQueuedCompletionStatus") - procPostQueuedCompletionStatus = modkernel32.NewProc("PostQueuedCompletionStatus") - procCancelIo = modkernel32.NewProc("CancelIo") - procCancelIoEx = modkernel32.NewProc("CancelIoEx") - procCreateProcessW = modkernel32.NewProc("CreateProcessW") - procOpenProcess = modkernel32.NewProc("OpenProcess") - procTerminateProcess = modkernel32.NewProc("TerminateProcess") - procGetExitCodeProcess = modkernel32.NewProc("GetExitCodeProcess") - procGetStartupInfoW = modkernel32.NewProc("GetStartupInfoW") - procGetCurrentProcess = modkernel32.NewProc("GetCurrentProcess") - procGetProcessTimes = modkernel32.NewProc("GetProcessTimes") - procDuplicateHandle = modkernel32.NewProc("DuplicateHandle") - procWaitForSingleObject = modkernel32.NewProc("WaitForSingleObject") - procGetTempPathW = modkernel32.NewProc("GetTempPathW") - procCreatePipe = modkernel32.NewProc("CreatePipe") - procGetFileType = modkernel32.NewProc("GetFileType") - procCryptAcquireContextW = modadvapi32.NewProc("CryptAcquireContextW") - procCryptReleaseContext = modadvapi32.NewProc("CryptReleaseContext") - procCryptGenRandom = modadvapi32.NewProc("CryptGenRandom") - procGetEnvironmentStringsW = modkernel32.NewProc("GetEnvironmentStringsW") - procFreeEnvironmentStringsW = modkernel32.NewProc("FreeEnvironmentStringsW") - procGetEnvironmentVariableW = modkernel32.NewProc("GetEnvironmentVariableW") - procSetEnvironmentVariableW = modkernel32.NewProc("SetEnvironmentVariableW") - procSetFileTime = modkernel32.NewProc("SetFileTime") - procGetFileAttributesW = modkernel32.NewProc("GetFileAttributesW") - procSetFileAttributesW = modkernel32.NewProc("SetFileAttributesW") - procGetFileAttributesExW = modkernel32.NewProc("GetFileAttributesExW") - procGetCommandLineW = modkernel32.NewProc("GetCommandLineW") - procCommandLineToArgvW = modshell32.NewProc("CommandLineToArgvW") - procLocalFree = modkernel32.NewProc("LocalFree") - procSetHandleInformation = modkernel32.NewProc("SetHandleInformation") - procFlushFileBuffers = modkernel32.NewProc("FlushFileBuffers") - procGetFullPathNameW = modkernel32.NewProc("GetFullPathNameW") - procGetLongPathNameW = modkernel32.NewProc("GetLongPathNameW") - procGetShortPathNameW = modkernel32.NewProc("GetShortPathNameW") - procCreateFileMappingW = modkernel32.NewProc("CreateFileMappingW") - procMapViewOfFile = modkernel32.NewProc("MapViewOfFile") - procUnmapViewOfFile = modkernel32.NewProc("UnmapViewOfFile") - procFlushViewOfFile = modkernel32.NewProc("FlushViewOfFile") - procVirtualLock = modkernel32.NewProc("VirtualLock") - procVirtualUnlock = modkernel32.NewProc("VirtualUnlock") - procVirtualAlloc = modkernel32.NewProc("VirtualAlloc") - procVirtualFree = modkernel32.NewProc("VirtualFree") - procVirtualProtect = modkernel32.NewProc("VirtualProtect") - procTransmitFile = modmswsock.NewProc("TransmitFile") - procReadDirectoryChangesW = modkernel32.NewProc("ReadDirectoryChangesW") - procCertOpenSystemStoreW = modcrypt32.NewProc("CertOpenSystemStoreW") - procCertOpenStore = modcrypt32.NewProc("CertOpenStore") - procCertEnumCertificatesInStore = modcrypt32.NewProc("CertEnumCertificatesInStore") - procCertAddCertificateContextToStore = modcrypt32.NewProc("CertAddCertificateContextToStore") - procCertCloseStore = modcrypt32.NewProc("CertCloseStore") - procCertGetCertificateChain = modcrypt32.NewProc("CertGetCertificateChain") - procCertFreeCertificateChain = modcrypt32.NewProc("CertFreeCertificateChain") - procCertCreateCertificateContext = modcrypt32.NewProc("CertCreateCertificateContext") - procCertFreeCertificateContext = modcrypt32.NewProc("CertFreeCertificateContext") - procCertVerifyCertificateChainPolicy = modcrypt32.NewProc("CertVerifyCertificateChainPolicy") - procRegOpenKeyExW = modadvapi32.NewProc("RegOpenKeyExW") - procRegCloseKey = modadvapi32.NewProc("RegCloseKey") - procRegQueryInfoKeyW = modadvapi32.NewProc("RegQueryInfoKeyW") - procRegEnumKeyExW = modadvapi32.NewProc("RegEnumKeyExW") - procRegQueryValueExW = modadvapi32.NewProc("RegQueryValueExW") - procGetCurrentProcessId = modkernel32.NewProc("GetCurrentProcessId") - procGetConsoleMode = modkernel32.NewProc("GetConsoleMode") - procSetConsoleMode = modkernel32.NewProc("SetConsoleMode") - procGetConsoleScreenBufferInfo = modkernel32.NewProc("GetConsoleScreenBufferInfo") - procWriteConsoleW = modkernel32.NewProc("WriteConsoleW") - procReadConsoleW = modkernel32.NewProc("ReadConsoleW") - procCreateToolhelp32Snapshot = modkernel32.NewProc("CreateToolhelp32Snapshot") - procProcess32FirstW = modkernel32.NewProc("Process32FirstW") - procProcess32NextW = modkernel32.NewProc("Process32NextW") - procDeviceIoControl = modkernel32.NewProc("DeviceIoControl") - procCreateSymbolicLinkW = modkernel32.NewProc("CreateSymbolicLinkW") - procCreateHardLinkW = modkernel32.NewProc("CreateHardLinkW") - procGetCurrentThreadId = modkernel32.NewProc("GetCurrentThreadId") - procCreateEventW = modkernel32.NewProc("CreateEventW") - procCreateEventExW = modkernel32.NewProc("CreateEventExW") - procOpenEventW = modkernel32.NewProc("OpenEventW") - procSetEvent = modkernel32.NewProc("SetEvent") - procResetEvent = modkernel32.NewProc("ResetEvent") - procPulseEvent = modkernel32.NewProc("PulseEvent") - procDefineDosDeviceW = modkernel32.NewProc("DefineDosDeviceW") - procDeleteVolumeMountPointW = modkernel32.NewProc("DeleteVolumeMountPointW") - procFindFirstVolumeW = modkernel32.NewProc("FindFirstVolumeW") - procFindFirstVolumeMountPointW = modkernel32.NewProc("FindFirstVolumeMountPointW") - procFindNextVolumeW = modkernel32.NewProc("FindNextVolumeW") - procFindNextVolumeMountPointW = modkernel32.NewProc("FindNextVolumeMountPointW") - procFindVolumeClose = modkernel32.NewProc("FindVolumeClose") - procFindVolumeMountPointClose = modkernel32.NewProc("FindVolumeMountPointClose") - procGetDriveTypeW = modkernel32.NewProc("GetDriveTypeW") - procGetLogicalDrives = modkernel32.NewProc("GetLogicalDrives") - procGetLogicalDriveStringsW = modkernel32.NewProc("GetLogicalDriveStringsW") - procGetVolumeInformationW = modkernel32.NewProc("GetVolumeInformationW") - procGetVolumeInformationByHandleW = modkernel32.NewProc("GetVolumeInformationByHandleW") - procGetVolumeNameForVolumeMountPointW = modkernel32.NewProc("GetVolumeNameForVolumeMountPointW") - procGetVolumePathNameW = modkernel32.NewProc("GetVolumePathNameW") - procGetVolumePathNamesForVolumeNameW = modkernel32.NewProc("GetVolumePathNamesForVolumeNameW") - procQueryDosDeviceW = modkernel32.NewProc("QueryDosDeviceW") - procSetVolumeLabelW = modkernel32.NewProc("SetVolumeLabelW") - procSetVolumeMountPointW = modkernel32.NewProc("SetVolumeMountPointW") - procWSAStartup = modws2_32.NewProc("WSAStartup") - procWSACleanup = modws2_32.NewProc("WSACleanup") - procWSAIoctl = modws2_32.NewProc("WSAIoctl") - procsocket = modws2_32.NewProc("socket") - procsetsockopt = modws2_32.NewProc("setsockopt") - procgetsockopt = modws2_32.NewProc("getsockopt") - procbind = modws2_32.NewProc("bind") - procconnect = modws2_32.NewProc("connect") - procgetsockname = modws2_32.NewProc("getsockname") - procgetpeername = modws2_32.NewProc("getpeername") - proclisten = modws2_32.NewProc("listen") - procshutdown = modws2_32.NewProc("shutdown") - procclosesocket = modws2_32.NewProc("closesocket") - procAcceptEx = modmswsock.NewProc("AcceptEx") - procGetAcceptExSockaddrs = modmswsock.NewProc("GetAcceptExSockaddrs") - procWSARecv = modws2_32.NewProc("WSARecv") - procWSASend = modws2_32.NewProc("WSASend") - procWSARecvFrom = modws2_32.NewProc("WSARecvFrom") - procWSASendTo = modws2_32.NewProc("WSASendTo") - procgethostbyname = modws2_32.NewProc("gethostbyname") - procgetservbyname = modws2_32.NewProc("getservbyname") - procntohs = modws2_32.NewProc("ntohs") - procgetprotobyname = modws2_32.NewProc("getprotobyname") - procDnsQuery_W = moddnsapi.NewProc("DnsQuery_W") - procDnsRecordListFree = moddnsapi.NewProc("DnsRecordListFree") - procDnsNameCompare_W = moddnsapi.NewProc("DnsNameCompare_W") - procGetAddrInfoW = modws2_32.NewProc("GetAddrInfoW") - procFreeAddrInfoW = modws2_32.NewProc("FreeAddrInfoW") - procGetIfEntry = modiphlpapi.NewProc("GetIfEntry") - procGetAdaptersInfo = modiphlpapi.NewProc("GetAdaptersInfo") - procSetFileCompletionNotificationModes = modkernel32.NewProc("SetFileCompletionNotificationModes") - procWSAEnumProtocolsW = modws2_32.NewProc("WSAEnumProtocolsW") - procGetAdaptersAddresses = modiphlpapi.NewProc("GetAdaptersAddresses") - procGetACP = modkernel32.NewProc("GetACP") - procMultiByteToWideChar = modkernel32.NewProc("MultiByteToWideChar") - procTranslateNameW = modsecur32.NewProc("TranslateNameW") - procGetUserNameExW = modsecur32.NewProc("GetUserNameExW") - procNetUserGetInfo = modnetapi32.NewProc("NetUserGetInfo") - procNetGetJoinInformation = modnetapi32.NewProc("NetGetJoinInformation") - procNetApiBufferFree = modnetapi32.NewProc("NetApiBufferFree") - procLookupAccountSidW = modadvapi32.NewProc("LookupAccountSidW") - procLookupAccountNameW = modadvapi32.NewProc("LookupAccountNameW") - procConvertSidToStringSidW = modadvapi32.NewProc("ConvertSidToStringSidW") - procConvertStringSidToSidW = modadvapi32.NewProc("ConvertStringSidToSidW") - procGetLengthSid = modadvapi32.NewProc("GetLengthSid") - procCopySid = modadvapi32.NewProc("CopySid") - procAllocateAndInitializeSid = modadvapi32.NewProc("AllocateAndInitializeSid") - procFreeSid = modadvapi32.NewProc("FreeSid") - procEqualSid = modadvapi32.NewProc("EqualSid") - procCheckTokenMembership = modadvapi32.NewProc("CheckTokenMembership") - procOpenProcessToken = modadvapi32.NewProc("OpenProcessToken") - procGetTokenInformation = modadvapi32.NewProc("GetTokenInformation") - procGetUserProfileDirectoryW = moduserenv.NewProc("GetUserProfileDirectoryW") -) - -func RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procRegisterEventSourceW.Addr(), 2, uintptr(unsafe.Pointer(uncServerName)), uintptr(unsafe.Pointer(sourceName)), 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DeregisterEventSource(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procDeregisterEventSource.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) { - r1, _, e1 := syscall.Syscall9(procReportEventW.Addr(), 9, uintptr(log), uintptr(etype), uintptr(category), uintptr(eventId), uintptr(usrSId), uintptr(numStrings), uintptr(dataSize), uintptr(unsafe.Pointer(strings)), uintptr(unsafe.Pointer(rawData))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procOpenSCManagerW.Addr(), 3, uintptr(unsafe.Pointer(machineName)), uintptr(unsafe.Pointer(databaseName)), uintptr(access)) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CloseServiceHandle(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procCloseServiceHandle.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateService(mgr Handle, serviceName *uint16, displayName *uint16, access uint32, srvType uint32, startType uint32, errCtl uint32, pathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall15(procCreateServiceW.Addr(), 13, uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(unsafe.Pointer(displayName)), uintptr(access), uintptr(srvType), uintptr(startType), uintptr(errCtl), uintptr(unsafe.Pointer(pathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)), 0, 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func OpenService(mgr Handle, serviceName *uint16, access uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procOpenServiceW.Addr(), 3, uintptr(mgr), uintptr(unsafe.Pointer(serviceName)), uintptr(access)) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DeleteService(service Handle) (err error) { - r1, _, e1 := syscall.Syscall(procDeleteService.Addr(), 1, uintptr(service), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func StartService(service Handle, numArgs uint32, argVectors **uint16) (err error) { - r1, _, e1 := syscall.Syscall(procStartServiceW.Addr(), 3, uintptr(service), uintptr(numArgs), uintptr(unsafe.Pointer(argVectors))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func QueryServiceStatus(service Handle, status *SERVICE_STATUS) (err error) { - r1, _, e1 := syscall.Syscall(procQueryServiceStatus.Addr(), 2, uintptr(service), uintptr(unsafe.Pointer(status)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ControlService(service Handle, control uint32, status *SERVICE_STATUS) (err error) { - r1, _, e1 := syscall.Syscall(procControlService.Addr(), 3, uintptr(service), uintptr(control), uintptr(unsafe.Pointer(status))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func StartServiceCtrlDispatcher(serviceTable *SERVICE_TABLE_ENTRY) (err error) { - r1, _, e1 := syscall.Syscall(procStartServiceCtrlDispatcherW.Addr(), 1, uintptr(unsafe.Pointer(serviceTable)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetServiceStatus(service Handle, serviceStatus *SERVICE_STATUS) (err error) { - r1, _, e1 := syscall.Syscall(procSetServiceStatus.Addr(), 2, uintptr(service), uintptr(unsafe.Pointer(serviceStatus)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ChangeServiceConfig(service Handle, serviceType uint32, startType uint32, errorControl uint32, binaryPathName *uint16, loadOrderGroup *uint16, tagId *uint32, dependencies *uint16, serviceStartName *uint16, password *uint16, displayName *uint16) (err error) { - r1, _, e1 := syscall.Syscall12(procChangeServiceConfigW.Addr(), 11, uintptr(service), uintptr(serviceType), uintptr(startType), uintptr(errorControl), uintptr(unsafe.Pointer(binaryPathName)), uintptr(unsafe.Pointer(loadOrderGroup)), uintptr(unsafe.Pointer(tagId)), uintptr(unsafe.Pointer(dependencies)), uintptr(unsafe.Pointer(serviceStartName)), uintptr(unsafe.Pointer(password)), uintptr(unsafe.Pointer(displayName)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func QueryServiceConfig(service Handle, serviceConfig *QUERY_SERVICE_CONFIG, bufSize uint32, bytesNeeded *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procQueryServiceConfigW.Addr(), 4, uintptr(service), uintptr(unsafe.Pointer(serviceConfig)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ChangeServiceConfig2(service Handle, infoLevel uint32, info *byte) (err error) { - r1, _, e1 := syscall.Syscall(procChangeServiceConfig2W.Addr(), 3, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(info))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func QueryServiceConfig2(service Handle, infoLevel uint32, buff *byte, buffSize uint32, bytesNeeded *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procQueryServiceConfig2W.Addr(), 5, uintptr(service), uintptr(infoLevel), uintptr(unsafe.Pointer(buff)), uintptr(buffSize), uintptr(unsafe.Pointer(bytesNeeded)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func EnumServicesStatusEx(mgr Handle, infoLevel uint32, serviceType uint32, serviceState uint32, services *byte, bufSize uint32, bytesNeeded *uint32, servicesReturned *uint32, resumeHandle *uint32, groupName *uint16) (err error) { - r1, _, e1 := syscall.Syscall12(procEnumServicesStatusExW.Addr(), 10, uintptr(mgr), uintptr(infoLevel), uintptr(serviceType), uintptr(serviceState), uintptr(unsafe.Pointer(services)), uintptr(bufSize), uintptr(unsafe.Pointer(bytesNeeded)), uintptr(unsafe.Pointer(servicesReturned)), uintptr(unsafe.Pointer(resumeHandle)), uintptr(unsafe.Pointer(groupName)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetLastError() (lasterr error) { - r0, _, _ := syscall.Syscall(procGetLastError.Addr(), 0, 0, 0, 0) - if r0 != 0 { - lasterr = syscall.Errno(r0) - } - return -} - -func LoadLibrary(libname string) (handle Handle, err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(libname) - if err != nil { - return - } - return _LoadLibrary(_p0) -} - -func _LoadLibrary(libname *uint16) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procLoadLibraryW.Addr(), 1, uintptr(unsafe.Pointer(libname)), 0, 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func LoadLibraryEx(libname string, zero Handle, flags uintptr) (handle Handle, err error) { - var _p0 *uint16 - _p0, err = syscall.UTF16PtrFromString(libname) - if err != nil { - return - } - return _LoadLibraryEx(_p0, zero, flags) -} - -func _LoadLibraryEx(libname *uint16, zero Handle, flags uintptr) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procLoadLibraryExW.Addr(), 3, uintptr(unsafe.Pointer(libname)), uintptr(zero), uintptr(flags)) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FreeLibrary(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procFreeLibrary.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetProcAddress(module Handle, procname string) (proc uintptr, err error) { - var _p0 *byte - _p0, err = syscall.BytePtrFromString(procname) - if err != nil { - return - } - return _GetProcAddress(module, _p0) -} - -func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) { - r0, _, e1 := syscall.Syscall(procGetProcAddress.Addr(), 2, uintptr(module), uintptr(unsafe.Pointer(procname)), 0) - proc = uintptr(r0) - if proc == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVersion() (ver uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetVersion.Addr(), 0, 0, 0, 0) - ver = uint32(r0) - if ver == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) { - var _p0 *uint16 - if len(buf) > 0 { - _p0 = &buf[0] - } - r0, _, e1 := syscall.Syscall9(procFormatMessageW.Addr(), 7, uintptr(flags), uintptr(msgsrc), uintptr(msgid), uintptr(langid), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(args)), 0, 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ExitProcess(exitcode uint32) { - syscall.Syscall(procExitProcess.Addr(), 1, uintptr(exitcode), 0, 0) - return -} - -func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall9(procCreateFileW.Addr(), 7, uintptr(unsafe.Pointer(name)), uintptr(access), uintptr(mode), uintptr(unsafe.Pointer(sa)), uintptr(createmode), uintptr(attrs), uintptr(templatefile), 0, 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - r1, _, e1 := syscall.Syscall6(procReadFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) { - var _p0 *byte - if len(buf) > 0 { - _p0 = &buf[0] - } - r1, _, e1 := syscall.Syscall6(procWriteFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) { - r0, _, e1 := syscall.Syscall6(procSetFilePointer.Addr(), 4, uintptr(handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0) - newlowoffset = uint32(r0) - if newlowoffset == 0xffffffff { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CloseHandle(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procCloseHandle.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetStdHandle(stdhandle uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procGetStdHandle.Addr(), 1, uintptr(stdhandle), 0, 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetStdHandle(stdhandle uint32, handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procSetStdHandle.Addr(), 2, uintptr(stdhandle), uintptr(handle), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procFindFirstFileW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(data)), 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func findNextFile1(handle Handle, data *win32finddata1) (err error) { - r1, _, e1 := syscall.Syscall(procFindNextFileW.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindClose(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procFindClose.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error) { - r1, _, e1 := syscall.Syscall(procGetFileInformationByHandle.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetCurrentDirectory(buflen uint32, buf *uint16) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetCurrentDirectoryW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetCurrentDirectory(path *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procSetCurrentDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateDirectory(path *uint16, sa *SecurityAttributes) (err error) { - r1, _, e1 := syscall.Syscall(procCreateDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(sa)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func RemoveDirectory(path *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procRemoveDirectoryW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DeleteFile(path *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procDeleteFileW.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func MoveFile(from *uint16, to *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procMoveFileW.Addr(), 2, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall(procMoveFileExW.Addr(), 3, uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(to)), uintptr(flags)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetComputerName(buf *uint16, n *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetComputerNameW.Addr(), 2, uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetComputerNameExW.Addr(), 3, uintptr(nametype), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(n))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetEndOfFile(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procSetEndOfFile.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetSystemTimeAsFileTime(time *Filetime) { - syscall.Syscall(procGetSystemTimeAsFileTime.Addr(), 1, uintptr(unsafe.Pointer(time)), 0, 0) - return -} - -func GetSystemTimePreciseAsFileTime(time *Filetime) { - syscall.Syscall(procGetSystemTimePreciseAsFileTime.Addr(), 1, uintptr(unsafe.Pointer(time)), 0, 0) - return -} - -func GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetTimeZoneInformation.Addr(), 1, uintptr(unsafe.Pointer(tzi)), 0, 0) - rc = uint32(r0) - if rc == 0xffffffff { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uint32, threadcnt uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCreateIoCompletionPort.Addr(), 4, uintptr(filehandle), uintptr(cphandle), uintptr(key), uintptr(threadcnt), 0, 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetQueuedCompletionStatus.Addr(), 5, uintptr(cphandle), uintptr(unsafe.Pointer(qty)), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(overlapped)), uintptr(timeout), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uint32, overlapped *Overlapped) (err error) { - r1, _, e1 := syscall.Syscall6(procPostQueuedCompletionStatus.Addr(), 4, uintptr(cphandle), uintptr(qty), uintptr(key), uintptr(unsafe.Pointer(overlapped)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CancelIo(s Handle) (err error) { - r1, _, e1 := syscall.Syscall(procCancelIo.Addr(), 1, uintptr(s), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CancelIoEx(s Handle, o *Overlapped) (err error) { - r1, _, e1 := syscall.Syscall(procCancelIoEx.Addr(), 2, uintptr(s), uintptr(unsafe.Pointer(o)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateProcess(appName *uint16, commandLine *uint16, procSecurity *SecurityAttributes, threadSecurity *SecurityAttributes, inheritHandles bool, creationFlags uint32, env *uint16, currentDir *uint16, startupInfo *StartupInfo, outProcInfo *ProcessInformation) (err error) { - var _p0 uint32 - if inheritHandles { - _p0 = 1 - } else { - _p0 = 0 - } - r1, _, e1 := syscall.Syscall12(procCreateProcessW.Addr(), 10, uintptr(unsafe.Pointer(appName)), uintptr(unsafe.Pointer(commandLine)), uintptr(unsafe.Pointer(procSecurity)), uintptr(unsafe.Pointer(threadSecurity)), uintptr(_p0), uintptr(creationFlags), uintptr(unsafe.Pointer(env)), uintptr(unsafe.Pointer(currentDir)), uintptr(unsafe.Pointer(startupInfo)), uintptr(unsafe.Pointer(outProcInfo)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error) { - var _p0 uint32 - if inheritHandle { - _p0 = 1 - } else { - _p0 = 0 - } - r0, _, e1 := syscall.Syscall(procOpenProcess.Addr(), 3, uintptr(da), uintptr(_p0), uintptr(pid)) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func TerminateProcess(handle Handle, exitcode uint32) (err error) { - r1, _, e1 := syscall.Syscall(procTerminateProcess.Addr(), 2, uintptr(handle), uintptr(exitcode), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetExitCodeProcess.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(exitcode)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetStartupInfo(startupInfo *StartupInfo) (err error) { - r1, _, e1 := syscall.Syscall(procGetStartupInfoW.Addr(), 1, uintptr(unsafe.Pointer(startupInfo)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetCurrentProcess() (pseudoHandle Handle, err error) { - r0, _, e1 := syscall.Syscall(procGetCurrentProcess.Addr(), 0, 0, 0, 0) - pseudoHandle = Handle(r0) - if pseudoHandle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) { - r1, _, e1 := syscall.Syscall6(procGetProcessTimes.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(creationTime)), uintptr(unsafe.Pointer(exitTime)), uintptr(unsafe.Pointer(kernelTime)), uintptr(unsafe.Pointer(userTime)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error) { - var _p0 uint32 - if bInheritHandle { - _p0 = 1 - } else { - _p0 = 0 - } - r1, _, e1 := syscall.Syscall9(procDuplicateHandle.Addr(), 7, uintptr(hSourceProcessHandle), uintptr(hSourceHandle), uintptr(hTargetProcessHandle), uintptr(unsafe.Pointer(lpTargetHandle)), uintptr(dwDesiredAccess), uintptr(_p0), uintptr(dwOptions), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) { - r0, _, e1 := syscall.Syscall(procWaitForSingleObject.Addr(), 2, uintptr(handle), uintptr(waitMilliseconds), 0) - event = uint32(r0) - if event == 0xffffffff { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetTempPath(buflen uint32, buf *uint16) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetTempPathW.Addr(), 2, uintptr(buflen), uintptr(unsafe.Pointer(buf)), 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procCreatePipe.Addr(), 4, uintptr(unsafe.Pointer(readhandle)), uintptr(unsafe.Pointer(writehandle)), uintptr(unsafe.Pointer(sa)), uintptr(size), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetFileType(filehandle Handle) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetFileType.Addr(), 1, uintptr(filehandle), 0, 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procCryptAcquireContextW.Addr(), 5, uintptr(unsafe.Pointer(provhandle)), uintptr(unsafe.Pointer(container)), uintptr(unsafe.Pointer(provider)), uintptr(provtype), uintptr(flags), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CryptReleaseContext(provhandle Handle, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall(procCryptReleaseContext.Addr(), 2, uintptr(provhandle), uintptr(flags), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) { - r1, _, e1 := syscall.Syscall(procCryptGenRandom.Addr(), 3, uintptr(provhandle), uintptr(buflen), uintptr(unsafe.Pointer(buf))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetEnvironmentStrings() (envs *uint16, err error) { - r0, _, e1 := syscall.Syscall(procGetEnvironmentStringsW.Addr(), 0, 0, 0, 0) - envs = (*uint16)(unsafe.Pointer(r0)) - if envs == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FreeEnvironmentStrings(envs *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procFreeEnvironmentStringsW.Addr(), 1, uintptr(unsafe.Pointer(envs)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetEnvironmentVariable(name *uint16, buffer *uint16, size uint32) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetEnvironmentVariableW.Addr(), 3, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(buffer)), uintptr(size)) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetEnvironmentVariable(name *uint16, value *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procSetEnvironmentVariableW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(value)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) { - r1, _, e1 := syscall.Syscall6(procSetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetFileAttributes(name *uint16) (attrs uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetFileAttributesW.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0) - attrs = uint32(r0) - if attrs == INVALID_FILE_ATTRIBUTES { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetFileAttributes(name *uint16, attrs uint32) (err error) { - r1, _, e1 := syscall.Syscall(procSetFileAttributesW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(attrs), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetFileAttributesEx(name *uint16, level uint32, info *byte) (err error) { - r1, _, e1 := syscall.Syscall(procGetFileAttributesExW.Addr(), 3, uintptr(unsafe.Pointer(name)), uintptr(level), uintptr(unsafe.Pointer(info))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetCommandLine() (cmd *uint16) { - r0, _, _ := syscall.Syscall(procGetCommandLineW.Addr(), 0, 0, 0, 0) - cmd = (*uint16)(unsafe.Pointer(r0)) - return -} - -func CommandLineToArgv(cmd *uint16, argc *int32) (argv *[8192]*[8192]uint16, err error) { - r0, _, e1 := syscall.Syscall(procCommandLineToArgvW.Addr(), 2, uintptr(unsafe.Pointer(cmd)), uintptr(unsafe.Pointer(argc)), 0) - argv = (*[8192]*[8192]uint16)(unsafe.Pointer(r0)) - if argv == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func LocalFree(hmem Handle) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procLocalFree.Addr(), 1, uintptr(hmem), 0, 0) - handle = Handle(r0) - if handle != 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall(procSetHandleInformation.Addr(), 3, uintptr(handle), uintptr(mask), uintptr(flags)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FlushFileBuffers(handle Handle) (err error) { - r1, _, e1 := syscall.Syscall(procFlushFileBuffers.Addr(), 1, uintptr(handle), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetFullPathName(path *uint16, buflen uint32, buf *uint16, fname **uint16) (n uint32, err error) { - r0, _, e1 := syscall.Syscall6(procGetFullPathNameW.Addr(), 4, uintptr(unsafe.Pointer(path)), uintptr(buflen), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(fname)), 0, 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetLongPathName(path *uint16, buf *uint16, buflen uint32) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetLongPathNameW.Addr(), 3, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(buf)), uintptr(buflen)) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetShortPathName(longpath *uint16, shortpath *uint16, buflen uint32) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetShortPathNameW.Addr(), 3, uintptr(unsafe.Pointer(longpath)), uintptr(unsafe.Pointer(shortpath)), uintptr(buflen)) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCreateFileMappingW.Addr(), 6, uintptr(fhandle), uintptr(unsafe.Pointer(sa)), uintptr(prot), uintptr(maxSizeHigh), uintptr(maxSizeLow), uintptr(unsafe.Pointer(name))) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) { - r0, _, e1 := syscall.Syscall6(procMapViewOfFile.Addr(), 5, uintptr(handle), uintptr(access), uintptr(offsetHigh), uintptr(offsetLow), uintptr(length), 0) - addr = uintptr(r0) - if addr == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func UnmapViewOfFile(addr uintptr) (err error) { - r1, _, e1 := syscall.Syscall(procUnmapViewOfFile.Addr(), 1, uintptr(addr), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FlushViewOfFile(addr uintptr, length uintptr) (err error) { - r1, _, e1 := syscall.Syscall(procFlushViewOfFile.Addr(), 2, uintptr(addr), uintptr(length), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func VirtualLock(addr uintptr, length uintptr) (err error) { - r1, _, e1 := syscall.Syscall(procVirtualLock.Addr(), 2, uintptr(addr), uintptr(length), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func VirtualUnlock(addr uintptr, length uintptr) (err error) { - r1, _, e1 := syscall.Syscall(procVirtualUnlock.Addr(), 2, uintptr(addr), uintptr(length), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func VirtualAlloc(address uintptr, size uintptr, alloctype uint32, protect uint32) (value uintptr, err error) { - r0, _, e1 := syscall.Syscall6(procVirtualAlloc.Addr(), 4, uintptr(address), uintptr(size), uintptr(alloctype), uintptr(protect), 0, 0) - value = uintptr(r0) - if value == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func VirtualFree(address uintptr, size uintptr, freetype uint32) (err error) { - r1, _, e1 := syscall.Syscall(procVirtualFree.Addr(), 3, uintptr(address), uintptr(size), uintptr(freetype)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func VirtualProtect(address uintptr, size uintptr, newprotect uint32, oldprotect *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procVirtualProtect.Addr(), 4, uintptr(address), uintptr(size), uintptr(newprotect), uintptr(unsafe.Pointer(oldprotect)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procTransmitFile.Addr(), 7, uintptr(s), uintptr(handle), uintptr(bytesToWrite), uintptr(bytsPerSend), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(transmitFileBuf)), uintptr(flags), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) { - var _p0 uint32 - if watchSubTree { - _p0 = 1 - } else { - _p0 = 0 - } - r1, _, e1 := syscall.Syscall9(procReadDirectoryChangesW.Addr(), 8, uintptr(handle), uintptr(unsafe.Pointer(buf)), uintptr(buflen), uintptr(_p0), uintptr(mask), uintptr(unsafe.Pointer(retlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) { - r0, _, e1 := syscall.Syscall(procCertOpenSystemStoreW.Addr(), 2, uintptr(hprov), uintptr(unsafe.Pointer(name)), 0) - store = Handle(r0) - if store == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCertOpenStore.Addr(), 5, uintptr(storeProvider), uintptr(msgAndCertEncodingType), uintptr(cryptProv), uintptr(flags), uintptr(para), 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) { - r0, _, e1 := syscall.Syscall(procCertEnumCertificatesInStore.Addr(), 2, uintptr(store), uintptr(unsafe.Pointer(prevContext)), 0) - context = (*CertContext)(unsafe.Pointer(r0)) - if context == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) { - r1, _, e1 := syscall.Syscall6(procCertAddCertificateContextToStore.Addr(), 4, uintptr(store), uintptr(unsafe.Pointer(certContext)), uintptr(addDisposition), uintptr(unsafe.Pointer(storeContext)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertCloseStore(store Handle, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall(procCertCloseStore.Addr(), 2, uintptr(store), uintptr(flags), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) { - r1, _, e1 := syscall.Syscall9(procCertGetCertificateChain.Addr(), 8, uintptr(engine), uintptr(unsafe.Pointer(leaf)), uintptr(unsafe.Pointer(time)), uintptr(additionalStore), uintptr(unsafe.Pointer(para)), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(chainCtx)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertFreeCertificateChain(ctx *CertChainContext) { - syscall.Syscall(procCertFreeCertificateChain.Addr(), 1, uintptr(unsafe.Pointer(ctx)), 0, 0) - return -} - -func CertCreateCertificateContext(certEncodingType uint32, certEncoded *byte, encodedLen uint32) (context *CertContext, err error) { - r0, _, e1 := syscall.Syscall(procCertCreateCertificateContext.Addr(), 3, uintptr(certEncodingType), uintptr(unsafe.Pointer(certEncoded)), uintptr(encodedLen)) - context = (*CertContext)(unsafe.Pointer(r0)) - if context == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertFreeCertificateContext(ctx *CertContext) (err error) { - r1, _, e1 := syscall.Syscall(procCertFreeCertificateContext.Addr(), 1, uintptr(unsafe.Pointer(ctx)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CertVerifyCertificateChainPolicy(policyOID uintptr, chain *CertChainContext, para *CertChainPolicyPara, status *CertChainPolicyStatus) (err error) { - r1, _, e1 := syscall.Syscall6(procCertVerifyCertificateChainPolicy.Addr(), 4, uintptr(policyOID), uintptr(unsafe.Pointer(chain)), uintptr(unsafe.Pointer(para)), uintptr(unsafe.Pointer(status)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) { - r0, _, _ := syscall.Syscall6(procRegOpenKeyExW.Addr(), 5, uintptr(key), uintptr(unsafe.Pointer(subkey)), uintptr(options), uintptr(desiredAccess), uintptr(unsafe.Pointer(result)), 0) - if r0 != 0 { - regerrno = syscall.Errno(r0) - } - return -} - -func RegCloseKey(key Handle) (regerrno error) { - r0, _, _ := syscall.Syscall(procRegCloseKey.Addr(), 1, uintptr(key), 0, 0) - if r0 != 0 { - regerrno = syscall.Errno(r0) - } - return -} - -func RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) { - r0, _, _ := syscall.Syscall12(procRegQueryInfoKeyW.Addr(), 12, uintptr(key), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(subkeysLen)), uintptr(unsafe.Pointer(maxSubkeyLen)), uintptr(unsafe.Pointer(maxClassLen)), uintptr(unsafe.Pointer(valuesLen)), uintptr(unsafe.Pointer(maxValueNameLen)), uintptr(unsafe.Pointer(maxValueLen)), uintptr(unsafe.Pointer(saLen)), uintptr(unsafe.Pointer(lastWriteTime))) - if r0 != 0 { - regerrno = syscall.Errno(r0) - } - return -} - -func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) { - r0, _, _ := syscall.Syscall9(procRegEnumKeyExW.Addr(), 8, uintptr(key), uintptr(index), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(classLen)), uintptr(unsafe.Pointer(lastWriteTime)), 0) - if r0 != 0 { - regerrno = syscall.Errno(r0) - } - return -} - -func RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) { - r0, _, _ := syscall.Syscall6(procRegQueryValueExW.Addr(), 6, uintptr(key), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(valtype)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(buflen))) - if r0 != 0 { - regerrno = syscall.Errno(r0) - } - return -} - -func getCurrentProcessId() (pid uint32) { - r0, _, _ := syscall.Syscall(procGetCurrentProcessId.Addr(), 0, 0, 0, 0) - pid = uint32(r0) - return -} - -func GetConsoleMode(console Handle, mode *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetConsoleMode.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(mode)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetConsoleMode(console Handle, mode uint32) (err error) { - r1, _, e1 := syscall.Syscall(procSetConsoleMode.Addr(), 2, uintptr(console), uintptr(mode), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) { - r1, _, e1 := syscall.Syscall(procGetConsoleScreenBufferInfo.Addr(), 2, uintptr(console), uintptr(unsafe.Pointer(info)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) { - r1, _, e1 := syscall.Syscall6(procWriteConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(towrite), uintptr(unsafe.Pointer(written)), uintptr(unsafe.Pointer(reserved)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) { - r1, _, e1 := syscall.Syscall6(procReadConsoleW.Addr(), 5, uintptr(console), uintptr(unsafe.Pointer(buf)), uintptr(toread), uintptr(unsafe.Pointer(read)), uintptr(unsafe.Pointer(inputControl)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procCreateToolhelp32Snapshot.Addr(), 2, uintptr(flags), uintptr(processId), 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) { - r1, _, e1 := syscall.Syscall(procProcess32FirstW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) { - r1, _, e1 := syscall.Syscall(procProcess32NextW.Addr(), 2, uintptr(snapshot), uintptr(unsafe.Pointer(procEntry)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error) { - r1, _, e1 := syscall.Syscall9(procDeviceIoControl.Addr(), 8, uintptr(handle), uintptr(ioControlCode), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferSize), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferSize), uintptr(unsafe.Pointer(bytesReturned)), uintptr(unsafe.Pointer(overlapped)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) { - r1, _, e1 := syscall.Syscall(procCreateSymbolicLinkW.Addr(), 3, uintptr(unsafe.Pointer(symlinkfilename)), uintptr(unsafe.Pointer(targetfilename)), uintptr(flags)) - if r1&0xff == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) { - r1, _, e1 := syscall.Syscall(procCreateHardLinkW.Addr(), 3, uintptr(unsafe.Pointer(filename)), uintptr(unsafe.Pointer(existingfilename)), uintptr(reserved)) - if r1&0xff == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetCurrentThreadId() (id uint32) { - r0, _, _ := syscall.Syscall(procGetCurrentThreadId.Addr(), 0, 0, 0, 0) - id = uint32(r0) - return -} - -func CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCreateEventW.Addr(), 4, uintptr(unsafe.Pointer(eventAttrs)), uintptr(manualReset), uintptr(initialState), uintptr(unsafe.Pointer(name)), 0, 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall6(procCreateEventExW.Addr(), 4, uintptr(unsafe.Pointer(eventAttrs)), uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(desiredAccess), 0, 0) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) { - var _p0 uint32 - if inheritHandle { - _p0 = 1 - } else { - _p0 = 0 - } - r0, _, e1 := syscall.Syscall(procOpenEventW.Addr(), 3, uintptr(desiredAccess), uintptr(_p0), uintptr(unsafe.Pointer(name))) - handle = Handle(r0) - if handle == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetEvent(event Handle) (err error) { - r1, _, e1 := syscall.Syscall(procSetEvent.Addr(), 1, uintptr(event), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ResetEvent(event Handle) (err error) { - r1, _, e1 := syscall.Syscall(procResetEvent.Addr(), 1, uintptr(event), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func PulseEvent(event Handle) (err error) { - r1, _, e1 := syscall.Syscall(procPulseEvent.Addr(), 1, uintptr(event), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DefineDosDevice(flags uint32, deviceName *uint16, targetPath *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procDefineDosDeviceW.Addr(), 3, uintptr(flags), uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DeleteVolumeMountPoint(volumeMountPoint *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procDeleteVolumeMountPointW.Addr(), 1, uintptr(unsafe.Pointer(volumeMountPoint)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindFirstVolume(volumeName *uint16, bufferLength uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procFindFirstVolumeW.Addr(), 2, uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength), 0) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindFirstVolumeMountPoint(rootPathName *uint16, volumeMountPoint *uint16, bufferLength uint32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procFindFirstVolumeMountPointW.Addr(), 3, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength)) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindNextVolume(findVolume Handle, volumeName *uint16, bufferLength uint32) (err error) { - r1, _, e1 := syscall.Syscall(procFindNextVolumeW.Addr(), 3, uintptr(findVolume), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferLength)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindNextVolumeMountPoint(findVolumeMountPoint Handle, volumeMountPoint *uint16, bufferLength uint32) (err error) { - r1, _, e1 := syscall.Syscall(procFindNextVolumeMountPointW.Addr(), 3, uintptr(findVolumeMountPoint), uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(bufferLength)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindVolumeClose(findVolume Handle) (err error) { - r1, _, e1 := syscall.Syscall(procFindVolumeClose.Addr(), 1, uintptr(findVolume), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FindVolumeMountPointClose(findVolumeMountPoint Handle) (err error) { - r1, _, e1 := syscall.Syscall(procFindVolumeMountPointClose.Addr(), 1, uintptr(findVolumeMountPoint), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetDriveType(rootPathName *uint16) (driveType uint32) { - r0, _, _ := syscall.Syscall(procGetDriveTypeW.Addr(), 1, uintptr(unsafe.Pointer(rootPathName)), 0, 0) - driveType = uint32(r0) - return -} - -func GetLogicalDrives() (drivesBitMask uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetLogicalDrives.Addr(), 0, 0, 0, 0) - drivesBitMask = uint32(r0) - if drivesBitMask == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetLogicalDriveStrings(bufferLength uint32, buffer *uint16) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procGetLogicalDriveStringsW.Addr(), 2, uintptr(bufferLength), uintptr(unsafe.Pointer(buffer)), 0) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVolumeInformation(rootPathName *uint16, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procGetVolumeInformationW.Addr(), 8, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVolumeInformationByHandle(file Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procGetVolumeInformationByHandleW.Addr(), 8, uintptr(file), uintptr(unsafe.Pointer(volumeNameBuffer)), uintptr(volumeNameSize), uintptr(unsafe.Pointer(volumeNameSerialNumber)), uintptr(unsafe.Pointer(maximumComponentLength)), uintptr(unsafe.Pointer(fileSystemFlags)), uintptr(unsafe.Pointer(fileSystemNameBuffer)), uintptr(fileSystemNameSize), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetVolumeNameForVolumeMountPointW.Addr(), 3, uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)), uintptr(bufferlength)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVolumePathName(fileName *uint16, volumePathName *uint16, bufferLength uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetVolumePathNameW.Addr(), 3, uintptr(unsafe.Pointer(fileName)), uintptr(unsafe.Pointer(volumePathName)), uintptr(bufferLength)) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetVolumePathNamesForVolumeName(volumeName *uint16, volumePathNames *uint16, bufferLength uint32, returnLength *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetVolumePathNamesForVolumeNameW.Addr(), 4, uintptr(unsafe.Pointer(volumeName)), uintptr(unsafe.Pointer(volumePathNames)), uintptr(bufferLength), uintptr(unsafe.Pointer(returnLength)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func QueryDosDevice(deviceName *uint16, targetPath *uint16, max uint32) (n uint32, err error) { - r0, _, e1 := syscall.Syscall(procQueryDosDeviceW.Addr(), 3, uintptr(unsafe.Pointer(deviceName)), uintptr(unsafe.Pointer(targetPath)), uintptr(max)) - n = uint32(r0) - if n == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetVolumeLabel(rootPathName *uint16, volumeName *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procSetVolumeLabelW.Addr(), 2, uintptr(unsafe.Pointer(rootPathName)), uintptr(unsafe.Pointer(volumeName)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func SetVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16) (err error) { - r1, _, e1 := syscall.Syscall(procSetVolumeMountPointW.Addr(), 2, uintptr(unsafe.Pointer(volumeMountPoint)), uintptr(unsafe.Pointer(volumeName)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSAStartup(verreq uint32, data *WSAData) (sockerr error) { - r0, _, _ := syscall.Syscall(procWSAStartup.Addr(), 2, uintptr(verreq), uintptr(unsafe.Pointer(data)), 0) - if r0 != 0 { - sockerr = syscall.Errno(r0) - } - return -} - -func WSACleanup() (err error) { - r1, _, e1 := syscall.Syscall(procWSACleanup.Addr(), 0, 0, 0, 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) { - r1, _, e1 := syscall.Syscall9(procWSAIoctl.Addr(), 9, uintptr(s), uintptr(iocc), uintptr(unsafe.Pointer(inbuf)), uintptr(cbif), uintptr(unsafe.Pointer(outbuf)), uintptr(cbob), uintptr(unsafe.Pointer(cbbr)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine)) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func socket(af int32, typ int32, protocol int32) (handle Handle, err error) { - r0, _, e1 := syscall.Syscall(procsocket.Addr(), 3, uintptr(af), uintptr(typ), uintptr(protocol)) - handle = Handle(r0) - if handle == InvalidHandle { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) { - r1, _, e1 := syscall.Syscall6(procsetsockopt.Addr(), 5, uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(optlen), 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) { - r1, _, e1 := syscall.Syscall6(procgetsockopt.Addr(), 5, uintptr(s), uintptr(level), uintptr(optname), uintptr(unsafe.Pointer(optval)), uintptr(unsafe.Pointer(optlen)), 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) { - r1, _, e1 := syscall.Syscall(procbind.Addr(), 3, uintptr(s), uintptr(name), uintptr(namelen)) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func connect(s Handle, name unsafe.Pointer, namelen int32) (err error) { - r1, _, e1 := syscall.Syscall(procconnect.Addr(), 3, uintptr(s), uintptr(name), uintptr(namelen)) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) { - r1, _, e1 := syscall.Syscall(procgetsockname.Addr(), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) { - r1, _, e1 := syscall.Syscall(procgetpeername.Addr(), 3, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func listen(s Handle, backlog int32) (err error) { - r1, _, e1 := syscall.Syscall(proclisten.Addr(), 2, uintptr(s), uintptr(backlog), 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func shutdown(s Handle, how int32) (err error) { - r1, _, e1 := syscall.Syscall(procshutdown.Addr(), 2, uintptr(s), uintptr(how), 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Closesocket(s Handle) (err error) { - r1, _, e1 := syscall.Syscall(procclosesocket.Addr(), 1, uintptr(s), 0, 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) { - r1, _, e1 := syscall.Syscall9(procAcceptEx.Addr(), 8, uintptr(ls), uintptr(as), uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(overlapped)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetAcceptExSockaddrs(buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, lrsa **RawSockaddrAny, lrsalen *int32, rrsa **RawSockaddrAny, rrsalen *int32) { - syscall.Syscall9(procGetAcceptExSockaddrs.Addr(), 8, uintptr(unsafe.Pointer(buf)), uintptr(rxdatalen), uintptr(laddrlen), uintptr(raddrlen), uintptr(unsafe.Pointer(lrsa)), uintptr(unsafe.Pointer(lrsalen)), uintptr(unsafe.Pointer(rrsa)), uintptr(unsafe.Pointer(rrsalen)), 0) - return -} - -func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) { - r1, _, e1 := syscall.Syscall9(procWSARecv.Addr(), 7, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0, 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) { - r1, _, e1 := syscall.Syscall9(procWSASend.Addr(), 7, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine)), 0, 0) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) { - r1, _, e1 := syscall.Syscall9(procWSARecvFrom.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(recvd)), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine))) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) { - r1, _, e1 := syscall.Syscall9(procWSASendTo.Addr(), 9, uintptr(s), uintptr(unsafe.Pointer(bufs)), uintptr(bufcnt), uintptr(unsafe.Pointer(sent)), uintptr(flags), uintptr(unsafe.Pointer(to)), uintptr(tolen), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(croutine))) - if r1 == socket_error { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetHostByName(name string) (h *Hostent, err error) { - var _p0 *byte - _p0, err = syscall.BytePtrFromString(name) - if err != nil { - return - } - return _GetHostByName(_p0) -} - -func _GetHostByName(name *byte) (h *Hostent, err error) { - r0, _, e1 := syscall.Syscall(procgethostbyname.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0) - h = (*Hostent)(unsafe.Pointer(r0)) - if h == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetServByName(name string, proto string) (s *Servent, err error) { - var _p0 *byte - _p0, err = syscall.BytePtrFromString(name) - if err != nil { - return - } - var _p1 *byte - _p1, err = syscall.BytePtrFromString(proto) - if err != nil { - return - } - return _GetServByName(_p0, _p1) -} - -func _GetServByName(name *byte, proto *byte) (s *Servent, err error) { - r0, _, e1 := syscall.Syscall(procgetservbyname.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(proto)), 0) - s = (*Servent)(unsafe.Pointer(r0)) - if s == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func Ntohs(netshort uint16) (u uint16) { - r0, _, _ := syscall.Syscall(procntohs.Addr(), 1, uintptr(netshort), 0, 0) - u = uint16(r0) - return -} - -func GetProtoByName(name string) (p *Protoent, err error) { - var _p0 *byte - _p0, err = syscall.BytePtrFromString(name) - if err != nil { - return - } - return _GetProtoByName(_p0) -} - -func _GetProtoByName(name *byte) (p *Protoent, err error) { - r0, _, e1 := syscall.Syscall(procgetprotobyname.Addr(), 1, uintptr(unsafe.Pointer(name)), 0, 0) - p = (*Protoent)(unsafe.Pointer(r0)) - if p == nil { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func DnsQuery(name string, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) { - var _p0 *uint16 - _p0, status = syscall.UTF16PtrFromString(name) - if status != nil { - return - } - return _DnsQuery(_p0, qtype, options, extra, qrs, pr) -} - -func _DnsQuery(name *uint16, qtype uint16, options uint32, extra *byte, qrs **DNSRecord, pr *byte) (status error) { - r0, _, _ := syscall.Syscall6(procDnsQuery_W.Addr(), 6, uintptr(unsafe.Pointer(name)), uintptr(qtype), uintptr(options), uintptr(unsafe.Pointer(extra)), uintptr(unsafe.Pointer(qrs)), uintptr(unsafe.Pointer(pr))) - if r0 != 0 { - status = syscall.Errno(r0) - } - return -} - -func DnsRecordListFree(rl *DNSRecord, freetype uint32) { - syscall.Syscall(procDnsRecordListFree.Addr(), 2, uintptr(unsafe.Pointer(rl)), uintptr(freetype), 0) - return -} - -func DnsNameCompare(name1 *uint16, name2 *uint16) (same bool) { - r0, _, _ := syscall.Syscall(procDnsNameCompare_W.Addr(), 2, uintptr(unsafe.Pointer(name1)), uintptr(unsafe.Pointer(name2)), 0) - same = r0 != 0 - return -} - -func GetAddrInfoW(nodename *uint16, servicename *uint16, hints *AddrinfoW, result **AddrinfoW) (sockerr error) { - r0, _, _ := syscall.Syscall6(procGetAddrInfoW.Addr(), 4, uintptr(unsafe.Pointer(nodename)), uintptr(unsafe.Pointer(servicename)), uintptr(unsafe.Pointer(hints)), uintptr(unsafe.Pointer(result)), 0, 0) - if r0 != 0 { - sockerr = syscall.Errno(r0) - } - return -} - -func FreeAddrInfoW(addrinfo *AddrinfoW) { - syscall.Syscall(procFreeAddrInfoW.Addr(), 1, uintptr(unsafe.Pointer(addrinfo)), 0, 0) - return -} - -func GetIfEntry(pIfRow *MibIfRow) (errcode error) { - r0, _, _ := syscall.Syscall(procGetIfEntry.Addr(), 1, uintptr(unsafe.Pointer(pIfRow)), 0, 0) - if r0 != 0 { - errcode = syscall.Errno(r0) - } - return -} - -func GetAdaptersInfo(ai *IpAdapterInfo, ol *uint32) (errcode error) { - r0, _, _ := syscall.Syscall(procGetAdaptersInfo.Addr(), 2, uintptr(unsafe.Pointer(ai)), uintptr(unsafe.Pointer(ol)), 0) - if r0 != 0 { - errcode = syscall.Errno(r0) - } - return -} - -func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) { - r1, _, e1 := syscall.Syscall(procSetFileCompletionNotificationModes.Addr(), 2, uintptr(handle), uintptr(flags), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func WSAEnumProtocols(protocols *int32, protocolBuffer *WSAProtocolInfo, bufferLength *uint32) (n int32, err error) { - r0, _, e1 := syscall.Syscall(procWSAEnumProtocolsW.Addr(), 3, uintptr(unsafe.Pointer(protocols)), uintptr(unsafe.Pointer(protocolBuffer)), uintptr(unsafe.Pointer(bufferLength))) - n = int32(r0) - if n == -1 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) { - r0, _, _ := syscall.Syscall6(procGetAdaptersAddresses.Addr(), 5, uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)), 0) - if r0 != 0 { - errcode = syscall.Errno(r0) - } - return -} - -func GetACP() (acp uint32) { - r0, _, _ := syscall.Syscall(procGetACP.Addr(), 0, 0, 0, 0) - acp = uint32(r0) - return -} - -func MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error) { - r0, _, e1 := syscall.Syscall6(procMultiByteToWideChar.Addr(), 6, uintptr(codePage), uintptr(dwFlags), uintptr(unsafe.Pointer(str)), uintptr(nstr), uintptr(unsafe.Pointer(wchar)), uintptr(nwchar)) - nwrite = int32(r0) - if nwrite == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func TranslateName(accName *uint16, accNameFormat uint32, desiredNameFormat uint32, translatedName *uint16, nSize *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procTranslateNameW.Addr(), 5, uintptr(unsafe.Pointer(accName)), uintptr(accNameFormat), uintptr(desiredNameFormat), uintptr(unsafe.Pointer(translatedName)), uintptr(unsafe.Pointer(nSize)), 0) - if r1&0xff == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetUserNameEx(nameFormat uint32, nameBuffre *uint16, nSize *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetUserNameExW.Addr(), 3, uintptr(nameFormat), uintptr(unsafe.Pointer(nameBuffre)), uintptr(unsafe.Pointer(nSize))) - if r1&0xff == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func NetUserGetInfo(serverName *uint16, userName *uint16, level uint32, buf **byte) (neterr error) { - r0, _, _ := syscall.Syscall6(procNetUserGetInfo.Addr(), 4, uintptr(unsafe.Pointer(serverName)), uintptr(unsafe.Pointer(userName)), uintptr(level), uintptr(unsafe.Pointer(buf)), 0, 0) - if r0 != 0 { - neterr = syscall.Errno(r0) - } - return -} - -func NetGetJoinInformation(server *uint16, name **uint16, bufType *uint32) (neterr error) { - r0, _, _ := syscall.Syscall(procNetGetJoinInformation.Addr(), 3, uintptr(unsafe.Pointer(server)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(bufType))) - if r0 != 0 { - neterr = syscall.Errno(r0) - } - return -} - -func NetApiBufferFree(buf *byte) (neterr error) { - r0, _, _ := syscall.Syscall(procNetApiBufferFree.Addr(), 1, uintptr(unsafe.Pointer(buf)), 0, 0) - if r0 != 0 { - neterr = syscall.Errno(r0) - } - return -} - -func LookupAccountSid(systemName *uint16, sid *SID, name *uint16, nameLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procLookupAccountSidW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func LookupAccountName(systemName *uint16, accountName *uint16, sid *SID, sidLen *uint32, refdDomainName *uint16, refdDomainNameLen *uint32, use *uint32) (err error) { - r1, _, e1 := syscall.Syscall9(procLookupAccountNameW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(accountName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sidLen)), uintptr(unsafe.Pointer(refdDomainName)), uintptr(unsafe.Pointer(refdDomainNameLen)), uintptr(unsafe.Pointer(use)), 0, 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ConvertSidToStringSid(sid *SID, stringSid **uint16) (err error) { - r1, _, e1 := syscall.Syscall(procConvertSidToStringSidW.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(stringSid)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func ConvertStringSidToSid(stringSid *uint16, sid **SID) (err error) { - r1, _, e1 := syscall.Syscall(procConvertStringSidToSidW.Addr(), 2, uintptr(unsafe.Pointer(stringSid)), uintptr(unsafe.Pointer(sid)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetLengthSid(sid *SID) (len uint32) { - r0, _, _ := syscall.Syscall(procGetLengthSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0) - len = uint32(r0) - return -} - -func CopySid(destSidLen uint32, destSid *SID, srcSid *SID) (err error) { - r1, _, e1 := syscall.Syscall(procCopySid.Addr(), 3, uintptr(destSidLen), uintptr(unsafe.Pointer(destSid)), uintptr(unsafe.Pointer(srcSid))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func AllocateAndInitializeSid(identAuth *SidIdentifierAuthority, subAuth byte, subAuth0 uint32, subAuth1 uint32, subAuth2 uint32, subAuth3 uint32, subAuth4 uint32, subAuth5 uint32, subAuth6 uint32, subAuth7 uint32, sid **SID) (err error) { - r1, _, e1 := syscall.Syscall12(procAllocateAndInitializeSid.Addr(), 11, uintptr(unsafe.Pointer(identAuth)), uintptr(subAuth), uintptr(subAuth0), uintptr(subAuth1), uintptr(subAuth2), uintptr(subAuth3), uintptr(subAuth4), uintptr(subAuth5), uintptr(subAuth6), uintptr(subAuth7), uintptr(unsafe.Pointer(sid)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func FreeSid(sid *SID) (err error) { - r1, _, e1 := syscall.Syscall(procFreeSid.Addr(), 1, uintptr(unsafe.Pointer(sid)), 0, 0) - if r1 != 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func EqualSid(sid1 *SID, sid2 *SID) (isEqual bool) { - r0, _, _ := syscall.Syscall(procEqualSid.Addr(), 2, uintptr(unsafe.Pointer(sid1)), uintptr(unsafe.Pointer(sid2)), 0) - isEqual = r0 != 0 - return -} - -func checkTokenMembership(tokenHandle Token, sidToCheck *SID, isMember *int32) (err error) { - r1, _, e1 := syscall.Syscall(procCheckTokenMembership.Addr(), 3, uintptr(tokenHandle), uintptr(unsafe.Pointer(sidToCheck)), uintptr(unsafe.Pointer(isMember))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func OpenProcessToken(h Handle, access uint32, token *Token) (err error) { - r1, _, e1 := syscall.Syscall(procOpenProcessToken.Addr(), 3, uintptr(h), uintptr(access), uintptr(unsafe.Pointer(token))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetTokenInformation(t Token, infoClass uint32, info *byte, infoLen uint32, returnedLen *uint32) (err error) { - r1, _, e1 := syscall.Syscall6(procGetTokenInformation.Addr(), 5, uintptr(t), uintptr(infoClass), uintptr(unsafe.Pointer(info)), uintptr(infoLen), uintptr(unsafe.Pointer(returnedLen)), 0) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} - -func GetUserProfileDirectory(t Token, dir *uint16, dirLen *uint32) (err error) { - r1, _, e1 := syscall.Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen))) - if r1 == 0 { - if e1 != 0 { - err = errnoErr(e1) - } else { - err = syscall.EINVAL - } - } - return -} diff --git a/vendor/google.golang.org/appengine/LICENSE b/vendor/google.golang.org/appengine/LICENSE deleted file mode 100644 index d645695..0000000 --- a/vendor/google.golang.org/appengine/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/google.golang.org/appengine/internal/api.go b/vendor/google.golang.org/appengine/internal/api.go deleted file mode 100644 index ec5aa59..0000000 --- a/vendor/google.golang.org/appengine/internal/api.go +++ /dev/null @@ -1,646 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build !appengine - -package internal - -import ( - "bytes" - "errors" - "fmt" - "io/ioutil" - "log" - "net" - "net/http" - "net/url" - "os" - "runtime" - "strconv" - "strings" - "sync" - "sync/atomic" - "time" - - "github.com/golang/protobuf/proto" - netcontext "golang.org/x/net/context" - - basepb "google.golang.org/appengine/internal/base" - logpb "google.golang.org/appengine/internal/log" - remotepb "google.golang.org/appengine/internal/remote_api" -) - -const ( - apiPath = "/rpc_http" -) - -var ( - // Incoming headers. - ticketHeader = http.CanonicalHeaderKey("X-AppEngine-API-Ticket") - dapperHeader = http.CanonicalHeaderKey("X-Google-DapperTraceInfo") - traceHeader = http.CanonicalHeaderKey("X-Cloud-Trace-Context") - curNamespaceHeader = http.CanonicalHeaderKey("X-AppEngine-Current-Namespace") - userIPHeader = http.CanonicalHeaderKey("X-AppEngine-User-IP") - remoteAddrHeader = http.CanonicalHeaderKey("X-AppEngine-Remote-Addr") - - // Outgoing headers. - apiEndpointHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Endpoint") - apiEndpointHeaderValue = []string{"app-engine-apis"} - apiMethodHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Method") - apiMethodHeaderValue = []string{"/VMRemoteAPI.CallRemoteAPI"} - apiDeadlineHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Deadline") - apiContentType = http.CanonicalHeaderKey("Content-Type") - apiContentTypeValue = []string{"application/octet-stream"} - logFlushHeader = http.CanonicalHeaderKey("X-AppEngine-Log-Flush-Count") - - apiHTTPClient = &http.Client{ - Transport: &http.Transport{ - Proxy: http.ProxyFromEnvironment, - Dial: limitDial, - }, - } -) - -func apiURL() *url.URL { - host, port := "appengine.googleapis.internal", "10001" - if h := os.Getenv("API_HOST"); h != "" { - host = h - } - if p := os.Getenv("API_PORT"); p != "" { - port = p - } - return &url.URL{ - Scheme: "http", - Host: host + ":" + port, - Path: apiPath, - } -} - -func handleHTTP(w http.ResponseWriter, r *http.Request) { - c := &context{ - req: r, - outHeader: w.Header(), - apiURL: apiURL(), - } - stopFlushing := make(chan int) - - ctxs.Lock() - ctxs.m[r] = c - ctxs.Unlock() - defer func() { - ctxs.Lock() - delete(ctxs.m, r) - ctxs.Unlock() - }() - - // Patch up RemoteAddr so it looks reasonable. - if addr := r.Header.Get(userIPHeader); addr != "" { - r.RemoteAddr = addr - } else if addr = r.Header.Get(remoteAddrHeader); addr != "" { - r.RemoteAddr = addr - } else { - // Should not normally reach here, but pick a sensible default anyway. - r.RemoteAddr = "127.0.0.1" - } - // The address in the headers will most likely be of these forms: - // 123.123.123.123 - // 2001:db8::1 - // net/http.Request.RemoteAddr is specified to be in "IP:port" form. - if _, _, err := net.SplitHostPort(r.RemoteAddr); err != nil { - // Assume the remote address is only a host; add a default port. - r.RemoteAddr = net.JoinHostPort(r.RemoteAddr, "80") - } - - // Start goroutine responsible for flushing app logs. - // This is done after adding c to ctx.m (and stopped before removing it) - // because flushing logs requires making an API call. - go c.logFlusher(stopFlushing) - - executeRequestSafely(c, r) - c.outHeader = nil // make sure header changes aren't respected any more - - stopFlushing <- 1 // any logging beyond this point will be dropped - - // Flush any pending logs asynchronously. - c.pendingLogs.Lock() - flushes := c.pendingLogs.flushes - if len(c.pendingLogs.lines) > 0 { - flushes++ - } - c.pendingLogs.Unlock() - go c.flushLog(false) - w.Header().Set(logFlushHeader, strconv.Itoa(flushes)) - - // Avoid nil Write call if c.Write is never called. - if c.outCode != 0 { - w.WriteHeader(c.outCode) - } - if c.outBody != nil { - w.Write(c.outBody) - } -} - -func executeRequestSafely(c *context, r *http.Request) { - defer func() { - if x := recover(); x != nil { - logf(c, 4, "%s", renderPanic(x)) // 4 == critical - c.outCode = 500 - } - }() - - http.DefaultServeMux.ServeHTTP(c, r) -} - -func renderPanic(x interface{}) string { - buf := make([]byte, 16<<10) // 16 KB should be plenty - buf = buf[:runtime.Stack(buf, false)] - - // Remove the first few stack frames: - // this func - // the recover closure in the caller - // That will root the stack trace at the site of the panic. - const ( - skipStart = "internal.renderPanic" - skipFrames = 2 - ) - start := bytes.Index(buf, []byte(skipStart)) - p := start - for i := 0; i < skipFrames*2 && p+1 < len(buf); i++ { - p = bytes.IndexByte(buf[p+1:], '\n') + p + 1 - if p < 0 { - break - } - } - if p >= 0 { - // buf[start:p+1] is the block to remove. - // Copy buf[p+1:] over buf[start:] and shrink buf. - copy(buf[start:], buf[p+1:]) - buf = buf[:len(buf)-(p+1-start)] - } - - // Add panic heading. - head := fmt.Sprintf("panic: %v\n\n", x) - if len(head) > len(buf) { - // Extremely unlikely to happen. - return head - } - copy(buf[len(head):], buf) - copy(buf, head) - - return string(buf) -} - -var ctxs = struct { - sync.Mutex - m map[*http.Request]*context - bg *context // background context, lazily initialized - // dec is used by tests to decorate the netcontext.Context returned - // for a given request. This allows tests to add overrides (such as - // WithAppIDOverride) to the context. The map is nil outside tests. - dec map[*http.Request]func(netcontext.Context) netcontext.Context -}{ - m: make(map[*http.Request]*context), -} - -// context represents the context of an in-flight HTTP request. -// It implements the appengine.Context and http.ResponseWriter interfaces. -type context struct { - req *http.Request - - outCode int - outHeader http.Header - outBody []byte - - pendingLogs struct { - sync.Mutex - lines []*logpb.UserAppLogLine - flushes int - } - - apiURL *url.URL -} - -var contextKey = "holds a *context" - -func fromContext(ctx netcontext.Context) *context { - c, _ := ctx.Value(&contextKey).(*context) - return c -} - -func withContext(parent netcontext.Context, c *context) netcontext.Context { - ctx := netcontext.WithValue(parent, &contextKey, c) - if ns := c.req.Header.Get(curNamespaceHeader); ns != "" { - ctx = withNamespace(ctx, ns) - } - return ctx -} - -func toContext(c *context) netcontext.Context { - return withContext(netcontext.Background(), c) -} - -func IncomingHeaders(ctx netcontext.Context) http.Header { - if c := fromContext(ctx); c != nil { - return c.req.Header - } - return nil -} - -func WithContext(parent netcontext.Context, req *http.Request) netcontext.Context { - ctxs.Lock() - c := ctxs.m[req] - d := ctxs.dec[req] - ctxs.Unlock() - - if d != nil { - parent = d(parent) - } - - if c == nil { - // Someone passed in an http.Request that is not in-flight. - // We panic here rather than panicking at a later point - // so that stack traces will be more sensible. - log.Panic("appengine: NewContext passed an unknown http.Request") - } - return withContext(parent, c) -} - -func BackgroundContext() netcontext.Context { - ctxs.Lock() - defer ctxs.Unlock() - - if ctxs.bg != nil { - return toContext(ctxs.bg) - } - - // Compute background security ticket. - appID := partitionlessAppID() - escAppID := strings.Replace(strings.Replace(appID, ":", "_", -1), ".", "_", -1) - majVersion := VersionID(nil) - if i := strings.Index(majVersion, "."); i > 0 { - majVersion = majVersion[:i] - } - ticket := fmt.Sprintf("%s/%s.%s.%s", escAppID, ModuleName(nil), majVersion, InstanceID()) - - ctxs.bg = &context{ - req: &http.Request{ - Header: http.Header{ - ticketHeader: []string{ticket}, - }, - }, - apiURL: apiURL(), - } - - // TODO(dsymonds): Wire up the shutdown handler to do a final flush. - go ctxs.bg.logFlusher(make(chan int)) - - return toContext(ctxs.bg) -} - -// RegisterTestRequest registers the HTTP request req for testing, such that -// any API calls are sent to the provided URL. It returns a closure to delete -// the registration. -// It should only be used by aetest package. -func RegisterTestRequest(req *http.Request, apiURL *url.URL, decorate func(netcontext.Context) netcontext.Context) func() { - c := &context{ - req: req, - apiURL: apiURL, - } - ctxs.Lock() - defer ctxs.Unlock() - if _, ok := ctxs.m[req]; ok { - log.Panic("req already associated with context") - } - if _, ok := ctxs.dec[req]; ok { - log.Panic("req already associated with context") - } - if ctxs.dec == nil { - ctxs.dec = make(map[*http.Request]func(netcontext.Context) netcontext.Context) - } - ctxs.m[req] = c - ctxs.dec[req] = decorate - - return func() { - ctxs.Lock() - delete(ctxs.m, req) - delete(ctxs.dec, req) - ctxs.Unlock() - } -} - -var errTimeout = &CallError{ - Detail: "Deadline exceeded", - Code: int32(remotepb.RpcError_CANCELLED), - Timeout: true, -} - -func (c *context) Header() http.Header { return c.outHeader } - -// Copied from $GOROOT/src/pkg/net/http/transfer.go. Some response status -// codes do not permit a response body (nor response entity headers such as -// Content-Length, Content-Type, etc). -func bodyAllowedForStatus(status int) bool { - switch { - case status >= 100 && status <= 199: - return false - case status == 204: - return false - case status == 304: - return false - } - return true -} - -func (c *context) Write(b []byte) (int, error) { - if c.outCode == 0 { - c.WriteHeader(http.StatusOK) - } - if len(b) > 0 && !bodyAllowedForStatus(c.outCode) { - return 0, http.ErrBodyNotAllowed - } - c.outBody = append(c.outBody, b...) - return len(b), nil -} - -func (c *context) WriteHeader(code int) { - if c.outCode != 0 { - logf(c, 3, "WriteHeader called multiple times on request.") // error level - return - } - c.outCode = code -} - -func (c *context) post(body []byte, timeout time.Duration) (b []byte, err error) { - hreq := &http.Request{ - Method: "POST", - URL: c.apiURL, - Header: http.Header{ - apiEndpointHeader: apiEndpointHeaderValue, - apiMethodHeader: apiMethodHeaderValue, - apiContentType: apiContentTypeValue, - apiDeadlineHeader: []string{strconv.FormatFloat(timeout.Seconds(), 'f', -1, 64)}, - }, - Body: ioutil.NopCloser(bytes.NewReader(body)), - ContentLength: int64(len(body)), - Host: c.apiURL.Host, - } - if info := c.req.Header.Get(dapperHeader); info != "" { - hreq.Header.Set(dapperHeader, info) - } - if info := c.req.Header.Get(traceHeader); info != "" { - hreq.Header.Set(traceHeader, info) - } - - tr := apiHTTPClient.Transport.(*http.Transport) - - var timedOut int32 // atomic; set to 1 if timed out - t := time.AfterFunc(timeout, func() { - atomic.StoreInt32(&timedOut, 1) - tr.CancelRequest(hreq) - }) - defer t.Stop() - defer func() { - // Check if timeout was exceeded. - if atomic.LoadInt32(&timedOut) != 0 { - err = errTimeout - } - }() - - hresp, err := apiHTTPClient.Do(hreq) - if err != nil { - return nil, &CallError{ - Detail: fmt.Sprintf("service bridge HTTP failed: %v", err), - Code: int32(remotepb.RpcError_UNKNOWN), - } - } - defer hresp.Body.Close() - hrespBody, err := ioutil.ReadAll(hresp.Body) - if hresp.StatusCode != 200 { - return nil, &CallError{ - Detail: fmt.Sprintf("service bridge returned HTTP %d (%q)", hresp.StatusCode, hrespBody), - Code: int32(remotepb.RpcError_UNKNOWN), - } - } - if err != nil { - return nil, &CallError{ - Detail: fmt.Sprintf("service bridge response bad: %v", err), - Code: int32(remotepb.RpcError_UNKNOWN), - } - } - return hrespBody, nil -} - -func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error { - if ns := NamespaceFromContext(ctx); ns != "" { - if fn, ok := NamespaceMods[service]; ok { - fn(in, ns) - } - } - - if f, ctx, ok := callOverrideFromContext(ctx); ok { - return f(ctx, service, method, in, out) - } - - // Handle already-done contexts quickly. - select { - case <-ctx.Done(): - return ctx.Err() - default: - } - - c := fromContext(ctx) - if c == nil { - // Give a good error message rather than a panic lower down. - return errors.New("not an App Engine context") - } - - // Apply transaction modifications if we're in a transaction. - if t := transactionFromContext(ctx); t != nil { - if t.finished { - return errors.New("transaction context has expired") - } - applyTransaction(in, &t.transaction) - } - - // Default RPC timeout is 60s. - timeout := 60 * time.Second - if deadline, ok := ctx.Deadline(); ok { - timeout = deadline.Sub(time.Now()) - } - - data, err := proto.Marshal(in) - if err != nil { - return err - } - - ticket := c.req.Header.Get(ticketHeader) - req := &remotepb.Request{ - ServiceName: &service, - Method: &method, - Request: data, - RequestId: &ticket, - } - hreqBody, err := proto.Marshal(req) - if err != nil { - return err - } - - hrespBody, err := c.post(hreqBody, timeout) - if err != nil { - return err - } - - res := &remotepb.Response{} - if err := proto.Unmarshal(hrespBody, res); err != nil { - return err - } - if res.RpcError != nil { - ce := &CallError{ - Detail: res.RpcError.GetDetail(), - Code: *res.RpcError.Code, - } - switch remotepb.RpcError_ErrorCode(ce.Code) { - case remotepb.RpcError_CANCELLED, remotepb.RpcError_DEADLINE_EXCEEDED: - ce.Timeout = true - } - return ce - } - if res.ApplicationError != nil { - return &APIError{ - Service: *req.ServiceName, - Detail: res.ApplicationError.GetDetail(), - Code: *res.ApplicationError.Code, - } - } - if res.Exception != nil || res.JavaException != nil { - // This shouldn't happen, but let's be defensive. - return &CallError{ - Detail: "service bridge returned exception", - Code: int32(remotepb.RpcError_UNKNOWN), - } - } - return proto.Unmarshal(res.Response, out) -} - -func (c *context) Request() *http.Request { - return c.req -} - -func (c *context) addLogLine(ll *logpb.UserAppLogLine) { - // Truncate long log lines. - // TODO(dsymonds): Check if this is still necessary. - const lim = 8 << 10 - if len(*ll.Message) > lim { - suffix := fmt.Sprintf("...(length %d)", len(*ll.Message)) - ll.Message = proto.String((*ll.Message)[:lim-len(suffix)] + suffix) - } - - c.pendingLogs.Lock() - c.pendingLogs.lines = append(c.pendingLogs.lines, ll) - c.pendingLogs.Unlock() -} - -var logLevelName = map[int64]string{ - 0: "DEBUG", - 1: "INFO", - 2: "WARNING", - 3: "ERROR", - 4: "CRITICAL", -} - -func logf(c *context, level int64, format string, args ...interface{}) { - s := fmt.Sprintf(format, args...) - s = strings.TrimRight(s, "\n") // Remove any trailing newline characters. - c.addLogLine(&logpb.UserAppLogLine{ - TimestampUsec: proto.Int64(time.Now().UnixNano() / 1e3), - Level: &level, - Message: &s, - }) - log.Print(logLevelName[level] + ": " + s) -} - -// flushLog attempts to flush any pending logs to the appserver. -// It should not be called concurrently. -func (c *context) flushLog(force bool) (flushed bool) { - c.pendingLogs.Lock() - // Grab up to 30 MB. We can get away with up to 32 MB, but let's be cautious. - n, rem := 0, 30<<20 - for ; n < len(c.pendingLogs.lines); n++ { - ll := c.pendingLogs.lines[n] - // Each log line will require about 3 bytes of overhead. - nb := proto.Size(ll) + 3 - if nb > rem { - break - } - rem -= nb - } - lines := c.pendingLogs.lines[:n] - c.pendingLogs.lines = c.pendingLogs.lines[n:] - c.pendingLogs.Unlock() - - if len(lines) == 0 && !force { - // Nothing to flush. - return false - } - - rescueLogs := false - defer func() { - if rescueLogs { - c.pendingLogs.Lock() - c.pendingLogs.lines = append(lines, c.pendingLogs.lines...) - c.pendingLogs.Unlock() - } - }() - - buf, err := proto.Marshal(&logpb.UserAppLogGroup{ - LogLine: lines, - }) - if err != nil { - log.Printf("internal.flushLog: marshaling UserAppLogGroup: %v", err) - rescueLogs = true - return false - } - - req := &logpb.FlushRequest{ - Logs: buf, - } - res := &basepb.VoidProto{} - c.pendingLogs.Lock() - c.pendingLogs.flushes++ - c.pendingLogs.Unlock() - if err := Call(toContext(c), "logservice", "Flush", req, res); err != nil { - log.Printf("internal.flushLog: Flush RPC: %v", err) - rescueLogs = true - return false - } - return true -} - -const ( - // Log flushing parameters. - flushInterval = 1 * time.Second - forceFlushInterval = 60 * time.Second -) - -func (c *context) logFlusher(stop <-chan int) { - lastFlush := time.Now() - tick := time.NewTicker(flushInterval) - for { - select { - case <-stop: - // Request finished. - tick.Stop() - return - case <-tick.C: - force := time.Now().Sub(lastFlush) > forceFlushInterval - if c.flushLog(force) { - lastFlush = time.Now() - } - } - } -} - -func ContextForTesting(req *http.Request) netcontext.Context { - return toContext(&context{req: req}) -} diff --git a/vendor/google.golang.org/appengine/internal/api_classic.go b/vendor/google.golang.org/appengine/internal/api_classic.go deleted file mode 100644 index 597f66e..0000000 --- a/vendor/google.golang.org/appengine/internal/api_classic.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright 2015 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build appengine - -package internal - -import ( - "errors" - "fmt" - "net/http" - "time" - - "appengine" - "appengine_internal" - basepb "appengine_internal/base" - - "github.com/golang/protobuf/proto" - netcontext "golang.org/x/net/context" -) - -var contextKey = "holds an appengine.Context" - -func fromContext(ctx netcontext.Context) appengine.Context { - c, _ := ctx.Value(&contextKey).(appengine.Context) - return c -} - -// This is only for classic App Engine adapters. -func ClassicContextFromContext(ctx netcontext.Context) appengine.Context { - return fromContext(ctx) -} - -func withContext(parent netcontext.Context, c appengine.Context) netcontext.Context { - ctx := netcontext.WithValue(parent, &contextKey, c) - - s := &basepb.StringProto{} - c.Call("__go__", "GetNamespace", &basepb.VoidProto{}, s, nil) - if ns := s.GetValue(); ns != "" { - ctx = NamespacedContext(ctx, ns) - } - - return ctx -} - -func IncomingHeaders(ctx netcontext.Context) http.Header { - if c := fromContext(ctx); c != nil { - if req, ok := c.Request().(*http.Request); ok { - return req.Header - } - } - return nil -} - -func WithContext(parent netcontext.Context, req *http.Request) netcontext.Context { - c := appengine.NewContext(req) - return withContext(parent, c) -} - -type testingContext struct { - appengine.Context - - req *http.Request -} - -func (t *testingContext) FullyQualifiedAppID() string { return "dev~testcontext" } -func (t *testingContext) Call(service, method string, _, _ appengine_internal.ProtoMessage, _ *appengine_internal.CallOptions) error { - if service == "__go__" && method == "GetNamespace" { - return nil - } - return fmt.Errorf("testingContext: unsupported Call") -} -func (t *testingContext) Request() interface{} { return t.req } - -func ContextForTesting(req *http.Request) netcontext.Context { - return withContext(netcontext.Background(), &testingContext{req: req}) -} - -func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error { - if ns := NamespaceFromContext(ctx); ns != "" { - if fn, ok := NamespaceMods[service]; ok { - fn(in, ns) - } - } - - if f, ctx, ok := callOverrideFromContext(ctx); ok { - return f(ctx, service, method, in, out) - } - - // Handle already-done contexts quickly. - select { - case <-ctx.Done(): - return ctx.Err() - default: - } - - c := fromContext(ctx) - if c == nil { - // Give a good error message rather than a panic lower down. - return errors.New("not an App Engine context") - } - - // Apply transaction modifications if we're in a transaction. - if t := transactionFromContext(ctx); t != nil { - if t.finished { - return errors.New("transaction context has expired") - } - applyTransaction(in, &t.transaction) - } - - var opts *appengine_internal.CallOptions - if d, ok := ctx.Deadline(); ok { - opts = &appengine_internal.CallOptions{ - Timeout: d.Sub(time.Now()), - } - } - - err := c.Call(service, method, in, out, opts) - switch v := err.(type) { - case *appengine_internal.APIError: - return &APIError{ - Service: v.Service, - Detail: v.Detail, - Code: v.Code, - } - case *appengine_internal.CallError: - return &CallError{ - Detail: v.Detail, - Code: v.Code, - Timeout: v.Timeout, - } - } - return err -} - -func handleHTTP(w http.ResponseWriter, r *http.Request) { - panic("handleHTTP called; this should be impossible") -} - -func logf(c appengine.Context, level int64, format string, args ...interface{}) { - var fn func(format string, args ...interface{}) - switch level { - case 0: - fn = c.Debugf - case 1: - fn = c.Infof - case 2: - fn = c.Warningf - case 3: - fn = c.Errorf - case 4: - fn = c.Criticalf - default: - // This shouldn't happen. - fn = c.Criticalf - } - fn(format, args...) -} diff --git a/vendor/google.golang.org/appengine/internal/api_common.go b/vendor/google.golang.org/appengine/internal/api_common.go deleted file mode 100644 index 2db33a7..0000000 --- a/vendor/google.golang.org/appengine/internal/api_common.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2015 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -import ( - "github.com/golang/protobuf/proto" - netcontext "golang.org/x/net/context" -) - -type CallOverrideFunc func(ctx netcontext.Context, service, method string, in, out proto.Message) error - -var callOverrideKey = "holds []CallOverrideFunc" - -func WithCallOverride(ctx netcontext.Context, f CallOverrideFunc) netcontext.Context { - // We avoid appending to any existing call override - // so we don't risk overwriting a popped stack below. - var cofs []CallOverrideFunc - if uf, ok := ctx.Value(&callOverrideKey).([]CallOverrideFunc); ok { - cofs = append(cofs, uf...) - } - cofs = append(cofs, f) - return netcontext.WithValue(ctx, &callOverrideKey, cofs) -} - -func callOverrideFromContext(ctx netcontext.Context) (CallOverrideFunc, netcontext.Context, bool) { - cofs, _ := ctx.Value(&callOverrideKey).([]CallOverrideFunc) - if len(cofs) == 0 { - return nil, nil, false - } - // We found a list of overrides; grab the last, and reconstitute a - // context that will hide it. - f := cofs[len(cofs)-1] - ctx = netcontext.WithValue(ctx, &callOverrideKey, cofs[:len(cofs)-1]) - return f, ctx, true -} - -type logOverrideFunc func(level int64, format string, args ...interface{}) - -var logOverrideKey = "holds a logOverrideFunc" - -func WithLogOverride(ctx netcontext.Context, f logOverrideFunc) netcontext.Context { - return netcontext.WithValue(ctx, &logOverrideKey, f) -} - -var appIDOverrideKey = "holds a string, being the full app ID" - -func WithAppIDOverride(ctx netcontext.Context, appID string) netcontext.Context { - return netcontext.WithValue(ctx, &appIDOverrideKey, appID) -} - -var namespaceKey = "holds the namespace string" - -func withNamespace(ctx netcontext.Context, ns string) netcontext.Context { - return netcontext.WithValue(ctx, &namespaceKey, ns) -} - -func NamespaceFromContext(ctx netcontext.Context) string { - // If there's no namespace, return the empty string. - ns, _ := ctx.Value(&namespaceKey).(string) - return ns -} - -// FullyQualifiedAppID returns the fully-qualified application ID. -// This may contain a partition prefix (e.g. "s~" for High Replication apps), -// or a domain prefix (e.g. "example.com:"). -func FullyQualifiedAppID(ctx netcontext.Context) string { - if id, ok := ctx.Value(&appIDOverrideKey).(string); ok { - return id - } - return fullyQualifiedAppID(ctx) -} - -func Logf(ctx netcontext.Context, level int64, format string, args ...interface{}) { - if f, ok := ctx.Value(&logOverrideKey).(logOverrideFunc); ok { - f(level, format, args...) - return - } - logf(fromContext(ctx), level, format, args...) -} - -// NamespacedContext wraps a Context to support namespaces. -func NamespacedContext(ctx netcontext.Context, namespace string) netcontext.Context { - return withNamespace(ctx, namespace) -} diff --git a/vendor/google.golang.org/appengine/internal/app_id.go b/vendor/google.golang.org/appengine/internal/app_id.go deleted file mode 100644 index 11df8c0..0000000 --- a/vendor/google.golang.org/appengine/internal/app_id.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -import ( - "strings" -) - -func parseFullAppID(appid string) (partition, domain, displayID string) { - if i := strings.Index(appid, "~"); i != -1 { - partition, appid = appid[:i], appid[i+1:] - } - if i := strings.Index(appid, ":"); i != -1 { - domain, appid = appid[:i], appid[i+1:] - } - return partition, domain, appid -} - -// appID returns "appid" or "domain.com:appid". -func appID(fullAppID string) string { - _, dom, dis := parseFullAppID(fullAppID) - if dom != "" { - return dom + ":" + dis - } - return dis -} diff --git a/vendor/google.golang.org/appengine/internal/base/api_base.pb.go b/vendor/google.golang.org/appengine/internal/base/api_base.pb.go deleted file mode 100644 index 36a1956..0000000 --- a/vendor/google.golang.org/appengine/internal/base/api_base.pb.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google.golang.org/appengine/internal/base/api_base.proto -// DO NOT EDIT! - -/* -Package base is a generated protocol buffer package. - -It is generated from these files: - google.golang.org/appengine/internal/base/api_base.proto - -It has these top-level messages: - StringProto - Integer32Proto - Integer64Proto - BoolProto - DoubleProto - BytesProto - VoidProto -*/ -package base - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type StringProto struct { - Value *string `protobuf:"bytes,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *StringProto) Reset() { *m = StringProto{} } -func (m *StringProto) String() string { return proto.CompactTextString(m) } -func (*StringProto) ProtoMessage() {} - -func (m *StringProto) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -type Integer32Proto struct { - Value *int32 `protobuf:"varint,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Integer32Proto) Reset() { *m = Integer32Proto{} } -func (m *Integer32Proto) String() string { return proto.CompactTextString(m) } -func (*Integer32Proto) ProtoMessage() {} - -func (m *Integer32Proto) GetValue() int32 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type Integer64Proto struct { - Value *int64 `protobuf:"varint,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Integer64Proto) Reset() { *m = Integer64Proto{} } -func (m *Integer64Proto) String() string { return proto.CompactTextString(m) } -func (*Integer64Proto) ProtoMessage() {} - -func (m *Integer64Proto) GetValue() int64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type BoolProto struct { - Value *bool `protobuf:"varint,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *BoolProto) Reset() { *m = BoolProto{} } -func (m *BoolProto) String() string { return proto.CompactTextString(m) } -func (*BoolProto) ProtoMessage() {} - -func (m *BoolProto) GetValue() bool { - if m != nil && m.Value != nil { - return *m.Value - } - return false -} - -type DoubleProto struct { - Value *float64 `protobuf:"fixed64,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DoubleProto) Reset() { *m = DoubleProto{} } -func (m *DoubleProto) String() string { return proto.CompactTextString(m) } -func (*DoubleProto) ProtoMessage() {} - -func (m *DoubleProto) GetValue() float64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type BytesProto struct { - Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *BytesProto) Reset() { *m = BytesProto{} } -func (m *BytesProto) String() string { return proto.CompactTextString(m) } -func (*BytesProto) ProtoMessage() {} - -func (m *BytesProto) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -type VoidProto struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *VoidProto) Reset() { *m = VoidProto{} } -func (m *VoidProto) String() string { return proto.CompactTextString(m) } -func (*VoidProto) ProtoMessage() {} diff --git a/vendor/google.golang.org/appengine/internal/datastore/datastore_v3.pb.go b/vendor/google.golang.org/appengine/internal/datastore/datastore_v3.pb.go deleted file mode 100644 index 8613cb7..0000000 --- a/vendor/google.golang.org/appengine/internal/datastore/datastore_v3.pb.go +++ /dev/null @@ -1,2778 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google.golang.org/appengine/internal/datastore/datastore_v3.proto -// DO NOT EDIT! - -/* -Package datastore is a generated protocol buffer package. - -It is generated from these files: - google.golang.org/appengine/internal/datastore/datastore_v3.proto - -It has these top-level messages: - Action - PropertyValue - Property - Path - Reference - User - EntityProto - CompositeProperty - Index - CompositeIndex - IndexPostfix - IndexPosition - Snapshot - InternalHeader - Transaction - Query - CompiledQuery - CompiledCursor - Cursor - Error - Cost - GetRequest - GetResponse - PutRequest - PutResponse - TouchRequest - TouchResponse - DeleteRequest - DeleteResponse - NextRequest - QueryResult - AllocateIdsRequest - AllocateIdsResponse - CompositeIndices - AddActionsRequest - AddActionsResponse - BeginTransactionRequest - CommitResponse -*/ -package datastore - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type Property_Meaning int32 - -const ( - Property_NO_MEANING Property_Meaning = 0 - Property_BLOB Property_Meaning = 14 - Property_TEXT Property_Meaning = 15 - Property_BYTESTRING Property_Meaning = 16 - Property_ATOM_CATEGORY Property_Meaning = 1 - Property_ATOM_LINK Property_Meaning = 2 - Property_ATOM_TITLE Property_Meaning = 3 - Property_ATOM_CONTENT Property_Meaning = 4 - Property_ATOM_SUMMARY Property_Meaning = 5 - Property_ATOM_AUTHOR Property_Meaning = 6 - Property_GD_WHEN Property_Meaning = 7 - Property_GD_EMAIL Property_Meaning = 8 - Property_GEORSS_POINT Property_Meaning = 9 - Property_GD_IM Property_Meaning = 10 - Property_GD_PHONENUMBER Property_Meaning = 11 - Property_GD_POSTALADDRESS Property_Meaning = 12 - Property_GD_RATING Property_Meaning = 13 - Property_BLOBKEY Property_Meaning = 17 - Property_ENTITY_PROTO Property_Meaning = 19 - Property_INDEX_VALUE Property_Meaning = 18 -) - -var Property_Meaning_name = map[int32]string{ - 0: "NO_MEANING", - 14: "BLOB", - 15: "TEXT", - 16: "BYTESTRING", - 1: "ATOM_CATEGORY", - 2: "ATOM_LINK", - 3: "ATOM_TITLE", - 4: "ATOM_CONTENT", - 5: "ATOM_SUMMARY", - 6: "ATOM_AUTHOR", - 7: "GD_WHEN", - 8: "GD_EMAIL", - 9: "GEORSS_POINT", - 10: "GD_IM", - 11: "GD_PHONENUMBER", - 12: "GD_POSTALADDRESS", - 13: "GD_RATING", - 17: "BLOBKEY", - 19: "ENTITY_PROTO", - 18: "INDEX_VALUE", -} -var Property_Meaning_value = map[string]int32{ - "NO_MEANING": 0, - "BLOB": 14, - "TEXT": 15, - "BYTESTRING": 16, - "ATOM_CATEGORY": 1, - "ATOM_LINK": 2, - "ATOM_TITLE": 3, - "ATOM_CONTENT": 4, - "ATOM_SUMMARY": 5, - "ATOM_AUTHOR": 6, - "GD_WHEN": 7, - "GD_EMAIL": 8, - "GEORSS_POINT": 9, - "GD_IM": 10, - "GD_PHONENUMBER": 11, - "GD_POSTALADDRESS": 12, - "GD_RATING": 13, - "BLOBKEY": 17, - "ENTITY_PROTO": 19, - "INDEX_VALUE": 18, -} - -func (x Property_Meaning) Enum() *Property_Meaning { - p := new(Property_Meaning) - *p = x - return p -} -func (x Property_Meaning) String() string { - return proto.EnumName(Property_Meaning_name, int32(x)) -} -func (x *Property_Meaning) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Property_Meaning_value, data, "Property_Meaning") - if err != nil { - return err - } - *x = Property_Meaning(value) - return nil -} - -type Property_FtsTokenizationOption int32 - -const ( - Property_HTML Property_FtsTokenizationOption = 1 - Property_ATOM Property_FtsTokenizationOption = 2 -) - -var Property_FtsTokenizationOption_name = map[int32]string{ - 1: "HTML", - 2: "ATOM", -} -var Property_FtsTokenizationOption_value = map[string]int32{ - "HTML": 1, - "ATOM": 2, -} - -func (x Property_FtsTokenizationOption) Enum() *Property_FtsTokenizationOption { - p := new(Property_FtsTokenizationOption) - *p = x - return p -} -func (x Property_FtsTokenizationOption) String() string { - return proto.EnumName(Property_FtsTokenizationOption_name, int32(x)) -} -func (x *Property_FtsTokenizationOption) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Property_FtsTokenizationOption_value, data, "Property_FtsTokenizationOption") - if err != nil { - return err - } - *x = Property_FtsTokenizationOption(value) - return nil -} - -type EntityProto_Kind int32 - -const ( - EntityProto_GD_CONTACT EntityProto_Kind = 1 - EntityProto_GD_EVENT EntityProto_Kind = 2 - EntityProto_GD_MESSAGE EntityProto_Kind = 3 -) - -var EntityProto_Kind_name = map[int32]string{ - 1: "GD_CONTACT", - 2: "GD_EVENT", - 3: "GD_MESSAGE", -} -var EntityProto_Kind_value = map[string]int32{ - "GD_CONTACT": 1, - "GD_EVENT": 2, - "GD_MESSAGE": 3, -} - -func (x EntityProto_Kind) Enum() *EntityProto_Kind { - p := new(EntityProto_Kind) - *p = x - return p -} -func (x EntityProto_Kind) String() string { - return proto.EnumName(EntityProto_Kind_name, int32(x)) -} -func (x *EntityProto_Kind) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(EntityProto_Kind_value, data, "EntityProto_Kind") - if err != nil { - return err - } - *x = EntityProto_Kind(value) - return nil -} - -type Index_Property_Direction int32 - -const ( - Index_Property_ASCENDING Index_Property_Direction = 1 - Index_Property_DESCENDING Index_Property_Direction = 2 -) - -var Index_Property_Direction_name = map[int32]string{ - 1: "ASCENDING", - 2: "DESCENDING", -} -var Index_Property_Direction_value = map[string]int32{ - "ASCENDING": 1, - "DESCENDING": 2, -} - -func (x Index_Property_Direction) Enum() *Index_Property_Direction { - p := new(Index_Property_Direction) - *p = x - return p -} -func (x Index_Property_Direction) String() string { - return proto.EnumName(Index_Property_Direction_name, int32(x)) -} -func (x *Index_Property_Direction) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Index_Property_Direction_value, data, "Index_Property_Direction") - if err != nil { - return err - } - *x = Index_Property_Direction(value) - return nil -} - -type CompositeIndex_State int32 - -const ( - CompositeIndex_WRITE_ONLY CompositeIndex_State = 1 - CompositeIndex_READ_WRITE CompositeIndex_State = 2 - CompositeIndex_DELETED CompositeIndex_State = 3 - CompositeIndex_ERROR CompositeIndex_State = 4 -) - -var CompositeIndex_State_name = map[int32]string{ - 1: "WRITE_ONLY", - 2: "READ_WRITE", - 3: "DELETED", - 4: "ERROR", -} -var CompositeIndex_State_value = map[string]int32{ - "WRITE_ONLY": 1, - "READ_WRITE": 2, - "DELETED": 3, - "ERROR": 4, -} - -func (x CompositeIndex_State) Enum() *CompositeIndex_State { - p := new(CompositeIndex_State) - *p = x - return p -} -func (x CompositeIndex_State) String() string { - return proto.EnumName(CompositeIndex_State_name, int32(x)) -} -func (x *CompositeIndex_State) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(CompositeIndex_State_value, data, "CompositeIndex_State") - if err != nil { - return err - } - *x = CompositeIndex_State(value) - return nil -} - -type Snapshot_Status int32 - -const ( - Snapshot_INACTIVE Snapshot_Status = 0 - Snapshot_ACTIVE Snapshot_Status = 1 -) - -var Snapshot_Status_name = map[int32]string{ - 0: "INACTIVE", - 1: "ACTIVE", -} -var Snapshot_Status_value = map[string]int32{ - "INACTIVE": 0, - "ACTIVE": 1, -} - -func (x Snapshot_Status) Enum() *Snapshot_Status { - p := new(Snapshot_Status) - *p = x - return p -} -func (x Snapshot_Status) String() string { - return proto.EnumName(Snapshot_Status_name, int32(x)) -} -func (x *Snapshot_Status) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Snapshot_Status_value, data, "Snapshot_Status") - if err != nil { - return err - } - *x = Snapshot_Status(value) - return nil -} - -type Query_Hint int32 - -const ( - Query_ORDER_FIRST Query_Hint = 1 - Query_ANCESTOR_FIRST Query_Hint = 2 - Query_FILTER_FIRST Query_Hint = 3 -) - -var Query_Hint_name = map[int32]string{ - 1: "ORDER_FIRST", - 2: "ANCESTOR_FIRST", - 3: "FILTER_FIRST", -} -var Query_Hint_value = map[string]int32{ - "ORDER_FIRST": 1, - "ANCESTOR_FIRST": 2, - "FILTER_FIRST": 3, -} - -func (x Query_Hint) Enum() *Query_Hint { - p := new(Query_Hint) - *p = x - return p -} -func (x Query_Hint) String() string { - return proto.EnumName(Query_Hint_name, int32(x)) -} -func (x *Query_Hint) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Query_Hint_value, data, "Query_Hint") - if err != nil { - return err - } - *x = Query_Hint(value) - return nil -} - -type Query_Filter_Operator int32 - -const ( - Query_Filter_LESS_THAN Query_Filter_Operator = 1 - Query_Filter_LESS_THAN_OR_EQUAL Query_Filter_Operator = 2 - Query_Filter_GREATER_THAN Query_Filter_Operator = 3 - Query_Filter_GREATER_THAN_OR_EQUAL Query_Filter_Operator = 4 - Query_Filter_EQUAL Query_Filter_Operator = 5 - Query_Filter_IN Query_Filter_Operator = 6 - Query_Filter_EXISTS Query_Filter_Operator = 7 -) - -var Query_Filter_Operator_name = map[int32]string{ - 1: "LESS_THAN", - 2: "LESS_THAN_OR_EQUAL", - 3: "GREATER_THAN", - 4: "GREATER_THAN_OR_EQUAL", - 5: "EQUAL", - 6: "IN", - 7: "EXISTS", -} -var Query_Filter_Operator_value = map[string]int32{ - "LESS_THAN": 1, - "LESS_THAN_OR_EQUAL": 2, - "GREATER_THAN": 3, - "GREATER_THAN_OR_EQUAL": 4, - "EQUAL": 5, - "IN": 6, - "EXISTS": 7, -} - -func (x Query_Filter_Operator) Enum() *Query_Filter_Operator { - p := new(Query_Filter_Operator) - *p = x - return p -} -func (x Query_Filter_Operator) String() string { - return proto.EnumName(Query_Filter_Operator_name, int32(x)) -} -func (x *Query_Filter_Operator) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Query_Filter_Operator_value, data, "Query_Filter_Operator") - if err != nil { - return err - } - *x = Query_Filter_Operator(value) - return nil -} - -type Query_Order_Direction int32 - -const ( - Query_Order_ASCENDING Query_Order_Direction = 1 - Query_Order_DESCENDING Query_Order_Direction = 2 -) - -var Query_Order_Direction_name = map[int32]string{ - 1: "ASCENDING", - 2: "DESCENDING", -} -var Query_Order_Direction_value = map[string]int32{ - "ASCENDING": 1, - "DESCENDING": 2, -} - -func (x Query_Order_Direction) Enum() *Query_Order_Direction { - p := new(Query_Order_Direction) - *p = x - return p -} -func (x Query_Order_Direction) String() string { - return proto.EnumName(Query_Order_Direction_name, int32(x)) -} -func (x *Query_Order_Direction) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Query_Order_Direction_value, data, "Query_Order_Direction") - if err != nil { - return err - } - *x = Query_Order_Direction(value) - return nil -} - -type Error_ErrorCode int32 - -const ( - Error_BAD_REQUEST Error_ErrorCode = 1 - Error_CONCURRENT_TRANSACTION Error_ErrorCode = 2 - Error_INTERNAL_ERROR Error_ErrorCode = 3 - Error_NEED_INDEX Error_ErrorCode = 4 - Error_TIMEOUT Error_ErrorCode = 5 - Error_PERMISSION_DENIED Error_ErrorCode = 6 - Error_BIGTABLE_ERROR Error_ErrorCode = 7 - Error_COMMITTED_BUT_STILL_APPLYING Error_ErrorCode = 8 - Error_CAPABILITY_DISABLED Error_ErrorCode = 9 - Error_TRY_ALTERNATE_BACKEND Error_ErrorCode = 10 - Error_SAFE_TIME_TOO_OLD Error_ErrorCode = 11 -) - -var Error_ErrorCode_name = map[int32]string{ - 1: "BAD_REQUEST", - 2: "CONCURRENT_TRANSACTION", - 3: "INTERNAL_ERROR", - 4: "NEED_INDEX", - 5: "TIMEOUT", - 6: "PERMISSION_DENIED", - 7: "BIGTABLE_ERROR", - 8: "COMMITTED_BUT_STILL_APPLYING", - 9: "CAPABILITY_DISABLED", - 10: "TRY_ALTERNATE_BACKEND", - 11: "SAFE_TIME_TOO_OLD", -} -var Error_ErrorCode_value = map[string]int32{ - "BAD_REQUEST": 1, - "CONCURRENT_TRANSACTION": 2, - "INTERNAL_ERROR": 3, - "NEED_INDEX": 4, - "TIMEOUT": 5, - "PERMISSION_DENIED": 6, - "BIGTABLE_ERROR": 7, - "COMMITTED_BUT_STILL_APPLYING": 8, - "CAPABILITY_DISABLED": 9, - "TRY_ALTERNATE_BACKEND": 10, - "SAFE_TIME_TOO_OLD": 11, -} - -func (x Error_ErrorCode) Enum() *Error_ErrorCode { - p := new(Error_ErrorCode) - *p = x - return p -} -func (x Error_ErrorCode) String() string { - return proto.EnumName(Error_ErrorCode_name, int32(x)) -} -func (x *Error_ErrorCode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(Error_ErrorCode_value, data, "Error_ErrorCode") - if err != nil { - return err - } - *x = Error_ErrorCode(value) - return nil -} - -type PutRequest_AutoIdPolicy int32 - -const ( - PutRequest_CURRENT PutRequest_AutoIdPolicy = 0 - PutRequest_SEQUENTIAL PutRequest_AutoIdPolicy = 1 -) - -var PutRequest_AutoIdPolicy_name = map[int32]string{ - 0: "CURRENT", - 1: "SEQUENTIAL", -} -var PutRequest_AutoIdPolicy_value = map[string]int32{ - "CURRENT": 0, - "SEQUENTIAL": 1, -} - -func (x PutRequest_AutoIdPolicy) Enum() *PutRequest_AutoIdPolicy { - p := new(PutRequest_AutoIdPolicy) - *p = x - return p -} -func (x PutRequest_AutoIdPolicy) String() string { - return proto.EnumName(PutRequest_AutoIdPolicy_name, int32(x)) -} -func (x *PutRequest_AutoIdPolicy) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(PutRequest_AutoIdPolicy_value, data, "PutRequest_AutoIdPolicy") - if err != nil { - return err - } - *x = PutRequest_AutoIdPolicy(value) - return nil -} - -type Action struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *Action) Reset() { *m = Action{} } -func (m *Action) String() string { return proto.CompactTextString(m) } -func (*Action) ProtoMessage() {} - -type PropertyValue struct { - Int64Value *int64 `protobuf:"varint,1,opt,name=int64Value" json:"int64Value,omitempty"` - BooleanValue *bool `protobuf:"varint,2,opt,name=booleanValue" json:"booleanValue,omitempty"` - StringValue *string `protobuf:"bytes,3,opt,name=stringValue" json:"stringValue,omitempty"` - DoubleValue *float64 `protobuf:"fixed64,4,opt,name=doubleValue" json:"doubleValue,omitempty"` - Pointvalue *PropertyValue_PointValue `protobuf:"group,5,opt,name=PointValue" json:"pointvalue,omitempty"` - Uservalue *PropertyValue_UserValue `protobuf:"group,8,opt,name=UserValue" json:"uservalue,omitempty"` - Referencevalue *PropertyValue_ReferenceValue `protobuf:"group,12,opt,name=ReferenceValue" json:"referencevalue,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PropertyValue) Reset() { *m = PropertyValue{} } -func (m *PropertyValue) String() string { return proto.CompactTextString(m) } -func (*PropertyValue) ProtoMessage() {} - -func (m *PropertyValue) GetInt64Value() int64 { - if m != nil && m.Int64Value != nil { - return *m.Int64Value - } - return 0 -} - -func (m *PropertyValue) GetBooleanValue() bool { - if m != nil && m.BooleanValue != nil { - return *m.BooleanValue - } - return false -} - -func (m *PropertyValue) GetStringValue() string { - if m != nil && m.StringValue != nil { - return *m.StringValue - } - return "" -} - -func (m *PropertyValue) GetDoubleValue() float64 { - if m != nil && m.DoubleValue != nil { - return *m.DoubleValue - } - return 0 -} - -func (m *PropertyValue) GetPointvalue() *PropertyValue_PointValue { - if m != nil { - return m.Pointvalue - } - return nil -} - -func (m *PropertyValue) GetUservalue() *PropertyValue_UserValue { - if m != nil { - return m.Uservalue - } - return nil -} - -func (m *PropertyValue) GetReferencevalue() *PropertyValue_ReferenceValue { - if m != nil { - return m.Referencevalue - } - return nil -} - -type PropertyValue_PointValue struct { - X *float64 `protobuf:"fixed64,6,req,name=x" json:"x,omitempty"` - Y *float64 `protobuf:"fixed64,7,req,name=y" json:"y,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PropertyValue_PointValue) Reset() { *m = PropertyValue_PointValue{} } -func (m *PropertyValue_PointValue) String() string { return proto.CompactTextString(m) } -func (*PropertyValue_PointValue) ProtoMessage() {} - -func (m *PropertyValue_PointValue) GetX() float64 { - if m != nil && m.X != nil { - return *m.X - } - return 0 -} - -func (m *PropertyValue_PointValue) GetY() float64 { - if m != nil && m.Y != nil { - return *m.Y - } - return 0 -} - -type PropertyValue_UserValue struct { - Email *string `protobuf:"bytes,9,req,name=email" json:"email,omitempty"` - AuthDomain *string `protobuf:"bytes,10,req,name=auth_domain" json:"auth_domain,omitempty"` - Nickname *string `protobuf:"bytes,11,opt,name=nickname" json:"nickname,omitempty"` - FederatedIdentity *string `protobuf:"bytes,21,opt,name=federated_identity" json:"federated_identity,omitempty"` - FederatedProvider *string `protobuf:"bytes,22,opt,name=federated_provider" json:"federated_provider,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PropertyValue_UserValue) Reset() { *m = PropertyValue_UserValue{} } -func (m *PropertyValue_UserValue) String() string { return proto.CompactTextString(m) } -func (*PropertyValue_UserValue) ProtoMessage() {} - -func (m *PropertyValue_UserValue) GetEmail() string { - if m != nil && m.Email != nil { - return *m.Email - } - return "" -} - -func (m *PropertyValue_UserValue) GetAuthDomain() string { - if m != nil && m.AuthDomain != nil { - return *m.AuthDomain - } - return "" -} - -func (m *PropertyValue_UserValue) GetNickname() string { - if m != nil && m.Nickname != nil { - return *m.Nickname - } - return "" -} - -func (m *PropertyValue_UserValue) GetFederatedIdentity() string { - if m != nil && m.FederatedIdentity != nil { - return *m.FederatedIdentity - } - return "" -} - -func (m *PropertyValue_UserValue) GetFederatedProvider() string { - if m != nil && m.FederatedProvider != nil { - return *m.FederatedProvider - } - return "" -} - -type PropertyValue_ReferenceValue struct { - App *string `protobuf:"bytes,13,req,name=app" json:"app,omitempty"` - NameSpace *string `protobuf:"bytes,20,opt,name=name_space" json:"name_space,omitempty"` - Pathelement []*PropertyValue_ReferenceValue_PathElement `protobuf:"group,14,rep,name=PathElement" json:"pathelement,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PropertyValue_ReferenceValue) Reset() { *m = PropertyValue_ReferenceValue{} } -func (m *PropertyValue_ReferenceValue) String() string { return proto.CompactTextString(m) } -func (*PropertyValue_ReferenceValue) ProtoMessage() {} - -func (m *PropertyValue_ReferenceValue) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -func (m *PropertyValue_ReferenceValue) GetNameSpace() string { - if m != nil && m.NameSpace != nil { - return *m.NameSpace - } - return "" -} - -func (m *PropertyValue_ReferenceValue) GetPathelement() []*PropertyValue_ReferenceValue_PathElement { - if m != nil { - return m.Pathelement - } - return nil -} - -type PropertyValue_ReferenceValue_PathElement struct { - Type *string `protobuf:"bytes,15,req,name=type" json:"type,omitempty"` - Id *int64 `protobuf:"varint,16,opt,name=id" json:"id,omitempty"` - Name *string `protobuf:"bytes,17,opt,name=name" json:"name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PropertyValue_ReferenceValue_PathElement) Reset() { - *m = PropertyValue_ReferenceValue_PathElement{} -} -func (m *PropertyValue_ReferenceValue_PathElement) String() string { return proto.CompactTextString(m) } -func (*PropertyValue_ReferenceValue_PathElement) ProtoMessage() {} - -func (m *PropertyValue_ReferenceValue_PathElement) GetType() string { - if m != nil && m.Type != nil { - return *m.Type - } - return "" -} - -func (m *PropertyValue_ReferenceValue_PathElement) GetId() int64 { - if m != nil && m.Id != nil { - return *m.Id - } - return 0 -} - -func (m *PropertyValue_ReferenceValue_PathElement) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -type Property struct { - Meaning *Property_Meaning `protobuf:"varint,1,opt,name=meaning,enum=appengine.Property_Meaning,def=0" json:"meaning,omitempty"` - MeaningUri *string `protobuf:"bytes,2,opt,name=meaning_uri" json:"meaning_uri,omitempty"` - Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` - Value *PropertyValue `protobuf:"bytes,5,req,name=value" json:"value,omitempty"` - Multiple *bool `protobuf:"varint,4,req,name=multiple" json:"multiple,omitempty"` - Searchable *bool `protobuf:"varint,6,opt,name=searchable,def=0" json:"searchable,omitempty"` - FtsTokenizationOption *Property_FtsTokenizationOption `protobuf:"varint,8,opt,name=fts_tokenization_option,enum=appengine.Property_FtsTokenizationOption" json:"fts_tokenization_option,omitempty"` - Locale *string `protobuf:"bytes,9,opt,name=locale,def=en" json:"locale,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Property) Reset() { *m = Property{} } -func (m *Property) String() string { return proto.CompactTextString(m) } -func (*Property) ProtoMessage() {} - -const Default_Property_Meaning Property_Meaning = Property_NO_MEANING -const Default_Property_Searchable bool = false -const Default_Property_Locale string = "en" - -func (m *Property) GetMeaning() Property_Meaning { - if m != nil && m.Meaning != nil { - return *m.Meaning - } - return Default_Property_Meaning -} - -func (m *Property) GetMeaningUri() string { - if m != nil && m.MeaningUri != nil { - return *m.MeaningUri - } - return "" -} - -func (m *Property) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Property) GetValue() *PropertyValue { - if m != nil { - return m.Value - } - return nil -} - -func (m *Property) GetMultiple() bool { - if m != nil && m.Multiple != nil { - return *m.Multiple - } - return false -} - -func (m *Property) GetSearchable() bool { - if m != nil && m.Searchable != nil { - return *m.Searchable - } - return Default_Property_Searchable -} - -func (m *Property) GetFtsTokenizationOption() Property_FtsTokenizationOption { - if m != nil && m.FtsTokenizationOption != nil { - return *m.FtsTokenizationOption - } - return Property_HTML -} - -func (m *Property) GetLocale() string { - if m != nil && m.Locale != nil { - return *m.Locale - } - return Default_Property_Locale -} - -type Path struct { - Element []*Path_Element `protobuf:"group,1,rep,name=Element" json:"element,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} - -func (m *Path) GetElement() []*Path_Element { - if m != nil { - return m.Element - } - return nil -} - -type Path_Element struct { - Type *string `protobuf:"bytes,2,req,name=type" json:"type,omitempty"` - Id *int64 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"` - Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Path_Element) Reset() { *m = Path_Element{} } -func (m *Path_Element) String() string { return proto.CompactTextString(m) } -func (*Path_Element) ProtoMessage() {} - -func (m *Path_Element) GetType() string { - if m != nil && m.Type != nil { - return *m.Type - } - return "" -} - -func (m *Path_Element) GetId() int64 { - if m != nil && m.Id != nil { - return *m.Id - } - return 0 -} - -func (m *Path_Element) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -type Reference struct { - App *string `protobuf:"bytes,13,req,name=app" json:"app,omitempty"` - NameSpace *string `protobuf:"bytes,20,opt,name=name_space" json:"name_space,omitempty"` - Path *Path `protobuf:"bytes,14,req,name=path" json:"path,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Reference) Reset() { *m = Reference{} } -func (m *Reference) String() string { return proto.CompactTextString(m) } -func (*Reference) ProtoMessage() {} - -func (m *Reference) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -func (m *Reference) GetNameSpace() string { - if m != nil && m.NameSpace != nil { - return *m.NameSpace - } - return "" -} - -func (m *Reference) GetPath() *Path { - if m != nil { - return m.Path - } - return nil -} - -type User struct { - Email *string `protobuf:"bytes,1,req,name=email" json:"email,omitempty"` - AuthDomain *string `protobuf:"bytes,2,req,name=auth_domain" json:"auth_domain,omitempty"` - Nickname *string `protobuf:"bytes,3,opt,name=nickname" json:"nickname,omitempty"` - FederatedIdentity *string `protobuf:"bytes,6,opt,name=federated_identity" json:"federated_identity,omitempty"` - FederatedProvider *string `protobuf:"bytes,7,opt,name=federated_provider" json:"federated_provider,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} - -func (m *User) GetEmail() string { - if m != nil && m.Email != nil { - return *m.Email - } - return "" -} - -func (m *User) GetAuthDomain() string { - if m != nil && m.AuthDomain != nil { - return *m.AuthDomain - } - return "" -} - -func (m *User) GetNickname() string { - if m != nil && m.Nickname != nil { - return *m.Nickname - } - return "" -} - -func (m *User) GetFederatedIdentity() string { - if m != nil && m.FederatedIdentity != nil { - return *m.FederatedIdentity - } - return "" -} - -func (m *User) GetFederatedProvider() string { - if m != nil && m.FederatedProvider != nil { - return *m.FederatedProvider - } - return "" -} - -type EntityProto struct { - Key *Reference `protobuf:"bytes,13,req,name=key" json:"key,omitempty"` - EntityGroup *Path `protobuf:"bytes,16,req,name=entity_group" json:"entity_group,omitempty"` - Owner *User `protobuf:"bytes,17,opt,name=owner" json:"owner,omitempty"` - Kind *EntityProto_Kind `protobuf:"varint,4,opt,name=kind,enum=appengine.EntityProto_Kind" json:"kind,omitempty"` - KindUri *string `protobuf:"bytes,5,opt,name=kind_uri" json:"kind_uri,omitempty"` - Property []*Property `protobuf:"bytes,14,rep,name=property" json:"property,omitempty"` - RawProperty []*Property `protobuf:"bytes,15,rep,name=raw_property" json:"raw_property,omitempty"` - Rank *int32 `protobuf:"varint,18,opt,name=rank" json:"rank,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *EntityProto) Reset() { *m = EntityProto{} } -func (m *EntityProto) String() string { return proto.CompactTextString(m) } -func (*EntityProto) ProtoMessage() {} - -func (m *EntityProto) GetKey() *Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *EntityProto) GetEntityGroup() *Path { - if m != nil { - return m.EntityGroup - } - return nil -} - -func (m *EntityProto) GetOwner() *User { - if m != nil { - return m.Owner - } - return nil -} - -func (m *EntityProto) GetKind() EntityProto_Kind { - if m != nil && m.Kind != nil { - return *m.Kind - } - return EntityProto_GD_CONTACT -} - -func (m *EntityProto) GetKindUri() string { - if m != nil && m.KindUri != nil { - return *m.KindUri - } - return "" -} - -func (m *EntityProto) GetProperty() []*Property { - if m != nil { - return m.Property - } - return nil -} - -func (m *EntityProto) GetRawProperty() []*Property { - if m != nil { - return m.RawProperty - } - return nil -} - -func (m *EntityProto) GetRank() int32 { - if m != nil && m.Rank != nil { - return *m.Rank - } - return 0 -} - -type CompositeProperty struct { - IndexId *int64 `protobuf:"varint,1,req,name=index_id" json:"index_id,omitempty"` - Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompositeProperty) Reset() { *m = CompositeProperty{} } -func (m *CompositeProperty) String() string { return proto.CompactTextString(m) } -func (*CompositeProperty) ProtoMessage() {} - -func (m *CompositeProperty) GetIndexId() int64 { - if m != nil && m.IndexId != nil { - return *m.IndexId - } - return 0 -} - -func (m *CompositeProperty) GetValue() []string { - if m != nil { - return m.Value - } - return nil -} - -type Index struct { - EntityType *string `protobuf:"bytes,1,req,name=entity_type" json:"entity_type,omitempty"` - Ancestor *bool `protobuf:"varint,5,req,name=ancestor" json:"ancestor,omitempty"` - Property []*Index_Property `protobuf:"group,2,rep,name=Property" json:"property,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Index) Reset() { *m = Index{} } -func (m *Index) String() string { return proto.CompactTextString(m) } -func (*Index) ProtoMessage() {} - -func (m *Index) GetEntityType() string { - if m != nil && m.EntityType != nil { - return *m.EntityType - } - return "" -} - -func (m *Index) GetAncestor() bool { - if m != nil && m.Ancestor != nil { - return *m.Ancestor - } - return false -} - -func (m *Index) GetProperty() []*Index_Property { - if m != nil { - return m.Property - } - return nil -} - -type Index_Property struct { - Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` - Direction *Index_Property_Direction `protobuf:"varint,4,opt,name=direction,enum=appengine.Index_Property_Direction,def=1" json:"direction,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Index_Property) Reset() { *m = Index_Property{} } -func (m *Index_Property) String() string { return proto.CompactTextString(m) } -func (*Index_Property) ProtoMessage() {} - -const Default_Index_Property_Direction Index_Property_Direction = Index_Property_ASCENDING - -func (m *Index_Property) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *Index_Property) GetDirection() Index_Property_Direction { - if m != nil && m.Direction != nil { - return *m.Direction - } - return Default_Index_Property_Direction -} - -type CompositeIndex struct { - AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` - Id *int64 `protobuf:"varint,2,req,name=id" json:"id,omitempty"` - Definition *Index `protobuf:"bytes,3,req,name=definition" json:"definition,omitempty"` - State *CompositeIndex_State `protobuf:"varint,4,req,name=state,enum=appengine.CompositeIndex_State" json:"state,omitempty"` - OnlyUseIfRequired *bool `protobuf:"varint,6,opt,name=only_use_if_required,def=0" json:"only_use_if_required,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompositeIndex) Reset() { *m = CompositeIndex{} } -func (m *CompositeIndex) String() string { return proto.CompactTextString(m) } -func (*CompositeIndex) ProtoMessage() {} - -const Default_CompositeIndex_OnlyUseIfRequired bool = false - -func (m *CompositeIndex) GetAppId() string { - if m != nil && m.AppId != nil { - return *m.AppId - } - return "" -} - -func (m *CompositeIndex) GetId() int64 { - if m != nil && m.Id != nil { - return *m.Id - } - return 0 -} - -func (m *CompositeIndex) GetDefinition() *Index { - if m != nil { - return m.Definition - } - return nil -} - -func (m *CompositeIndex) GetState() CompositeIndex_State { - if m != nil && m.State != nil { - return *m.State - } - return CompositeIndex_WRITE_ONLY -} - -func (m *CompositeIndex) GetOnlyUseIfRequired() bool { - if m != nil && m.OnlyUseIfRequired != nil { - return *m.OnlyUseIfRequired - } - return Default_CompositeIndex_OnlyUseIfRequired -} - -type IndexPostfix struct { - IndexValue []*IndexPostfix_IndexValue `protobuf:"bytes,1,rep,name=index_value" json:"index_value,omitempty"` - Key *Reference `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` - Before *bool `protobuf:"varint,3,opt,name=before,def=1" json:"before,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *IndexPostfix) Reset() { *m = IndexPostfix{} } -func (m *IndexPostfix) String() string { return proto.CompactTextString(m) } -func (*IndexPostfix) ProtoMessage() {} - -const Default_IndexPostfix_Before bool = true - -func (m *IndexPostfix) GetIndexValue() []*IndexPostfix_IndexValue { - if m != nil { - return m.IndexValue - } - return nil -} - -func (m *IndexPostfix) GetKey() *Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *IndexPostfix) GetBefore() bool { - if m != nil && m.Before != nil { - return *m.Before - } - return Default_IndexPostfix_Before -} - -type IndexPostfix_IndexValue struct { - PropertyName *string `protobuf:"bytes,1,req,name=property_name" json:"property_name,omitempty"` - Value *PropertyValue `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *IndexPostfix_IndexValue) Reset() { *m = IndexPostfix_IndexValue{} } -func (m *IndexPostfix_IndexValue) String() string { return proto.CompactTextString(m) } -func (*IndexPostfix_IndexValue) ProtoMessage() {} - -func (m *IndexPostfix_IndexValue) GetPropertyName() string { - if m != nil && m.PropertyName != nil { - return *m.PropertyName - } - return "" -} - -func (m *IndexPostfix_IndexValue) GetValue() *PropertyValue { - if m != nil { - return m.Value - } - return nil -} - -type IndexPosition struct { - Key *string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` - Before *bool `protobuf:"varint,2,opt,name=before,def=1" json:"before,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *IndexPosition) Reset() { *m = IndexPosition{} } -func (m *IndexPosition) String() string { return proto.CompactTextString(m) } -func (*IndexPosition) ProtoMessage() {} - -const Default_IndexPosition_Before bool = true - -func (m *IndexPosition) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *IndexPosition) GetBefore() bool { - if m != nil && m.Before != nil { - return *m.Before - } - return Default_IndexPosition_Before -} - -type Snapshot struct { - Ts *int64 `protobuf:"varint,1,req,name=ts" json:"ts,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Snapshot) Reset() { *m = Snapshot{} } -func (m *Snapshot) String() string { return proto.CompactTextString(m) } -func (*Snapshot) ProtoMessage() {} - -func (m *Snapshot) GetTs() int64 { - if m != nil && m.Ts != nil { - return *m.Ts - } - return 0 -} - -type InternalHeader struct { - Qos *string `protobuf:"bytes,1,opt,name=qos" json:"qos,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *InternalHeader) Reset() { *m = InternalHeader{} } -func (m *InternalHeader) String() string { return proto.CompactTextString(m) } -func (*InternalHeader) ProtoMessage() {} - -func (m *InternalHeader) GetQos() string { - if m != nil && m.Qos != nil { - return *m.Qos - } - return "" -} - -type Transaction struct { - Header *InternalHeader `protobuf:"bytes,4,opt,name=header" json:"header,omitempty"` - Handle *uint64 `protobuf:"fixed64,1,req,name=handle" json:"handle,omitempty"` - App *string `protobuf:"bytes,2,req,name=app" json:"app,omitempty"` - MarkChanges *bool `protobuf:"varint,3,opt,name=mark_changes,def=0" json:"mark_changes,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Transaction) Reset() { *m = Transaction{} } -func (m *Transaction) String() string { return proto.CompactTextString(m) } -func (*Transaction) ProtoMessage() {} - -const Default_Transaction_MarkChanges bool = false - -func (m *Transaction) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *Transaction) GetHandle() uint64 { - if m != nil && m.Handle != nil { - return *m.Handle - } - return 0 -} - -func (m *Transaction) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -func (m *Transaction) GetMarkChanges() bool { - if m != nil && m.MarkChanges != nil { - return *m.MarkChanges - } - return Default_Transaction_MarkChanges -} - -type Query struct { - Header *InternalHeader `protobuf:"bytes,39,opt,name=header" json:"header,omitempty"` - App *string `protobuf:"bytes,1,req,name=app" json:"app,omitempty"` - NameSpace *string `protobuf:"bytes,29,opt,name=name_space" json:"name_space,omitempty"` - Kind *string `protobuf:"bytes,3,opt,name=kind" json:"kind,omitempty"` - Ancestor *Reference `protobuf:"bytes,17,opt,name=ancestor" json:"ancestor,omitempty"` - Filter []*Query_Filter `protobuf:"group,4,rep,name=Filter" json:"filter,omitempty"` - SearchQuery *string `protobuf:"bytes,8,opt,name=search_query" json:"search_query,omitempty"` - Order []*Query_Order `protobuf:"group,9,rep,name=Order" json:"order,omitempty"` - Hint *Query_Hint `protobuf:"varint,18,opt,name=hint,enum=appengine.Query_Hint" json:"hint,omitempty"` - Count *int32 `protobuf:"varint,23,opt,name=count" json:"count,omitempty"` - Offset *int32 `protobuf:"varint,12,opt,name=offset,def=0" json:"offset,omitempty"` - Limit *int32 `protobuf:"varint,16,opt,name=limit" json:"limit,omitempty"` - CompiledCursor *CompiledCursor `protobuf:"bytes,30,opt,name=compiled_cursor" json:"compiled_cursor,omitempty"` - EndCompiledCursor *CompiledCursor `protobuf:"bytes,31,opt,name=end_compiled_cursor" json:"end_compiled_cursor,omitempty"` - CompositeIndex []*CompositeIndex `protobuf:"bytes,19,rep,name=composite_index" json:"composite_index,omitempty"` - RequirePerfectPlan *bool `protobuf:"varint,20,opt,name=require_perfect_plan,def=0" json:"require_perfect_plan,omitempty"` - KeysOnly *bool `protobuf:"varint,21,opt,name=keys_only,def=0" json:"keys_only,omitempty"` - Transaction *Transaction `protobuf:"bytes,22,opt,name=transaction" json:"transaction,omitempty"` - Compile *bool `protobuf:"varint,25,opt,name=compile,def=0" json:"compile,omitempty"` - FailoverMs *int64 `protobuf:"varint,26,opt,name=failover_ms" json:"failover_ms,omitempty"` - Strong *bool `protobuf:"varint,32,opt,name=strong" json:"strong,omitempty"` - PropertyName []string `protobuf:"bytes,33,rep,name=property_name" json:"property_name,omitempty"` - GroupByPropertyName []string `protobuf:"bytes,34,rep,name=group_by_property_name" json:"group_by_property_name,omitempty"` - Distinct *bool `protobuf:"varint,24,opt,name=distinct" json:"distinct,omitempty"` - MinSafeTimeSeconds *int64 `protobuf:"varint,35,opt,name=min_safe_time_seconds" json:"min_safe_time_seconds,omitempty"` - SafeReplicaName []string `protobuf:"bytes,36,rep,name=safe_replica_name" json:"safe_replica_name,omitempty"` - PersistOffset *bool `protobuf:"varint,37,opt,name=persist_offset,def=0" json:"persist_offset,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Query) Reset() { *m = Query{} } -func (m *Query) String() string { return proto.CompactTextString(m) } -func (*Query) ProtoMessage() {} - -const Default_Query_Offset int32 = 0 -const Default_Query_RequirePerfectPlan bool = false -const Default_Query_KeysOnly bool = false -const Default_Query_Compile bool = false -const Default_Query_PersistOffset bool = false - -func (m *Query) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *Query) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -func (m *Query) GetNameSpace() string { - if m != nil && m.NameSpace != nil { - return *m.NameSpace - } - return "" -} - -func (m *Query) GetKind() string { - if m != nil && m.Kind != nil { - return *m.Kind - } - return "" -} - -func (m *Query) GetAncestor() *Reference { - if m != nil { - return m.Ancestor - } - return nil -} - -func (m *Query) GetFilter() []*Query_Filter { - if m != nil { - return m.Filter - } - return nil -} - -func (m *Query) GetSearchQuery() string { - if m != nil && m.SearchQuery != nil { - return *m.SearchQuery - } - return "" -} - -func (m *Query) GetOrder() []*Query_Order { - if m != nil { - return m.Order - } - return nil -} - -func (m *Query) GetHint() Query_Hint { - if m != nil && m.Hint != nil { - return *m.Hint - } - return Query_ORDER_FIRST -} - -func (m *Query) GetCount() int32 { - if m != nil && m.Count != nil { - return *m.Count - } - return 0 -} - -func (m *Query) GetOffset() int32 { - if m != nil && m.Offset != nil { - return *m.Offset - } - return Default_Query_Offset -} - -func (m *Query) GetLimit() int32 { - if m != nil && m.Limit != nil { - return *m.Limit - } - return 0 -} - -func (m *Query) GetCompiledCursor() *CompiledCursor { - if m != nil { - return m.CompiledCursor - } - return nil -} - -func (m *Query) GetEndCompiledCursor() *CompiledCursor { - if m != nil { - return m.EndCompiledCursor - } - return nil -} - -func (m *Query) GetCompositeIndex() []*CompositeIndex { - if m != nil { - return m.CompositeIndex - } - return nil -} - -func (m *Query) GetRequirePerfectPlan() bool { - if m != nil && m.RequirePerfectPlan != nil { - return *m.RequirePerfectPlan - } - return Default_Query_RequirePerfectPlan -} - -func (m *Query) GetKeysOnly() bool { - if m != nil && m.KeysOnly != nil { - return *m.KeysOnly - } - return Default_Query_KeysOnly -} - -func (m *Query) GetTransaction() *Transaction { - if m != nil { - return m.Transaction - } - return nil -} - -func (m *Query) GetCompile() bool { - if m != nil && m.Compile != nil { - return *m.Compile - } - return Default_Query_Compile -} - -func (m *Query) GetFailoverMs() int64 { - if m != nil && m.FailoverMs != nil { - return *m.FailoverMs - } - return 0 -} - -func (m *Query) GetStrong() bool { - if m != nil && m.Strong != nil { - return *m.Strong - } - return false -} - -func (m *Query) GetPropertyName() []string { - if m != nil { - return m.PropertyName - } - return nil -} - -func (m *Query) GetGroupByPropertyName() []string { - if m != nil { - return m.GroupByPropertyName - } - return nil -} - -func (m *Query) GetDistinct() bool { - if m != nil && m.Distinct != nil { - return *m.Distinct - } - return false -} - -func (m *Query) GetMinSafeTimeSeconds() int64 { - if m != nil && m.MinSafeTimeSeconds != nil { - return *m.MinSafeTimeSeconds - } - return 0 -} - -func (m *Query) GetSafeReplicaName() []string { - if m != nil { - return m.SafeReplicaName - } - return nil -} - -func (m *Query) GetPersistOffset() bool { - if m != nil && m.PersistOffset != nil { - return *m.PersistOffset - } - return Default_Query_PersistOffset -} - -type Query_Filter struct { - Op *Query_Filter_Operator `protobuf:"varint,6,req,name=op,enum=appengine.Query_Filter_Operator" json:"op,omitempty"` - Property []*Property `protobuf:"bytes,14,rep,name=property" json:"property,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Query_Filter) Reset() { *m = Query_Filter{} } -func (m *Query_Filter) String() string { return proto.CompactTextString(m) } -func (*Query_Filter) ProtoMessage() {} - -func (m *Query_Filter) GetOp() Query_Filter_Operator { - if m != nil && m.Op != nil { - return *m.Op - } - return Query_Filter_LESS_THAN -} - -func (m *Query_Filter) GetProperty() []*Property { - if m != nil { - return m.Property - } - return nil -} - -type Query_Order struct { - Property *string `protobuf:"bytes,10,req,name=property" json:"property,omitempty"` - Direction *Query_Order_Direction `protobuf:"varint,11,opt,name=direction,enum=appengine.Query_Order_Direction,def=1" json:"direction,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Query_Order) Reset() { *m = Query_Order{} } -func (m *Query_Order) String() string { return proto.CompactTextString(m) } -func (*Query_Order) ProtoMessage() {} - -const Default_Query_Order_Direction Query_Order_Direction = Query_Order_ASCENDING - -func (m *Query_Order) GetProperty() string { - if m != nil && m.Property != nil { - return *m.Property - } - return "" -} - -func (m *Query_Order) GetDirection() Query_Order_Direction { - if m != nil && m.Direction != nil { - return *m.Direction - } - return Default_Query_Order_Direction -} - -type CompiledQuery struct { - Primaryscan *CompiledQuery_PrimaryScan `protobuf:"group,1,req,name=PrimaryScan" json:"primaryscan,omitempty"` - Mergejoinscan []*CompiledQuery_MergeJoinScan `protobuf:"group,7,rep,name=MergeJoinScan" json:"mergejoinscan,omitempty"` - IndexDef *Index `protobuf:"bytes,21,opt,name=index_def" json:"index_def,omitempty"` - Offset *int32 `protobuf:"varint,10,opt,name=offset,def=0" json:"offset,omitempty"` - Limit *int32 `protobuf:"varint,11,opt,name=limit" json:"limit,omitempty"` - KeysOnly *bool `protobuf:"varint,12,req,name=keys_only" json:"keys_only,omitempty"` - PropertyName []string `protobuf:"bytes,24,rep,name=property_name" json:"property_name,omitempty"` - DistinctInfixSize *int32 `protobuf:"varint,25,opt,name=distinct_infix_size" json:"distinct_infix_size,omitempty"` - Entityfilter *CompiledQuery_EntityFilter `protobuf:"group,13,opt,name=EntityFilter" json:"entityfilter,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledQuery) Reset() { *m = CompiledQuery{} } -func (m *CompiledQuery) String() string { return proto.CompactTextString(m) } -func (*CompiledQuery) ProtoMessage() {} - -const Default_CompiledQuery_Offset int32 = 0 - -func (m *CompiledQuery) GetPrimaryscan() *CompiledQuery_PrimaryScan { - if m != nil { - return m.Primaryscan - } - return nil -} - -func (m *CompiledQuery) GetMergejoinscan() []*CompiledQuery_MergeJoinScan { - if m != nil { - return m.Mergejoinscan - } - return nil -} - -func (m *CompiledQuery) GetIndexDef() *Index { - if m != nil { - return m.IndexDef - } - return nil -} - -func (m *CompiledQuery) GetOffset() int32 { - if m != nil && m.Offset != nil { - return *m.Offset - } - return Default_CompiledQuery_Offset -} - -func (m *CompiledQuery) GetLimit() int32 { - if m != nil && m.Limit != nil { - return *m.Limit - } - return 0 -} - -func (m *CompiledQuery) GetKeysOnly() bool { - if m != nil && m.KeysOnly != nil { - return *m.KeysOnly - } - return false -} - -func (m *CompiledQuery) GetPropertyName() []string { - if m != nil { - return m.PropertyName - } - return nil -} - -func (m *CompiledQuery) GetDistinctInfixSize() int32 { - if m != nil && m.DistinctInfixSize != nil { - return *m.DistinctInfixSize - } - return 0 -} - -func (m *CompiledQuery) GetEntityfilter() *CompiledQuery_EntityFilter { - if m != nil { - return m.Entityfilter - } - return nil -} - -type CompiledQuery_PrimaryScan struct { - IndexName *string `protobuf:"bytes,2,opt,name=index_name" json:"index_name,omitempty"` - StartKey *string `protobuf:"bytes,3,opt,name=start_key" json:"start_key,omitempty"` - StartInclusive *bool `protobuf:"varint,4,opt,name=start_inclusive" json:"start_inclusive,omitempty"` - EndKey *string `protobuf:"bytes,5,opt,name=end_key" json:"end_key,omitempty"` - EndInclusive *bool `protobuf:"varint,6,opt,name=end_inclusive" json:"end_inclusive,omitempty"` - StartPostfixValue []string `protobuf:"bytes,22,rep,name=start_postfix_value" json:"start_postfix_value,omitempty"` - EndPostfixValue []string `protobuf:"bytes,23,rep,name=end_postfix_value" json:"end_postfix_value,omitempty"` - EndUnappliedLogTimestampUs *int64 `protobuf:"varint,19,opt,name=end_unapplied_log_timestamp_us" json:"end_unapplied_log_timestamp_us,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledQuery_PrimaryScan) Reset() { *m = CompiledQuery_PrimaryScan{} } -func (m *CompiledQuery_PrimaryScan) String() string { return proto.CompactTextString(m) } -func (*CompiledQuery_PrimaryScan) ProtoMessage() {} - -func (m *CompiledQuery_PrimaryScan) GetIndexName() string { - if m != nil && m.IndexName != nil { - return *m.IndexName - } - return "" -} - -func (m *CompiledQuery_PrimaryScan) GetStartKey() string { - if m != nil && m.StartKey != nil { - return *m.StartKey - } - return "" -} - -func (m *CompiledQuery_PrimaryScan) GetStartInclusive() bool { - if m != nil && m.StartInclusive != nil { - return *m.StartInclusive - } - return false -} - -func (m *CompiledQuery_PrimaryScan) GetEndKey() string { - if m != nil && m.EndKey != nil { - return *m.EndKey - } - return "" -} - -func (m *CompiledQuery_PrimaryScan) GetEndInclusive() bool { - if m != nil && m.EndInclusive != nil { - return *m.EndInclusive - } - return false -} - -func (m *CompiledQuery_PrimaryScan) GetStartPostfixValue() []string { - if m != nil { - return m.StartPostfixValue - } - return nil -} - -func (m *CompiledQuery_PrimaryScan) GetEndPostfixValue() []string { - if m != nil { - return m.EndPostfixValue - } - return nil -} - -func (m *CompiledQuery_PrimaryScan) GetEndUnappliedLogTimestampUs() int64 { - if m != nil && m.EndUnappliedLogTimestampUs != nil { - return *m.EndUnappliedLogTimestampUs - } - return 0 -} - -type CompiledQuery_MergeJoinScan struct { - IndexName *string `protobuf:"bytes,8,req,name=index_name" json:"index_name,omitempty"` - PrefixValue []string `protobuf:"bytes,9,rep,name=prefix_value" json:"prefix_value,omitempty"` - ValuePrefix *bool `protobuf:"varint,20,opt,name=value_prefix,def=0" json:"value_prefix,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledQuery_MergeJoinScan) Reset() { *m = CompiledQuery_MergeJoinScan{} } -func (m *CompiledQuery_MergeJoinScan) String() string { return proto.CompactTextString(m) } -func (*CompiledQuery_MergeJoinScan) ProtoMessage() {} - -const Default_CompiledQuery_MergeJoinScan_ValuePrefix bool = false - -func (m *CompiledQuery_MergeJoinScan) GetIndexName() string { - if m != nil && m.IndexName != nil { - return *m.IndexName - } - return "" -} - -func (m *CompiledQuery_MergeJoinScan) GetPrefixValue() []string { - if m != nil { - return m.PrefixValue - } - return nil -} - -func (m *CompiledQuery_MergeJoinScan) GetValuePrefix() bool { - if m != nil && m.ValuePrefix != nil { - return *m.ValuePrefix - } - return Default_CompiledQuery_MergeJoinScan_ValuePrefix -} - -type CompiledQuery_EntityFilter struct { - Distinct *bool `protobuf:"varint,14,opt,name=distinct,def=0" json:"distinct,omitempty"` - Kind *string `protobuf:"bytes,17,opt,name=kind" json:"kind,omitempty"` - Ancestor *Reference `protobuf:"bytes,18,opt,name=ancestor" json:"ancestor,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledQuery_EntityFilter) Reset() { *m = CompiledQuery_EntityFilter{} } -func (m *CompiledQuery_EntityFilter) String() string { return proto.CompactTextString(m) } -func (*CompiledQuery_EntityFilter) ProtoMessage() {} - -const Default_CompiledQuery_EntityFilter_Distinct bool = false - -func (m *CompiledQuery_EntityFilter) GetDistinct() bool { - if m != nil && m.Distinct != nil { - return *m.Distinct - } - return Default_CompiledQuery_EntityFilter_Distinct -} - -func (m *CompiledQuery_EntityFilter) GetKind() string { - if m != nil && m.Kind != nil { - return *m.Kind - } - return "" -} - -func (m *CompiledQuery_EntityFilter) GetAncestor() *Reference { - if m != nil { - return m.Ancestor - } - return nil -} - -type CompiledCursor struct { - Position *CompiledCursor_Position `protobuf:"group,2,opt,name=Position" json:"position,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledCursor) Reset() { *m = CompiledCursor{} } -func (m *CompiledCursor) String() string { return proto.CompactTextString(m) } -func (*CompiledCursor) ProtoMessage() {} - -func (m *CompiledCursor) GetPosition() *CompiledCursor_Position { - if m != nil { - return m.Position - } - return nil -} - -type CompiledCursor_Position struct { - StartKey *string `protobuf:"bytes,27,opt,name=start_key" json:"start_key,omitempty"` - Indexvalue []*CompiledCursor_Position_IndexValue `protobuf:"group,29,rep,name=IndexValue" json:"indexvalue,omitempty"` - Key *Reference `protobuf:"bytes,32,opt,name=key" json:"key,omitempty"` - StartInclusive *bool `protobuf:"varint,28,opt,name=start_inclusive,def=1" json:"start_inclusive,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledCursor_Position) Reset() { *m = CompiledCursor_Position{} } -func (m *CompiledCursor_Position) String() string { return proto.CompactTextString(m) } -func (*CompiledCursor_Position) ProtoMessage() {} - -const Default_CompiledCursor_Position_StartInclusive bool = true - -func (m *CompiledCursor_Position) GetStartKey() string { - if m != nil && m.StartKey != nil { - return *m.StartKey - } - return "" -} - -func (m *CompiledCursor_Position) GetIndexvalue() []*CompiledCursor_Position_IndexValue { - if m != nil { - return m.Indexvalue - } - return nil -} - -func (m *CompiledCursor_Position) GetKey() *Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *CompiledCursor_Position) GetStartInclusive() bool { - if m != nil && m.StartInclusive != nil { - return *m.StartInclusive - } - return Default_CompiledCursor_Position_StartInclusive -} - -type CompiledCursor_Position_IndexValue struct { - Property *string `protobuf:"bytes,30,opt,name=property" json:"property,omitempty"` - Value *PropertyValue `protobuf:"bytes,31,req,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompiledCursor_Position_IndexValue) Reset() { *m = CompiledCursor_Position_IndexValue{} } -func (m *CompiledCursor_Position_IndexValue) String() string { return proto.CompactTextString(m) } -func (*CompiledCursor_Position_IndexValue) ProtoMessage() {} - -func (m *CompiledCursor_Position_IndexValue) GetProperty() string { - if m != nil && m.Property != nil { - return *m.Property - } - return "" -} - -func (m *CompiledCursor_Position_IndexValue) GetValue() *PropertyValue { - if m != nil { - return m.Value - } - return nil -} - -type Cursor struct { - Cursor *uint64 `protobuf:"fixed64,1,req,name=cursor" json:"cursor,omitempty"` - App *string `protobuf:"bytes,2,opt,name=app" json:"app,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Cursor) Reset() { *m = Cursor{} } -func (m *Cursor) String() string { return proto.CompactTextString(m) } -func (*Cursor) ProtoMessage() {} - -func (m *Cursor) GetCursor() uint64 { - if m != nil && m.Cursor != nil { - return *m.Cursor - } - return 0 -} - -func (m *Cursor) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -type Error struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} - -type Cost struct { - IndexWrites *int32 `protobuf:"varint,1,opt,name=index_writes" json:"index_writes,omitempty"` - IndexWriteBytes *int32 `protobuf:"varint,2,opt,name=index_write_bytes" json:"index_write_bytes,omitempty"` - EntityWrites *int32 `protobuf:"varint,3,opt,name=entity_writes" json:"entity_writes,omitempty"` - EntityWriteBytes *int32 `protobuf:"varint,4,opt,name=entity_write_bytes" json:"entity_write_bytes,omitempty"` - Commitcost *Cost_CommitCost `protobuf:"group,5,opt,name=CommitCost" json:"commitcost,omitempty"` - ApproximateStorageDelta *int32 `protobuf:"varint,8,opt,name=approximate_storage_delta" json:"approximate_storage_delta,omitempty"` - IdSequenceUpdates *int32 `protobuf:"varint,9,opt,name=id_sequence_updates" json:"id_sequence_updates,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Cost) Reset() { *m = Cost{} } -func (m *Cost) String() string { return proto.CompactTextString(m) } -func (*Cost) ProtoMessage() {} - -func (m *Cost) GetIndexWrites() int32 { - if m != nil && m.IndexWrites != nil { - return *m.IndexWrites - } - return 0 -} - -func (m *Cost) GetIndexWriteBytes() int32 { - if m != nil && m.IndexWriteBytes != nil { - return *m.IndexWriteBytes - } - return 0 -} - -func (m *Cost) GetEntityWrites() int32 { - if m != nil && m.EntityWrites != nil { - return *m.EntityWrites - } - return 0 -} - -func (m *Cost) GetEntityWriteBytes() int32 { - if m != nil && m.EntityWriteBytes != nil { - return *m.EntityWriteBytes - } - return 0 -} - -func (m *Cost) GetCommitcost() *Cost_CommitCost { - if m != nil { - return m.Commitcost - } - return nil -} - -func (m *Cost) GetApproximateStorageDelta() int32 { - if m != nil && m.ApproximateStorageDelta != nil { - return *m.ApproximateStorageDelta - } - return 0 -} - -func (m *Cost) GetIdSequenceUpdates() int32 { - if m != nil && m.IdSequenceUpdates != nil { - return *m.IdSequenceUpdates - } - return 0 -} - -type Cost_CommitCost struct { - RequestedEntityPuts *int32 `protobuf:"varint,6,opt,name=requested_entity_puts" json:"requested_entity_puts,omitempty"` - RequestedEntityDeletes *int32 `protobuf:"varint,7,opt,name=requested_entity_deletes" json:"requested_entity_deletes,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Cost_CommitCost) Reset() { *m = Cost_CommitCost{} } -func (m *Cost_CommitCost) String() string { return proto.CompactTextString(m) } -func (*Cost_CommitCost) ProtoMessage() {} - -func (m *Cost_CommitCost) GetRequestedEntityPuts() int32 { - if m != nil && m.RequestedEntityPuts != nil { - return *m.RequestedEntityPuts - } - return 0 -} - -func (m *Cost_CommitCost) GetRequestedEntityDeletes() int32 { - if m != nil && m.RequestedEntityDeletes != nil { - return *m.RequestedEntityDeletes - } - return 0 -} - -type GetRequest struct { - Header *InternalHeader `protobuf:"bytes,6,opt,name=header" json:"header,omitempty"` - Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` - Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction" json:"transaction,omitempty"` - FailoverMs *int64 `protobuf:"varint,3,opt,name=failover_ms" json:"failover_ms,omitempty"` - Strong *bool `protobuf:"varint,4,opt,name=strong" json:"strong,omitempty"` - AllowDeferred *bool `protobuf:"varint,5,opt,name=allow_deferred,def=0" json:"allow_deferred,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} - -const Default_GetRequest_AllowDeferred bool = false - -func (m *GetRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *GetRequest) GetKey() []*Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *GetRequest) GetTransaction() *Transaction { - if m != nil { - return m.Transaction - } - return nil -} - -func (m *GetRequest) GetFailoverMs() int64 { - if m != nil && m.FailoverMs != nil { - return *m.FailoverMs - } - return 0 -} - -func (m *GetRequest) GetStrong() bool { - if m != nil && m.Strong != nil { - return *m.Strong - } - return false -} - -func (m *GetRequest) GetAllowDeferred() bool { - if m != nil && m.AllowDeferred != nil { - return *m.AllowDeferred - } - return Default_GetRequest_AllowDeferred -} - -type GetResponse struct { - Entity []*GetResponse_Entity `protobuf:"group,1,rep,name=Entity" json:"entity,omitempty"` - Deferred []*Reference `protobuf:"bytes,5,rep,name=deferred" json:"deferred,omitempty"` - InOrder *bool `protobuf:"varint,6,opt,name=in_order,def=1" json:"in_order,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} - -const Default_GetResponse_InOrder bool = true - -func (m *GetResponse) GetEntity() []*GetResponse_Entity { - if m != nil { - return m.Entity - } - return nil -} - -func (m *GetResponse) GetDeferred() []*Reference { - if m != nil { - return m.Deferred - } - return nil -} - -func (m *GetResponse) GetInOrder() bool { - if m != nil && m.InOrder != nil { - return *m.InOrder - } - return Default_GetResponse_InOrder -} - -type GetResponse_Entity struct { - Entity *EntityProto `protobuf:"bytes,2,opt,name=entity" json:"entity,omitempty"` - Key *Reference `protobuf:"bytes,4,opt,name=key" json:"key,omitempty"` - Version *int64 `protobuf:"varint,3,opt,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *GetResponse_Entity) Reset() { *m = GetResponse_Entity{} } -func (m *GetResponse_Entity) String() string { return proto.CompactTextString(m) } -func (*GetResponse_Entity) ProtoMessage() {} - -func (m *GetResponse_Entity) GetEntity() *EntityProto { - if m != nil { - return m.Entity - } - return nil -} - -func (m *GetResponse_Entity) GetKey() *Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *GetResponse_Entity) GetVersion() int64 { - if m != nil && m.Version != nil { - return *m.Version - } - return 0 -} - -type PutRequest struct { - Header *InternalHeader `protobuf:"bytes,11,opt,name=header" json:"header,omitempty"` - Entity []*EntityProto `protobuf:"bytes,1,rep,name=entity" json:"entity,omitempty"` - Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction" json:"transaction,omitempty"` - CompositeIndex []*CompositeIndex `protobuf:"bytes,3,rep,name=composite_index" json:"composite_index,omitempty"` - Trusted *bool `protobuf:"varint,4,opt,name=trusted,def=0" json:"trusted,omitempty"` - Force *bool `protobuf:"varint,7,opt,name=force,def=0" json:"force,omitempty"` - MarkChanges *bool `protobuf:"varint,8,opt,name=mark_changes,def=0" json:"mark_changes,omitempty"` - Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` - AutoIdPolicy *PutRequest_AutoIdPolicy `protobuf:"varint,10,opt,name=auto_id_policy,enum=appengine.PutRequest_AutoIdPolicy,def=0" json:"auto_id_policy,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} - -const Default_PutRequest_Trusted bool = false -const Default_PutRequest_Force bool = false -const Default_PutRequest_MarkChanges bool = false -const Default_PutRequest_AutoIdPolicy PutRequest_AutoIdPolicy = PutRequest_CURRENT - -func (m *PutRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *PutRequest) GetEntity() []*EntityProto { - if m != nil { - return m.Entity - } - return nil -} - -func (m *PutRequest) GetTransaction() *Transaction { - if m != nil { - return m.Transaction - } - return nil -} - -func (m *PutRequest) GetCompositeIndex() []*CompositeIndex { - if m != nil { - return m.CompositeIndex - } - return nil -} - -func (m *PutRequest) GetTrusted() bool { - if m != nil && m.Trusted != nil { - return *m.Trusted - } - return Default_PutRequest_Trusted -} - -func (m *PutRequest) GetForce() bool { - if m != nil && m.Force != nil { - return *m.Force - } - return Default_PutRequest_Force -} - -func (m *PutRequest) GetMarkChanges() bool { - if m != nil && m.MarkChanges != nil { - return *m.MarkChanges - } - return Default_PutRequest_MarkChanges -} - -func (m *PutRequest) GetSnapshot() []*Snapshot { - if m != nil { - return m.Snapshot - } - return nil -} - -func (m *PutRequest) GetAutoIdPolicy() PutRequest_AutoIdPolicy { - if m != nil && m.AutoIdPolicy != nil { - return *m.AutoIdPolicy - } - return Default_PutRequest_AutoIdPolicy -} - -type PutResponse struct { - Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` - Cost *Cost `protobuf:"bytes,2,opt,name=cost" json:"cost,omitempty"` - Version []int64 `protobuf:"varint,3,rep,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} - -func (m *PutResponse) GetKey() []*Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *PutResponse) GetCost() *Cost { - if m != nil { - return m.Cost - } - return nil -} - -func (m *PutResponse) GetVersion() []int64 { - if m != nil { - return m.Version - } - return nil -} - -type TouchRequest struct { - Header *InternalHeader `protobuf:"bytes,10,opt,name=header" json:"header,omitempty"` - Key []*Reference `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` - CompositeIndex []*CompositeIndex `protobuf:"bytes,2,rep,name=composite_index" json:"composite_index,omitempty"` - Force *bool `protobuf:"varint,3,opt,name=force,def=0" json:"force,omitempty"` - Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *TouchRequest) Reset() { *m = TouchRequest{} } -func (m *TouchRequest) String() string { return proto.CompactTextString(m) } -func (*TouchRequest) ProtoMessage() {} - -const Default_TouchRequest_Force bool = false - -func (m *TouchRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *TouchRequest) GetKey() []*Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *TouchRequest) GetCompositeIndex() []*CompositeIndex { - if m != nil { - return m.CompositeIndex - } - return nil -} - -func (m *TouchRequest) GetForce() bool { - if m != nil && m.Force != nil { - return *m.Force - } - return Default_TouchRequest_Force -} - -func (m *TouchRequest) GetSnapshot() []*Snapshot { - if m != nil { - return m.Snapshot - } - return nil -} - -type TouchResponse struct { - Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *TouchResponse) Reset() { *m = TouchResponse{} } -func (m *TouchResponse) String() string { return proto.CompactTextString(m) } -func (*TouchResponse) ProtoMessage() {} - -func (m *TouchResponse) GetCost() *Cost { - if m != nil { - return m.Cost - } - return nil -} - -type DeleteRequest struct { - Header *InternalHeader `protobuf:"bytes,10,opt,name=header" json:"header,omitempty"` - Key []*Reference `protobuf:"bytes,6,rep,name=key" json:"key,omitempty"` - Transaction *Transaction `protobuf:"bytes,5,opt,name=transaction" json:"transaction,omitempty"` - Trusted *bool `protobuf:"varint,4,opt,name=trusted,def=0" json:"trusted,omitempty"` - Force *bool `protobuf:"varint,7,opt,name=force,def=0" json:"force,omitempty"` - MarkChanges *bool `protobuf:"varint,8,opt,name=mark_changes,def=0" json:"mark_changes,omitempty"` - Snapshot []*Snapshot `protobuf:"bytes,9,rep,name=snapshot" json:"snapshot,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} - -const Default_DeleteRequest_Trusted bool = false -const Default_DeleteRequest_Force bool = false -const Default_DeleteRequest_MarkChanges bool = false - -func (m *DeleteRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *DeleteRequest) GetKey() []*Reference { - if m != nil { - return m.Key - } - return nil -} - -func (m *DeleteRequest) GetTransaction() *Transaction { - if m != nil { - return m.Transaction - } - return nil -} - -func (m *DeleteRequest) GetTrusted() bool { - if m != nil && m.Trusted != nil { - return *m.Trusted - } - return Default_DeleteRequest_Trusted -} - -func (m *DeleteRequest) GetForce() bool { - if m != nil && m.Force != nil { - return *m.Force - } - return Default_DeleteRequest_Force -} - -func (m *DeleteRequest) GetMarkChanges() bool { - if m != nil && m.MarkChanges != nil { - return *m.MarkChanges - } - return Default_DeleteRequest_MarkChanges -} - -func (m *DeleteRequest) GetSnapshot() []*Snapshot { - if m != nil { - return m.Snapshot - } - return nil -} - -type DeleteResponse struct { - Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` - Version []int64 `protobuf:"varint,3,rep,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } -func (m *DeleteResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteResponse) ProtoMessage() {} - -func (m *DeleteResponse) GetCost() *Cost { - if m != nil { - return m.Cost - } - return nil -} - -func (m *DeleteResponse) GetVersion() []int64 { - if m != nil { - return m.Version - } - return nil -} - -type NextRequest struct { - Header *InternalHeader `protobuf:"bytes,5,opt,name=header" json:"header,omitempty"` - Cursor *Cursor `protobuf:"bytes,1,req,name=cursor" json:"cursor,omitempty"` - Count *int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` - Offset *int32 `protobuf:"varint,4,opt,name=offset,def=0" json:"offset,omitempty"` - Compile *bool `protobuf:"varint,3,opt,name=compile,def=0" json:"compile,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *NextRequest) Reset() { *m = NextRequest{} } -func (m *NextRequest) String() string { return proto.CompactTextString(m) } -func (*NextRequest) ProtoMessage() {} - -const Default_NextRequest_Offset int32 = 0 -const Default_NextRequest_Compile bool = false - -func (m *NextRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *NextRequest) GetCursor() *Cursor { - if m != nil { - return m.Cursor - } - return nil -} - -func (m *NextRequest) GetCount() int32 { - if m != nil && m.Count != nil { - return *m.Count - } - return 0 -} - -func (m *NextRequest) GetOffset() int32 { - if m != nil && m.Offset != nil { - return *m.Offset - } - return Default_NextRequest_Offset -} - -func (m *NextRequest) GetCompile() bool { - if m != nil && m.Compile != nil { - return *m.Compile - } - return Default_NextRequest_Compile -} - -type QueryResult struct { - Cursor *Cursor `protobuf:"bytes,1,opt,name=cursor" json:"cursor,omitempty"` - Result []*EntityProto `protobuf:"bytes,2,rep,name=result" json:"result,omitempty"` - SkippedResults *int32 `protobuf:"varint,7,opt,name=skipped_results" json:"skipped_results,omitempty"` - MoreResults *bool `protobuf:"varint,3,req,name=more_results" json:"more_results,omitempty"` - KeysOnly *bool `protobuf:"varint,4,opt,name=keys_only" json:"keys_only,omitempty"` - IndexOnly *bool `protobuf:"varint,9,opt,name=index_only" json:"index_only,omitempty"` - SmallOps *bool `protobuf:"varint,10,opt,name=small_ops" json:"small_ops,omitempty"` - CompiledQuery *CompiledQuery `protobuf:"bytes,5,opt,name=compiled_query" json:"compiled_query,omitempty"` - CompiledCursor *CompiledCursor `protobuf:"bytes,6,opt,name=compiled_cursor" json:"compiled_cursor,omitempty"` - Index []*CompositeIndex `protobuf:"bytes,8,rep,name=index" json:"index,omitempty"` - Version []int64 `protobuf:"varint,11,rep,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *QueryResult) Reset() { *m = QueryResult{} } -func (m *QueryResult) String() string { return proto.CompactTextString(m) } -func (*QueryResult) ProtoMessage() {} - -func (m *QueryResult) GetCursor() *Cursor { - if m != nil { - return m.Cursor - } - return nil -} - -func (m *QueryResult) GetResult() []*EntityProto { - if m != nil { - return m.Result - } - return nil -} - -func (m *QueryResult) GetSkippedResults() int32 { - if m != nil && m.SkippedResults != nil { - return *m.SkippedResults - } - return 0 -} - -func (m *QueryResult) GetMoreResults() bool { - if m != nil && m.MoreResults != nil { - return *m.MoreResults - } - return false -} - -func (m *QueryResult) GetKeysOnly() bool { - if m != nil && m.KeysOnly != nil { - return *m.KeysOnly - } - return false -} - -func (m *QueryResult) GetIndexOnly() bool { - if m != nil && m.IndexOnly != nil { - return *m.IndexOnly - } - return false -} - -func (m *QueryResult) GetSmallOps() bool { - if m != nil && m.SmallOps != nil { - return *m.SmallOps - } - return false -} - -func (m *QueryResult) GetCompiledQuery() *CompiledQuery { - if m != nil { - return m.CompiledQuery - } - return nil -} - -func (m *QueryResult) GetCompiledCursor() *CompiledCursor { - if m != nil { - return m.CompiledCursor - } - return nil -} - -func (m *QueryResult) GetIndex() []*CompositeIndex { - if m != nil { - return m.Index - } - return nil -} - -func (m *QueryResult) GetVersion() []int64 { - if m != nil { - return m.Version - } - return nil -} - -type AllocateIdsRequest struct { - Header *InternalHeader `protobuf:"bytes,4,opt,name=header" json:"header,omitempty"` - ModelKey *Reference `protobuf:"bytes,1,opt,name=model_key" json:"model_key,omitempty"` - Size *int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` - Max *int64 `protobuf:"varint,3,opt,name=max" json:"max,omitempty"` - Reserve []*Reference `protobuf:"bytes,5,rep,name=reserve" json:"reserve,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *AllocateIdsRequest) Reset() { *m = AllocateIdsRequest{} } -func (m *AllocateIdsRequest) String() string { return proto.CompactTextString(m) } -func (*AllocateIdsRequest) ProtoMessage() {} - -func (m *AllocateIdsRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *AllocateIdsRequest) GetModelKey() *Reference { - if m != nil { - return m.ModelKey - } - return nil -} - -func (m *AllocateIdsRequest) GetSize() int64 { - if m != nil && m.Size != nil { - return *m.Size - } - return 0 -} - -func (m *AllocateIdsRequest) GetMax() int64 { - if m != nil && m.Max != nil { - return *m.Max - } - return 0 -} - -func (m *AllocateIdsRequest) GetReserve() []*Reference { - if m != nil { - return m.Reserve - } - return nil -} - -type AllocateIdsResponse struct { - Start *int64 `protobuf:"varint,1,req,name=start" json:"start,omitempty"` - End *int64 `protobuf:"varint,2,req,name=end" json:"end,omitempty"` - Cost *Cost `protobuf:"bytes,3,opt,name=cost" json:"cost,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *AllocateIdsResponse) Reset() { *m = AllocateIdsResponse{} } -func (m *AllocateIdsResponse) String() string { return proto.CompactTextString(m) } -func (*AllocateIdsResponse) ProtoMessage() {} - -func (m *AllocateIdsResponse) GetStart() int64 { - if m != nil && m.Start != nil { - return *m.Start - } - return 0 -} - -func (m *AllocateIdsResponse) GetEnd() int64 { - if m != nil && m.End != nil { - return *m.End - } - return 0 -} - -func (m *AllocateIdsResponse) GetCost() *Cost { - if m != nil { - return m.Cost - } - return nil -} - -type CompositeIndices struct { - Index []*CompositeIndex `protobuf:"bytes,1,rep,name=index" json:"index,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CompositeIndices) Reset() { *m = CompositeIndices{} } -func (m *CompositeIndices) String() string { return proto.CompactTextString(m) } -func (*CompositeIndices) ProtoMessage() {} - -func (m *CompositeIndices) GetIndex() []*CompositeIndex { - if m != nil { - return m.Index - } - return nil -} - -type AddActionsRequest struct { - Header *InternalHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` - Transaction *Transaction `protobuf:"bytes,1,req,name=transaction" json:"transaction,omitempty"` - Action []*Action `protobuf:"bytes,2,rep,name=action" json:"action,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *AddActionsRequest) Reset() { *m = AddActionsRequest{} } -func (m *AddActionsRequest) String() string { return proto.CompactTextString(m) } -func (*AddActionsRequest) ProtoMessage() {} - -func (m *AddActionsRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *AddActionsRequest) GetTransaction() *Transaction { - if m != nil { - return m.Transaction - } - return nil -} - -func (m *AddActionsRequest) GetAction() []*Action { - if m != nil { - return m.Action - } - return nil -} - -type AddActionsResponse struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *AddActionsResponse) Reset() { *m = AddActionsResponse{} } -func (m *AddActionsResponse) String() string { return proto.CompactTextString(m) } -func (*AddActionsResponse) ProtoMessage() {} - -type BeginTransactionRequest struct { - Header *InternalHeader `protobuf:"bytes,3,opt,name=header" json:"header,omitempty"` - App *string `protobuf:"bytes,1,req,name=app" json:"app,omitempty"` - AllowMultipleEg *bool `protobuf:"varint,2,opt,name=allow_multiple_eg,def=0" json:"allow_multiple_eg,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *BeginTransactionRequest) Reset() { *m = BeginTransactionRequest{} } -func (m *BeginTransactionRequest) String() string { return proto.CompactTextString(m) } -func (*BeginTransactionRequest) ProtoMessage() {} - -const Default_BeginTransactionRequest_AllowMultipleEg bool = false - -func (m *BeginTransactionRequest) GetHeader() *InternalHeader { - if m != nil { - return m.Header - } - return nil -} - -func (m *BeginTransactionRequest) GetApp() string { - if m != nil && m.App != nil { - return *m.App - } - return "" -} - -func (m *BeginTransactionRequest) GetAllowMultipleEg() bool { - if m != nil && m.AllowMultipleEg != nil { - return *m.AllowMultipleEg - } - return Default_BeginTransactionRequest_AllowMultipleEg -} - -type CommitResponse struct { - Cost *Cost `protobuf:"bytes,1,opt,name=cost" json:"cost,omitempty"` - Version []*CommitResponse_Version `protobuf:"group,3,rep,name=Version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CommitResponse) Reset() { *m = CommitResponse{} } -func (m *CommitResponse) String() string { return proto.CompactTextString(m) } -func (*CommitResponse) ProtoMessage() {} - -func (m *CommitResponse) GetCost() *Cost { - if m != nil { - return m.Cost - } - return nil -} - -func (m *CommitResponse) GetVersion() []*CommitResponse_Version { - if m != nil { - return m.Version - } - return nil -} - -type CommitResponse_Version struct { - RootEntityKey *Reference `protobuf:"bytes,4,req,name=root_entity_key" json:"root_entity_key,omitempty"` - Version *int64 `protobuf:"varint,5,req,name=version" json:"version,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *CommitResponse_Version) Reset() { *m = CommitResponse_Version{} } -func (m *CommitResponse_Version) String() string { return proto.CompactTextString(m) } -func (*CommitResponse_Version) ProtoMessage() {} - -func (m *CommitResponse_Version) GetRootEntityKey() *Reference { - if m != nil { - return m.RootEntityKey - } - return nil -} - -func (m *CommitResponse_Version) GetVersion() int64 { - if m != nil && m.Version != nil { - return *m.Version - } - return 0 -} - -func init() { -} diff --git a/vendor/google.golang.org/appengine/internal/identity.go b/vendor/google.golang.org/appengine/internal/identity.go deleted file mode 100644 index d538701..0000000 --- a/vendor/google.golang.org/appengine/internal/identity.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -import netcontext "golang.org/x/net/context" - -// These functions are implementations of the wrapper functions -// in ../appengine/identity.go. See that file for commentary. - -func AppID(c netcontext.Context) string { - return appID(FullyQualifiedAppID(c)) -} diff --git a/vendor/google.golang.org/appengine/internal/identity_classic.go b/vendor/google.golang.org/appengine/internal/identity_classic.go deleted file mode 100644 index e6b9227..0000000 --- a/vendor/google.golang.org/appengine/internal/identity_classic.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2015 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build appengine - -package internal - -import ( - "appengine" - - netcontext "golang.org/x/net/context" -) - -func DefaultVersionHostname(ctx netcontext.Context) string { - return appengine.DefaultVersionHostname(fromContext(ctx)) -} - -func RequestID(ctx netcontext.Context) string { return appengine.RequestID(fromContext(ctx)) } -func Datacenter(_ netcontext.Context) string { return appengine.Datacenter() } -func ServerSoftware() string { return appengine.ServerSoftware() } -func ModuleName(ctx netcontext.Context) string { return appengine.ModuleName(fromContext(ctx)) } -func VersionID(ctx netcontext.Context) string { return appengine.VersionID(fromContext(ctx)) } -func InstanceID() string { return appengine.InstanceID() } -func IsDevAppServer() bool { return appengine.IsDevAppServer() } - -func fullyQualifiedAppID(ctx netcontext.Context) string { return fromContext(ctx).FullyQualifiedAppID() } diff --git a/vendor/google.golang.org/appengine/internal/identity_vm.go b/vendor/google.golang.org/appengine/internal/identity_vm.go deleted file mode 100644 index ebe68b7..0000000 --- a/vendor/google.golang.org/appengine/internal/identity_vm.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build !appengine - -package internal - -import ( - "net/http" - "os" - - netcontext "golang.org/x/net/context" -) - -// These functions are implementations of the wrapper functions -// in ../appengine/identity.go. See that file for commentary. - -const ( - hDefaultVersionHostname = "X-AppEngine-Default-Version-Hostname" - hRequestLogId = "X-AppEngine-Request-Log-Id" - hDatacenter = "X-AppEngine-Datacenter" -) - -func ctxHeaders(ctx netcontext.Context) http.Header { - return fromContext(ctx).Request().Header -} - -func DefaultVersionHostname(ctx netcontext.Context) string { - return ctxHeaders(ctx).Get(hDefaultVersionHostname) -} - -func RequestID(ctx netcontext.Context) string { - return ctxHeaders(ctx).Get(hRequestLogId) -} - -func Datacenter(ctx netcontext.Context) string { - return ctxHeaders(ctx).Get(hDatacenter) -} - -func ServerSoftware() string { - // TODO(dsymonds): Remove fallback when we've verified this. - if s := os.Getenv("SERVER_SOFTWARE"); s != "" { - return s - } - return "Google App Engine/1.x.x" -} - -// TODO(dsymonds): Remove the metadata fetches. - -func ModuleName(_ netcontext.Context) string { - if s := os.Getenv("GAE_MODULE_NAME"); s != "" { - return s - } - return string(mustGetMetadata("instance/attributes/gae_backend_name")) -} - -func VersionID(_ netcontext.Context) string { - if s1, s2 := os.Getenv("GAE_MODULE_VERSION"), os.Getenv("GAE_MINOR_VERSION"); s1 != "" && s2 != "" { - return s1 + "." + s2 - } - return string(mustGetMetadata("instance/attributes/gae_backend_version")) + "." + string(mustGetMetadata("instance/attributes/gae_backend_minor_version")) -} - -func InstanceID() string { - if s := os.Getenv("GAE_MODULE_INSTANCE"); s != "" { - return s - } - return string(mustGetMetadata("instance/attributes/gae_backend_instance")) -} - -func partitionlessAppID() string { - // gae_project has everything except the partition prefix. - appID := os.Getenv("GAE_LONG_APP_ID") - if appID == "" { - appID = string(mustGetMetadata("instance/attributes/gae_project")) - } - return appID -} - -func fullyQualifiedAppID(_ netcontext.Context) string { - appID := partitionlessAppID() - - part := os.Getenv("GAE_PARTITION") - if part == "" { - part = string(mustGetMetadata("instance/attributes/gae_partition")) - } - - if part != "" { - appID = part + "~" + appID - } - return appID -} - -func IsDevAppServer() bool { - return os.Getenv("RUN_WITH_DEVAPPSERVER") != "" -} diff --git a/vendor/google.golang.org/appengine/internal/internal.go b/vendor/google.golang.org/appengine/internal/internal.go deleted file mode 100644 index 051ea39..0000000 --- a/vendor/google.golang.org/appengine/internal/internal.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// Package internal provides support for package appengine. -// -// Programs should not use this package directly. Its API is not stable. -// Use packages appengine and appengine/* instead. -package internal - -import ( - "fmt" - - "github.com/golang/protobuf/proto" - - remotepb "google.golang.org/appengine/internal/remote_api" -) - -// errorCodeMaps is a map of service name to the error code map for the service. -var errorCodeMaps = make(map[string]map[int32]string) - -// RegisterErrorCodeMap is called from API implementations to register their -// error code map. This should only be called from init functions. -func RegisterErrorCodeMap(service string, m map[int32]string) { - errorCodeMaps[service] = m -} - -type timeoutCodeKey struct { - service string - code int32 -} - -// timeoutCodes is the set of service+code pairs that represent timeouts. -var timeoutCodes = make(map[timeoutCodeKey]bool) - -func RegisterTimeoutErrorCode(service string, code int32) { - timeoutCodes[timeoutCodeKey{service, code}] = true -} - -// APIError is the type returned by appengine.Context's Call method -// when an API call fails in an API-specific way. This may be, for instance, -// a taskqueue API call failing with TaskQueueServiceError::UNKNOWN_QUEUE. -type APIError struct { - Service string - Detail string - Code int32 // API-specific error code -} - -func (e *APIError) Error() string { - if e.Code == 0 { - if e.Detail == "" { - return "APIError " - } - return e.Detail - } - s := fmt.Sprintf("API error %d", e.Code) - if m, ok := errorCodeMaps[e.Service]; ok { - s += " (" + e.Service + ": " + m[e.Code] + ")" - } else { - // Shouldn't happen, but provide a bit more detail if it does. - s = e.Service + " " + s - } - if e.Detail != "" { - s += ": " + e.Detail - } - return s -} - -func (e *APIError) IsTimeout() bool { - return timeoutCodes[timeoutCodeKey{e.Service, e.Code}] -} - -// CallError is the type returned by appengine.Context's Call method when an -// API call fails in a generic way, such as RpcError::CAPABILITY_DISABLED. -type CallError struct { - Detail string - Code int32 - // TODO: Remove this if we get a distinguishable error code. - Timeout bool -} - -func (e *CallError) Error() string { - var msg string - switch remotepb.RpcError_ErrorCode(e.Code) { - case remotepb.RpcError_UNKNOWN: - return e.Detail - case remotepb.RpcError_OVER_QUOTA: - msg = "Over quota" - case remotepb.RpcError_CAPABILITY_DISABLED: - msg = "Capability disabled" - case remotepb.RpcError_CANCELLED: - msg = "Canceled" - default: - msg = fmt.Sprintf("Call error %d", e.Code) - } - s := msg + ": " + e.Detail - if e.Timeout { - s += " (timeout)" - } - return s -} - -func (e *CallError) IsTimeout() bool { - return e.Timeout -} - -// NamespaceMods is a map from API service to a function that will mutate an RPC request to attach a namespace. -// The function should be prepared to be called on the same message more than once; it should only modify the -// RPC request the first time. -var NamespaceMods = make(map[string]func(m proto.Message, namespace string)) diff --git a/vendor/google.golang.org/appengine/internal/log/log_service.pb.go b/vendor/google.golang.org/appengine/internal/log/log_service.pb.go deleted file mode 100644 index 20c595b..0000000 --- a/vendor/google.golang.org/appengine/internal/log/log_service.pb.go +++ /dev/null @@ -1,899 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google.golang.org/appengine/internal/log/log_service.proto -// DO NOT EDIT! - -/* -Package log is a generated protocol buffer package. - -It is generated from these files: - google.golang.org/appengine/internal/log/log_service.proto - -It has these top-level messages: - LogServiceError - UserAppLogLine - UserAppLogGroup - FlushRequest - SetStatusRequest - LogOffset - LogLine - RequestLog - LogModuleVersion - LogReadRequest - LogReadResponse - LogUsageRecord - LogUsageRequest - LogUsageResponse -*/ -package log - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type LogServiceError_ErrorCode int32 - -const ( - LogServiceError_OK LogServiceError_ErrorCode = 0 - LogServiceError_INVALID_REQUEST LogServiceError_ErrorCode = 1 - LogServiceError_STORAGE_ERROR LogServiceError_ErrorCode = 2 -) - -var LogServiceError_ErrorCode_name = map[int32]string{ - 0: "OK", - 1: "INVALID_REQUEST", - 2: "STORAGE_ERROR", -} -var LogServiceError_ErrorCode_value = map[string]int32{ - "OK": 0, - "INVALID_REQUEST": 1, - "STORAGE_ERROR": 2, -} - -func (x LogServiceError_ErrorCode) Enum() *LogServiceError_ErrorCode { - p := new(LogServiceError_ErrorCode) - *p = x - return p -} -func (x LogServiceError_ErrorCode) String() string { - return proto.EnumName(LogServiceError_ErrorCode_name, int32(x)) -} -func (x *LogServiceError_ErrorCode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(LogServiceError_ErrorCode_value, data, "LogServiceError_ErrorCode") - if err != nil { - return err - } - *x = LogServiceError_ErrorCode(value) - return nil -} - -type LogServiceError struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogServiceError) Reset() { *m = LogServiceError{} } -func (m *LogServiceError) String() string { return proto.CompactTextString(m) } -func (*LogServiceError) ProtoMessage() {} - -type UserAppLogLine struct { - TimestampUsec *int64 `protobuf:"varint,1,req,name=timestamp_usec" json:"timestamp_usec,omitempty"` - Level *int64 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` - Message *string `protobuf:"bytes,3,req,name=message" json:"message,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *UserAppLogLine) Reset() { *m = UserAppLogLine{} } -func (m *UserAppLogLine) String() string { return proto.CompactTextString(m) } -func (*UserAppLogLine) ProtoMessage() {} - -func (m *UserAppLogLine) GetTimestampUsec() int64 { - if m != nil && m.TimestampUsec != nil { - return *m.TimestampUsec - } - return 0 -} - -func (m *UserAppLogLine) GetLevel() int64 { - if m != nil && m.Level != nil { - return *m.Level - } - return 0 -} - -func (m *UserAppLogLine) GetMessage() string { - if m != nil && m.Message != nil { - return *m.Message - } - return "" -} - -type UserAppLogGroup struct { - LogLine []*UserAppLogLine `protobuf:"bytes,2,rep,name=log_line" json:"log_line,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *UserAppLogGroup) Reset() { *m = UserAppLogGroup{} } -func (m *UserAppLogGroup) String() string { return proto.CompactTextString(m) } -func (*UserAppLogGroup) ProtoMessage() {} - -func (m *UserAppLogGroup) GetLogLine() []*UserAppLogLine { - if m != nil { - return m.LogLine - } - return nil -} - -type FlushRequest struct { - Logs []byte `protobuf:"bytes,1,opt,name=logs" json:"logs,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *FlushRequest) Reset() { *m = FlushRequest{} } -func (m *FlushRequest) String() string { return proto.CompactTextString(m) } -func (*FlushRequest) ProtoMessage() {} - -func (m *FlushRequest) GetLogs() []byte { - if m != nil { - return m.Logs - } - return nil -} - -type SetStatusRequest struct { - Status *string `protobuf:"bytes,1,req,name=status" json:"status,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *SetStatusRequest) Reset() { *m = SetStatusRequest{} } -func (m *SetStatusRequest) String() string { return proto.CompactTextString(m) } -func (*SetStatusRequest) ProtoMessage() {} - -func (m *SetStatusRequest) GetStatus() string { - if m != nil && m.Status != nil { - return *m.Status - } - return "" -} - -type LogOffset struct { - RequestId []byte `protobuf:"bytes,1,opt,name=request_id" json:"request_id,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogOffset) Reset() { *m = LogOffset{} } -func (m *LogOffset) String() string { return proto.CompactTextString(m) } -func (*LogOffset) ProtoMessage() {} - -func (m *LogOffset) GetRequestId() []byte { - if m != nil { - return m.RequestId - } - return nil -} - -type LogLine struct { - Time *int64 `protobuf:"varint,1,req,name=time" json:"time,omitempty"` - Level *int32 `protobuf:"varint,2,req,name=level" json:"level,omitempty"` - LogMessage *string `protobuf:"bytes,3,req,name=log_message" json:"log_message,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogLine) Reset() { *m = LogLine{} } -func (m *LogLine) String() string { return proto.CompactTextString(m) } -func (*LogLine) ProtoMessage() {} - -func (m *LogLine) GetTime() int64 { - if m != nil && m.Time != nil { - return *m.Time - } - return 0 -} - -func (m *LogLine) GetLevel() int32 { - if m != nil && m.Level != nil { - return *m.Level - } - return 0 -} - -func (m *LogLine) GetLogMessage() string { - if m != nil && m.LogMessage != nil { - return *m.LogMessage - } - return "" -} - -type RequestLog struct { - AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` - ModuleId *string `protobuf:"bytes,37,opt,name=module_id,def=default" json:"module_id,omitempty"` - VersionId *string `protobuf:"bytes,2,req,name=version_id" json:"version_id,omitempty"` - RequestId []byte `protobuf:"bytes,3,req,name=request_id" json:"request_id,omitempty"` - Offset *LogOffset `protobuf:"bytes,35,opt,name=offset" json:"offset,omitempty"` - Ip *string `protobuf:"bytes,4,req,name=ip" json:"ip,omitempty"` - Nickname *string `protobuf:"bytes,5,opt,name=nickname" json:"nickname,omitempty"` - StartTime *int64 `protobuf:"varint,6,req,name=start_time" json:"start_time,omitempty"` - EndTime *int64 `protobuf:"varint,7,req,name=end_time" json:"end_time,omitempty"` - Latency *int64 `protobuf:"varint,8,req,name=latency" json:"latency,omitempty"` - Mcycles *int64 `protobuf:"varint,9,req,name=mcycles" json:"mcycles,omitempty"` - Method *string `protobuf:"bytes,10,req,name=method" json:"method,omitempty"` - Resource *string `protobuf:"bytes,11,req,name=resource" json:"resource,omitempty"` - HttpVersion *string `protobuf:"bytes,12,req,name=http_version" json:"http_version,omitempty"` - Status *int32 `protobuf:"varint,13,req,name=status" json:"status,omitempty"` - ResponseSize *int64 `protobuf:"varint,14,req,name=response_size" json:"response_size,omitempty"` - Referrer *string `protobuf:"bytes,15,opt,name=referrer" json:"referrer,omitempty"` - UserAgent *string `protobuf:"bytes,16,opt,name=user_agent" json:"user_agent,omitempty"` - UrlMapEntry *string `protobuf:"bytes,17,req,name=url_map_entry" json:"url_map_entry,omitempty"` - Combined *string `protobuf:"bytes,18,req,name=combined" json:"combined,omitempty"` - ApiMcycles *int64 `protobuf:"varint,19,opt,name=api_mcycles" json:"api_mcycles,omitempty"` - Host *string `protobuf:"bytes,20,opt,name=host" json:"host,omitempty"` - Cost *float64 `protobuf:"fixed64,21,opt,name=cost" json:"cost,omitempty"` - TaskQueueName *string `protobuf:"bytes,22,opt,name=task_queue_name" json:"task_queue_name,omitempty"` - TaskName *string `protobuf:"bytes,23,opt,name=task_name" json:"task_name,omitempty"` - WasLoadingRequest *bool `protobuf:"varint,24,opt,name=was_loading_request" json:"was_loading_request,omitempty"` - PendingTime *int64 `protobuf:"varint,25,opt,name=pending_time" json:"pending_time,omitempty"` - ReplicaIndex *int32 `protobuf:"varint,26,opt,name=replica_index,def=-1" json:"replica_index,omitempty"` - Finished *bool `protobuf:"varint,27,opt,name=finished,def=1" json:"finished,omitempty"` - CloneKey []byte `protobuf:"bytes,28,opt,name=clone_key" json:"clone_key,omitempty"` - Line []*LogLine `protobuf:"bytes,29,rep,name=line" json:"line,omitempty"` - LinesIncomplete *bool `protobuf:"varint,36,opt,name=lines_incomplete" json:"lines_incomplete,omitempty"` - AppEngineRelease []byte `protobuf:"bytes,38,opt,name=app_engine_release" json:"app_engine_release,omitempty"` - ExitReason *int32 `protobuf:"varint,30,opt,name=exit_reason" json:"exit_reason,omitempty"` - WasThrottledForTime *bool `protobuf:"varint,31,opt,name=was_throttled_for_time" json:"was_throttled_for_time,omitempty"` - WasThrottledForRequests *bool `protobuf:"varint,32,opt,name=was_throttled_for_requests" json:"was_throttled_for_requests,omitempty"` - ThrottledTime *int64 `protobuf:"varint,33,opt,name=throttled_time" json:"throttled_time,omitempty"` - ServerName []byte `protobuf:"bytes,34,opt,name=server_name" json:"server_name,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *RequestLog) Reset() { *m = RequestLog{} } -func (m *RequestLog) String() string { return proto.CompactTextString(m) } -func (*RequestLog) ProtoMessage() {} - -const Default_RequestLog_ModuleId string = "default" -const Default_RequestLog_ReplicaIndex int32 = -1 -const Default_RequestLog_Finished bool = true - -func (m *RequestLog) GetAppId() string { - if m != nil && m.AppId != nil { - return *m.AppId - } - return "" -} - -func (m *RequestLog) GetModuleId() string { - if m != nil && m.ModuleId != nil { - return *m.ModuleId - } - return Default_RequestLog_ModuleId -} - -func (m *RequestLog) GetVersionId() string { - if m != nil && m.VersionId != nil { - return *m.VersionId - } - return "" -} - -func (m *RequestLog) GetRequestId() []byte { - if m != nil { - return m.RequestId - } - return nil -} - -func (m *RequestLog) GetOffset() *LogOffset { - if m != nil { - return m.Offset - } - return nil -} - -func (m *RequestLog) GetIp() string { - if m != nil && m.Ip != nil { - return *m.Ip - } - return "" -} - -func (m *RequestLog) GetNickname() string { - if m != nil && m.Nickname != nil { - return *m.Nickname - } - return "" -} - -func (m *RequestLog) GetStartTime() int64 { - if m != nil && m.StartTime != nil { - return *m.StartTime - } - return 0 -} - -func (m *RequestLog) GetEndTime() int64 { - if m != nil && m.EndTime != nil { - return *m.EndTime - } - return 0 -} - -func (m *RequestLog) GetLatency() int64 { - if m != nil && m.Latency != nil { - return *m.Latency - } - return 0 -} - -func (m *RequestLog) GetMcycles() int64 { - if m != nil && m.Mcycles != nil { - return *m.Mcycles - } - return 0 -} - -func (m *RequestLog) GetMethod() string { - if m != nil && m.Method != nil { - return *m.Method - } - return "" -} - -func (m *RequestLog) GetResource() string { - if m != nil && m.Resource != nil { - return *m.Resource - } - return "" -} - -func (m *RequestLog) GetHttpVersion() string { - if m != nil && m.HttpVersion != nil { - return *m.HttpVersion - } - return "" -} - -func (m *RequestLog) GetStatus() int32 { - if m != nil && m.Status != nil { - return *m.Status - } - return 0 -} - -func (m *RequestLog) GetResponseSize() int64 { - if m != nil && m.ResponseSize != nil { - return *m.ResponseSize - } - return 0 -} - -func (m *RequestLog) GetReferrer() string { - if m != nil && m.Referrer != nil { - return *m.Referrer - } - return "" -} - -func (m *RequestLog) GetUserAgent() string { - if m != nil && m.UserAgent != nil { - return *m.UserAgent - } - return "" -} - -func (m *RequestLog) GetUrlMapEntry() string { - if m != nil && m.UrlMapEntry != nil { - return *m.UrlMapEntry - } - return "" -} - -func (m *RequestLog) GetCombined() string { - if m != nil && m.Combined != nil { - return *m.Combined - } - return "" -} - -func (m *RequestLog) GetApiMcycles() int64 { - if m != nil && m.ApiMcycles != nil { - return *m.ApiMcycles - } - return 0 -} - -func (m *RequestLog) GetHost() string { - if m != nil && m.Host != nil { - return *m.Host - } - return "" -} - -func (m *RequestLog) GetCost() float64 { - if m != nil && m.Cost != nil { - return *m.Cost - } - return 0 -} - -func (m *RequestLog) GetTaskQueueName() string { - if m != nil && m.TaskQueueName != nil { - return *m.TaskQueueName - } - return "" -} - -func (m *RequestLog) GetTaskName() string { - if m != nil && m.TaskName != nil { - return *m.TaskName - } - return "" -} - -func (m *RequestLog) GetWasLoadingRequest() bool { - if m != nil && m.WasLoadingRequest != nil { - return *m.WasLoadingRequest - } - return false -} - -func (m *RequestLog) GetPendingTime() int64 { - if m != nil && m.PendingTime != nil { - return *m.PendingTime - } - return 0 -} - -func (m *RequestLog) GetReplicaIndex() int32 { - if m != nil && m.ReplicaIndex != nil { - return *m.ReplicaIndex - } - return Default_RequestLog_ReplicaIndex -} - -func (m *RequestLog) GetFinished() bool { - if m != nil && m.Finished != nil { - return *m.Finished - } - return Default_RequestLog_Finished -} - -func (m *RequestLog) GetCloneKey() []byte { - if m != nil { - return m.CloneKey - } - return nil -} - -func (m *RequestLog) GetLine() []*LogLine { - if m != nil { - return m.Line - } - return nil -} - -func (m *RequestLog) GetLinesIncomplete() bool { - if m != nil && m.LinesIncomplete != nil { - return *m.LinesIncomplete - } - return false -} - -func (m *RequestLog) GetAppEngineRelease() []byte { - if m != nil { - return m.AppEngineRelease - } - return nil -} - -func (m *RequestLog) GetExitReason() int32 { - if m != nil && m.ExitReason != nil { - return *m.ExitReason - } - return 0 -} - -func (m *RequestLog) GetWasThrottledForTime() bool { - if m != nil && m.WasThrottledForTime != nil { - return *m.WasThrottledForTime - } - return false -} - -func (m *RequestLog) GetWasThrottledForRequests() bool { - if m != nil && m.WasThrottledForRequests != nil { - return *m.WasThrottledForRequests - } - return false -} - -func (m *RequestLog) GetThrottledTime() int64 { - if m != nil && m.ThrottledTime != nil { - return *m.ThrottledTime - } - return 0 -} - -func (m *RequestLog) GetServerName() []byte { - if m != nil { - return m.ServerName - } - return nil -} - -type LogModuleVersion struct { - ModuleId *string `protobuf:"bytes,1,opt,name=module_id,def=default" json:"module_id,omitempty"` - VersionId *string `protobuf:"bytes,2,opt,name=version_id" json:"version_id,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogModuleVersion) Reset() { *m = LogModuleVersion{} } -func (m *LogModuleVersion) String() string { return proto.CompactTextString(m) } -func (*LogModuleVersion) ProtoMessage() {} - -const Default_LogModuleVersion_ModuleId string = "default" - -func (m *LogModuleVersion) GetModuleId() string { - if m != nil && m.ModuleId != nil { - return *m.ModuleId - } - return Default_LogModuleVersion_ModuleId -} - -func (m *LogModuleVersion) GetVersionId() string { - if m != nil && m.VersionId != nil { - return *m.VersionId - } - return "" -} - -type LogReadRequest struct { - AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` - VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"` - ModuleVersion []*LogModuleVersion `protobuf:"bytes,19,rep,name=module_version" json:"module_version,omitempty"` - StartTime *int64 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"` - EndTime *int64 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"` - Offset *LogOffset `protobuf:"bytes,5,opt,name=offset" json:"offset,omitempty"` - RequestId [][]byte `protobuf:"bytes,6,rep,name=request_id" json:"request_id,omitempty"` - MinimumLogLevel *int32 `protobuf:"varint,7,opt,name=minimum_log_level" json:"minimum_log_level,omitempty"` - IncludeIncomplete *bool `protobuf:"varint,8,opt,name=include_incomplete" json:"include_incomplete,omitempty"` - Count *int64 `protobuf:"varint,9,opt,name=count" json:"count,omitempty"` - CombinedLogRegex *string `protobuf:"bytes,14,opt,name=combined_log_regex" json:"combined_log_regex,omitempty"` - HostRegex *string `protobuf:"bytes,15,opt,name=host_regex" json:"host_regex,omitempty"` - ReplicaIndex *int32 `protobuf:"varint,16,opt,name=replica_index" json:"replica_index,omitempty"` - IncludeAppLogs *bool `protobuf:"varint,10,opt,name=include_app_logs" json:"include_app_logs,omitempty"` - AppLogsPerRequest *int32 `protobuf:"varint,17,opt,name=app_logs_per_request" json:"app_logs_per_request,omitempty"` - IncludeHost *bool `protobuf:"varint,11,opt,name=include_host" json:"include_host,omitempty"` - IncludeAll *bool `protobuf:"varint,12,opt,name=include_all" json:"include_all,omitempty"` - CacheIterator *bool `protobuf:"varint,13,opt,name=cache_iterator" json:"cache_iterator,omitempty"` - NumShards *int32 `protobuf:"varint,18,opt,name=num_shards" json:"num_shards,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogReadRequest) Reset() { *m = LogReadRequest{} } -func (m *LogReadRequest) String() string { return proto.CompactTextString(m) } -func (*LogReadRequest) ProtoMessage() {} - -func (m *LogReadRequest) GetAppId() string { - if m != nil && m.AppId != nil { - return *m.AppId - } - return "" -} - -func (m *LogReadRequest) GetVersionId() []string { - if m != nil { - return m.VersionId - } - return nil -} - -func (m *LogReadRequest) GetModuleVersion() []*LogModuleVersion { - if m != nil { - return m.ModuleVersion - } - return nil -} - -func (m *LogReadRequest) GetStartTime() int64 { - if m != nil && m.StartTime != nil { - return *m.StartTime - } - return 0 -} - -func (m *LogReadRequest) GetEndTime() int64 { - if m != nil && m.EndTime != nil { - return *m.EndTime - } - return 0 -} - -func (m *LogReadRequest) GetOffset() *LogOffset { - if m != nil { - return m.Offset - } - return nil -} - -func (m *LogReadRequest) GetRequestId() [][]byte { - if m != nil { - return m.RequestId - } - return nil -} - -func (m *LogReadRequest) GetMinimumLogLevel() int32 { - if m != nil && m.MinimumLogLevel != nil { - return *m.MinimumLogLevel - } - return 0 -} - -func (m *LogReadRequest) GetIncludeIncomplete() bool { - if m != nil && m.IncludeIncomplete != nil { - return *m.IncludeIncomplete - } - return false -} - -func (m *LogReadRequest) GetCount() int64 { - if m != nil && m.Count != nil { - return *m.Count - } - return 0 -} - -func (m *LogReadRequest) GetCombinedLogRegex() string { - if m != nil && m.CombinedLogRegex != nil { - return *m.CombinedLogRegex - } - return "" -} - -func (m *LogReadRequest) GetHostRegex() string { - if m != nil && m.HostRegex != nil { - return *m.HostRegex - } - return "" -} - -func (m *LogReadRequest) GetReplicaIndex() int32 { - if m != nil && m.ReplicaIndex != nil { - return *m.ReplicaIndex - } - return 0 -} - -func (m *LogReadRequest) GetIncludeAppLogs() bool { - if m != nil && m.IncludeAppLogs != nil { - return *m.IncludeAppLogs - } - return false -} - -func (m *LogReadRequest) GetAppLogsPerRequest() int32 { - if m != nil && m.AppLogsPerRequest != nil { - return *m.AppLogsPerRequest - } - return 0 -} - -func (m *LogReadRequest) GetIncludeHost() bool { - if m != nil && m.IncludeHost != nil { - return *m.IncludeHost - } - return false -} - -func (m *LogReadRequest) GetIncludeAll() bool { - if m != nil && m.IncludeAll != nil { - return *m.IncludeAll - } - return false -} - -func (m *LogReadRequest) GetCacheIterator() bool { - if m != nil && m.CacheIterator != nil { - return *m.CacheIterator - } - return false -} - -func (m *LogReadRequest) GetNumShards() int32 { - if m != nil && m.NumShards != nil { - return *m.NumShards - } - return 0 -} - -type LogReadResponse struct { - Log []*RequestLog `protobuf:"bytes,1,rep,name=log" json:"log,omitempty"` - Offset *LogOffset `protobuf:"bytes,2,opt,name=offset" json:"offset,omitempty"` - LastEndTime *int64 `protobuf:"varint,3,opt,name=last_end_time" json:"last_end_time,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogReadResponse) Reset() { *m = LogReadResponse{} } -func (m *LogReadResponse) String() string { return proto.CompactTextString(m) } -func (*LogReadResponse) ProtoMessage() {} - -func (m *LogReadResponse) GetLog() []*RequestLog { - if m != nil { - return m.Log - } - return nil -} - -func (m *LogReadResponse) GetOffset() *LogOffset { - if m != nil { - return m.Offset - } - return nil -} - -func (m *LogReadResponse) GetLastEndTime() int64 { - if m != nil && m.LastEndTime != nil { - return *m.LastEndTime - } - return 0 -} - -type LogUsageRecord struct { - VersionId *string `protobuf:"bytes,1,opt,name=version_id" json:"version_id,omitempty"` - StartTime *int32 `protobuf:"varint,2,opt,name=start_time" json:"start_time,omitempty"` - EndTime *int32 `protobuf:"varint,3,opt,name=end_time" json:"end_time,omitempty"` - Count *int64 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` - TotalSize *int64 `protobuf:"varint,5,opt,name=total_size" json:"total_size,omitempty"` - Records *int32 `protobuf:"varint,6,opt,name=records" json:"records,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogUsageRecord) Reset() { *m = LogUsageRecord{} } -func (m *LogUsageRecord) String() string { return proto.CompactTextString(m) } -func (*LogUsageRecord) ProtoMessage() {} - -func (m *LogUsageRecord) GetVersionId() string { - if m != nil && m.VersionId != nil { - return *m.VersionId - } - return "" -} - -func (m *LogUsageRecord) GetStartTime() int32 { - if m != nil && m.StartTime != nil { - return *m.StartTime - } - return 0 -} - -func (m *LogUsageRecord) GetEndTime() int32 { - if m != nil && m.EndTime != nil { - return *m.EndTime - } - return 0 -} - -func (m *LogUsageRecord) GetCount() int64 { - if m != nil && m.Count != nil { - return *m.Count - } - return 0 -} - -func (m *LogUsageRecord) GetTotalSize() int64 { - if m != nil && m.TotalSize != nil { - return *m.TotalSize - } - return 0 -} - -func (m *LogUsageRecord) GetRecords() int32 { - if m != nil && m.Records != nil { - return *m.Records - } - return 0 -} - -type LogUsageRequest struct { - AppId *string `protobuf:"bytes,1,req,name=app_id" json:"app_id,omitempty"` - VersionId []string `protobuf:"bytes,2,rep,name=version_id" json:"version_id,omitempty"` - StartTime *int32 `protobuf:"varint,3,opt,name=start_time" json:"start_time,omitempty"` - EndTime *int32 `protobuf:"varint,4,opt,name=end_time" json:"end_time,omitempty"` - ResolutionHours *uint32 `protobuf:"varint,5,opt,name=resolution_hours,def=1" json:"resolution_hours,omitempty"` - CombineVersions *bool `protobuf:"varint,6,opt,name=combine_versions" json:"combine_versions,omitempty"` - UsageVersion *int32 `protobuf:"varint,7,opt,name=usage_version" json:"usage_version,omitempty"` - VersionsOnly *bool `protobuf:"varint,8,opt,name=versions_only" json:"versions_only,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogUsageRequest) Reset() { *m = LogUsageRequest{} } -func (m *LogUsageRequest) String() string { return proto.CompactTextString(m) } -func (*LogUsageRequest) ProtoMessage() {} - -const Default_LogUsageRequest_ResolutionHours uint32 = 1 - -func (m *LogUsageRequest) GetAppId() string { - if m != nil && m.AppId != nil { - return *m.AppId - } - return "" -} - -func (m *LogUsageRequest) GetVersionId() []string { - if m != nil { - return m.VersionId - } - return nil -} - -func (m *LogUsageRequest) GetStartTime() int32 { - if m != nil && m.StartTime != nil { - return *m.StartTime - } - return 0 -} - -func (m *LogUsageRequest) GetEndTime() int32 { - if m != nil && m.EndTime != nil { - return *m.EndTime - } - return 0 -} - -func (m *LogUsageRequest) GetResolutionHours() uint32 { - if m != nil && m.ResolutionHours != nil { - return *m.ResolutionHours - } - return Default_LogUsageRequest_ResolutionHours -} - -func (m *LogUsageRequest) GetCombineVersions() bool { - if m != nil && m.CombineVersions != nil { - return *m.CombineVersions - } - return false -} - -func (m *LogUsageRequest) GetUsageVersion() int32 { - if m != nil && m.UsageVersion != nil { - return *m.UsageVersion - } - return 0 -} - -func (m *LogUsageRequest) GetVersionsOnly() bool { - if m != nil && m.VersionsOnly != nil { - return *m.VersionsOnly - } - return false -} - -type LogUsageResponse struct { - Usage []*LogUsageRecord `protobuf:"bytes,1,rep,name=usage" json:"usage,omitempty"` - Summary *LogUsageRecord `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LogUsageResponse) Reset() { *m = LogUsageResponse{} } -func (m *LogUsageResponse) String() string { return proto.CompactTextString(m) } -func (*LogUsageResponse) ProtoMessage() {} - -func (m *LogUsageResponse) GetUsage() []*LogUsageRecord { - if m != nil { - return m.Usage - } - return nil -} - -func (m *LogUsageResponse) GetSummary() *LogUsageRecord { - if m != nil { - return m.Summary - } - return nil -} - -func init() { -} diff --git a/vendor/google.golang.org/appengine/internal/main.go b/vendor/google.golang.org/appengine/internal/main.go deleted file mode 100644 index 4903616..0000000 --- a/vendor/google.golang.org/appengine/internal/main.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build appengine - -package internal - -import ( - "appengine_internal" -) - -func Main() { - appengine_internal.Main() -} diff --git a/vendor/google.golang.org/appengine/internal/main_vm.go b/vendor/google.golang.org/appengine/internal/main_vm.go deleted file mode 100644 index 57331ad..0000000 --- a/vendor/google.golang.org/appengine/internal/main_vm.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// +build !appengine - -package internal - -import ( - "io" - "log" - "net/http" - "net/url" - "os" -) - -func Main() { - installHealthChecker(http.DefaultServeMux) - - port := "8080" - if s := os.Getenv("PORT"); s != "" { - port = s - } - - if err := http.ListenAndServe(":"+port, http.HandlerFunc(handleHTTP)); err != nil { - log.Fatalf("http.ListenAndServe: %v", err) - } -} - -func installHealthChecker(mux *http.ServeMux) { - // If no health check handler has been installed by this point, add a trivial one. - const healthPath = "/_ah/health" - hreq := &http.Request{ - Method: "GET", - URL: &url.URL{ - Path: healthPath, - }, - } - if _, pat := mux.Handler(hreq); pat != healthPath { - mux.HandleFunc(healthPath, func(w http.ResponseWriter, r *http.Request) { - io.WriteString(w, "ok") - }) - } -} diff --git a/vendor/google.golang.org/appengine/internal/metadata.go b/vendor/google.golang.org/appengine/internal/metadata.go deleted file mode 100644 index 9cc1f71..0000000 --- a/vendor/google.golang.org/appengine/internal/metadata.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2014 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -// This file has code for accessing metadata. -// -// References: -// https://cloud.google.com/compute/docs/metadata - -import ( - "fmt" - "io/ioutil" - "log" - "net/http" - "net/url" -) - -const ( - metadataHost = "metadata" - metadataPath = "/computeMetadata/v1/" -) - -var ( - metadataRequestHeaders = http.Header{ - "Metadata-Flavor": []string{"Google"}, - } -) - -// TODO(dsymonds): Do we need to support default values, like Python? -func mustGetMetadata(key string) []byte { - b, err := getMetadata(key) - if err != nil { - log.Fatalf("Metadata fetch failed: %v", err) - } - return b -} - -func getMetadata(key string) ([]byte, error) { - // TODO(dsymonds): May need to use url.Parse to support keys with query args. - req := &http.Request{ - Method: "GET", - URL: &url.URL{ - Scheme: "http", - Host: metadataHost, - Path: metadataPath + key, - }, - Header: metadataRequestHeaders, - Host: metadataHost, - } - resp, err := http.DefaultClient.Do(req) - if err != nil { - return nil, err - } - defer resp.Body.Close() - if resp.StatusCode != 200 { - return nil, fmt.Errorf("metadata server returned HTTP %d", resp.StatusCode) - } - return ioutil.ReadAll(resp.Body) -} diff --git a/vendor/google.golang.org/appengine/internal/net.go b/vendor/google.golang.org/appengine/internal/net.go deleted file mode 100644 index 3b94cf0..0000000 --- a/vendor/google.golang.org/appengine/internal/net.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2014 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -// This file implements a network dialer that limits the number of concurrent connections. -// It is only used for API calls. - -import ( - "log" - "net" - "runtime" - "sync" - "time" -) - -var limitSem = make(chan int, 100) // TODO(dsymonds): Use environment variable. - -func limitRelease() { - // non-blocking - select { - case <-limitSem: - default: - // This should not normally happen. - log.Print("appengine: unbalanced limitSem release!") - } -} - -func limitDial(network, addr string) (net.Conn, error) { - limitSem <- 1 - - // Dial with a timeout in case the API host is MIA. - // The connection should normally be very fast. - conn, err := net.DialTimeout(network, addr, 500*time.Millisecond) - if err != nil { - limitRelease() - return nil, err - } - lc := &limitConn{Conn: conn} - runtime.SetFinalizer(lc, (*limitConn).Close) // shouldn't usually be required - return lc, nil -} - -type limitConn struct { - close sync.Once - net.Conn -} - -func (lc *limitConn) Close() error { - defer lc.close.Do(func() { - limitRelease() - runtime.SetFinalizer(lc, nil) - }) - return lc.Conn.Close() -} diff --git a/vendor/google.golang.org/appengine/internal/remote_api/remote_api.pb.go b/vendor/google.golang.org/appengine/internal/remote_api/remote_api.pb.go deleted file mode 100644 index 526bd39..0000000 --- a/vendor/google.golang.org/appengine/internal/remote_api/remote_api.pb.go +++ /dev/null @@ -1,231 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google.golang.org/appengine/internal/remote_api/remote_api.proto -// DO NOT EDIT! - -/* -Package remote_api is a generated protocol buffer package. - -It is generated from these files: - google.golang.org/appengine/internal/remote_api/remote_api.proto - -It has these top-level messages: - Request - ApplicationError - RpcError - Response -*/ -package remote_api - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type RpcError_ErrorCode int32 - -const ( - RpcError_UNKNOWN RpcError_ErrorCode = 0 - RpcError_CALL_NOT_FOUND RpcError_ErrorCode = 1 - RpcError_PARSE_ERROR RpcError_ErrorCode = 2 - RpcError_SECURITY_VIOLATION RpcError_ErrorCode = 3 - RpcError_OVER_QUOTA RpcError_ErrorCode = 4 - RpcError_REQUEST_TOO_LARGE RpcError_ErrorCode = 5 - RpcError_CAPABILITY_DISABLED RpcError_ErrorCode = 6 - RpcError_FEATURE_DISABLED RpcError_ErrorCode = 7 - RpcError_BAD_REQUEST RpcError_ErrorCode = 8 - RpcError_RESPONSE_TOO_LARGE RpcError_ErrorCode = 9 - RpcError_CANCELLED RpcError_ErrorCode = 10 - RpcError_REPLAY_ERROR RpcError_ErrorCode = 11 - RpcError_DEADLINE_EXCEEDED RpcError_ErrorCode = 12 -) - -var RpcError_ErrorCode_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CALL_NOT_FOUND", - 2: "PARSE_ERROR", - 3: "SECURITY_VIOLATION", - 4: "OVER_QUOTA", - 5: "REQUEST_TOO_LARGE", - 6: "CAPABILITY_DISABLED", - 7: "FEATURE_DISABLED", - 8: "BAD_REQUEST", - 9: "RESPONSE_TOO_LARGE", - 10: "CANCELLED", - 11: "REPLAY_ERROR", - 12: "DEADLINE_EXCEEDED", -} -var RpcError_ErrorCode_value = map[string]int32{ - "UNKNOWN": 0, - "CALL_NOT_FOUND": 1, - "PARSE_ERROR": 2, - "SECURITY_VIOLATION": 3, - "OVER_QUOTA": 4, - "REQUEST_TOO_LARGE": 5, - "CAPABILITY_DISABLED": 6, - "FEATURE_DISABLED": 7, - "BAD_REQUEST": 8, - "RESPONSE_TOO_LARGE": 9, - "CANCELLED": 10, - "REPLAY_ERROR": 11, - "DEADLINE_EXCEEDED": 12, -} - -func (x RpcError_ErrorCode) Enum() *RpcError_ErrorCode { - p := new(RpcError_ErrorCode) - *p = x - return p -} -func (x RpcError_ErrorCode) String() string { - return proto.EnumName(RpcError_ErrorCode_name, int32(x)) -} -func (x *RpcError_ErrorCode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(RpcError_ErrorCode_value, data, "RpcError_ErrorCode") - if err != nil { - return err - } - *x = RpcError_ErrorCode(value) - return nil -} - -type Request struct { - ServiceName *string `protobuf:"bytes,2,req,name=service_name" json:"service_name,omitempty"` - Method *string `protobuf:"bytes,3,req,name=method" json:"method,omitempty"` - Request []byte `protobuf:"bytes,4,req,name=request" json:"request,omitempty"` - RequestId *string `protobuf:"bytes,5,opt,name=request_id" json:"request_id,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Request) Reset() { *m = Request{} } -func (m *Request) String() string { return proto.CompactTextString(m) } -func (*Request) ProtoMessage() {} - -func (m *Request) GetServiceName() string { - if m != nil && m.ServiceName != nil { - return *m.ServiceName - } - return "" -} - -func (m *Request) GetMethod() string { - if m != nil && m.Method != nil { - return *m.Method - } - return "" -} - -func (m *Request) GetRequest() []byte { - if m != nil { - return m.Request - } - return nil -} - -func (m *Request) GetRequestId() string { - if m != nil && m.RequestId != nil { - return *m.RequestId - } - return "" -} - -type ApplicationError struct { - Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` - Detail *string `protobuf:"bytes,2,req,name=detail" json:"detail,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *ApplicationError) Reset() { *m = ApplicationError{} } -func (m *ApplicationError) String() string { return proto.CompactTextString(m) } -func (*ApplicationError) ProtoMessage() {} - -func (m *ApplicationError) GetCode() int32 { - if m != nil && m.Code != nil { - return *m.Code - } - return 0 -} - -func (m *ApplicationError) GetDetail() string { - if m != nil && m.Detail != nil { - return *m.Detail - } - return "" -} - -type RpcError struct { - Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` - Detail *string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *RpcError) Reset() { *m = RpcError{} } -func (m *RpcError) String() string { return proto.CompactTextString(m) } -func (*RpcError) ProtoMessage() {} - -func (m *RpcError) GetCode() int32 { - if m != nil && m.Code != nil { - return *m.Code - } - return 0 -} - -func (m *RpcError) GetDetail() string { - if m != nil && m.Detail != nil { - return *m.Detail - } - return "" -} - -type Response struct { - Response []byte `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"` - Exception []byte `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` - ApplicationError *ApplicationError `protobuf:"bytes,3,opt,name=application_error" json:"application_error,omitempty"` - JavaException []byte `protobuf:"bytes,4,opt,name=java_exception" json:"java_exception,omitempty"` - RpcError *RpcError `protobuf:"bytes,5,opt,name=rpc_error" json:"rpc_error,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} - -func (m *Response) GetResponse() []byte { - if m != nil { - return m.Response - } - return nil -} - -func (m *Response) GetException() []byte { - if m != nil { - return m.Exception - } - return nil -} - -func (m *Response) GetApplicationError() *ApplicationError { - if m != nil { - return m.ApplicationError - } - return nil -} - -func (m *Response) GetJavaException() []byte { - if m != nil { - return m.JavaException - } - return nil -} - -func (m *Response) GetRpcError() *RpcError { - if m != nil { - return m.RpcError - } - return nil -} - -func init() { -} diff --git a/vendor/google.golang.org/appengine/internal/transaction.go b/vendor/google.golang.org/appengine/internal/transaction.go deleted file mode 100644 index 28a6d18..0000000 --- a/vendor/google.golang.org/appengine/internal/transaction.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2014 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -package internal - -// This file implements hooks for applying datastore transactions. - -import ( - "errors" - "reflect" - - "github.com/golang/protobuf/proto" - netcontext "golang.org/x/net/context" - - basepb "google.golang.org/appengine/internal/base" - pb "google.golang.org/appengine/internal/datastore" -) - -var transactionSetters = make(map[reflect.Type]reflect.Value) - -// RegisterTransactionSetter registers a function that sets transaction information -// in a protocol buffer message. f should be a function with two arguments, -// the first being a protocol buffer type, and the second being *datastore.Transaction. -func RegisterTransactionSetter(f interface{}) { - v := reflect.ValueOf(f) - transactionSetters[v.Type().In(0)] = v -} - -// applyTransaction applies the transaction t to message pb -// by using the relevant setter passed to RegisterTransactionSetter. -func applyTransaction(pb proto.Message, t *pb.Transaction) { - v := reflect.ValueOf(pb) - if f, ok := transactionSetters[v.Type()]; ok { - f.Call([]reflect.Value{v, reflect.ValueOf(t)}) - } -} - -var transactionKey = "used for *Transaction" - -func transactionFromContext(ctx netcontext.Context) *transaction { - t, _ := ctx.Value(&transactionKey).(*transaction) - return t -} - -func withTransaction(ctx netcontext.Context, t *transaction) netcontext.Context { - return netcontext.WithValue(ctx, &transactionKey, t) -} - -type transaction struct { - transaction pb.Transaction - finished bool -} - -var ErrConcurrentTransaction = errors.New("internal: concurrent transaction") - -func RunTransactionOnce(c netcontext.Context, f func(netcontext.Context) error, xg bool) error { - if transactionFromContext(c) != nil { - return errors.New("nested transactions are not supported") - } - - // Begin the transaction. - t := &transaction{} - req := &pb.BeginTransactionRequest{ - App: proto.String(FullyQualifiedAppID(c)), - } - if xg { - req.AllowMultipleEg = proto.Bool(true) - } - if err := Call(c, "datastore_v3", "BeginTransaction", req, &t.transaction); err != nil { - return err - } - - // Call f, rolling back the transaction if f returns a non-nil error, or panics. - // The panic is not recovered. - defer func() { - if t.finished { - return - } - t.finished = true - // Ignore the error return value, since we are already returning a non-nil - // error (or we're panicking). - Call(c, "datastore_v3", "Rollback", &t.transaction, &basepb.VoidProto{}) - }() - if err := f(withTransaction(c, t)); err != nil { - return err - } - t.finished = true - - // Commit the transaction. - res := &pb.CommitResponse{} - err := Call(c, "datastore_v3", "Commit", &t.transaction, res) - if ae, ok := err.(*APIError); ok { - /* TODO: restore this conditional - if appengine.IsDevAppServer() { - */ - // The Python Dev AppServer raises an ApplicationError with error code 2 (which is - // Error.CONCURRENT_TRANSACTION) and message "Concurrency exception.". - if ae.Code == int32(pb.Error_BAD_REQUEST) && ae.Detail == "ApplicationError: 2 Concurrency exception." { - return ErrConcurrentTransaction - } - if ae.Code == int32(pb.Error_CONCURRENT_TRANSACTION) { - return ErrConcurrentTransaction - } - } - return err -} diff --git a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go deleted file mode 100644 index af463fb..0000000 --- a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go +++ /dev/null @@ -1,355 +0,0 @@ -// Code generated by protoc-gen-go. -// source: google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto -// DO NOT EDIT! - -/* -Package urlfetch is a generated protocol buffer package. - -It is generated from these files: - google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto - -It has these top-level messages: - URLFetchServiceError - URLFetchRequest - URLFetchResponse -*/ -package urlfetch - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -type URLFetchServiceError_ErrorCode int32 - -const ( - URLFetchServiceError_OK URLFetchServiceError_ErrorCode = 0 - URLFetchServiceError_INVALID_URL URLFetchServiceError_ErrorCode = 1 - URLFetchServiceError_FETCH_ERROR URLFetchServiceError_ErrorCode = 2 - URLFetchServiceError_UNSPECIFIED_ERROR URLFetchServiceError_ErrorCode = 3 - URLFetchServiceError_RESPONSE_TOO_LARGE URLFetchServiceError_ErrorCode = 4 - URLFetchServiceError_DEADLINE_EXCEEDED URLFetchServiceError_ErrorCode = 5 - URLFetchServiceError_SSL_CERTIFICATE_ERROR URLFetchServiceError_ErrorCode = 6 - URLFetchServiceError_DNS_ERROR URLFetchServiceError_ErrorCode = 7 - URLFetchServiceError_CLOSED URLFetchServiceError_ErrorCode = 8 - URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9 - URLFetchServiceError_TOO_MANY_REDIRECTS URLFetchServiceError_ErrorCode = 10 - URLFetchServiceError_MALFORMED_REPLY URLFetchServiceError_ErrorCode = 11 - URLFetchServiceError_CONNECTION_ERROR URLFetchServiceError_ErrorCode = 12 -) - -var URLFetchServiceError_ErrorCode_name = map[int32]string{ - 0: "OK", - 1: "INVALID_URL", - 2: "FETCH_ERROR", - 3: "UNSPECIFIED_ERROR", - 4: "RESPONSE_TOO_LARGE", - 5: "DEADLINE_EXCEEDED", - 6: "SSL_CERTIFICATE_ERROR", - 7: "DNS_ERROR", - 8: "CLOSED", - 9: "INTERNAL_TRANSIENT_ERROR", - 10: "TOO_MANY_REDIRECTS", - 11: "MALFORMED_REPLY", - 12: "CONNECTION_ERROR", -} -var URLFetchServiceError_ErrorCode_value = map[string]int32{ - "OK": 0, - "INVALID_URL": 1, - "FETCH_ERROR": 2, - "UNSPECIFIED_ERROR": 3, - "RESPONSE_TOO_LARGE": 4, - "DEADLINE_EXCEEDED": 5, - "SSL_CERTIFICATE_ERROR": 6, - "DNS_ERROR": 7, - "CLOSED": 8, - "INTERNAL_TRANSIENT_ERROR": 9, - "TOO_MANY_REDIRECTS": 10, - "MALFORMED_REPLY": 11, - "CONNECTION_ERROR": 12, -} - -func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode { - p := new(URLFetchServiceError_ErrorCode) - *p = x - return p -} -func (x URLFetchServiceError_ErrorCode) String() string { - return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x)) -} -func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(URLFetchServiceError_ErrorCode_value, data, "URLFetchServiceError_ErrorCode") - if err != nil { - return err - } - *x = URLFetchServiceError_ErrorCode(value) - return nil -} - -type URLFetchRequest_RequestMethod int32 - -const ( - URLFetchRequest_GET URLFetchRequest_RequestMethod = 1 - URLFetchRequest_POST URLFetchRequest_RequestMethod = 2 - URLFetchRequest_HEAD URLFetchRequest_RequestMethod = 3 - URLFetchRequest_PUT URLFetchRequest_RequestMethod = 4 - URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5 - URLFetchRequest_PATCH URLFetchRequest_RequestMethod = 6 -) - -var URLFetchRequest_RequestMethod_name = map[int32]string{ - 1: "GET", - 2: "POST", - 3: "HEAD", - 4: "PUT", - 5: "DELETE", - 6: "PATCH", -} -var URLFetchRequest_RequestMethod_value = map[string]int32{ - "GET": 1, - "POST": 2, - "HEAD": 3, - "PUT": 4, - "DELETE": 5, - "PATCH": 6, -} - -func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod { - p := new(URLFetchRequest_RequestMethod) - *p = x - return p -} -func (x URLFetchRequest_RequestMethod) String() string { - return proto.EnumName(URLFetchRequest_RequestMethod_name, int32(x)) -} -func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(URLFetchRequest_RequestMethod_value, data, "URLFetchRequest_RequestMethod") - if err != nil { - return err - } - *x = URLFetchRequest_RequestMethod(value) - return nil -} - -type URLFetchServiceError struct { - XXX_unrecognized []byte `json:"-"` -} - -func (m *URLFetchServiceError) Reset() { *m = URLFetchServiceError{} } -func (m *URLFetchServiceError) String() string { return proto.CompactTextString(m) } -func (*URLFetchServiceError) ProtoMessage() {} - -type URLFetchRequest struct { - Method *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"` - Url *string `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"` - Header []*URLFetchRequest_Header `protobuf:"group,3,rep,name=Header" json:"header,omitempty"` - Payload []byte `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"` - FollowRedirects *bool `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"` - Deadline *float64 `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"` - MustValidateServerCertificate *bool `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *URLFetchRequest) Reset() { *m = URLFetchRequest{} } -func (m *URLFetchRequest) String() string { return proto.CompactTextString(m) } -func (*URLFetchRequest) ProtoMessage() {} - -const Default_URLFetchRequest_FollowRedirects bool = true -const Default_URLFetchRequest_MustValidateServerCertificate bool = true - -func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod { - if m != nil && m.Method != nil { - return *m.Method - } - return URLFetchRequest_GET -} - -func (m *URLFetchRequest) GetUrl() string { - if m != nil && m.Url != nil { - return *m.Url - } - return "" -} - -func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header { - if m != nil { - return m.Header - } - return nil -} - -func (m *URLFetchRequest) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil -} - -func (m *URLFetchRequest) GetFollowRedirects() bool { - if m != nil && m.FollowRedirects != nil { - return *m.FollowRedirects - } - return Default_URLFetchRequest_FollowRedirects -} - -func (m *URLFetchRequest) GetDeadline() float64 { - if m != nil && m.Deadline != nil { - return *m.Deadline - } - return 0 -} - -func (m *URLFetchRequest) GetMustValidateServerCertificate() bool { - if m != nil && m.MustValidateServerCertificate != nil { - return *m.MustValidateServerCertificate - } - return Default_URLFetchRequest_MustValidateServerCertificate -} - -type URLFetchRequest_Header struct { - Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` - Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *URLFetchRequest_Header) Reset() { *m = URLFetchRequest_Header{} } -func (m *URLFetchRequest_Header) String() string { return proto.CompactTextString(m) } -func (*URLFetchRequest_Header) ProtoMessage() {} - -func (m *URLFetchRequest_Header) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *URLFetchRequest_Header) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -type URLFetchResponse struct { - Content []byte `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"` - StatusCode *int32 `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"` - Header []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header" json:"header,omitempty"` - ContentWasTruncated *bool `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"` - ExternalBytesSent *int64 `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"` - ExternalBytesReceived *int64 `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"` - FinalUrl *string `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"` - ApiCpuMilliseconds *int64 `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"` - ApiBytesSent *int64 `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"` - ApiBytesReceived *int64 `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *URLFetchResponse) Reset() { *m = URLFetchResponse{} } -func (m *URLFetchResponse) String() string { return proto.CompactTextString(m) } -func (*URLFetchResponse) ProtoMessage() {} - -const Default_URLFetchResponse_ContentWasTruncated bool = false -const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0 -const Default_URLFetchResponse_ApiBytesSent int64 = 0 -const Default_URLFetchResponse_ApiBytesReceived int64 = 0 - -func (m *URLFetchResponse) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -func (m *URLFetchResponse) GetStatusCode() int32 { - if m != nil && m.StatusCode != nil { - return *m.StatusCode - } - return 0 -} - -func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header { - if m != nil { - return m.Header - } - return nil -} - -func (m *URLFetchResponse) GetContentWasTruncated() bool { - if m != nil && m.ContentWasTruncated != nil { - return *m.ContentWasTruncated - } - return Default_URLFetchResponse_ContentWasTruncated -} - -func (m *URLFetchResponse) GetExternalBytesSent() int64 { - if m != nil && m.ExternalBytesSent != nil { - return *m.ExternalBytesSent - } - return 0 -} - -func (m *URLFetchResponse) GetExternalBytesReceived() int64 { - if m != nil && m.ExternalBytesReceived != nil { - return *m.ExternalBytesReceived - } - return 0 -} - -func (m *URLFetchResponse) GetFinalUrl() string { - if m != nil && m.FinalUrl != nil { - return *m.FinalUrl - } - return "" -} - -func (m *URLFetchResponse) GetApiCpuMilliseconds() int64 { - if m != nil && m.ApiCpuMilliseconds != nil { - return *m.ApiCpuMilliseconds - } - return Default_URLFetchResponse_ApiCpuMilliseconds -} - -func (m *URLFetchResponse) GetApiBytesSent() int64 { - if m != nil && m.ApiBytesSent != nil { - return *m.ApiBytesSent - } - return Default_URLFetchResponse_ApiBytesSent -} - -func (m *URLFetchResponse) GetApiBytesReceived() int64 { - if m != nil && m.ApiBytesReceived != nil { - return *m.ApiBytesReceived - } - return Default_URLFetchResponse_ApiBytesReceived -} - -type URLFetchResponse_Header struct { - Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` - Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *URLFetchResponse_Header) Reset() { *m = URLFetchResponse_Header{} } -func (m *URLFetchResponse_Header) String() string { return proto.CompactTextString(m) } -func (*URLFetchResponse_Header) ProtoMessage() {} - -func (m *URLFetchResponse_Header) GetKey() string { - if m != nil && m.Key != nil { - return *m.Key - } - return "" -} - -func (m *URLFetchResponse_Header) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -func init() { -} diff --git a/vendor/google.golang.org/appengine/urlfetch/urlfetch.go b/vendor/google.golang.org/appengine/urlfetch/urlfetch.go deleted file mode 100644 index 6ffe1e6..0000000 --- a/vendor/google.golang.org/appengine/urlfetch/urlfetch.go +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright 2011 Google Inc. All rights reserved. -// Use of this source code is governed by the Apache 2.0 -// license that can be found in the LICENSE file. - -// Package urlfetch provides an http.RoundTripper implementation -// for fetching URLs via App Engine's urlfetch service. -package urlfetch // import "google.golang.org/appengine/urlfetch" - -import ( - "errors" - "fmt" - "io" - "io/ioutil" - "net/http" - "net/url" - "strconv" - "strings" - "time" - - "github.com/golang/protobuf/proto" - "golang.org/x/net/context" - - "google.golang.org/appengine/internal" - pb "google.golang.org/appengine/internal/urlfetch" -) - -// Transport is an implementation of http.RoundTripper for -// App Engine. Users should generally create an http.Client using -// this transport and use the Client rather than using this transport -// directly. -type Transport struct { - Context context.Context - - // Controls whether the application checks the validity of SSL certificates - // over HTTPS connections. A value of false (the default) instructs the - // application to send a request to the server only if the certificate is - // valid and signed by a trusted certificate authority (CA), and also - // includes a hostname that matches the certificate. A value of true - // instructs the application to perform no certificate validation. - AllowInvalidServerCertificate bool -} - -// Verify statically that *Transport implements http.RoundTripper. -var _ http.RoundTripper = (*Transport)(nil) - -// Client returns an *http.Client using a default urlfetch Transport. This -// client will have the default deadline of 5 seconds, and will check the -// validity of SSL certificates. -// -// Any deadline of the provided context will be used for requests through this client; -// if the client does not have a deadline then a 5 second default is used. -func Client(ctx context.Context) *http.Client { - return &http.Client{ - Transport: &Transport{ - Context: ctx, - }, - } -} - -type bodyReader struct { - content []byte - truncated bool - closed bool -} - -// ErrTruncatedBody is the error returned after the final Read() from a -// response's Body if the body has been truncated by App Engine's proxy. -var ErrTruncatedBody = errors.New("urlfetch: truncated body") - -func statusCodeToText(code int) string { - if t := http.StatusText(code); t != "" { - return t - } - return strconv.Itoa(code) -} - -func (br *bodyReader) Read(p []byte) (n int, err error) { - if br.closed { - if br.truncated { - return 0, ErrTruncatedBody - } - return 0, io.EOF - } - n = copy(p, br.content) - if n > 0 { - br.content = br.content[n:] - return - } - if br.truncated { - br.closed = true - return 0, ErrTruncatedBody - } - return 0, io.EOF -} - -func (br *bodyReader) Close() error { - br.closed = true - br.content = nil - return nil -} - -// A map of the URL Fetch-accepted methods that take a request body. -var methodAcceptsRequestBody = map[string]bool{ - "POST": true, - "PUT": true, - "PATCH": true, -} - -// urlString returns a valid string given a URL. This function is necessary because -// the String method of URL doesn't correctly handle URLs with non-empty Opaque values. -// See http://code.google.com/p/go/issues/detail?id=4860. -func urlString(u *url.URL) string { - if u.Opaque == "" || strings.HasPrefix(u.Opaque, "//") { - return u.String() - } - aux := *u - aux.Opaque = "//" + aux.Host + aux.Opaque - return aux.String() -} - -// RoundTrip issues a single HTTP request and returns its response. Per the -// http.RoundTripper interface, RoundTrip only returns an error if there -// was an unsupported request or the URL Fetch proxy fails. -// Note that HTTP response codes such as 5xx, 403, 404, etc are not -// errors as far as the transport is concerned and will be returned -// with err set to nil. -func (t *Transport) RoundTrip(req *http.Request) (res *http.Response, err error) { - methNum, ok := pb.URLFetchRequest_RequestMethod_value[req.Method] - if !ok { - return nil, fmt.Errorf("urlfetch: unsupported HTTP method %q", req.Method) - } - - method := pb.URLFetchRequest_RequestMethod(methNum) - - freq := &pb.URLFetchRequest{ - Method: &method, - Url: proto.String(urlString(req.URL)), - FollowRedirects: proto.Bool(false), // http.Client's responsibility - MustValidateServerCertificate: proto.Bool(!t.AllowInvalidServerCertificate), - } - if deadline, ok := t.Context.Deadline(); ok { - freq.Deadline = proto.Float64(deadline.Sub(time.Now()).Seconds()) - } - - for k, vals := range req.Header { - for _, val := range vals { - freq.Header = append(freq.Header, &pb.URLFetchRequest_Header{ - Key: proto.String(k), - Value: proto.String(val), - }) - } - } - if methodAcceptsRequestBody[req.Method] && req.Body != nil { - // Avoid a []byte copy if req.Body has a Bytes method. - switch b := req.Body.(type) { - case interface { - Bytes() []byte - }: - freq.Payload = b.Bytes() - default: - freq.Payload, err = ioutil.ReadAll(req.Body) - if err != nil { - return nil, err - } - } - } - - fres := &pb.URLFetchResponse{} - if err := internal.Call(t.Context, "urlfetch", "Fetch", freq, fres); err != nil { - return nil, err - } - - res = &http.Response{} - res.StatusCode = int(*fres.StatusCode) - res.Status = fmt.Sprintf("%d %s", res.StatusCode, statusCodeToText(res.StatusCode)) - res.Header = make(http.Header) - res.Request = req - - // Faked: - res.ProtoMajor = 1 - res.ProtoMinor = 1 - res.Proto = "HTTP/1.1" - res.Close = true - - for _, h := range fres.Header { - hkey := http.CanonicalHeaderKey(*h.Key) - hval := *h.Value - if hkey == "Content-Length" { - // Will get filled in below for all but HEAD requests. - if req.Method == "HEAD" { - res.ContentLength, _ = strconv.ParseInt(hval, 10, 64) - } - continue - } - res.Header.Add(hkey, hval) - } - - if req.Method != "HEAD" { - res.ContentLength = int64(len(fres.Content)) - } - - truncated := fres.GetContentWasTruncated() - res.Body = &bodyReader{content: fres.Content, truncated: truncated} - return -} - -func init() { - internal.RegisterErrorCodeMap("urlfetch", pb.URLFetchServiceError_ErrorCode_name) - internal.RegisterTimeoutErrorCode("urlfetch", int32(pb.URLFetchServiceError_DEADLINE_EXCEEDED)) -} diff --git a/vendor/gopkg.in/yaml.v2/LICENSE b/vendor/gopkg.in/yaml.v2/LICENSE deleted file mode 100644 index 8dada3e..0000000 --- a/vendor/gopkg.in/yaml.v2/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/gopkg.in/yaml.v2/LICENSE.libyaml b/vendor/gopkg.in/yaml.v2/LICENSE.libyaml deleted file mode 100644 index 8da58fb..0000000 --- a/vendor/gopkg.in/yaml.v2/LICENSE.libyaml +++ /dev/null @@ -1,31 +0,0 @@ -The following files were ported to Go from C files of libyaml, and thus -are still covered by their original copyright and license: - - apic.go - emitterc.go - parserc.go - readerc.go - scannerc.go - writerc.go - yamlh.go - yamlprivateh.go - -Copyright (c) 2006 Kirill Simonov - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/gopkg.in/yaml.v2/apic.go b/vendor/gopkg.in/yaml.v2/apic.go deleted file mode 100644 index 95ec014..0000000 --- a/vendor/gopkg.in/yaml.v2/apic.go +++ /dev/null @@ -1,742 +0,0 @@ -package yaml - -import ( - "io" - "os" -) - -func yaml_insert_token(parser *yaml_parser_t, pos int, token *yaml_token_t) { - //fmt.Println("yaml_insert_token", "pos:", pos, "typ:", token.typ, "head:", parser.tokens_head, "len:", len(parser.tokens)) - - // Check if we can move the queue at the beginning of the buffer. - if parser.tokens_head > 0 && len(parser.tokens) == cap(parser.tokens) { - if parser.tokens_head != len(parser.tokens) { - copy(parser.tokens, parser.tokens[parser.tokens_head:]) - } - parser.tokens = parser.tokens[:len(parser.tokens)-parser.tokens_head] - parser.tokens_head = 0 - } - parser.tokens = append(parser.tokens, *token) - if pos < 0 { - return - } - copy(parser.tokens[parser.tokens_head+pos+1:], parser.tokens[parser.tokens_head+pos:]) - parser.tokens[parser.tokens_head+pos] = *token -} - -// Create a new parser object. -func yaml_parser_initialize(parser *yaml_parser_t) bool { - *parser = yaml_parser_t{ - raw_buffer: make([]byte, 0, input_raw_buffer_size), - buffer: make([]byte, 0, input_buffer_size), - } - return true -} - -// Destroy a parser object. -func yaml_parser_delete(parser *yaml_parser_t) { - *parser = yaml_parser_t{} -} - -// String read handler. -func yaml_string_read_handler(parser *yaml_parser_t, buffer []byte) (n int, err error) { - if parser.input_pos == len(parser.input) { - return 0, io.EOF - } - n = copy(buffer, parser.input[parser.input_pos:]) - parser.input_pos += n - return n, nil -} - -// File read handler. -func yaml_file_read_handler(parser *yaml_parser_t, buffer []byte) (n int, err error) { - return parser.input_file.Read(buffer) -} - -// Set a string input. -func yaml_parser_set_input_string(parser *yaml_parser_t, input []byte) { - if parser.read_handler != nil { - panic("must set the input source only once") - } - parser.read_handler = yaml_string_read_handler - parser.input = input - parser.input_pos = 0 -} - -// Set a file input. -func yaml_parser_set_input_file(parser *yaml_parser_t, file *os.File) { - if parser.read_handler != nil { - panic("must set the input source only once") - } - parser.read_handler = yaml_file_read_handler - parser.input_file = file -} - -// Set the source encoding. -func yaml_parser_set_encoding(parser *yaml_parser_t, encoding yaml_encoding_t) { - if parser.encoding != yaml_ANY_ENCODING { - panic("must set the encoding only once") - } - parser.encoding = encoding -} - -// Create a new emitter object. -func yaml_emitter_initialize(emitter *yaml_emitter_t) bool { - *emitter = yaml_emitter_t{ - buffer: make([]byte, output_buffer_size), - raw_buffer: make([]byte, 0, output_raw_buffer_size), - states: make([]yaml_emitter_state_t, 0, initial_stack_size), - events: make([]yaml_event_t, 0, initial_queue_size), - } - return true -} - -// Destroy an emitter object. -func yaml_emitter_delete(emitter *yaml_emitter_t) { - *emitter = yaml_emitter_t{} -} - -// String write handler. -func yaml_string_write_handler(emitter *yaml_emitter_t, buffer []byte) error { - *emitter.output_buffer = append(*emitter.output_buffer, buffer...) - return nil -} - -// File write handler. -func yaml_file_write_handler(emitter *yaml_emitter_t, buffer []byte) error { - _, err := emitter.output_file.Write(buffer) - return err -} - -// Set a string output. -func yaml_emitter_set_output_string(emitter *yaml_emitter_t, output_buffer *[]byte) { - if emitter.write_handler != nil { - panic("must set the output target only once") - } - emitter.write_handler = yaml_string_write_handler - emitter.output_buffer = output_buffer -} - -// Set a file output. -func yaml_emitter_set_output_file(emitter *yaml_emitter_t, file io.Writer) { - if emitter.write_handler != nil { - panic("must set the output target only once") - } - emitter.write_handler = yaml_file_write_handler - emitter.output_file = file -} - -// Set the output encoding. -func yaml_emitter_set_encoding(emitter *yaml_emitter_t, encoding yaml_encoding_t) { - if emitter.encoding != yaml_ANY_ENCODING { - panic("must set the output encoding only once") - } - emitter.encoding = encoding -} - -// Set the canonical output style. -func yaml_emitter_set_canonical(emitter *yaml_emitter_t, canonical bool) { - emitter.canonical = canonical -} - -//// Set the indentation increment. -func yaml_emitter_set_indent(emitter *yaml_emitter_t, indent int) { - if indent < 2 || indent > 9 { - indent = 2 - } - emitter.best_indent = indent -} - -// Set the preferred line width. -func yaml_emitter_set_width(emitter *yaml_emitter_t, width int) { - if width < 0 { - width = -1 - } - emitter.best_width = width -} - -// Set if unescaped non-ASCII characters are allowed. -func yaml_emitter_set_unicode(emitter *yaml_emitter_t, unicode bool) { - emitter.unicode = unicode -} - -// Set the preferred line break character. -func yaml_emitter_set_break(emitter *yaml_emitter_t, line_break yaml_break_t) { - emitter.line_break = line_break -} - -///* -// * Destroy a token object. -// */ -// -//YAML_DECLARE(void) -//yaml_token_delete(yaml_token_t *token) -//{ -// assert(token); // Non-NULL token object expected. -// -// switch (token.type) -// { -// case YAML_TAG_DIRECTIVE_TOKEN: -// yaml_free(token.data.tag_directive.handle); -// yaml_free(token.data.tag_directive.prefix); -// break; -// -// case YAML_ALIAS_TOKEN: -// yaml_free(token.data.alias.value); -// break; -// -// case YAML_ANCHOR_TOKEN: -// yaml_free(token.data.anchor.value); -// break; -// -// case YAML_TAG_TOKEN: -// yaml_free(token.data.tag.handle); -// yaml_free(token.data.tag.suffix); -// break; -// -// case YAML_SCALAR_TOKEN: -// yaml_free(token.data.scalar.value); -// break; -// -// default: -// break; -// } -// -// memset(token, 0, sizeof(yaml_token_t)); -//} -// -///* -// * Check if a string is a valid UTF-8 sequence. -// * -// * Check 'reader.c' for more details on UTF-8 encoding. -// */ -// -//static int -//yaml_check_utf8(yaml_char_t *start, size_t length) -//{ -// yaml_char_t *end = start+length; -// yaml_char_t *pointer = start; -// -// while (pointer < end) { -// unsigned char octet; -// unsigned int width; -// unsigned int value; -// size_t k; -// -// octet = pointer[0]; -// width = (octet & 0x80) == 0x00 ? 1 : -// (octet & 0xE0) == 0xC0 ? 2 : -// (octet & 0xF0) == 0xE0 ? 3 : -// (octet & 0xF8) == 0xF0 ? 4 : 0; -// value = (octet & 0x80) == 0x00 ? octet & 0x7F : -// (octet & 0xE0) == 0xC0 ? octet & 0x1F : -// (octet & 0xF0) == 0xE0 ? octet & 0x0F : -// (octet & 0xF8) == 0xF0 ? octet & 0x07 : 0; -// if (!width) return 0; -// if (pointer+width > end) return 0; -// for (k = 1; k < width; k ++) { -// octet = pointer[k]; -// if ((octet & 0xC0) != 0x80) return 0; -// value = (value << 6) + (octet & 0x3F); -// } -// if (!((width == 1) || -// (width == 2 && value >= 0x80) || -// (width == 3 && value >= 0x800) || -// (width == 4 && value >= 0x10000))) return 0; -// -// pointer += width; -// } -// -// return 1; -//} -// - -// Create STREAM-START. -func yaml_stream_start_event_initialize(event *yaml_event_t, encoding yaml_encoding_t) bool { - *event = yaml_event_t{ - typ: yaml_STREAM_START_EVENT, - encoding: encoding, - } - return true -} - -// Create STREAM-END. -func yaml_stream_end_event_initialize(event *yaml_event_t) bool { - *event = yaml_event_t{ - typ: yaml_STREAM_END_EVENT, - } - return true -} - -// Create DOCUMENT-START. -func yaml_document_start_event_initialize(event *yaml_event_t, version_directive *yaml_version_directive_t, - tag_directives []yaml_tag_directive_t, implicit bool) bool { - *event = yaml_event_t{ - typ: yaml_DOCUMENT_START_EVENT, - version_directive: version_directive, - tag_directives: tag_directives, - implicit: implicit, - } - return true -} - -// Create DOCUMENT-END. -func yaml_document_end_event_initialize(event *yaml_event_t, implicit bool) bool { - *event = yaml_event_t{ - typ: yaml_DOCUMENT_END_EVENT, - implicit: implicit, - } - return true -} - -///* -// * Create ALIAS. -// */ -// -//YAML_DECLARE(int) -//yaml_alias_event_initialize(event *yaml_event_t, anchor *yaml_char_t) -//{ -// mark yaml_mark_t = { 0, 0, 0 } -// anchor_copy *yaml_char_t = NULL -// -// assert(event) // Non-NULL event object is expected. -// assert(anchor) // Non-NULL anchor is expected. -// -// if (!yaml_check_utf8(anchor, strlen((char *)anchor))) return 0 -// -// anchor_copy = yaml_strdup(anchor) -// if (!anchor_copy) -// return 0 -// -// ALIAS_EVENT_INIT(*event, anchor_copy, mark, mark) -// -// return 1 -//} - -// Create SCALAR. -func yaml_scalar_event_initialize(event *yaml_event_t, anchor, tag, value []byte, plain_implicit, quoted_implicit bool, style yaml_scalar_style_t) bool { - *event = yaml_event_t{ - typ: yaml_SCALAR_EVENT, - anchor: anchor, - tag: tag, - value: value, - implicit: plain_implicit, - quoted_implicit: quoted_implicit, - style: yaml_style_t(style), - } - return true -} - -// Create SEQUENCE-START. -func yaml_sequence_start_event_initialize(event *yaml_event_t, anchor, tag []byte, implicit bool, style yaml_sequence_style_t) bool { - *event = yaml_event_t{ - typ: yaml_SEQUENCE_START_EVENT, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(style), - } - return true -} - -// Create SEQUENCE-END. -func yaml_sequence_end_event_initialize(event *yaml_event_t) bool { - *event = yaml_event_t{ - typ: yaml_SEQUENCE_END_EVENT, - } - return true -} - -// Create MAPPING-START. -func yaml_mapping_start_event_initialize(event *yaml_event_t, anchor, tag []byte, implicit bool, style yaml_mapping_style_t) bool { - *event = yaml_event_t{ - typ: yaml_MAPPING_START_EVENT, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(style), - } - return true -} - -// Create MAPPING-END. -func yaml_mapping_end_event_initialize(event *yaml_event_t) bool { - *event = yaml_event_t{ - typ: yaml_MAPPING_END_EVENT, - } - return true -} - -// Destroy an event object. -func yaml_event_delete(event *yaml_event_t) { - *event = yaml_event_t{} -} - -///* -// * Create a document object. -// */ -// -//YAML_DECLARE(int) -//yaml_document_initialize(document *yaml_document_t, -// version_directive *yaml_version_directive_t, -// tag_directives_start *yaml_tag_directive_t, -// tag_directives_end *yaml_tag_directive_t, -// start_implicit int, end_implicit int) -//{ -// struct { -// error yaml_error_type_t -// } context -// struct { -// start *yaml_node_t -// end *yaml_node_t -// top *yaml_node_t -// } nodes = { NULL, NULL, NULL } -// version_directive_copy *yaml_version_directive_t = NULL -// struct { -// start *yaml_tag_directive_t -// end *yaml_tag_directive_t -// top *yaml_tag_directive_t -// } tag_directives_copy = { NULL, NULL, NULL } -// value yaml_tag_directive_t = { NULL, NULL } -// mark yaml_mark_t = { 0, 0, 0 } -// -// assert(document) // Non-NULL document object is expected. -// assert((tag_directives_start && tag_directives_end) || -// (tag_directives_start == tag_directives_end)) -// // Valid tag directives are expected. -// -// if (!STACK_INIT(&context, nodes, INITIAL_STACK_SIZE)) goto error -// -// if (version_directive) { -// version_directive_copy = yaml_malloc(sizeof(yaml_version_directive_t)) -// if (!version_directive_copy) goto error -// version_directive_copy.major = version_directive.major -// version_directive_copy.minor = version_directive.minor -// } -// -// if (tag_directives_start != tag_directives_end) { -// tag_directive *yaml_tag_directive_t -// if (!STACK_INIT(&context, tag_directives_copy, INITIAL_STACK_SIZE)) -// goto error -// for (tag_directive = tag_directives_start -// tag_directive != tag_directives_end; tag_directive ++) { -// assert(tag_directive.handle) -// assert(tag_directive.prefix) -// if (!yaml_check_utf8(tag_directive.handle, -// strlen((char *)tag_directive.handle))) -// goto error -// if (!yaml_check_utf8(tag_directive.prefix, -// strlen((char *)tag_directive.prefix))) -// goto error -// value.handle = yaml_strdup(tag_directive.handle) -// value.prefix = yaml_strdup(tag_directive.prefix) -// if (!value.handle || !value.prefix) goto error -// if (!PUSH(&context, tag_directives_copy, value)) -// goto error -// value.handle = NULL -// value.prefix = NULL -// } -// } -// -// DOCUMENT_INIT(*document, nodes.start, nodes.end, version_directive_copy, -// tag_directives_copy.start, tag_directives_copy.top, -// start_implicit, end_implicit, mark, mark) -// -// return 1 -// -//error: -// STACK_DEL(&context, nodes) -// yaml_free(version_directive_copy) -// while (!STACK_EMPTY(&context, tag_directives_copy)) { -// value yaml_tag_directive_t = POP(&context, tag_directives_copy) -// yaml_free(value.handle) -// yaml_free(value.prefix) -// } -// STACK_DEL(&context, tag_directives_copy) -// yaml_free(value.handle) -// yaml_free(value.prefix) -// -// return 0 -//} -// -///* -// * Destroy a document object. -// */ -// -//YAML_DECLARE(void) -//yaml_document_delete(document *yaml_document_t) -//{ -// struct { -// error yaml_error_type_t -// } context -// tag_directive *yaml_tag_directive_t -// -// context.error = YAML_NO_ERROR // Eliminate a compliler warning. -// -// assert(document) // Non-NULL document object is expected. -// -// while (!STACK_EMPTY(&context, document.nodes)) { -// node yaml_node_t = POP(&context, document.nodes) -// yaml_free(node.tag) -// switch (node.type) { -// case YAML_SCALAR_NODE: -// yaml_free(node.data.scalar.value) -// break -// case YAML_SEQUENCE_NODE: -// STACK_DEL(&context, node.data.sequence.items) -// break -// case YAML_MAPPING_NODE: -// STACK_DEL(&context, node.data.mapping.pairs) -// break -// default: -// assert(0) // Should not happen. -// } -// } -// STACK_DEL(&context, document.nodes) -// -// yaml_free(document.version_directive) -// for (tag_directive = document.tag_directives.start -// tag_directive != document.tag_directives.end -// tag_directive++) { -// yaml_free(tag_directive.handle) -// yaml_free(tag_directive.prefix) -// } -// yaml_free(document.tag_directives.start) -// -// memset(document, 0, sizeof(yaml_document_t)) -//} -// -///** -// * Get a document node. -// */ -// -//YAML_DECLARE(yaml_node_t *) -//yaml_document_get_node(document *yaml_document_t, index int) -//{ -// assert(document) // Non-NULL document object is expected. -// -// if (index > 0 && document.nodes.start + index <= document.nodes.top) { -// return document.nodes.start + index - 1 -// } -// return NULL -//} -// -///** -// * Get the root object. -// */ -// -//YAML_DECLARE(yaml_node_t *) -//yaml_document_get_root_node(document *yaml_document_t) -//{ -// assert(document) // Non-NULL document object is expected. -// -// if (document.nodes.top != document.nodes.start) { -// return document.nodes.start -// } -// return NULL -//} -// -///* -// * Add a scalar node to a document. -// */ -// -//YAML_DECLARE(int) -//yaml_document_add_scalar(document *yaml_document_t, -// tag *yaml_char_t, value *yaml_char_t, length int, -// style yaml_scalar_style_t) -//{ -// struct { -// error yaml_error_type_t -// } context -// mark yaml_mark_t = { 0, 0, 0 } -// tag_copy *yaml_char_t = NULL -// value_copy *yaml_char_t = NULL -// node yaml_node_t -// -// assert(document) // Non-NULL document object is expected. -// assert(value) // Non-NULL value is expected. -// -// if (!tag) { -// tag = (yaml_char_t *)YAML_DEFAULT_SCALAR_TAG -// } -// -// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error -// tag_copy = yaml_strdup(tag) -// if (!tag_copy) goto error -// -// if (length < 0) { -// length = strlen((char *)value) -// } -// -// if (!yaml_check_utf8(value, length)) goto error -// value_copy = yaml_malloc(length+1) -// if (!value_copy) goto error -// memcpy(value_copy, value, length) -// value_copy[length] = '\0' -// -// SCALAR_NODE_INIT(node, tag_copy, value_copy, length, style, mark, mark) -// if (!PUSH(&context, document.nodes, node)) goto error -// -// return document.nodes.top - document.nodes.start -// -//error: -// yaml_free(tag_copy) -// yaml_free(value_copy) -// -// return 0 -//} -// -///* -// * Add a sequence node to a document. -// */ -// -//YAML_DECLARE(int) -//yaml_document_add_sequence(document *yaml_document_t, -// tag *yaml_char_t, style yaml_sequence_style_t) -//{ -// struct { -// error yaml_error_type_t -// } context -// mark yaml_mark_t = { 0, 0, 0 } -// tag_copy *yaml_char_t = NULL -// struct { -// start *yaml_node_item_t -// end *yaml_node_item_t -// top *yaml_node_item_t -// } items = { NULL, NULL, NULL } -// node yaml_node_t -// -// assert(document) // Non-NULL document object is expected. -// -// if (!tag) { -// tag = (yaml_char_t *)YAML_DEFAULT_SEQUENCE_TAG -// } -// -// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error -// tag_copy = yaml_strdup(tag) -// if (!tag_copy) goto error -// -// if (!STACK_INIT(&context, items, INITIAL_STACK_SIZE)) goto error -// -// SEQUENCE_NODE_INIT(node, tag_copy, items.start, items.end, -// style, mark, mark) -// if (!PUSH(&context, document.nodes, node)) goto error -// -// return document.nodes.top - document.nodes.start -// -//error: -// STACK_DEL(&context, items) -// yaml_free(tag_copy) -// -// return 0 -//} -// -///* -// * Add a mapping node to a document. -// */ -// -//YAML_DECLARE(int) -//yaml_document_add_mapping(document *yaml_document_t, -// tag *yaml_char_t, style yaml_mapping_style_t) -//{ -// struct { -// error yaml_error_type_t -// } context -// mark yaml_mark_t = { 0, 0, 0 } -// tag_copy *yaml_char_t = NULL -// struct { -// start *yaml_node_pair_t -// end *yaml_node_pair_t -// top *yaml_node_pair_t -// } pairs = { NULL, NULL, NULL } -// node yaml_node_t -// -// assert(document) // Non-NULL document object is expected. -// -// if (!tag) { -// tag = (yaml_char_t *)YAML_DEFAULT_MAPPING_TAG -// } -// -// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error -// tag_copy = yaml_strdup(tag) -// if (!tag_copy) goto error -// -// if (!STACK_INIT(&context, pairs, INITIAL_STACK_SIZE)) goto error -// -// MAPPING_NODE_INIT(node, tag_copy, pairs.start, pairs.end, -// style, mark, mark) -// if (!PUSH(&context, document.nodes, node)) goto error -// -// return document.nodes.top - document.nodes.start -// -//error: -// STACK_DEL(&context, pairs) -// yaml_free(tag_copy) -// -// return 0 -//} -// -///* -// * Append an item to a sequence node. -// */ -// -//YAML_DECLARE(int) -//yaml_document_append_sequence_item(document *yaml_document_t, -// sequence int, item int) -//{ -// struct { -// error yaml_error_type_t -// } context -// -// assert(document) // Non-NULL document is required. -// assert(sequence > 0 -// && document.nodes.start + sequence <= document.nodes.top) -// // Valid sequence id is required. -// assert(document.nodes.start[sequence-1].type == YAML_SEQUENCE_NODE) -// // A sequence node is required. -// assert(item > 0 && document.nodes.start + item <= document.nodes.top) -// // Valid item id is required. -// -// if (!PUSH(&context, -// document.nodes.start[sequence-1].data.sequence.items, item)) -// return 0 -// -// return 1 -//} -// -///* -// * Append a pair of a key and a value to a mapping node. -// */ -// -//YAML_DECLARE(int) -//yaml_document_append_mapping_pair(document *yaml_document_t, -// mapping int, key int, value int) -//{ -// struct { -// error yaml_error_type_t -// } context -// -// pair yaml_node_pair_t -// -// assert(document) // Non-NULL document is required. -// assert(mapping > 0 -// && document.nodes.start + mapping <= document.nodes.top) -// // Valid mapping id is required. -// assert(document.nodes.start[mapping-1].type == YAML_MAPPING_NODE) -// // A mapping node is required. -// assert(key > 0 && document.nodes.start + key <= document.nodes.top) -// // Valid key id is required. -// assert(value > 0 && document.nodes.start + value <= document.nodes.top) -// // Valid value id is required. -// -// pair.key = key -// pair.value = value -// -// if (!PUSH(&context, -// document.nodes.start[mapping-1].data.mapping.pairs, pair)) -// return 0 -// -// return 1 -//} -// -// diff --git a/vendor/gopkg.in/yaml.v2/decode.go b/vendor/gopkg.in/yaml.v2/decode.go deleted file mode 100644 index e85eb2e..0000000 --- a/vendor/gopkg.in/yaml.v2/decode.go +++ /dev/null @@ -1,685 +0,0 @@ -package yaml - -import ( - "encoding" - "encoding/base64" - "fmt" - "math" - "reflect" - "strconv" - "time" -) - -const ( - documentNode = 1 << iota - mappingNode - sequenceNode - scalarNode - aliasNode -) - -type node struct { - kind int - line, column int - tag string - value string - implicit bool - children []*node - anchors map[string]*node -} - -// ---------------------------------------------------------------------------- -// Parser, produces a node tree out of a libyaml event stream. - -type parser struct { - parser yaml_parser_t - event yaml_event_t - doc *node -} - -func newParser(b []byte) *parser { - p := parser{} - if !yaml_parser_initialize(&p.parser) { - panic("failed to initialize YAML emitter") - } - - if len(b) == 0 { - b = []byte{'\n'} - } - - yaml_parser_set_input_string(&p.parser, b) - - p.skip() - if p.event.typ != yaml_STREAM_START_EVENT { - panic("expected stream start event, got " + strconv.Itoa(int(p.event.typ))) - } - p.skip() - return &p -} - -func (p *parser) destroy() { - if p.event.typ != yaml_NO_EVENT { - yaml_event_delete(&p.event) - } - yaml_parser_delete(&p.parser) -} - -func (p *parser) skip() { - if p.event.typ != yaml_NO_EVENT { - if p.event.typ == yaml_STREAM_END_EVENT { - failf("attempted to go past the end of stream; corrupted value?") - } - yaml_event_delete(&p.event) - } - if !yaml_parser_parse(&p.parser, &p.event) { - p.fail() - } -} - -func (p *parser) fail() { - var where string - var line int - if p.parser.problem_mark.line != 0 { - line = p.parser.problem_mark.line - } else if p.parser.context_mark.line != 0 { - line = p.parser.context_mark.line - } - if line != 0 { - where = "line " + strconv.Itoa(line) + ": " - } - var msg string - if len(p.parser.problem) > 0 { - msg = p.parser.problem - } else { - msg = "unknown problem parsing YAML content" - } - failf("%s%s", where, msg) -} - -func (p *parser) anchor(n *node, anchor []byte) { - if anchor != nil { - p.doc.anchors[string(anchor)] = n - } -} - -func (p *parser) parse() *node { - switch p.event.typ { - case yaml_SCALAR_EVENT: - return p.scalar() - case yaml_ALIAS_EVENT: - return p.alias() - case yaml_MAPPING_START_EVENT: - return p.mapping() - case yaml_SEQUENCE_START_EVENT: - return p.sequence() - case yaml_DOCUMENT_START_EVENT: - return p.document() - case yaml_STREAM_END_EVENT: - // Happens when attempting to decode an empty buffer. - return nil - default: - panic("attempted to parse unknown event: " + strconv.Itoa(int(p.event.typ))) - } -} - -func (p *parser) node(kind int) *node { - return &node{ - kind: kind, - line: p.event.start_mark.line, - column: p.event.start_mark.column, - } -} - -func (p *parser) document() *node { - n := p.node(documentNode) - n.anchors = make(map[string]*node) - p.doc = n - p.skip() - n.children = append(n.children, p.parse()) - if p.event.typ != yaml_DOCUMENT_END_EVENT { - panic("expected end of document event but got " + strconv.Itoa(int(p.event.typ))) - } - p.skip() - return n -} - -func (p *parser) alias() *node { - n := p.node(aliasNode) - n.value = string(p.event.anchor) - p.skip() - return n -} - -func (p *parser) scalar() *node { - n := p.node(scalarNode) - n.value = string(p.event.value) - n.tag = string(p.event.tag) - n.implicit = p.event.implicit - p.anchor(n, p.event.anchor) - p.skip() - return n -} - -func (p *parser) sequence() *node { - n := p.node(sequenceNode) - p.anchor(n, p.event.anchor) - p.skip() - for p.event.typ != yaml_SEQUENCE_END_EVENT { - n.children = append(n.children, p.parse()) - } - p.skip() - return n -} - -func (p *parser) mapping() *node { - n := p.node(mappingNode) - p.anchor(n, p.event.anchor) - p.skip() - for p.event.typ != yaml_MAPPING_END_EVENT { - n.children = append(n.children, p.parse(), p.parse()) - } - p.skip() - return n -} - -// ---------------------------------------------------------------------------- -// Decoder, unmarshals a node into a provided value. - -type decoder struct { - doc *node - aliases map[string]bool - mapType reflect.Type - terrors []string - strict bool -} - -var ( - mapItemType = reflect.TypeOf(MapItem{}) - durationType = reflect.TypeOf(time.Duration(0)) - defaultMapType = reflect.TypeOf(map[interface{}]interface{}{}) - ifaceType = defaultMapType.Elem() -) - -func newDecoder(strict bool) *decoder { - d := &decoder{mapType: defaultMapType, strict: strict} - d.aliases = make(map[string]bool) - return d -} - -func (d *decoder) terror(n *node, tag string, out reflect.Value) { - if n.tag != "" { - tag = n.tag - } - value := n.value - if tag != yaml_SEQ_TAG && tag != yaml_MAP_TAG { - if len(value) > 10 { - value = " `" + value[:7] + "...`" - } else { - value = " `" + value + "`" - } - } - d.terrors = append(d.terrors, fmt.Sprintf("line %d: cannot unmarshal %s%s into %s", n.line+1, shortTag(tag), value, out.Type())) -} - -func (d *decoder) callUnmarshaler(n *node, u Unmarshaler) (good bool) { - terrlen := len(d.terrors) - err := u.UnmarshalYAML(func(v interface{}) (err error) { - defer handleErr(&err) - d.unmarshal(n, reflect.ValueOf(v)) - if len(d.terrors) > terrlen { - issues := d.terrors[terrlen:] - d.terrors = d.terrors[:terrlen] - return &TypeError{issues} - } - return nil - }) - if e, ok := err.(*TypeError); ok { - d.terrors = append(d.terrors, e.Errors...) - return false - } - if err != nil { - fail(err) - } - return true -} - -// d.prepare initializes and dereferences pointers and calls UnmarshalYAML -// if a value is found to implement it. -// It returns the initialized and dereferenced out value, whether -// unmarshalling was already done by UnmarshalYAML, and if so whether -// its types unmarshalled appropriately. -// -// If n holds a null value, prepare returns before doing anything. -func (d *decoder) prepare(n *node, out reflect.Value) (newout reflect.Value, unmarshaled, good bool) { - if n.tag == yaml_NULL_TAG || n.kind == scalarNode && n.tag == "" && (n.value == "null" || n.value == "~" || n.value == "" && n.implicit) { - return out, false, false - } - again := true - for again { - again = false - if out.Kind() == reflect.Ptr { - if out.IsNil() { - out.Set(reflect.New(out.Type().Elem())) - } - out = out.Elem() - again = true - } - if out.CanAddr() { - if u, ok := out.Addr().Interface().(Unmarshaler); ok { - good = d.callUnmarshaler(n, u) - return out, true, good - } - } - } - return out, false, false -} - -func (d *decoder) unmarshal(n *node, out reflect.Value) (good bool) { - switch n.kind { - case documentNode: - return d.document(n, out) - case aliasNode: - return d.alias(n, out) - } - out, unmarshaled, good := d.prepare(n, out) - if unmarshaled { - return good - } - switch n.kind { - case scalarNode: - good = d.scalar(n, out) - case mappingNode: - good = d.mapping(n, out) - case sequenceNode: - good = d.sequence(n, out) - default: - panic("internal error: unknown node kind: " + strconv.Itoa(n.kind)) - } - return good -} - -func (d *decoder) document(n *node, out reflect.Value) (good bool) { - if len(n.children) == 1 { - d.doc = n - d.unmarshal(n.children[0], out) - return true - } - return false -} - -func (d *decoder) alias(n *node, out reflect.Value) (good bool) { - an, ok := d.doc.anchors[n.value] - if !ok { - failf("unknown anchor '%s' referenced", n.value) - } - if d.aliases[n.value] { - failf("anchor '%s' value contains itself", n.value) - } - d.aliases[n.value] = true - good = d.unmarshal(an, out) - delete(d.aliases, n.value) - return good -} - -var zeroValue reflect.Value - -func resetMap(out reflect.Value) { - for _, k := range out.MapKeys() { - out.SetMapIndex(k, zeroValue) - } -} - -func (d *decoder) scalar(n *node, out reflect.Value) (good bool) { - var tag string - var resolved interface{} - if n.tag == "" && !n.implicit { - tag = yaml_STR_TAG - resolved = n.value - } else { - tag, resolved = resolve(n.tag, n.value) - if tag == yaml_BINARY_TAG { - data, err := base64.StdEncoding.DecodeString(resolved.(string)) - if err != nil { - failf("!!binary value contains invalid base64 data") - } - resolved = string(data) - } - } - if resolved == nil { - if out.Kind() == reflect.Map && !out.CanAddr() { - resetMap(out) - } else { - out.Set(reflect.Zero(out.Type())) - } - return true - } - if s, ok := resolved.(string); ok && out.CanAddr() { - if u, ok := out.Addr().Interface().(encoding.TextUnmarshaler); ok { - err := u.UnmarshalText([]byte(s)) - if err != nil { - fail(err) - } - return true - } - } - switch out.Kind() { - case reflect.String: - if tag == yaml_BINARY_TAG { - out.SetString(resolved.(string)) - good = true - } else if resolved != nil { - out.SetString(n.value) - good = true - } - case reflect.Interface: - if resolved == nil { - out.Set(reflect.Zero(out.Type())) - } else { - out.Set(reflect.ValueOf(resolved)) - } - good = true - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - switch resolved := resolved.(type) { - case int: - if !out.OverflowInt(int64(resolved)) { - out.SetInt(int64(resolved)) - good = true - } - case int64: - if !out.OverflowInt(resolved) { - out.SetInt(resolved) - good = true - } - case uint64: - if resolved <= math.MaxInt64 && !out.OverflowInt(int64(resolved)) { - out.SetInt(int64(resolved)) - good = true - } - case float64: - if resolved <= math.MaxInt64 && !out.OverflowInt(int64(resolved)) { - out.SetInt(int64(resolved)) - good = true - } - case string: - if out.Type() == durationType { - d, err := time.ParseDuration(resolved) - if err == nil { - out.SetInt(int64(d)) - good = true - } - } - } - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - switch resolved := resolved.(type) { - case int: - if resolved >= 0 && !out.OverflowUint(uint64(resolved)) { - out.SetUint(uint64(resolved)) - good = true - } - case int64: - if resolved >= 0 && !out.OverflowUint(uint64(resolved)) { - out.SetUint(uint64(resolved)) - good = true - } - case uint64: - if !out.OverflowUint(uint64(resolved)) { - out.SetUint(uint64(resolved)) - good = true - } - case float64: - if resolved <= math.MaxUint64 && !out.OverflowUint(uint64(resolved)) { - out.SetUint(uint64(resolved)) - good = true - } - } - case reflect.Bool: - switch resolved := resolved.(type) { - case bool: - out.SetBool(resolved) - good = true - } - case reflect.Float32, reflect.Float64: - switch resolved := resolved.(type) { - case int: - out.SetFloat(float64(resolved)) - good = true - case int64: - out.SetFloat(float64(resolved)) - good = true - case uint64: - out.SetFloat(float64(resolved)) - good = true - case float64: - out.SetFloat(resolved) - good = true - } - case reflect.Ptr: - if out.Type().Elem() == reflect.TypeOf(resolved) { - // TODO DOes this make sense? When is out a Ptr except when decoding a nil value? - elem := reflect.New(out.Type().Elem()) - elem.Elem().Set(reflect.ValueOf(resolved)) - out.Set(elem) - good = true - } - } - if !good { - d.terror(n, tag, out) - } - return good -} - -func settableValueOf(i interface{}) reflect.Value { - v := reflect.ValueOf(i) - sv := reflect.New(v.Type()).Elem() - sv.Set(v) - return sv -} - -func (d *decoder) sequence(n *node, out reflect.Value) (good bool) { - l := len(n.children) - - var iface reflect.Value - switch out.Kind() { - case reflect.Slice: - out.Set(reflect.MakeSlice(out.Type(), l, l)) - case reflect.Interface: - // No type hints. Will have to use a generic sequence. - iface = out - out = settableValueOf(make([]interface{}, l)) - default: - d.terror(n, yaml_SEQ_TAG, out) - return false - } - et := out.Type().Elem() - - j := 0 - for i := 0; i < l; i++ { - e := reflect.New(et).Elem() - if ok := d.unmarshal(n.children[i], e); ok { - out.Index(j).Set(e) - j++ - } - } - out.Set(out.Slice(0, j)) - if iface.IsValid() { - iface.Set(out) - } - return true -} - -func (d *decoder) mapping(n *node, out reflect.Value) (good bool) { - switch out.Kind() { - case reflect.Struct: - return d.mappingStruct(n, out) - case reflect.Slice: - return d.mappingSlice(n, out) - case reflect.Map: - // okay - case reflect.Interface: - if d.mapType.Kind() == reflect.Map { - iface := out - out = reflect.MakeMap(d.mapType) - iface.Set(out) - } else { - slicev := reflect.New(d.mapType).Elem() - if !d.mappingSlice(n, slicev) { - return false - } - out.Set(slicev) - return true - } - default: - d.terror(n, yaml_MAP_TAG, out) - return false - } - outt := out.Type() - kt := outt.Key() - et := outt.Elem() - - mapType := d.mapType - if outt.Key() == ifaceType && outt.Elem() == ifaceType { - d.mapType = outt - } - - if out.IsNil() { - out.Set(reflect.MakeMap(outt)) - } - l := len(n.children) - for i := 0; i < l; i += 2 { - if isMerge(n.children[i]) { - d.merge(n.children[i+1], out) - continue - } - k := reflect.New(kt).Elem() - if d.unmarshal(n.children[i], k) { - kkind := k.Kind() - if kkind == reflect.Interface { - kkind = k.Elem().Kind() - } - if kkind == reflect.Map || kkind == reflect.Slice { - failf("invalid map key: %#v", k.Interface()) - } - e := reflect.New(et).Elem() - if d.unmarshal(n.children[i+1], e) { - out.SetMapIndex(k, e) - } - } - } - d.mapType = mapType - return true -} - -func (d *decoder) mappingSlice(n *node, out reflect.Value) (good bool) { - outt := out.Type() - if outt.Elem() != mapItemType { - d.terror(n, yaml_MAP_TAG, out) - return false - } - - mapType := d.mapType - d.mapType = outt - - var slice []MapItem - var l = len(n.children) - for i := 0; i < l; i += 2 { - if isMerge(n.children[i]) { - d.merge(n.children[i+1], out) - continue - } - item := MapItem{} - k := reflect.ValueOf(&item.Key).Elem() - if d.unmarshal(n.children[i], k) { - v := reflect.ValueOf(&item.Value).Elem() - if d.unmarshal(n.children[i+1], v) { - slice = append(slice, item) - } - } - } - out.Set(reflect.ValueOf(slice)) - d.mapType = mapType - return true -} - -func (d *decoder) mappingStruct(n *node, out reflect.Value) (good bool) { - sinfo, err := getStructInfo(out.Type()) - if err != nil { - panic(err) - } - name := settableValueOf("") - l := len(n.children) - - var inlineMap reflect.Value - var elemType reflect.Type - if sinfo.InlineMap != -1 { - inlineMap = out.Field(sinfo.InlineMap) - inlineMap.Set(reflect.New(inlineMap.Type()).Elem()) - elemType = inlineMap.Type().Elem() - } - - for i := 0; i < l; i += 2 { - ni := n.children[i] - if isMerge(ni) { - d.merge(n.children[i+1], out) - continue - } - if !d.unmarshal(ni, name) { - continue - } - if info, ok := sinfo.FieldsMap[name.String()]; ok { - var field reflect.Value - if info.Inline == nil { - field = out.Field(info.Num) - } else { - field = out.FieldByIndex(info.Inline) - } - d.unmarshal(n.children[i+1], field) - } else if sinfo.InlineMap != -1 { - if inlineMap.IsNil() { - inlineMap.Set(reflect.MakeMap(inlineMap.Type())) - } - value := reflect.New(elemType).Elem() - d.unmarshal(n.children[i+1], value) - inlineMap.SetMapIndex(name, value) - } else if d.strict { - d.terrors = append(d.terrors, fmt.Sprintf("line %d: field %s not found in struct %s", ni.line+1, name.String(), out.Type())) - } - } - return true -} - -func failWantMap() { - failf("map merge requires map or sequence of maps as the value") -} - -func (d *decoder) merge(n *node, out reflect.Value) { - switch n.kind { - case mappingNode: - d.unmarshal(n, out) - case aliasNode: - an, ok := d.doc.anchors[n.value] - if ok && an.kind != mappingNode { - failWantMap() - } - d.unmarshal(n, out) - case sequenceNode: - // Step backwards as earlier nodes take precedence. - for i := len(n.children) - 1; i >= 0; i-- { - ni := n.children[i] - if ni.kind == aliasNode { - an, ok := d.doc.anchors[ni.value] - if ok && an.kind != mappingNode { - failWantMap() - } - } else if ni.kind != mappingNode { - failWantMap() - } - d.unmarshal(ni, out) - } - default: - failWantMap() - } -} - -func isMerge(n *node) bool { - return n.kind == scalarNode && n.value == "<<" && (n.implicit == true || n.tag == yaml_MERGE_TAG) -} diff --git a/vendor/gopkg.in/yaml.v2/emitterc.go b/vendor/gopkg.in/yaml.v2/emitterc.go deleted file mode 100644 index dcaf502..0000000 --- a/vendor/gopkg.in/yaml.v2/emitterc.go +++ /dev/null @@ -1,1684 +0,0 @@ -package yaml - -import ( - "bytes" -) - -// Flush the buffer if needed. -func flush(emitter *yaml_emitter_t) bool { - if emitter.buffer_pos+5 >= len(emitter.buffer) { - return yaml_emitter_flush(emitter) - } - return true -} - -// Put a character to the output buffer. -func put(emitter *yaml_emitter_t, value byte) bool { - if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { - return false - } - emitter.buffer[emitter.buffer_pos] = value - emitter.buffer_pos++ - emitter.column++ - return true -} - -// Put a line break to the output buffer. -func put_break(emitter *yaml_emitter_t) bool { - if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { - return false - } - switch emitter.line_break { - case yaml_CR_BREAK: - emitter.buffer[emitter.buffer_pos] = '\r' - emitter.buffer_pos += 1 - case yaml_LN_BREAK: - emitter.buffer[emitter.buffer_pos] = '\n' - emitter.buffer_pos += 1 - case yaml_CRLN_BREAK: - emitter.buffer[emitter.buffer_pos+0] = '\r' - emitter.buffer[emitter.buffer_pos+1] = '\n' - emitter.buffer_pos += 2 - default: - panic("unknown line break setting") - } - emitter.column = 0 - emitter.line++ - return true -} - -// Copy a character from a string into buffer. -func write(emitter *yaml_emitter_t, s []byte, i *int) bool { - if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { - return false - } - p := emitter.buffer_pos - w := width(s[*i]) - switch w { - case 4: - emitter.buffer[p+3] = s[*i+3] - fallthrough - case 3: - emitter.buffer[p+2] = s[*i+2] - fallthrough - case 2: - emitter.buffer[p+1] = s[*i+1] - fallthrough - case 1: - emitter.buffer[p+0] = s[*i+0] - default: - panic("unknown character width") - } - emitter.column++ - emitter.buffer_pos += w - *i += w - return true -} - -// Write a whole string into buffer. -func write_all(emitter *yaml_emitter_t, s []byte) bool { - for i := 0; i < len(s); { - if !write(emitter, s, &i) { - return false - } - } - return true -} - -// Copy a line break character from a string into buffer. -func write_break(emitter *yaml_emitter_t, s []byte, i *int) bool { - if s[*i] == '\n' { - if !put_break(emitter) { - return false - } - *i++ - } else { - if !write(emitter, s, i) { - return false - } - emitter.column = 0 - emitter.line++ - } - return true -} - -// Set an emitter error and return false. -func yaml_emitter_set_emitter_error(emitter *yaml_emitter_t, problem string) bool { - emitter.error = yaml_EMITTER_ERROR - emitter.problem = problem - return false -} - -// Emit an event. -func yaml_emitter_emit(emitter *yaml_emitter_t, event *yaml_event_t) bool { - emitter.events = append(emitter.events, *event) - for !yaml_emitter_need_more_events(emitter) { - event := &emitter.events[emitter.events_head] - if !yaml_emitter_analyze_event(emitter, event) { - return false - } - if !yaml_emitter_state_machine(emitter, event) { - return false - } - yaml_event_delete(event) - emitter.events_head++ - } - return true -} - -// Check if we need to accumulate more events before emitting. -// -// We accumulate extra -// - 1 event for DOCUMENT-START -// - 2 events for SEQUENCE-START -// - 3 events for MAPPING-START -// -func yaml_emitter_need_more_events(emitter *yaml_emitter_t) bool { - if emitter.events_head == len(emitter.events) { - return true - } - var accumulate int - switch emitter.events[emitter.events_head].typ { - case yaml_DOCUMENT_START_EVENT: - accumulate = 1 - break - case yaml_SEQUENCE_START_EVENT: - accumulate = 2 - break - case yaml_MAPPING_START_EVENT: - accumulate = 3 - break - default: - return false - } - if len(emitter.events)-emitter.events_head > accumulate { - return false - } - var level int - for i := emitter.events_head; i < len(emitter.events); i++ { - switch emitter.events[i].typ { - case yaml_STREAM_START_EVENT, yaml_DOCUMENT_START_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT: - level++ - case yaml_STREAM_END_EVENT, yaml_DOCUMENT_END_EVENT, yaml_SEQUENCE_END_EVENT, yaml_MAPPING_END_EVENT: - level-- - } - if level == 0 { - return false - } - } - return true -} - -// Append a directive to the directives stack. -func yaml_emitter_append_tag_directive(emitter *yaml_emitter_t, value *yaml_tag_directive_t, allow_duplicates bool) bool { - for i := 0; i < len(emitter.tag_directives); i++ { - if bytes.Equal(value.handle, emitter.tag_directives[i].handle) { - if allow_duplicates { - return true - } - return yaml_emitter_set_emitter_error(emitter, "duplicate %TAG directive") - } - } - - // [Go] Do we actually need to copy this given garbage collection - // and the lack of deallocating destructors? - tag_copy := yaml_tag_directive_t{ - handle: make([]byte, len(value.handle)), - prefix: make([]byte, len(value.prefix)), - } - copy(tag_copy.handle, value.handle) - copy(tag_copy.prefix, value.prefix) - emitter.tag_directives = append(emitter.tag_directives, tag_copy) - return true -} - -// Increase the indentation level. -func yaml_emitter_increase_indent(emitter *yaml_emitter_t, flow, indentless bool) bool { - emitter.indents = append(emitter.indents, emitter.indent) - if emitter.indent < 0 { - if flow { - emitter.indent = emitter.best_indent - } else { - emitter.indent = 0 - } - } else if !indentless { - emitter.indent += emitter.best_indent - } - return true -} - -// State dispatcher. -func yaml_emitter_state_machine(emitter *yaml_emitter_t, event *yaml_event_t) bool { - switch emitter.state { - default: - case yaml_EMIT_STREAM_START_STATE: - return yaml_emitter_emit_stream_start(emitter, event) - - case yaml_EMIT_FIRST_DOCUMENT_START_STATE: - return yaml_emitter_emit_document_start(emitter, event, true) - - case yaml_EMIT_DOCUMENT_START_STATE: - return yaml_emitter_emit_document_start(emitter, event, false) - - case yaml_EMIT_DOCUMENT_CONTENT_STATE: - return yaml_emitter_emit_document_content(emitter, event) - - case yaml_EMIT_DOCUMENT_END_STATE: - return yaml_emitter_emit_document_end(emitter, event) - - case yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE: - return yaml_emitter_emit_flow_sequence_item(emitter, event, true) - - case yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE: - return yaml_emitter_emit_flow_sequence_item(emitter, event, false) - - case yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE: - return yaml_emitter_emit_flow_mapping_key(emitter, event, true) - - case yaml_EMIT_FLOW_MAPPING_KEY_STATE: - return yaml_emitter_emit_flow_mapping_key(emitter, event, false) - - case yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE: - return yaml_emitter_emit_flow_mapping_value(emitter, event, true) - - case yaml_EMIT_FLOW_MAPPING_VALUE_STATE: - return yaml_emitter_emit_flow_mapping_value(emitter, event, false) - - case yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE: - return yaml_emitter_emit_block_sequence_item(emitter, event, true) - - case yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE: - return yaml_emitter_emit_block_sequence_item(emitter, event, false) - - case yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE: - return yaml_emitter_emit_block_mapping_key(emitter, event, true) - - case yaml_EMIT_BLOCK_MAPPING_KEY_STATE: - return yaml_emitter_emit_block_mapping_key(emitter, event, false) - - case yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE: - return yaml_emitter_emit_block_mapping_value(emitter, event, true) - - case yaml_EMIT_BLOCK_MAPPING_VALUE_STATE: - return yaml_emitter_emit_block_mapping_value(emitter, event, false) - - case yaml_EMIT_END_STATE: - return yaml_emitter_set_emitter_error(emitter, "expected nothing after STREAM-END") - } - panic("invalid emitter state") -} - -// Expect STREAM-START. -func yaml_emitter_emit_stream_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if event.typ != yaml_STREAM_START_EVENT { - return yaml_emitter_set_emitter_error(emitter, "expected STREAM-START") - } - if emitter.encoding == yaml_ANY_ENCODING { - emitter.encoding = event.encoding - if emitter.encoding == yaml_ANY_ENCODING { - emitter.encoding = yaml_UTF8_ENCODING - } - } - if emitter.best_indent < 2 || emitter.best_indent > 9 { - emitter.best_indent = 2 - } - if emitter.best_width >= 0 && emitter.best_width <= emitter.best_indent*2 { - emitter.best_width = 80 - } - if emitter.best_width < 0 { - emitter.best_width = 1<<31 - 1 - } - if emitter.line_break == yaml_ANY_BREAK { - emitter.line_break = yaml_LN_BREAK - } - - emitter.indent = -1 - emitter.line = 0 - emitter.column = 0 - emitter.whitespace = true - emitter.indention = true - - if emitter.encoding != yaml_UTF8_ENCODING { - if !yaml_emitter_write_bom(emitter) { - return false - } - } - emitter.state = yaml_EMIT_FIRST_DOCUMENT_START_STATE - return true -} - -// Expect DOCUMENT-START or STREAM-END. -func yaml_emitter_emit_document_start(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { - - if event.typ == yaml_DOCUMENT_START_EVENT { - - if event.version_directive != nil { - if !yaml_emitter_analyze_version_directive(emitter, event.version_directive) { - return false - } - } - - for i := 0; i < len(event.tag_directives); i++ { - tag_directive := &event.tag_directives[i] - if !yaml_emitter_analyze_tag_directive(emitter, tag_directive) { - return false - } - if !yaml_emitter_append_tag_directive(emitter, tag_directive, false) { - return false - } - } - - for i := 0; i < len(default_tag_directives); i++ { - tag_directive := &default_tag_directives[i] - if !yaml_emitter_append_tag_directive(emitter, tag_directive, true) { - return false - } - } - - implicit := event.implicit - if !first || emitter.canonical { - implicit = false - } - - if emitter.open_ended && (event.version_directive != nil || len(event.tag_directives) > 0) { - if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - - if event.version_directive != nil { - implicit = false - if !yaml_emitter_write_indicator(emitter, []byte("%YAML"), true, false, false) { - return false - } - if !yaml_emitter_write_indicator(emitter, []byte("1.1"), true, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - - if len(event.tag_directives) > 0 { - implicit = false - for i := 0; i < len(event.tag_directives); i++ { - tag_directive := &event.tag_directives[i] - if !yaml_emitter_write_indicator(emitter, []byte("%TAG"), true, false, false) { - return false - } - if !yaml_emitter_write_tag_handle(emitter, tag_directive.handle) { - return false - } - if !yaml_emitter_write_tag_content(emitter, tag_directive.prefix, true) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - } - - if yaml_emitter_check_empty_document(emitter) { - implicit = false - } - if !implicit { - if !yaml_emitter_write_indent(emitter) { - return false - } - if !yaml_emitter_write_indicator(emitter, []byte("---"), true, false, false) { - return false - } - if emitter.canonical { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - } - - emitter.state = yaml_EMIT_DOCUMENT_CONTENT_STATE - return true - } - - if event.typ == yaml_STREAM_END_EVENT { - if emitter.open_ended { - if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !yaml_emitter_flush(emitter) { - return false - } - emitter.state = yaml_EMIT_END_STATE - return true - } - - return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-START or STREAM-END") -} - -// Expect the root node. -func yaml_emitter_emit_document_content(emitter *yaml_emitter_t, event *yaml_event_t) bool { - emitter.states = append(emitter.states, yaml_EMIT_DOCUMENT_END_STATE) - return yaml_emitter_emit_node(emitter, event, true, false, false, false) -} - -// Expect DOCUMENT-END. -func yaml_emitter_emit_document_end(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if event.typ != yaml_DOCUMENT_END_EVENT { - return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-END") - } - if !yaml_emitter_write_indent(emitter) { - return false - } - if !event.implicit { - // [Go] Allocate the slice elsewhere. - if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !yaml_emitter_flush(emitter) { - return false - } - emitter.state = yaml_EMIT_DOCUMENT_START_STATE - emitter.tag_directives = emitter.tag_directives[:0] - return true -} - -// Expect a flow item node. -func yaml_emitter_emit_flow_sequence_item(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { - if first { - if !yaml_emitter_write_indicator(emitter, []byte{'['}, true, true, false) { - return false - } - if !yaml_emitter_increase_indent(emitter, true, false) { - return false - } - emitter.flow_level++ - } - - if event.typ == yaml_SEQUENCE_END_EVENT { - emitter.flow_level-- - emitter.indent = emitter.indents[len(emitter.indents)-1] - emitter.indents = emitter.indents[:len(emitter.indents)-1] - if emitter.canonical && !first { - if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !yaml_emitter_write_indicator(emitter, []byte{']'}, false, false, false) { - return false - } - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - - return true - } - - if !first { - if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { - return false - } - } - - if emitter.canonical || emitter.column > emitter.best_width { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - emitter.states = append(emitter.states, yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE) - return yaml_emitter_emit_node(emitter, event, false, true, false, false) -} - -// Expect a flow key node. -func yaml_emitter_emit_flow_mapping_key(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { - if first { - if !yaml_emitter_write_indicator(emitter, []byte{'{'}, true, true, false) { - return false - } - if !yaml_emitter_increase_indent(emitter, true, false) { - return false - } - emitter.flow_level++ - } - - if event.typ == yaml_MAPPING_END_EVENT { - emitter.flow_level-- - emitter.indent = emitter.indents[len(emitter.indents)-1] - emitter.indents = emitter.indents[:len(emitter.indents)-1] - if emitter.canonical && !first { - if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { - return false - } - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !yaml_emitter_write_indicator(emitter, []byte{'}'}, false, false, false) { - return false - } - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - return true - } - - if !first { - if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { - return false - } - } - if emitter.canonical || emitter.column > emitter.best_width { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - - if !emitter.canonical && yaml_emitter_check_simple_key(emitter) { - emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, true) - } - if !yaml_emitter_write_indicator(emitter, []byte{'?'}, true, false, false) { - return false - } - emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_VALUE_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, false) -} - -// Expect a flow value node. -func yaml_emitter_emit_flow_mapping_value(emitter *yaml_emitter_t, event *yaml_event_t, simple bool) bool { - if simple { - if !yaml_emitter_write_indicator(emitter, []byte{':'}, false, false, false) { - return false - } - } else { - if emitter.canonical || emitter.column > emitter.best_width { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !yaml_emitter_write_indicator(emitter, []byte{':'}, true, false, false) { - return false - } - } - emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_KEY_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, false) -} - -// Expect a block item node. -func yaml_emitter_emit_block_sequence_item(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { - if first { - if !yaml_emitter_increase_indent(emitter, false, emitter.mapping_context && !emitter.indention) { - return false - } - } - if event.typ == yaml_SEQUENCE_END_EVENT { - emitter.indent = emitter.indents[len(emitter.indents)-1] - emitter.indents = emitter.indents[:len(emitter.indents)-1] - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - return true - } - if !yaml_emitter_write_indent(emitter) { - return false - } - if !yaml_emitter_write_indicator(emitter, []byte{'-'}, true, false, true) { - return false - } - emitter.states = append(emitter.states, yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE) - return yaml_emitter_emit_node(emitter, event, false, true, false, false) -} - -// Expect a block key node. -func yaml_emitter_emit_block_mapping_key(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { - if first { - if !yaml_emitter_increase_indent(emitter, false, false) { - return false - } - } - if event.typ == yaml_MAPPING_END_EVENT { - emitter.indent = emitter.indents[len(emitter.indents)-1] - emitter.indents = emitter.indents[:len(emitter.indents)-1] - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - return true - } - if !yaml_emitter_write_indent(emitter) { - return false - } - if yaml_emitter_check_simple_key(emitter) { - emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, true) - } - if !yaml_emitter_write_indicator(emitter, []byte{'?'}, true, false, true) { - return false - } - emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_VALUE_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, false) -} - -// Expect a block value node. -func yaml_emitter_emit_block_mapping_value(emitter *yaml_emitter_t, event *yaml_event_t, simple bool) bool { - if simple { - if !yaml_emitter_write_indicator(emitter, []byte{':'}, false, false, false) { - return false - } - } else { - if !yaml_emitter_write_indent(emitter) { - return false - } - if !yaml_emitter_write_indicator(emitter, []byte{':'}, true, false, true) { - return false - } - } - emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_KEY_STATE) - return yaml_emitter_emit_node(emitter, event, false, false, true, false) -} - -// Expect a node. -func yaml_emitter_emit_node(emitter *yaml_emitter_t, event *yaml_event_t, - root bool, sequence bool, mapping bool, simple_key bool) bool { - - emitter.root_context = root - emitter.sequence_context = sequence - emitter.mapping_context = mapping - emitter.simple_key_context = simple_key - - switch event.typ { - case yaml_ALIAS_EVENT: - return yaml_emitter_emit_alias(emitter, event) - case yaml_SCALAR_EVENT: - return yaml_emitter_emit_scalar(emitter, event) - case yaml_SEQUENCE_START_EVENT: - return yaml_emitter_emit_sequence_start(emitter, event) - case yaml_MAPPING_START_EVENT: - return yaml_emitter_emit_mapping_start(emitter, event) - default: - return yaml_emitter_set_emitter_error(emitter, - "expected SCALAR, SEQUENCE-START, MAPPING-START, or ALIAS") - } -} - -// Expect ALIAS. -func yaml_emitter_emit_alias(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if !yaml_emitter_process_anchor(emitter) { - return false - } - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - return true -} - -// Expect SCALAR. -func yaml_emitter_emit_scalar(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if !yaml_emitter_select_scalar_style(emitter, event) { - return false - } - if !yaml_emitter_process_anchor(emitter) { - return false - } - if !yaml_emitter_process_tag(emitter) { - return false - } - if !yaml_emitter_increase_indent(emitter, true, false) { - return false - } - if !yaml_emitter_process_scalar(emitter) { - return false - } - emitter.indent = emitter.indents[len(emitter.indents)-1] - emitter.indents = emitter.indents[:len(emitter.indents)-1] - emitter.state = emitter.states[len(emitter.states)-1] - emitter.states = emitter.states[:len(emitter.states)-1] - return true -} - -// Expect SEQUENCE-START. -func yaml_emitter_emit_sequence_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if !yaml_emitter_process_anchor(emitter) { - return false - } - if !yaml_emitter_process_tag(emitter) { - return false - } - if emitter.flow_level > 0 || emitter.canonical || event.sequence_style() == yaml_FLOW_SEQUENCE_STYLE || - yaml_emitter_check_empty_sequence(emitter) { - emitter.state = yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE - } else { - emitter.state = yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE - } - return true -} - -// Expect MAPPING-START. -func yaml_emitter_emit_mapping_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { - if !yaml_emitter_process_anchor(emitter) { - return false - } - if !yaml_emitter_process_tag(emitter) { - return false - } - if emitter.flow_level > 0 || emitter.canonical || event.mapping_style() == yaml_FLOW_MAPPING_STYLE || - yaml_emitter_check_empty_mapping(emitter) { - emitter.state = yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE - } else { - emitter.state = yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE - } - return true -} - -// Check if the document content is an empty scalar. -func yaml_emitter_check_empty_document(emitter *yaml_emitter_t) bool { - return false // [Go] Huh? -} - -// Check if the next events represent an empty sequence. -func yaml_emitter_check_empty_sequence(emitter *yaml_emitter_t) bool { - if len(emitter.events)-emitter.events_head < 2 { - return false - } - return emitter.events[emitter.events_head].typ == yaml_SEQUENCE_START_EVENT && - emitter.events[emitter.events_head+1].typ == yaml_SEQUENCE_END_EVENT -} - -// Check if the next events represent an empty mapping. -func yaml_emitter_check_empty_mapping(emitter *yaml_emitter_t) bool { - if len(emitter.events)-emitter.events_head < 2 { - return false - } - return emitter.events[emitter.events_head].typ == yaml_MAPPING_START_EVENT && - emitter.events[emitter.events_head+1].typ == yaml_MAPPING_END_EVENT -} - -// Check if the next node can be expressed as a simple key. -func yaml_emitter_check_simple_key(emitter *yaml_emitter_t) bool { - length := 0 - switch emitter.events[emitter.events_head].typ { - case yaml_ALIAS_EVENT: - length += len(emitter.anchor_data.anchor) - case yaml_SCALAR_EVENT: - if emitter.scalar_data.multiline { - return false - } - length += len(emitter.anchor_data.anchor) + - len(emitter.tag_data.handle) + - len(emitter.tag_data.suffix) + - len(emitter.scalar_data.value) - case yaml_SEQUENCE_START_EVENT: - if !yaml_emitter_check_empty_sequence(emitter) { - return false - } - length += len(emitter.anchor_data.anchor) + - len(emitter.tag_data.handle) + - len(emitter.tag_data.suffix) - case yaml_MAPPING_START_EVENT: - if !yaml_emitter_check_empty_mapping(emitter) { - return false - } - length += len(emitter.anchor_data.anchor) + - len(emitter.tag_data.handle) + - len(emitter.tag_data.suffix) - default: - return false - } - return length <= 128 -} - -// Determine an acceptable scalar style. -func yaml_emitter_select_scalar_style(emitter *yaml_emitter_t, event *yaml_event_t) bool { - - no_tag := len(emitter.tag_data.handle) == 0 && len(emitter.tag_data.suffix) == 0 - if no_tag && !event.implicit && !event.quoted_implicit { - return yaml_emitter_set_emitter_error(emitter, "neither tag nor implicit flags are specified") - } - - style := event.scalar_style() - if style == yaml_ANY_SCALAR_STYLE { - style = yaml_PLAIN_SCALAR_STYLE - } - if emitter.canonical { - style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } - if emitter.simple_key_context && emitter.scalar_data.multiline { - style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } - - if style == yaml_PLAIN_SCALAR_STYLE { - if emitter.flow_level > 0 && !emitter.scalar_data.flow_plain_allowed || - emitter.flow_level == 0 && !emitter.scalar_data.block_plain_allowed { - style = yaml_SINGLE_QUOTED_SCALAR_STYLE - } - if len(emitter.scalar_data.value) == 0 && (emitter.flow_level > 0 || emitter.simple_key_context) { - style = yaml_SINGLE_QUOTED_SCALAR_STYLE - } - if no_tag && !event.implicit { - style = yaml_SINGLE_QUOTED_SCALAR_STYLE - } - } - if style == yaml_SINGLE_QUOTED_SCALAR_STYLE { - if !emitter.scalar_data.single_quoted_allowed { - style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } - } - if style == yaml_LITERAL_SCALAR_STYLE || style == yaml_FOLDED_SCALAR_STYLE { - if !emitter.scalar_data.block_allowed || emitter.flow_level > 0 || emitter.simple_key_context { - style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } - } - - if no_tag && !event.quoted_implicit && style != yaml_PLAIN_SCALAR_STYLE { - emitter.tag_data.handle = []byte{'!'} - } - emitter.scalar_data.style = style - return true -} - -// Write an achor. -func yaml_emitter_process_anchor(emitter *yaml_emitter_t) bool { - if emitter.anchor_data.anchor == nil { - return true - } - c := []byte{'&'} - if emitter.anchor_data.alias { - c[0] = '*' - } - if !yaml_emitter_write_indicator(emitter, c, true, false, false) { - return false - } - return yaml_emitter_write_anchor(emitter, emitter.anchor_data.anchor) -} - -// Write a tag. -func yaml_emitter_process_tag(emitter *yaml_emitter_t) bool { - if len(emitter.tag_data.handle) == 0 && len(emitter.tag_data.suffix) == 0 { - return true - } - if len(emitter.tag_data.handle) > 0 { - if !yaml_emitter_write_tag_handle(emitter, emitter.tag_data.handle) { - return false - } - if len(emitter.tag_data.suffix) > 0 { - if !yaml_emitter_write_tag_content(emitter, emitter.tag_data.suffix, false) { - return false - } - } - } else { - // [Go] Allocate these slices elsewhere. - if !yaml_emitter_write_indicator(emitter, []byte("!<"), true, false, false) { - return false - } - if !yaml_emitter_write_tag_content(emitter, emitter.tag_data.suffix, false) { - return false - } - if !yaml_emitter_write_indicator(emitter, []byte{'>'}, false, false, false) { - return false - } - } - return true -} - -// Write a scalar. -func yaml_emitter_process_scalar(emitter *yaml_emitter_t) bool { - switch emitter.scalar_data.style { - case yaml_PLAIN_SCALAR_STYLE: - return yaml_emitter_write_plain_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) - - case yaml_SINGLE_QUOTED_SCALAR_STYLE: - return yaml_emitter_write_single_quoted_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) - - case yaml_DOUBLE_QUOTED_SCALAR_STYLE: - return yaml_emitter_write_double_quoted_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) - - case yaml_LITERAL_SCALAR_STYLE: - return yaml_emitter_write_literal_scalar(emitter, emitter.scalar_data.value) - - case yaml_FOLDED_SCALAR_STYLE: - return yaml_emitter_write_folded_scalar(emitter, emitter.scalar_data.value) - } - panic("unknown scalar style") -} - -// Check if a %YAML directive is valid. -func yaml_emitter_analyze_version_directive(emitter *yaml_emitter_t, version_directive *yaml_version_directive_t) bool { - if version_directive.major != 1 || version_directive.minor != 1 { - return yaml_emitter_set_emitter_error(emitter, "incompatible %YAML directive") - } - return true -} - -// Check if a %TAG directive is valid. -func yaml_emitter_analyze_tag_directive(emitter *yaml_emitter_t, tag_directive *yaml_tag_directive_t) bool { - handle := tag_directive.handle - prefix := tag_directive.prefix - if len(handle) == 0 { - return yaml_emitter_set_emitter_error(emitter, "tag handle must not be empty") - } - if handle[0] != '!' { - return yaml_emitter_set_emitter_error(emitter, "tag handle must start with '!'") - } - if handle[len(handle)-1] != '!' { - return yaml_emitter_set_emitter_error(emitter, "tag handle must end with '!'") - } - for i := 1; i < len(handle)-1; i += width(handle[i]) { - if !is_alpha(handle, i) { - return yaml_emitter_set_emitter_error(emitter, "tag handle must contain alphanumerical characters only") - } - } - if len(prefix) == 0 { - return yaml_emitter_set_emitter_error(emitter, "tag prefix must not be empty") - } - return true -} - -// Check if an anchor is valid. -func yaml_emitter_analyze_anchor(emitter *yaml_emitter_t, anchor []byte, alias bool) bool { - if len(anchor) == 0 { - problem := "anchor value must not be empty" - if alias { - problem = "alias value must not be empty" - } - return yaml_emitter_set_emitter_error(emitter, problem) - } - for i := 0; i < len(anchor); i += width(anchor[i]) { - if !is_alpha(anchor, i) { - problem := "anchor value must contain alphanumerical characters only" - if alias { - problem = "alias value must contain alphanumerical characters only" - } - return yaml_emitter_set_emitter_error(emitter, problem) - } - } - emitter.anchor_data.anchor = anchor - emitter.anchor_data.alias = alias - return true -} - -// Check if a tag is valid. -func yaml_emitter_analyze_tag(emitter *yaml_emitter_t, tag []byte) bool { - if len(tag) == 0 { - return yaml_emitter_set_emitter_error(emitter, "tag value must not be empty") - } - for i := 0; i < len(emitter.tag_directives); i++ { - tag_directive := &emitter.tag_directives[i] - if bytes.HasPrefix(tag, tag_directive.prefix) { - emitter.tag_data.handle = tag_directive.handle - emitter.tag_data.suffix = tag[len(tag_directive.prefix):] - return true - } - } - emitter.tag_data.suffix = tag - return true -} - -// Check if a scalar is valid. -func yaml_emitter_analyze_scalar(emitter *yaml_emitter_t, value []byte) bool { - var ( - block_indicators = false - flow_indicators = false - line_breaks = false - special_characters = false - - leading_space = false - leading_break = false - trailing_space = false - trailing_break = false - break_space = false - space_break = false - - preceded_by_whitespace = false - followed_by_whitespace = false - previous_space = false - previous_break = false - ) - - emitter.scalar_data.value = value - - if len(value) == 0 { - emitter.scalar_data.multiline = false - emitter.scalar_data.flow_plain_allowed = false - emitter.scalar_data.block_plain_allowed = true - emitter.scalar_data.single_quoted_allowed = true - emitter.scalar_data.block_allowed = false - return true - } - - if len(value) >= 3 && ((value[0] == '-' && value[1] == '-' && value[2] == '-') || (value[0] == '.' && value[1] == '.' && value[2] == '.')) { - block_indicators = true - flow_indicators = true - } - - preceded_by_whitespace = true - for i, w := 0, 0; i < len(value); i += w { - w = width(value[i]) - followed_by_whitespace = i+w >= len(value) || is_blank(value, i+w) - - if i == 0 { - switch value[i] { - case '#', ',', '[', ']', '{', '}', '&', '*', '!', '|', '>', '\'', '"', '%', '@', '`': - flow_indicators = true - block_indicators = true - case '?', ':': - flow_indicators = true - if followed_by_whitespace { - block_indicators = true - } - case '-': - if followed_by_whitespace { - flow_indicators = true - block_indicators = true - } - } - } else { - switch value[i] { - case ',', '?', '[', ']', '{', '}': - flow_indicators = true - case ':': - flow_indicators = true - if followed_by_whitespace { - block_indicators = true - } - case '#': - if preceded_by_whitespace { - flow_indicators = true - block_indicators = true - } - } - } - - if !is_printable(value, i) || !is_ascii(value, i) && !emitter.unicode { - special_characters = true - } - if is_space(value, i) { - if i == 0 { - leading_space = true - } - if i+width(value[i]) == len(value) { - trailing_space = true - } - if previous_break { - break_space = true - } - previous_space = true - previous_break = false - } else if is_break(value, i) { - line_breaks = true - if i == 0 { - leading_break = true - } - if i+width(value[i]) == len(value) { - trailing_break = true - } - if previous_space { - space_break = true - } - previous_space = false - previous_break = true - } else { - previous_space = false - previous_break = false - } - - // [Go]: Why 'z'? Couldn't be the end of the string as that's the loop condition. - preceded_by_whitespace = is_blankz(value, i) - } - - emitter.scalar_data.multiline = line_breaks - emitter.scalar_data.flow_plain_allowed = true - emitter.scalar_data.block_plain_allowed = true - emitter.scalar_data.single_quoted_allowed = true - emitter.scalar_data.block_allowed = true - - if leading_space || leading_break || trailing_space || trailing_break { - emitter.scalar_data.flow_plain_allowed = false - emitter.scalar_data.block_plain_allowed = false - } - if trailing_space { - emitter.scalar_data.block_allowed = false - } - if break_space { - emitter.scalar_data.flow_plain_allowed = false - emitter.scalar_data.block_plain_allowed = false - emitter.scalar_data.single_quoted_allowed = false - } - if space_break || special_characters { - emitter.scalar_data.flow_plain_allowed = false - emitter.scalar_data.block_plain_allowed = false - emitter.scalar_data.single_quoted_allowed = false - emitter.scalar_data.block_allowed = false - } - if line_breaks { - emitter.scalar_data.flow_plain_allowed = false - emitter.scalar_data.block_plain_allowed = false - } - if flow_indicators { - emitter.scalar_data.flow_plain_allowed = false - } - if block_indicators { - emitter.scalar_data.block_plain_allowed = false - } - return true -} - -// Check if the event data is valid. -func yaml_emitter_analyze_event(emitter *yaml_emitter_t, event *yaml_event_t) bool { - - emitter.anchor_data.anchor = nil - emitter.tag_data.handle = nil - emitter.tag_data.suffix = nil - emitter.scalar_data.value = nil - - switch event.typ { - case yaml_ALIAS_EVENT: - if !yaml_emitter_analyze_anchor(emitter, event.anchor, true) { - return false - } - - case yaml_SCALAR_EVENT: - if len(event.anchor) > 0 { - if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { - return false - } - } - if len(event.tag) > 0 && (emitter.canonical || (!event.implicit && !event.quoted_implicit)) { - if !yaml_emitter_analyze_tag(emitter, event.tag) { - return false - } - } - if !yaml_emitter_analyze_scalar(emitter, event.value) { - return false - } - - case yaml_SEQUENCE_START_EVENT: - if len(event.anchor) > 0 { - if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { - return false - } - } - if len(event.tag) > 0 && (emitter.canonical || !event.implicit) { - if !yaml_emitter_analyze_tag(emitter, event.tag) { - return false - } - } - - case yaml_MAPPING_START_EVENT: - if len(event.anchor) > 0 { - if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { - return false - } - } - if len(event.tag) > 0 && (emitter.canonical || !event.implicit) { - if !yaml_emitter_analyze_tag(emitter, event.tag) { - return false - } - } - } - return true -} - -// Write the BOM character. -func yaml_emitter_write_bom(emitter *yaml_emitter_t) bool { - if !flush(emitter) { - return false - } - pos := emitter.buffer_pos - emitter.buffer[pos+0] = '\xEF' - emitter.buffer[pos+1] = '\xBB' - emitter.buffer[pos+2] = '\xBF' - emitter.buffer_pos += 3 - return true -} - -func yaml_emitter_write_indent(emitter *yaml_emitter_t) bool { - indent := emitter.indent - if indent < 0 { - indent = 0 - } - if !emitter.indention || emitter.column > indent || (emitter.column == indent && !emitter.whitespace) { - if !put_break(emitter) { - return false - } - } - for emitter.column < indent { - if !put(emitter, ' ') { - return false - } - } - emitter.whitespace = true - emitter.indention = true - return true -} - -func yaml_emitter_write_indicator(emitter *yaml_emitter_t, indicator []byte, need_whitespace, is_whitespace, is_indention bool) bool { - if need_whitespace && !emitter.whitespace { - if !put(emitter, ' ') { - return false - } - } - if !write_all(emitter, indicator) { - return false - } - emitter.whitespace = is_whitespace - emitter.indention = (emitter.indention && is_indention) - emitter.open_ended = false - return true -} - -func yaml_emitter_write_anchor(emitter *yaml_emitter_t, value []byte) bool { - if !write_all(emitter, value) { - return false - } - emitter.whitespace = false - emitter.indention = false - return true -} - -func yaml_emitter_write_tag_handle(emitter *yaml_emitter_t, value []byte) bool { - if !emitter.whitespace { - if !put(emitter, ' ') { - return false - } - } - if !write_all(emitter, value) { - return false - } - emitter.whitespace = false - emitter.indention = false - return true -} - -func yaml_emitter_write_tag_content(emitter *yaml_emitter_t, value []byte, need_whitespace bool) bool { - if need_whitespace && !emitter.whitespace { - if !put(emitter, ' ') { - return false - } - } - for i := 0; i < len(value); { - var must_write bool - switch value[i] { - case ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '_', '.', '~', '*', '\'', '(', ')', '[', ']': - must_write = true - default: - must_write = is_alpha(value, i) - } - if must_write { - if !write(emitter, value, &i) { - return false - } - } else { - w := width(value[i]) - for k := 0; k < w; k++ { - octet := value[i] - i++ - if !put(emitter, '%') { - return false - } - - c := octet >> 4 - if c < 10 { - c += '0' - } else { - c += 'A' - 10 - } - if !put(emitter, c) { - return false - } - - c = octet & 0x0f - if c < 10 { - c += '0' - } else { - c += 'A' - 10 - } - if !put(emitter, c) { - return false - } - } - } - } - emitter.whitespace = false - emitter.indention = false - return true -} - -func yaml_emitter_write_plain_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { - if !emitter.whitespace { - if !put(emitter, ' ') { - return false - } - } - - spaces := false - breaks := false - for i := 0; i < len(value); { - if is_space(value, i) { - if allow_breaks && !spaces && emitter.column > emitter.best_width && !is_space(value, i+1) { - if !yaml_emitter_write_indent(emitter) { - return false - } - i += width(value[i]) - } else { - if !write(emitter, value, &i) { - return false - } - } - spaces = true - } else if is_break(value, i) { - if !breaks && value[i] == '\n' { - if !put_break(emitter) { - return false - } - } - if !write_break(emitter, value, &i) { - return false - } - emitter.indention = true - breaks = true - } else { - if breaks { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !write(emitter, value, &i) { - return false - } - emitter.indention = false - spaces = false - breaks = false - } - } - - emitter.whitespace = false - emitter.indention = false - if emitter.root_context { - emitter.open_ended = true - } - - return true -} - -func yaml_emitter_write_single_quoted_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { - - if !yaml_emitter_write_indicator(emitter, []byte{'\''}, true, false, false) { - return false - } - - spaces := false - breaks := false - for i := 0; i < len(value); { - if is_space(value, i) { - if allow_breaks && !spaces && emitter.column > emitter.best_width && i > 0 && i < len(value)-1 && !is_space(value, i+1) { - if !yaml_emitter_write_indent(emitter) { - return false - } - i += width(value[i]) - } else { - if !write(emitter, value, &i) { - return false - } - } - spaces = true - } else if is_break(value, i) { - if !breaks && value[i] == '\n' { - if !put_break(emitter) { - return false - } - } - if !write_break(emitter, value, &i) { - return false - } - emitter.indention = true - breaks = true - } else { - if breaks { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if value[i] == '\'' { - if !put(emitter, '\'') { - return false - } - } - if !write(emitter, value, &i) { - return false - } - emitter.indention = false - spaces = false - breaks = false - } - } - if !yaml_emitter_write_indicator(emitter, []byte{'\''}, false, false, false) { - return false - } - emitter.whitespace = false - emitter.indention = false - return true -} - -func yaml_emitter_write_double_quoted_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { - spaces := false - if !yaml_emitter_write_indicator(emitter, []byte{'"'}, true, false, false) { - return false - } - - for i := 0; i < len(value); { - if !is_printable(value, i) || (!emitter.unicode && !is_ascii(value, i)) || - is_bom(value, i) || is_break(value, i) || - value[i] == '"' || value[i] == '\\' { - - octet := value[i] - - var w int - var v rune - switch { - case octet&0x80 == 0x00: - w, v = 1, rune(octet&0x7F) - case octet&0xE0 == 0xC0: - w, v = 2, rune(octet&0x1F) - case octet&0xF0 == 0xE0: - w, v = 3, rune(octet&0x0F) - case octet&0xF8 == 0xF0: - w, v = 4, rune(octet&0x07) - } - for k := 1; k < w; k++ { - octet = value[i+k] - v = (v << 6) + (rune(octet) & 0x3F) - } - i += w - - if !put(emitter, '\\') { - return false - } - - var ok bool - switch v { - case 0x00: - ok = put(emitter, '0') - case 0x07: - ok = put(emitter, 'a') - case 0x08: - ok = put(emitter, 'b') - case 0x09: - ok = put(emitter, 't') - case 0x0A: - ok = put(emitter, 'n') - case 0x0b: - ok = put(emitter, 'v') - case 0x0c: - ok = put(emitter, 'f') - case 0x0d: - ok = put(emitter, 'r') - case 0x1b: - ok = put(emitter, 'e') - case 0x22: - ok = put(emitter, '"') - case 0x5c: - ok = put(emitter, '\\') - case 0x85: - ok = put(emitter, 'N') - case 0xA0: - ok = put(emitter, '_') - case 0x2028: - ok = put(emitter, 'L') - case 0x2029: - ok = put(emitter, 'P') - default: - if v <= 0xFF { - ok = put(emitter, 'x') - w = 2 - } else if v <= 0xFFFF { - ok = put(emitter, 'u') - w = 4 - } else { - ok = put(emitter, 'U') - w = 8 - } - for k := (w - 1) * 4; ok && k >= 0; k -= 4 { - digit := byte((v >> uint(k)) & 0x0F) - if digit < 10 { - ok = put(emitter, digit+'0') - } else { - ok = put(emitter, digit+'A'-10) - } - } - } - if !ok { - return false - } - spaces = false - } else if is_space(value, i) { - if allow_breaks && !spaces && emitter.column > emitter.best_width && i > 0 && i < len(value)-1 { - if !yaml_emitter_write_indent(emitter) { - return false - } - if is_space(value, i+1) { - if !put(emitter, '\\') { - return false - } - } - i += width(value[i]) - } else if !write(emitter, value, &i) { - return false - } - spaces = true - } else { - if !write(emitter, value, &i) { - return false - } - spaces = false - } - } - if !yaml_emitter_write_indicator(emitter, []byte{'"'}, false, false, false) { - return false - } - emitter.whitespace = false - emitter.indention = false - return true -} - -func yaml_emitter_write_block_scalar_hints(emitter *yaml_emitter_t, value []byte) bool { - if is_space(value, 0) || is_break(value, 0) { - indent_hint := []byte{'0' + byte(emitter.best_indent)} - if !yaml_emitter_write_indicator(emitter, indent_hint, false, false, false) { - return false - } - } - - emitter.open_ended = false - - var chomp_hint [1]byte - if len(value) == 0 { - chomp_hint[0] = '-' - } else { - i := len(value) - 1 - for value[i]&0xC0 == 0x80 { - i-- - } - if !is_break(value, i) { - chomp_hint[0] = '-' - } else if i == 0 { - chomp_hint[0] = '+' - emitter.open_ended = true - } else { - i-- - for value[i]&0xC0 == 0x80 { - i-- - } - if is_break(value, i) { - chomp_hint[0] = '+' - emitter.open_ended = true - } - } - } - if chomp_hint[0] != 0 { - if !yaml_emitter_write_indicator(emitter, chomp_hint[:], false, false, false) { - return false - } - } - return true -} - -func yaml_emitter_write_literal_scalar(emitter *yaml_emitter_t, value []byte) bool { - if !yaml_emitter_write_indicator(emitter, []byte{'|'}, true, false, false) { - return false - } - if !yaml_emitter_write_block_scalar_hints(emitter, value) { - return false - } - if !put_break(emitter) { - return false - } - emitter.indention = true - emitter.whitespace = true - breaks := true - for i := 0; i < len(value); { - if is_break(value, i) { - if !write_break(emitter, value, &i) { - return false - } - emitter.indention = true - breaks = true - } else { - if breaks { - if !yaml_emitter_write_indent(emitter) { - return false - } - } - if !write(emitter, value, &i) { - return false - } - emitter.indention = false - breaks = false - } - } - - return true -} - -func yaml_emitter_write_folded_scalar(emitter *yaml_emitter_t, value []byte) bool { - if !yaml_emitter_write_indicator(emitter, []byte{'>'}, true, false, false) { - return false - } - if !yaml_emitter_write_block_scalar_hints(emitter, value) { - return false - } - - if !put_break(emitter) { - return false - } - emitter.indention = true - emitter.whitespace = true - - breaks := true - leading_spaces := true - for i := 0; i < len(value); { - if is_break(value, i) { - if !breaks && !leading_spaces && value[i] == '\n' { - k := 0 - for is_break(value, k) { - k += width(value[k]) - } - if !is_blankz(value, k) { - if !put_break(emitter) { - return false - } - } - } - if !write_break(emitter, value, &i) { - return false - } - emitter.indention = true - breaks = true - } else { - if breaks { - if !yaml_emitter_write_indent(emitter) { - return false - } - leading_spaces = is_blank(value, i) - } - if !breaks && is_space(value, i) && !is_space(value, i+1) && emitter.column > emitter.best_width { - if !yaml_emitter_write_indent(emitter) { - return false - } - i += width(value[i]) - } else { - if !write(emitter, value, &i) { - return false - } - } - emitter.indention = false - breaks = false - } - } - return true -} diff --git a/vendor/gopkg.in/yaml.v2/encode.go b/vendor/gopkg.in/yaml.v2/encode.go deleted file mode 100644 index 84f8499..0000000 --- a/vendor/gopkg.in/yaml.v2/encode.go +++ /dev/null @@ -1,306 +0,0 @@ -package yaml - -import ( - "encoding" - "fmt" - "reflect" - "regexp" - "sort" - "strconv" - "strings" - "time" -) - -type encoder struct { - emitter yaml_emitter_t - event yaml_event_t - out []byte - flow bool -} - -func newEncoder() (e *encoder) { - e = &encoder{} - e.must(yaml_emitter_initialize(&e.emitter)) - yaml_emitter_set_output_string(&e.emitter, &e.out) - yaml_emitter_set_unicode(&e.emitter, true) - e.must(yaml_stream_start_event_initialize(&e.event, yaml_UTF8_ENCODING)) - e.emit() - e.must(yaml_document_start_event_initialize(&e.event, nil, nil, true)) - e.emit() - return e -} - -func (e *encoder) finish() { - e.must(yaml_document_end_event_initialize(&e.event, true)) - e.emit() - e.emitter.open_ended = false - e.must(yaml_stream_end_event_initialize(&e.event)) - e.emit() -} - -func (e *encoder) destroy() { - yaml_emitter_delete(&e.emitter) -} - -func (e *encoder) emit() { - // This will internally delete the e.event value. - if !yaml_emitter_emit(&e.emitter, &e.event) && e.event.typ != yaml_DOCUMENT_END_EVENT && e.event.typ != yaml_STREAM_END_EVENT { - e.must(false) - } -} - -func (e *encoder) must(ok bool) { - if !ok { - msg := e.emitter.problem - if msg == "" { - msg = "unknown problem generating YAML content" - } - failf("%s", msg) - } -} - -func (e *encoder) marshal(tag string, in reflect.Value) { - if !in.IsValid() { - e.nilv() - return - } - iface := in.Interface() - if m, ok := iface.(Marshaler); ok { - v, err := m.MarshalYAML() - if err != nil { - fail(err) - } - if v == nil { - e.nilv() - return - } - in = reflect.ValueOf(v) - } else if m, ok := iface.(encoding.TextMarshaler); ok { - text, err := m.MarshalText() - if err != nil { - fail(err) - } - in = reflect.ValueOf(string(text)) - } - switch in.Kind() { - case reflect.Interface: - if in.IsNil() { - e.nilv() - } else { - e.marshal(tag, in.Elem()) - } - case reflect.Map: - e.mapv(tag, in) - case reflect.Ptr: - if in.IsNil() { - e.nilv() - } else { - e.marshal(tag, in.Elem()) - } - case reflect.Struct: - e.structv(tag, in) - case reflect.Slice: - if in.Type().Elem() == mapItemType { - e.itemsv(tag, in) - } else { - e.slicev(tag, in) - } - case reflect.String: - e.stringv(tag, in) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - if in.Type() == durationType { - e.stringv(tag, reflect.ValueOf(iface.(time.Duration).String())) - } else { - e.intv(tag, in) - } - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - e.uintv(tag, in) - case reflect.Float32, reflect.Float64: - e.floatv(tag, in) - case reflect.Bool: - e.boolv(tag, in) - default: - panic("cannot marshal type: " + in.Type().String()) - } -} - -func (e *encoder) mapv(tag string, in reflect.Value) { - e.mappingv(tag, func() { - keys := keyList(in.MapKeys()) - sort.Sort(keys) - for _, k := range keys { - e.marshal("", k) - e.marshal("", in.MapIndex(k)) - } - }) -} - -func (e *encoder) itemsv(tag string, in reflect.Value) { - e.mappingv(tag, func() { - slice := in.Convert(reflect.TypeOf([]MapItem{})).Interface().([]MapItem) - for _, item := range slice { - e.marshal("", reflect.ValueOf(item.Key)) - e.marshal("", reflect.ValueOf(item.Value)) - } - }) -} - -func (e *encoder) structv(tag string, in reflect.Value) { - sinfo, err := getStructInfo(in.Type()) - if err != nil { - panic(err) - } - e.mappingv(tag, func() { - for _, info := range sinfo.FieldsList { - var value reflect.Value - if info.Inline == nil { - value = in.Field(info.Num) - } else { - value = in.FieldByIndex(info.Inline) - } - if info.OmitEmpty && isZero(value) { - continue - } - e.marshal("", reflect.ValueOf(info.Key)) - e.flow = info.Flow - e.marshal("", value) - } - if sinfo.InlineMap >= 0 { - m := in.Field(sinfo.InlineMap) - if m.Len() > 0 { - e.flow = false - keys := keyList(m.MapKeys()) - sort.Sort(keys) - for _, k := range keys { - if _, found := sinfo.FieldsMap[k.String()]; found { - panic(fmt.Sprintf("Can't have key %q in inlined map; conflicts with struct field", k.String())) - } - e.marshal("", k) - e.flow = false - e.marshal("", m.MapIndex(k)) - } - } - } - }) -} - -func (e *encoder) mappingv(tag string, f func()) { - implicit := tag == "" - style := yaml_BLOCK_MAPPING_STYLE - if e.flow { - e.flow = false - style = yaml_FLOW_MAPPING_STYLE - } - e.must(yaml_mapping_start_event_initialize(&e.event, nil, []byte(tag), implicit, style)) - e.emit() - f() - e.must(yaml_mapping_end_event_initialize(&e.event)) - e.emit() -} - -func (e *encoder) slicev(tag string, in reflect.Value) { - implicit := tag == "" - style := yaml_BLOCK_SEQUENCE_STYLE - if e.flow { - e.flow = false - style = yaml_FLOW_SEQUENCE_STYLE - } - e.must(yaml_sequence_start_event_initialize(&e.event, nil, []byte(tag), implicit, style)) - e.emit() - n := in.Len() - for i := 0; i < n; i++ { - e.marshal("", in.Index(i)) - } - e.must(yaml_sequence_end_event_initialize(&e.event)) - e.emit() -} - -// isBase60 returns whether s is in base 60 notation as defined in YAML 1.1. -// -// The base 60 float notation in YAML 1.1 is a terrible idea and is unsupported -// in YAML 1.2 and by this package, but these should be marshalled quoted for -// the time being for compatibility with other parsers. -func isBase60Float(s string) (result bool) { - // Fast path. - if s == "" { - return false - } - c := s[0] - if !(c == '+' || c == '-' || c >= '0' && c <= '9') || strings.IndexByte(s, ':') < 0 { - return false - } - // Do the full match. - return base60float.MatchString(s) -} - -// From http://yaml.org/type/float.html, except the regular expression there -// is bogus. In practice parsers do not enforce the "\.[0-9_]*" suffix. -var base60float = regexp.MustCompile(`^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+(?:\.[0-9_]*)?$`) - -func (e *encoder) stringv(tag string, in reflect.Value) { - var style yaml_scalar_style_t - s := in.String() - rtag, rs := resolve("", s) - if rtag == yaml_BINARY_TAG { - if tag == "" || tag == yaml_STR_TAG { - tag = rtag - s = rs.(string) - } else if tag == yaml_BINARY_TAG { - failf("explicitly tagged !!binary data must be base64-encoded") - } else { - failf("cannot marshal invalid UTF-8 data as %s", shortTag(tag)) - } - } - if tag == "" && (rtag != yaml_STR_TAG || isBase60Float(s)) { - style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } else if strings.Contains(s, "\n") { - style = yaml_LITERAL_SCALAR_STYLE - } else { - style = yaml_PLAIN_SCALAR_STYLE - } - e.emitScalar(s, "", tag, style) -} - -func (e *encoder) boolv(tag string, in reflect.Value) { - var s string - if in.Bool() { - s = "true" - } else { - s = "false" - } - e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) -} - -func (e *encoder) intv(tag string, in reflect.Value) { - s := strconv.FormatInt(in.Int(), 10) - e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) -} - -func (e *encoder) uintv(tag string, in reflect.Value) { - s := strconv.FormatUint(in.Uint(), 10) - e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) -} - -func (e *encoder) floatv(tag string, in reflect.Value) { - // FIXME: Handle 64 bits here. - s := strconv.FormatFloat(float64(in.Float()), 'g', -1, 32) - switch s { - case "+Inf": - s = ".inf" - case "-Inf": - s = "-.inf" - case "NaN": - s = ".nan" - } - e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) -} - -func (e *encoder) nilv() { - e.emitScalar("null", "", "", yaml_PLAIN_SCALAR_STYLE) -} - -func (e *encoder) emitScalar(value, anchor, tag string, style yaml_scalar_style_t) { - implicit := tag == "" - e.must(yaml_scalar_event_initialize(&e.event, []byte(anchor), []byte(tag), []byte(value), implicit, implicit, style)) - e.emit() -} diff --git a/vendor/gopkg.in/yaml.v2/parserc.go b/vendor/gopkg.in/yaml.v2/parserc.go deleted file mode 100644 index 81d05df..0000000 --- a/vendor/gopkg.in/yaml.v2/parserc.go +++ /dev/null @@ -1,1095 +0,0 @@ -package yaml - -import ( - "bytes" -) - -// The parser implements the following grammar: -// -// stream ::= STREAM-START implicit_document? explicit_document* STREAM-END -// implicit_document ::= block_node DOCUMENT-END* -// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// block_node_or_indentless_sequence ::= -// ALIAS -// | properties (block_content | indentless_block_sequence)? -// | block_content -// | indentless_block_sequence -// block_node ::= ALIAS -// | properties block_content? -// | block_content -// flow_node ::= ALIAS -// | properties flow_content? -// | flow_content -// properties ::= TAG ANCHOR? | ANCHOR TAG? -// block_content ::= block_collection | flow_collection | SCALAR -// flow_content ::= flow_collection | SCALAR -// block_collection ::= block_sequence | block_mapping -// flow_collection ::= flow_sequence | flow_mapping -// block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END -// indentless_sequence ::= (BLOCK-ENTRY block_node?)+ -// block_mapping ::= BLOCK-MAPPING_START -// ((KEY block_node_or_indentless_sequence?)? -// (VALUE block_node_or_indentless_sequence?)?)* -// BLOCK-END -// flow_sequence ::= FLOW-SEQUENCE-START -// (flow_sequence_entry FLOW-ENTRY)* -// flow_sequence_entry? -// FLOW-SEQUENCE-END -// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// flow_mapping ::= FLOW-MAPPING-START -// (flow_mapping_entry FLOW-ENTRY)* -// flow_mapping_entry? -// FLOW-MAPPING-END -// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? - -// Peek the next token in the token queue. -func peek_token(parser *yaml_parser_t) *yaml_token_t { - if parser.token_available || yaml_parser_fetch_more_tokens(parser) { - return &parser.tokens[parser.tokens_head] - } - return nil -} - -// Remove the next token from the queue (must be called after peek_token). -func skip_token(parser *yaml_parser_t) { - parser.token_available = false - parser.tokens_parsed++ - parser.stream_end_produced = parser.tokens[parser.tokens_head].typ == yaml_STREAM_END_TOKEN - parser.tokens_head++ -} - -// Get the next event. -func yaml_parser_parse(parser *yaml_parser_t, event *yaml_event_t) bool { - // Erase the event object. - *event = yaml_event_t{} - - // No events after the end of the stream or error. - if parser.stream_end_produced || parser.error != yaml_NO_ERROR || parser.state == yaml_PARSE_END_STATE { - return true - } - - // Generate the next event. - return yaml_parser_state_machine(parser, event) -} - -// Set parser error. -func yaml_parser_set_parser_error(parser *yaml_parser_t, problem string, problem_mark yaml_mark_t) bool { - parser.error = yaml_PARSER_ERROR - parser.problem = problem - parser.problem_mark = problem_mark - return false -} - -func yaml_parser_set_parser_error_context(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string, problem_mark yaml_mark_t) bool { - parser.error = yaml_PARSER_ERROR - parser.context = context - parser.context_mark = context_mark - parser.problem = problem - parser.problem_mark = problem_mark - return false -} - -// State dispatcher. -func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool { - //trace("yaml_parser_state_machine", "state:", parser.state.String()) - - switch parser.state { - case yaml_PARSE_STREAM_START_STATE: - return yaml_parser_parse_stream_start(parser, event) - - case yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE: - return yaml_parser_parse_document_start(parser, event, true) - - case yaml_PARSE_DOCUMENT_START_STATE: - return yaml_parser_parse_document_start(parser, event, false) - - case yaml_PARSE_DOCUMENT_CONTENT_STATE: - return yaml_parser_parse_document_content(parser, event) - - case yaml_PARSE_DOCUMENT_END_STATE: - return yaml_parser_parse_document_end(parser, event) - - case yaml_PARSE_BLOCK_NODE_STATE: - return yaml_parser_parse_node(parser, event, true, false) - - case yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE: - return yaml_parser_parse_node(parser, event, true, true) - - case yaml_PARSE_FLOW_NODE_STATE: - return yaml_parser_parse_node(parser, event, false, false) - - case yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE: - return yaml_parser_parse_block_sequence_entry(parser, event, true) - - case yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE: - return yaml_parser_parse_block_sequence_entry(parser, event, false) - - case yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE: - return yaml_parser_parse_indentless_sequence_entry(parser, event) - - case yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE: - return yaml_parser_parse_block_mapping_key(parser, event, true) - - case yaml_PARSE_BLOCK_MAPPING_KEY_STATE: - return yaml_parser_parse_block_mapping_key(parser, event, false) - - case yaml_PARSE_BLOCK_MAPPING_VALUE_STATE: - return yaml_parser_parse_block_mapping_value(parser, event) - - case yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE: - return yaml_parser_parse_flow_sequence_entry(parser, event, true) - - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE: - return yaml_parser_parse_flow_sequence_entry(parser, event, false) - - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE: - return yaml_parser_parse_flow_sequence_entry_mapping_key(parser, event) - - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE: - return yaml_parser_parse_flow_sequence_entry_mapping_value(parser, event) - - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE: - return yaml_parser_parse_flow_sequence_entry_mapping_end(parser, event) - - case yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE: - return yaml_parser_parse_flow_mapping_key(parser, event, true) - - case yaml_PARSE_FLOW_MAPPING_KEY_STATE: - return yaml_parser_parse_flow_mapping_key(parser, event, false) - - case yaml_PARSE_FLOW_MAPPING_VALUE_STATE: - return yaml_parser_parse_flow_mapping_value(parser, event, false) - - case yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE: - return yaml_parser_parse_flow_mapping_value(parser, event, true) - - default: - panic("invalid parser state") - } -} - -// Parse the production: -// stream ::= STREAM-START implicit_document? explicit_document* STREAM-END -// ************ -func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_STREAM_START_TOKEN { - return yaml_parser_set_parser_error(parser, "did not find expected ", token.start_mark) - } - parser.state = yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE - *event = yaml_event_t{ - typ: yaml_STREAM_START_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - encoding: token.encoding, - } - skip_token(parser) - return true -} - -// Parse the productions: -// implicit_document ::= block_node DOCUMENT-END* -// * -// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// ************************* -func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t, implicit bool) bool { - - token := peek_token(parser) - if token == nil { - return false - } - - // Parse extra document end indicators. - if !implicit { - for token.typ == yaml_DOCUMENT_END_TOKEN { - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } - } - - if implicit && token.typ != yaml_VERSION_DIRECTIVE_TOKEN && - token.typ != yaml_TAG_DIRECTIVE_TOKEN && - token.typ != yaml_DOCUMENT_START_TOKEN && - token.typ != yaml_STREAM_END_TOKEN { - // Parse an implicit document. - if !yaml_parser_process_directives(parser, nil, nil) { - return false - } - parser.states = append(parser.states, yaml_PARSE_DOCUMENT_END_STATE) - parser.state = yaml_PARSE_BLOCK_NODE_STATE - - *event = yaml_event_t{ - typ: yaml_DOCUMENT_START_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - - } else if token.typ != yaml_STREAM_END_TOKEN { - // Parse an explicit document. - var version_directive *yaml_version_directive_t - var tag_directives []yaml_tag_directive_t - start_mark := token.start_mark - if !yaml_parser_process_directives(parser, &version_directive, &tag_directives) { - return false - } - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_DOCUMENT_START_TOKEN { - yaml_parser_set_parser_error(parser, - "did not find expected ", token.start_mark) - return false - } - parser.states = append(parser.states, yaml_PARSE_DOCUMENT_END_STATE) - parser.state = yaml_PARSE_DOCUMENT_CONTENT_STATE - end_mark := token.end_mark - - *event = yaml_event_t{ - typ: yaml_DOCUMENT_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - version_directive: version_directive, - tag_directives: tag_directives, - implicit: false, - } - skip_token(parser) - - } else { - // Parse the stream end. - parser.state = yaml_PARSE_END_STATE - *event = yaml_event_t{ - typ: yaml_STREAM_END_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - skip_token(parser) - } - - return true -} - -// Parse the productions: -// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// *********** -// -func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - if token.typ == yaml_VERSION_DIRECTIVE_TOKEN || - token.typ == yaml_TAG_DIRECTIVE_TOKEN || - token.typ == yaml_DOCUMENT_START_TOKEN || - token.typ == yaml_DOCUMENT_END_TOKEN || - token.typ == yaml_STREAM_END_TOKEN { - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - return yaml_parser_process_empty_scalar(parser, event, - token.start_mark) - } - return yaml_parser_parse_node(parser, event, true, false) -} - -// Parse the productions: -// implicit_document ::= block_node DOCUMENT-END* -// ************* -// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* -// -func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - - start_mark := token.start_mark - end_mark := token.start_mark - - implicit := true - if token.typ == yaml_DOCUMENT_END_TOKEN { - end_mark = token.end_mark - skip_token(parser) - implicit = false - } - - parser.tag_directives = parser.tag_directives[:0] - - parser.state = yaml_PARSE_DOCUMENT_START_STATE - *event = yaml_event_t{ - typ: yaml_DOCUMENT_END_EVENT, - start_mark: start_mark, - end_mark: end_mark, - implicit: implicit, - } - return true -} - -// Parse the productions: -// block_node_or_indentless_sequence ::= -// ALIAS -// ***** -// | properties (block_content | indentless_block_sequence)? -// ********** * -// | block_content | indentless_block_sequence -// * -// block_node ::= ALIAS -// ***** -// | properties block_content? -// ********** * -// | block_content -// * -// flow_node ::= ALIAS -// ***** -// | properties flow_content? -// ********** * -// | flow_content -// * -// properties ::= TAG ANCHOR? | ANCHOR TAG? -// ************************* -// block_content ::= block_collection | flow_collection | SCALAR -// ****** -// flow_content ::= flow_collection | SCALAR -// ****** -func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, indentless_sequence bool) bool { - //defer trace("yaml_parser_parse_node", "block:", block, "indentless_sequence:", indentless_sequence)() - - token := peek_token(parser) - if token == nil { - return false - } - - if token.typ == yaml_ALIAS_TOKEN { - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - *event = yaml_event_t{ - typ: yaml_ALIAS_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - anchor: token.value, - } - skip_token(parser) - return true - } - - start_mark := token.start_mark - end_mark := token.start_mark - - var tag_token bool - var tag_handle, tag_suffix, anchor []byte - var tag_mark yaml_mark_t - if token.typ == yaml_ANCHOR_TOKEN { - anchor = token.value - start_mark = token.start_mark - end_mark = token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ == yaml_TAG_TOKEN { - tag_token = true - tag_handle = token.value - tag_suffix = token.suffix - tag_mark = token.start_mark - end_mark = token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } - } else if token.typ == yaml_TAG_TOKEN { - tag_token = true - tag_handle = token.value - tag_suffix = token.suffix - start_mark = token.start_mark - tag_mark = token.start_mark - end_mark = token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ == yaml_ANCHOR_TOKEN { - anchor = token.value - end_mark = token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } - } - - var tag []byte - if tag_token { - if len(tag_handle) == 0 { - tag = tag_suffix - tag_suffix = nil - } else { - for i := range parser.tag_directives { - if bytes.Equal(parser.tag_directives[i].handle, tag_handle) { - tag = append([]byte(nil), parser.tag_directives[i].prefix...) - tag = append(tag, tag_suffix...) - break - } - } - if len(tag) == 0 { - yaml_parser_set_parser_error_context(parser, - "while parsing a node", start_mark, - "found undefined tag handle", tag_mark) - return false - } - } - } - - implicit := len(tag) == 0 - if indentless_sequence && token.typ == yaml_BLOCK_ENTRY_TOKEN { - end_mark = token.end_mark - parser.state = yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE - *event = yaml_event_t{ - typ: yaml_SEQUENCE_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(yaml_BLOCK_SEQUENCE_STYLE), - } - return true - } - if token.typ == yaml_SCALAR_TOKEN { - var plain_implicit, quoted_implicit bool - end_mark = token.end_mark - if (len(tag) == 0 && token.style == yaml_PLAIN_SCALAR_STYLE) || (len(tag) == 1 && tag[0] == '!') { - plain_implicit = true - } else if len(tag) == 0 { - quoted_implicit = true - } - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - - *event = yaml_event_t{ - typ: yaml_SCALAR_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - value: token.value, - implicit: plain_implicit, - quoted_implicit: quoted_implicit, - style: yaml_style_t(token.style), - } - skip_token(parser) - return true - } - if token.typ == yaml_FLOW_SEQUENCE_START_TOKEN { - // [Go] Some of the events below can be merged as they differ only on style. - end_mark = token.end_mark - parser.state = yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE - *event = yaml_event_t{ - typ: yaml_SEQUENCE_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(yaml_FLOW_SEQUENCE_STYLE), - } - return true - } - if token.typ == yaml_FLOW_MAPPING_START_TOKEN { - end_mark = token.end_mark - parser.state = yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE - *event = yaml_event_t{ - typ: yaml_MAPPING_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(yaml_FLOW_MAPPING_STYLE), - } - return true - } - if block && token.typ == yaml_BLOCK_SEQUENCE_START_TOKEN { - end_mark = token.end_mark - parser.state = yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE - *event = yaml_event_t{ - typ: yaml_SEQUENCE_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(yaml_BLOCK_SEQUENCE_STYLE), - } - return true - } - if block && token.typ == yaml_BLOCK_MAPPING_START_TOKEN { - end_mark = token.end_mark - parser.state = yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE - *event = yaml_event_t{ - typ: yaml_MAPPING_START_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - style: yaml_style_t(yaml_BLOCK_MAPPING_STYLE), - } - return true - } - if len(anchor) > 0 || len(tag) > 0 { - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - - *event = yaml_event_t{ - typ: yaml_SCALAR_EVENT, - start_mark: start_mark, - end_mark: end_mark, - anchor: anchor, - tag: tag, - implicit: implicit, - quoted_implicit: false, - style: yaml_style_t(yaml_PLAIN_SCALAR_STYLE), - } - return true - } - - context := "while parsing a flow node" - if block { - context = "while parsing a block node" - } - yaml_parser_set_parser_error_context(parser, context, start_mark, - "did not find expected node content", token.start_mark) - return false -} - -// Parse the productions: -// block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END -// ******************** *********** * ********* -// -func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { - if first { - token := peek_token(parser) - parser.marks = append(parser.marks, token.start_mark) - skip_token(parser) - } - - token := peek_token(parser) - if token == nil { - return false - } - - if token.typ == yaml_BLOCK_ENTRY_TOKEN { - mark := token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_BLOCK_ENTRY_TOKEN && token.typ != yaml_BLOCK_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE) - return yaml_parser_parse_node(parser, event, true, false) - } else { - parser.state = yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE - return yaml_parser_process_empty_scalar(parser, event, mark) - } - } - if token.typ == yaml_BLOCK_END_TOKEN { - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - - *event = yaml_event_t{ - typ: yaml_SEQUENCE_END_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - - skip_token(parser) - return true - } - - context_mark := parser.marks[len(parser.marks)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - return yaml_parser_set_parser_error_context(parser, - "while parsing a block collection", context_mark, - "did not find expected '-' indicator", token.start_mark) -} - -// Parse the productions: -// indentless_sequence ::= (BLOCK-ENTRY block_node?)+ -// *********** * -func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - - if token.typ == yaml_BLOCK_ENTRY_TOKEN { - mark := token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_BLOCK_ENTRY_TOKEN && - token.typ != yaml_KEY_TOKEN && - token.typ != yaml_VALUE_TOKEN && - token.typ != yaml_BLOCK_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE) - return yaml_parser_parse_node(parser, event, true, false) - } - parser.state = yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE - return yaml_parser_process_empty_scalar(parser, event, mark) - } - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - - *event = yaml_event_t{ - typ: yaml_SEQUENCE_END_EVENT, - start_mark: token.start_mark, - end_mark: token.start_mark, // [Go] Shouldn't this be token.end_mark? - } - return true -} - -// Parse the productions: -// block_mapping ::= BLOCK-MAPPING_START -// ******************* -// ((KEY block_node_or_indentless_sequence?)? -// *** * -// (VALUE block_node_or_indentless_sequence?)?)* -// -// BLOCK-END -// ********* -// -func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { - if first { - token := peek_token(parser) - parser.marks = append(parser.marks, token.start_mark) - skip_token(parser) - } - - token := peek_token(parser) - if token == nil { - return false - } - - if token.typ == yaml_KEY_TOKEN { - mark := token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_KEY_TOKEN && - token.typ != yaml_VALUE_TOKEN && - token.typ != yaml_BLOCK_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_BLOCK_MAPPING_VALUE_STATE) - return yaml_parser_parse_node(parser, event, true, true) - } else { - parser.state = yaml_PARSE_BLOCK_MAPPING_VALUE_STATE - return yaml_parser_process_empty_scalar(parser, event, mark) - } - } else if token.typ == yaml_BLOCK_END_TOKEN { - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - *event = yaml_event_t{ - typ: yaml_MAPPING_END_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - skip_token(parser) - return true - } - - context_mark := parser.marks[len(parser.marks)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - return yaml_parser_set_parser_error_context(parser, - "while parsing a block mapping", context_mark, - "did not find expected key", token.start_mark) -} - -// Parse the productions: -// block_mapping ::= BLOCK-MAPPING_START -// -// ((KEY block_node_or_indentless_sequence?)? -// -// (VALUE block_node_or_indentless_sequence?)?)* -// ***** * -// BLOCK-END -// -// -func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - if token.typ == yaml_VALUE_TOKEN { - mark := token.end_mark - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_KEY_TOKEN && - token.typ != yaml_VALUE_TOKEN && - token.typ != yaml_BLOCK_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_BLOCK_MAPPING_KEY_STATE) - return yaml_parser_parse_node(parser, event, true, true) - } - parser.state = yaml_PARSE_BLOCK_MAPPING_KEY_STATE - return yaml_parser_process_empty_scalar(parser, event, mark) - } - parser.state = yaml_PARSE_BLOCK_MAPPING_KEY_STATE - return yaml_parser_process_empty_scalar(parser, event, token.start_mark) -} - -// Parse the productions: -// flow_sequence ::= FLOW-SEQUENCE-START -// ******************* -// (flow_sequence_entry FLOW-ENTRY)* -// * ********** -// flow_sequence_entry? -// * -// FLOW-SEQUENCE-END -// ***************** -// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * -// -func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { - if first { - token := peek_token(parser) - parser.marks = append(parser.marks, token.start_mark) - skip_token(parser) - } - token := peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { - if !first { - if token.typ == yaml_FLOW_ENTRY_TOKEN { - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } else { - context_mark := parser.marks[len(parser.marks)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - return yaml_parser_set_parser_error_context(parser, - "while parsing a flow sequence", context_mark, - "did not find expected ',' or ']'", token.start_mark) - } - } - - if token.typ == yaml_KEY_TOKEN { - parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE - *event = yaml_event_t{ - typ: yaml_MAPPING_START_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - implicit: true, - style: yaml_style_t(yaml_FLOW_MAPPING_STYLE), - } - skip_token(parser) - return true - } else if token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } - } - - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - - *event = yaml_event_t{ - typ: yaml_SEQUENCE_END_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - - skip_token(parser) - return true -} - -// -// Parse the productions: -// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// *** * -// -func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_VALUE_TOKEN && - token.typ != yaml_FLOW_ENTRY_TOKEN && - token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } - mark := token.end_mark - skip_token(parser) - parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE - return yaml_parser_process_empty_scalar(parser, event, mark) -} - -// Parse the productions: -// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// ***** * -// -func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - if token.typ == yaml_VALUE_TOKEN { - skip_token(parser) - token := peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_FLOW_ENTRY_TOKEN && token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } - } - parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE - return yaml_parser_process_empty_scalar(parser, event, token.start_mark) -} - -// Parse the productions: -// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * -// -func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, event *yaml_event_t) bool { - token := peek_token(parser) - if token == nil { - return false - } - parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE - *event = yaml_event_t{ - typ: yaml_MAPPING_END_EVENT, - start_mark: token.start_mark, - end_mark: token.start_mark, // [Go] Shouldn't this be end_mark? - } - return true -} - -// Parse the productions: -// flow_mapping ::= FLOW-MAPPING-START -// ****************** -// (flow_mapping_entry FLOW-ENTRY)* -// * ********** -// flow_mapping_entry? -// ****************** -// FLOW-MAPPING-END -// **************** -// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * *** * -// -func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { - if first { - token := peek_token(parser) - parser.marks = append(parser.marks, token.start_mark) - skip_token(parser) - } - - token := peek_token(parser) - if token == nil { - return false - } - - if token.typ != yaml_FLOW_MAPPING_END_TOKEN { - if !first { - if token.typ == yaml_FLOW_ENTRY_TOKEN { - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } else { - context_mark := parser.marks[len(parser.marks)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - return yaml_parser_set_parser_error_context(parser, - "while parsing a flow mapping", context_mark, - "did not find expected ',' or '}'", token.start_mark) - } - } - - if token.typ == yaml_KEY_TOKEN { - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_VALUE_TOKEN && - token.typ != yaml_FLOW_ENTRY_TOKEN && - token.typ != yaml_FLOW_MAPPING_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_VALUE_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } else { - parser.state = yaml_PARSE_FLOW_MAPPING_VALUE_STATE - return yaml_parser_process_empty_scalar(parser, event, token.start_mark) - } - } else if token.typ != yaml_FLOW_MAPPING_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } - } - - parser.state = parser.states[len(parser.states)-1] - parser.states = parser.states[:len(parser.states)-1] - parser.marks = parser.marks[:len(parser.marks)-1] - *event = yaml_event_t{ - typ: yaml_MAPPING_END_EVENT, - start_mark: token.start_mark, - end_mark: token.end_mark, - } - skip_token(parser) - return true -} - -// Parse the productions: -// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? -// * ***** * -// -func yaml_parser_parse_flow_mapping_value(parser *yaml_parser_t, event *yaml_event_t, empty bool) bool { - token := peek_token(parser) - if token == nil { - return false - } - if empty { - parser.state = yaml_PARSE_FLOW_MAPPING_KEY_STATE - return yaml_parser_process_empty_scalar(parser, event, token.start_mark) - } - if token.typ == yaml_VALUE_TOKEN { - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - if token.typ != yaml_FLOW_ENTRY_TOKEN && token.typ != yaml_FLOW_MAPPING_END_TOKEN { - parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_KEY_STATE) - return yaml_parser_parse_node(parser, event, false, false) - } - } - parser.state = yaml_PARSE_FLOW_MAPPING_KEY_STATE - return yaml_parser_process_empty_scalar(parser, event, token.start_mark) -} - -// Generate an empty scalar event. -func yaml_parser_process_empty_scalar(parser *yaml_parser_t, event *yaml_event_t, mark yaml_mark_t) bool { - *event = yaml_event_t{ - typ: yaml_SCALAR_EVENT, - start_mark: mark, - end_mark: mark, - value: nil, // Empty - implicit: true, - style: yaml_style_t(yaml_PLAIN_SCALAR_STYLE), - } - return true -} - -var default_tag_directives = []yaml_tag_directive_t{ - {[]byte("!"), []byte("!")}, - {[]byte("!!"), []byte("tag:yaml.org,2002:")}, -} - -// Parse directives. -func yaml_parser_process_directives(parser *yaml_parser_t, - version_directive_ref **yaml_version_directive_t, - tag_directives_ref *[]yaml_tag_directive_t) bool { - - var version_directive *yaml_version_directive_t - var tag_directives []yaml_tag_directive_t - - token := peek_token(parser) - if token == nil { - return false - } - - for token.typ == yaml_VERSION_DIRECTIVE_TOKEN || token.typ == yaml_TAG_DIRECTIVE_TOKEN { - if token.typ == yaml_VERSION_DIRECTIVE_TOKEN { - if version_directive != nil { - yaml_parser_set_parser_error(parser, - "found duplicate %YAML directive", token.start_mark) - return false - } - if token.major != 1 || token.minor != 1 { - yaml_parser_set_parser_error(parser, - "found incompatible YAML document", token.start_mark) - return false - } - version_directive = &yaml_version_directive_t{ - major: token.major, - minor: token.minor, - } - } else if token.typ == yaml_TAG_DIRECTIVE_TOKEN { - value := yaml_tag_directive_t{ - handle: token.value, - prefix: token.prefix, - } - if !yaml_parser_append_tag_directive(parser, value, false, token.start_mark) { - return false - } - tag_directives = append(tag_directives, value) - } - - skip_token(parser) - token = peek_token(parser) - if token == nil { - return false - } - } - - for i := range default_tag_directives { - if !yaml_parser_append_tag_directive(parser, default_tag_directives[i], true, token.start_mark) { - return false - } - } - - if version_directive_ref != nil { - *version_directive_ref = version_directive - } - if tag_directives_ref != nil { - *tag_directives_ref = tag_directives - } - return true -} - -// Append a tag directive to the directives stack. -func yaml_parser_append_tag_directive(parser *yaml_parser_t, value yaml_tag_directive_t, allow_duplicates bool, mark yaml_mark_t) bool { - for i := range parser.tag_directives { - if bytes.Equal(value.handle, parser.tag_directives[i].handle) { - if allow_duplicates { - return true - } - return yaml_parser_set_parser_error(parser, "found duplicate %TAG directive", mark) - } - } - - // [Go] I suspect the copy is unnecessary. This was likely done - // because there was no way to track ownership of the data. - value_copy := yaml_tag_directive_t{ - handle: make([]byte, len(value.handle)), - prefix: make([]byte, len(value.prefix)), - } - copy(value_copy.handle, value.handle) - copy(value_copy.prefix, value.prefix) - parser.tag_directives = append(parser.tag_directives, value_copy) - return true -} diff --git a/vendor/gopkg.in/yaml.v2/readerc.go b/vendor/gopkg.in/yaml.v2/readerc.go deleted file mode 100644 index f450791..0000000 --- a/vendor/gopkg.in/yaml.v2/readerc.go +++ /dev/null @@ -1,394 +0,0 @@ -package yaml - -import ( - "io" -) - -// Set the reader error and return 0. -func yaml_parser_set_reader_error(parser *yaml_parser_t, problem string, offset int, value int) bool { - parser.error = yaml_READER_ERROR - parser.problem = problem - parser.problem_offset = offset - parser.problem_value = value - return false -} - -// Byte order marks. -const ( - bom_UTF8 = "\xef\xbb\xbf" - bom_UTF16LE = "\xff\xfe" - bom_UTF16BE = "\xfe\xff" -) - -// Determine the input stream encoding by checking the BOM symbol. If no BOM is -// found, the UTF-8 encoding is assumed. Return 1 on success, 0 on failure. -func yaml_parser_determine_encoding(parser *yaml_parser_t) bool { - // Ensure that we had enough bytes in the raw buffer. - for !parser.eof && len(parser.raw_buffer)-parser.raw_buffer_pos < 3 { - if !yaml_parser_update_raw_buffer(parser) { - return false - } - } - - // Determine the encoding. - buf := parser.raw_buffer - pos := parser.raw_buffer_pos - avail := len(buf) - pos - if avail >= 2 && buf[pos] == bom_UTF16LE[0] && buf[pos+1] == bom_UTF16LE[1] { - parser.encoding = yaml_UTF16LE_ENCODING - parser.raw_buffer_pos += 2 - parser.offset += 2 - } else if avail >= 2 && buf[pos] == bom_UTF16BE[0] && buf[pos+1] == bom_UTF16BE[1] { - parser.encoding = yaml_UTF16BE_ENCODING - parser.raw_buffer_pos += 2 - parser.offset += 2 - } else if avail >= 3 && buf[pos] == bom_UTF8[0] && buf[pos+1] == bom_UTF8[1] && buf[pos+2] == bom_UTF8[2] { - parser.encoding = yaml_UTF8_ENCODING - parser.raw_buffer_pos += 3 - parser.offset += 3 - } else { - parser.encoding = yaml_UTF8_ENCODING - } - return true -} - -// Update the raw buffer. -func yaml_parser_update_raw_buffer(parser *yaml_parser_t) bool { - size_read := 0 - - // Return if the raw buffer is full. - if parser.raw_buffer_pos == 0 && len(parser.raw_buffer) == cap(parser.raw_buffer) { - return true - } - - // Return on EOF. - if parser.eof { - return true - } - - // Move the remaining bytes in the raw buffer to the beginning. - if parser.raw_buffer_pos > 0 && parser.raw_buffer_pos < len(parser.raw_buffer) { - copy(parser.raw_buffer, parser.raw_buffer[parser.raw_buffer_pos:]) - } - parser.raw_buffer = parser.raw_buffer[:len(parser.raw_buffer)-parser.raw_buffer_pos] - parser.raw_buffer_pos = 0 - - // Call the read handler to fill the buffer. - size_read, err := parser.read_handler(parser, parser.raw_buffer[len(parser.raw_buffer):cap(parser.raw_buffer)]) - parser.raw_buffer = parser.raw_buffer[:len(parser.raw_buffer)+size_read] - if err == io.EOF { - parser.eof = true - } else if err != nil { - return yaml_parser_set_reader_error(parser, "input error: "+err.Error(), parser.offset, -1) - } - return true -} - -// Ensure that the buffer contains at least `length` characters. -// Return true on success, false on failure. -// -// The length is supposed to be significantly less that the buffer size. -func yaml_parser_update_buffer(parser *yaml_parser_t, length int) bool { - if parser.read_handler == nil { - panic("read handler must be set") - } - - // If the EOF flag is set and the raw buffer is empty, do nothing. - if parser.eof && parser.raw_buffer_pos == len(parser.raw_buffer) { - return true - } - - // Return if the buffer contains enough characters. - if parser.unread >= length { - return true - } - - // Determine the input encoding if it is not known yet. - if parser.encoding == yaml_ANY_ENCODING { - if !yaml_parser_determine_encoding(parser) { - return false - } - } - - // Move the unread characters to the beginning of the buffer. - buffer_len := len(parser.buffer) - if parser.buffer_pos > 0 && parser.buffer_pos < buffer_len { - copy(parser.buffer, parser.buffer[parser.buffer_pos:]) - buffer_len -= parser.buffer_pos - parser.buffer_pos = 0 - } else if parser.buffer_pos == buffer_len { - buffer_len = 0 - parser.buffer_pos = 0 - } - - // Open the whole buffer for writing, and cut it before returning. - parser.buffer = parser.buffer[:cap(parser.buffer)] - - // Fill the buffer until it has enough characters. - first := true - for parser.unread < length { - - // Fill the raw buffer if necessary. - if !first || parser.raw_buffer_pos == len(parser.raw_buffer) { - if !yaml_parser_update_raw_buffer(parser) { - parser.buffer = parser.buffer[:buffer_len] - return false - } - } - first = false - - // Decode the raw buffer. - inner: - for parser.raw_buffer_pos != len(parser.raw_buffer) { - var value rune - var width int - - raw_unread := len(parser.raw_buffer) - parser.raw_buffer_pos - - // Decode the next character. - switch parser.encoding { - case yaml_UTF8_ENCODING: - // Decode a UTF-8 character. Check RFC 3629 - // (http://www.ietf.org/rfc/rfc3629.txt) for more details. - // - // The following table (taken from the RFC) is used for - // decoding. - // - // Char. number range | UTF-8 octet sequence - // (hexadecimal) | (binary) - // --------------------+------------------------------------ - // 0000 0000-0000 007F | 0xxxxxxx - // 0000 0080-0000 07FF | 110xxxxx 10xxxxxx - // 0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx - // 0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx - // - // Additionally, the characters in the range 0xD800-0xDFFF - // are prohibited as they are reserved for use with UTF-16 - // surrogate pairs. - - // Determine the length of the UTF-8 sequence. - octet := parser.raw_buffer[parser.raw_buffer_pos] - switch { - case octet&0x80 == 0x00: - width = 1 - case octet&0xE0 == 0xC0: - width = 2 - case octet&0xF0 == 0xE0: - width = 3 - case octet&0xF8 == 0xF0: - width = 4 - default: - // The leading octet is invalid. - return yaml_parser_set_reader_error(parser, - "invalid leading UTF-8 octet", - parser.offset, int(octet)) - } - - // Check if the raw buffer contains an incomplete character. - if width > raw_unread { - if parser.eof { - return yaml_parser_set_reader_error(parser, - "incomplete UTF-8 octet sequence", - parser.offset, -1) - } - break inner - } - - // Decode the leading octet. - switch { - case octet&0x80 == 0x00: - value = rune(octet & 0x7F) - case octet&0xE0 == 0xC0: - value = rune(octet & 0x1F) - case octet&0xF0 == 0xE0: - value = rune(octet & 0x0F) - case octet&0xF8 == 0xF0: - value = rune(octet & 0x07) - default: - value = 0 - } - - // Check and decode the trailing octets. - for k := 1; k < width; k++ { - octet = parser.raw_buffer[parser.raw_buffer_pos+k] - - // Check if the octet is valid. - if (octet & 0xC0) != 0x80 { - return yaml_parser_set_reader_error(parser, - "invalid trailing UTF-8 octet", - parser.offset+k, int(octet)) - } - - // Decode the octet. - value = (value << 6) + rune(octet&0x3F) - } - - // Check the length of the sequence against the value. - switch { - case width == 1: - case width == 2 && value >= 0x80: - case width == 3 && value >= 0x800: - case width == 4 && value >= 0x10000: - default: - return yaml_parser_set_reader_error(parser, - "invalid length of a UTF-8 sequence", - parser.offset, -1) - } - - // Check the range of the value. - if value >= 0xD800 && value <= 0xDFFF || value > 0x10FFFF { - return yaml_parser_set_reader_error(parser, - "invalid Unicode character", - parser.offset, int(value)) - } - - case yaml_UTF16LE_ENCODING, yaml_UTF16BE_ENCODING: - var low, high int - if parser.encoding == yaml_UTF16LE_ENCODING { - low, high = 0, 1 - } else { - low, high = 1, 0 - } - - // The UTF-16 encoding is not as simple as one might - // naively think. Check RFC 2781 - // (http://www.ietf.org/rfc/rfc2781.txt). - // - // Normally, two subsequent bytes describe a Unicode - // character. However a special technique (called a - // surrogate pair) is used for specifying character - // values larger than 0xFFFF. - // - // A surrogate pair consists of two pseudo-characters: - // high surrogate area (0xD800-0xDBFF) - // low surrogate area (0xDC00-0xDFFF) - // - // The following formulas are used for decoding - // and encoding characters using surrogate pairs: - // - // U = U' + 0x10000 (0x01 00 00 <= U <= 0x10 FF FF) - // U' = yyyyyyyyyyxxxxxxxxxx (0 <= U' <= 0x0F FF FF) - // W1 = 110110yyyyyyyyyy - // W2 = 110111xxxxxxxxxx - // - // where U is the character value, W1 is the high surrogate - // area, W2 is the low surrogate area. - - // Check for incomplete UTF-16 character. - if raw_unread < 2 { - if parser.eof { - return yaml_parser_set_reader_error(parser, - "incomplete UTF-16 character", - parser.offset, -1) - } - break inner - } - - // Get the character. - value = rune(parser.raw_buffer[parser.raw_buffer_pos+low]) + - (rune(parser.raw_buffer[parser.raw_buffer_pos+high]) << 8) - - // Check for unexpected low surrogate area. - if value&0xFC00 == 0xDC00 { - return yaml_parser_set_reader_error(parser, - "unexpected low surrogate area", - parser.offset, int(value)) - } - - // Check for a high surrogate area. - if value&0xFC00 == 0xD800 { - width = 4 - - // Check for incomplete surrogate pair. - if raw_unread < 4 { - if parser.eof { - return yaml_parser_set_reader_error(parser, - "incomplete UTF-16 surrogate pair", - parser.offset, -1) - } - break inner - } - - // Get the next character. - value2 := rune(parser.raw_buffer[parser.raw_buffer_pos+low+2]) + - (rune(parser.raw_buffer[parser.raw_buffer_pos+high+2]) << 8) - - // Check for a low surrogate area. - if value2&0xFC00 != 0xDC00 { - return yaml_parser_set_reader_error(parser, - "expected low surrogate area", - parser.offset+2, int(value2)) - } - - // Generate the value of the surrogate pair. - value = 0x10000 + ((value & 0x3FF) << 10) + (value2 & 0x3FF) - } else { - width = 2 - } - - default: - panic("impossible") - } - - // Check if the character is in the allowed range: - // #x9 | #xA | #xD | [#x20-#x7E] (8 bit) - // | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] (16 bit) - // | [#x10000-#x10FFFF] (32 bit) - switch { - case value == 0x09: - case value == 0x0A: - case value == 0x0D: - case value >= 0x20 && value <= 0x7E: - case value == 0x85: - case value >= 0xA0 && value <= 0xD7FF: - case value >= 0xE000 && value <= 0xFFFD: - case value >= 0x10000 && value <= 0x10FFFF: - default: - return yaml_parser_set_reader_error(parser, - "control characters are not allowed", - parser.offset, int(value)) - } - - // Move the raw pointers. - parser.raw_buffer_pos += width - parser.offset += width - - // Finally put the character into the buffer. - if value <= 0x7F { - // 0000 0000-0000 007F . 0xxxxxxx - parser.buffer[buffer_len+0] = byte(value) - buffer_len += 1 - } else if value <= 0x7FF { - // 0000 0080-0000 07FF . 110xxxxx 10xxxxxx - parser.buffer[buffer_len+0] = byte(0xC0 + (value >> 6)) - parser.buffer[buffer_len+1] = byte(0x80 + (value & 0x3F)) - buffer_len += 2 - } else if value <= 0xFFFF { - // 0000 0800-0000 FFFF . 1110xxxx 10xxxxxx 10xxxxxx - parser.buffer[buffer_len+0] = byte(0xE0 + (value >> 12)) - parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 6) & 0x3F)) - parser.buffer[buffer_len+2] = byte(0x80 + (value & 0x3F)) - buffer_len += 3 - } else { - // 0001 0000-0010 FFFF . 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx - parser.buffer[buffer_len+0] = byte(0xF0 + (value >> 18)) - parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 12) & 0x3F)) - parser.buffer[buffer_len+2] = byte(0x80 + ((value >> 6) & 0x3F)) - parser.buffer[buffer_len+3] = byte(0x80 + (value & 0x3F)) - buffer_len += 4 - } - - parser.unread++ - } - - // On EOF, put NUL into the buffer and return. - if parser.eof { - parser.buffer[buffer_len] = 0 - buffer_len++ - parser.unread++ - break - } - } - parser.buffer = parser.buffer[:buffer_len] - return true -} diff --git a/vendor/gopkg.in/yaml.v2/resolve.go b/vendor/gopkg.in/yaml.v2/resolve.go deleted file mode 100644 index 232313c..0000000 --- a/vendor/gopkg.in/yaml.v2/resolve.go +++ /dev/null @@ -1,208 +0,0 @@ -package yaml - -import ( - "encoding/base64" - "math" - "regexp" - "strconv" - "strings" - "unicode/utf8" -) - -type resolveMapItem struct { - value interface{} - tag string -} - -var resolveTable = make([]byte, 256) -var resolveMap = make(map[string]resolveMapItem) - -func init() { - t := resolveTable - t[int('+')] = 'S' // Sign - t[int('-')] = 'S' - for _, c := range "0123456789" { - t[int(c)] = 'D' // Digit - } - for _, c := range "yYnNtTfFoO~" { - t[int(c)] = 'M' // In map - } - t[int('.')] = '.' // Float (potentially in map) - - var resolveMapList = []struct { - v interface{} - tag string - l []string - }{ - {true, yaml_BOOL_TAG, []string{"y", "Y", "yes", "Yes", "YES"}}, - {true, yaml_BOOL_TAG, []string{"true", "True", "TRUE"}}, - {true, yaml_BOOL_TAG, []string{"on", "On", "ON"}}, - {false, yaml_BOOL_TAG, []string{"n", "N", "no", "No", "NO"}}, - {false, yaml_BOOL_TAG, []string{"false", "False", "FALSE"}}, - {false, yaml_BOOL_TAG, []string{"off", "Off", "OFF"}}, - {nil, yaml_NULL_TAG, []string{"", "~", "null", "Null", "NULL"}}, - {math.NaN(), yaml_FLOAT_TAG, []string{".nan", ".NaN", ".NAN"}}, - {math.Inf(+1), yaml_FLOAT_TAG, []string{".inf", ".Inf", ".INF"}}, - {math.Inf(+1), yaml_FLOAT_TAG, []string{"+.inf", "+.Inf", "+.INF"}}, - {math.Inf(-1), yaml_FLOAT_TAG, []string{"-.inf", "-.Inf", "-.INF"}}, - {"<<", yaml_MERGE_TAG, []string{"<<"}}, - } - - m := resolveMap - for _, item := range resolveMapList { - for _, s := range item.l { - m[s] = resolveMapItem{item.v, item.tag} - } - } -} - -const longTagPrefix = "tag:yaml.org,2002:" - -func shortTag(tag string) string { - // TODO This can easily be made faster and produce less garbage. - if strings.HasPrefix(tag, longTagPrefix) { - return "!!" + tag[len(longTagPrefix):] - } - return tag -} - -func longTag(tag string) string { - if strings.HasPrefix(tag, "!!") { - return longTagPrefix + tag[2:] - } - return tag -} - -func resolvableTag(tag string) bool { - switch tag { - case "", yaml_STR_TAG, yaml_BOOL_TAG, yaml_INT_TAG, yaml_FLOAT_TAG, yaml_NULL_TAG: - return true - } - return false -} - -var yamlStyleFloat = regexp.MustCompile(`^[-+]?[0-9]*\.?[0-9]+([eE][-+][0-9]+)?$`) - -func resolve(tag string, in string) (rtag string, out interface{}) { - if !resolvableTag(tag) { - return tag, in - } - - defer func() { - switch tag { - case "", rtag, yaml_STR_TAG, yaml_BINARY_TAG: - return - } - failf("cannot decode %s `%s` as a %s", shortTag(rtag), in, shortTag(tag)) - }() - - // Any data is accepted as a !!str or !!binary. - // Otherwise, the prefix is enough of a hint about what it might be. - hint := byte('N') - if in != "" { - hint = resolveTable[in[0]] - } - if hint != 0 && tag != yaml_STR_TAG && tag != yaml_BINARY_TAG { - // Handle things we can lookup in a map. - if item, ok := resolveMap[in]; ok { - return item.tag, item.value - } - - // Base 60 floats are a bad idea, were dropped in YAML 1.2, and - // are purposefully unsupported here. They're still quoted on - // the way out for compatibility with other parser, though. - - switch hint { - case 'M': - // We've already checked the map above. - - case '.': - // Not in the map, so maybe a normal float. - floatv, err := strconv.ParseFloat(in, 64) - if err == nil { - return yaml_FLOAT_TAG, floatv - } - - case 'D', 'S': - // Int, float, or timestamp. - plain := strings.Replace(in, "_", "", -1) - intv, err := strconv.ParseInt(plain, 0, 64) - if err == nil { - if intv == int64(int(intv)) { - return yaml_INT_TAG, int(intv) - } else { - return yaml_INT_TAG, intv - } - } - uintv, err := strconv.ParseUint(plain, 0, 64) - if err == nil { - return yaml_INT_TAG, uintv - } - if yamlStyleFloat.MatchString(plain) { - floatv, err := strconv.ParseFloat(plain, 64) - if err == nil { - return yaml_FLOAT_TAG, floatv - } - } - if strings.HasPrefix(plain, "0b") { - intv, err := strconv.ParseInt(plain[2:], 2, 64) - if err == nil { - if intv == int64(int(intv)) { - return yaml_INT_TAG, int(intv) - } else { - return yaml_INT_TAG, intv - } - } - uintv, err := strconv.ParseUint(plain[2:], 2, 64) - if err == nil { - return yaml_INT_TAG, uintv - } - } else if strings.HasPrefix(plain, "-0b") { - intv, err := strconv.ParseInt(plain[3:], 2, 64) - if err == nil { - if intv == int64(int(intv)) { - return yaml_INT_TAG, -int(intv) - } else { - return yaml_INT_TAG, -intv - } - } - } - // XXX Handle timestamps here. - - default: - panic("resolveTable item not yet handled: " + string(rune(hint)) + " (with " + in + ")") - } - } - if tag == yaml_BINARY_TAG { - return yaml_BINARY_TAG, in - } - if utf8.ValidString(in) { - return yaml_STR_TAG, in - } - return yaml_BINARY_TAG, encodeBase64(in) -} - -// encodeBase64 encodes s as base64 that is broken up into multiple lines -// as appropriate for the resulting length. -func encodeBase64(s string) string { - const lineLen = 70 - encLen := base64.StdEncoding.EncodedLen(len(s)) - lines := encLen/lineLen + 1 - buf := make([]byte, encLen*2+lines) - in := buf[0:encLen] - out := buf[encLen:] - base64.StdEncoding.Encode(in, []byte(s)) - k := 0 - for i := 0; i < len(in); i += lineLen { - j := i + lineLen - if j > len(in) { - j = len(in) - } - k += copy(out[k:], in[i:j]) - if lines > 1 { - out[k] = '\n' - k++ - } - } - return string(out[:k]) -} diff --git a/vendor/gopkg.in/yaml.v2/scannerc.go b/vendor/gopkg.in/yaml.v2/scannerc.go deleted file mode 100644 index 0744844..0000000 --- a/vendor/gopkg.in/yaml.v2/scannerc.go +++ /dev/null @@ -1,2711 +0,0 @@ -package yaml - -import ( - "bytes" - "fmt" -) - -// Introduction -// ************ -// -// The following notes assume that you are familiar with the YAML specification -// (http://yaml.org/spec/1.2/spec.html). We mostly follow it, although in -// some cases we are less restrictive that it requires. -// -// The process of transforming a YAML stream into a sequence of events is -// divided on two steps: Scanning and Parsing. -// -// The Scanner transforms the input stream into a sequence of tokens, while the -// parser transform the sequence of tokens produced by the Scanner into a -// sequence of parsing events. -// -// The Scanner is rather clever and complicated. The Parser, on the contrary, -// is a straightforward implementation of a recursive-descendant parser (or, -// LL(1) parser, as it is usually called). -// -// Actually there are two issues of Scanning that might be called "clever", the -// rest is quite straightforward. The issues are "block collection start" and -// "simple keys". Both issues are explained below in details. -// -// Here the Scanning step is explained and implemented. We start with the list -// of all the tokens produced by the Scanner together with short descriptions. -// -// Now, tokens: -// -// STREAM-START(encoding) # The stream start. -// STREAM-END # The stream end. -// VERSION-DIRECTIVE(major,minor) # The '%YAML' directive. -// TAG-DIRECTIVE(handle,prefix) # The '%TAG' directive. -// DOCUMENT-START # '---' -// DOCUMENT-END # '...' -// BLOCK-SEQUENCE-START # Indentation increase denoting a block -// BLOCK-MAPPING-START # sequence or a block mapping. -// BLOCK-END # Indentation decrease. -// FLOW-SEQUENCE-START # '[' -// FLOW-SEQUENCE-END # ']' -// BLOCK-SEQUENCE-START # '{' -// BLOCK-SEQUENCE-END # '}' -// BLOCK-ENTRY # '-' -// FLOW-ENTRY # ',' -// KEY # '?' or nothing (simple keys). -// VALUE # ':' -// ALIAS(anchor) # '*anchor' -// ANCHOR(anchor) # '&anchor' -// TAG(handle,suffix) # '!handle!suffix' -// SCALAR(value,style) # A scalar. -// -// The following two tokens are "virtual" tokens denoting the beginning and the -// end of the stream: -// -// STREAM-START(encoding) -// STREAM-END -// -// We pass the information about the input stream encoding with the -// STREAM-START token. -// -// The next two tokens are responsible for tags: -// -// VERSION-DIRECTIVE(major,minor) -// TAG-DIRECTIVE(handle,prefix) -// -// Example: -// -// %YAML 1.1 -// %TAG ! !foo -// %TAG !yaml! tag:yaml.org,2002: -// --- -// -// The correspoding sequence of tokens: -// -// STREAM-START(utf-8) -// VERSION-DIRECTIVE(1,1) -// TAG-DIRECTIVE("!","!foo") -// TAG-DIRECTIVE("!yaml","tag:yaml.org,2002:") -// DOCUMENT-START -// STREAM-END -// -// Note that the VERSION-DIRECTIVE and TAG-DIRECTIVE tokens occupy a whole -// line. -// -// The document start and end indicators are represented by: -// -// DOCUMENT-START -// DOCUMENT-END -// -// Note that if a YAML stream contains an implicit document (without '---' -// and '...' indicators), no DOCUMENT-START and DOCUMENT-END tokens will be -// produced. -// -// In the following examples, we present whole documents together with the -// produced tokens. -// -// 1. An implicit document: -// -// 'a scalar' -// -// Tokens: -// -// STREAM-START(utf-8) -// SCALAR("a scalar",single-quoted) -// STREAM-END -// -// 2. An explicit document: -// -// --- -// 'a scalar' -// ... -// -// Tokens: -// -// STREAM-START(utf-8) -// DOCUMENT-START -// SCALAR("a scalar",single-quoted) -// DOCUMENT-END -// STREAM-END -// -// 3. Several documents in a stream: -// -// 'a scalar' -// --- -// 'another scalar' -// --- -// 'yet another scalar' -// -// Tokens: -// -// STREAM-START(utf-8) -// SCALAR("a scalar",single-quoted) -// DOCUMENT-START -// SCALAR("another scalar",single-quoted) -// DOCUMENT-START -// SCALAR("yet another scalar",single-quoted) -// STREAM-END -// -// We have already introduced the SCALAR token above. The following tokens are -// used to describe aliases, anchors, tag, and scalars: -// -// ALIAS(anchor) -// ANCHOR(anchor) -// TAG(handle,suffix) -// SCALAR(value,style) -// -// The following series of examples illustrate the usage of these tokens: -// -// 1. A recursive sequence: -// -// &A [ *A ] -// -// Tokens: -// -// STREAM-START(utf-8) -// ANCHOR("A") -// FLOW-SEQUENCE-START -// ALIAS("A") -// FLOW-SEQUENCE-END -// STREAM-END -// -// 2. A tagged scalar: -// -// !!float "3.14" # A good approximation. -// -// Tokens: -// -// STREAM-START(utf-8) -// TAG("!!","float") -// SCALAR("3.14",double-quoted) -// STREAM-END -// -// 3. Various scalar styles: -// -// --- # Implicit empty plain scalars do not produce tokens. -// --- a plain scalar -// --- 'a single-quoted scalar' -// --- "a double-quoted scalar" -// --- |- -// a literal scalar -// --- >- -// a folded -// scalar -// -// Tokens: -// -// STREAM-START(utf-8) -// DOCUMENT-START -// DOCUMENT-START -// SCALAR("a plain scalar",plain) -// DOCUMENT-START -// SCALAR("a single-quoted scalar",single-quoted) -// DOCUMENT-START -// SCALAR("a double-quoted scalar",double-quoted) -// DOCUMENT-START -// SCALAR("a literal scalar",literal) -// DOCUMENT-START -// SCALAR("a folded scalar",folded) -// STREAM-END -// -// Now it's time to review collection-related tokens. We will start with -// flow collections: -// -// FLOW-SEQUENCE-START -// FLOW-SEQUENCE-END -// FLOW-MAPPING-START -// FLOW-MAPPING-END -// FLOW-ENTRY -// KEY -// VALUE -// -// The tokens FLOW-SEQUENCE-START, FLOW-SEQUENCE-END, FLOW-MAPPING-START, and -// FLOW-MAPPING-END represent the indicators '[', ']', '{', and '}' -// correspondingly. FLOW-ENTRY represent the ',' indicator. Finally the -// indicators '?' and ':', which are used for denoting mapping keys and values, -// are represented by the KEY and VALUE tokens. -// -// The following examples show flow collections: -// -// 1. A flow sequence: -// -// [item 1, item 2, item 3] -// -// Tokens: -// -// STREAM-START(utf-8) -// FLOW-SEQUENCE-START -// SCALAR("item 1",plain) -// FLOW-ENTRY -// SCALAR("item 2",plain) -// FLOW-ENTRY -// SCALAR("item 3",plain) -// FLOW-SEQUENCE-END -// STREAM-END -// -// 2. A flow mapping: -// -// { -// a simple key: a value, # Note that the KEY token is produced. -// ? a complex key: another value, -// } -// -// Tokens: -// -// STREAM-START(utf-8) -// FLOW-MAPPING-START -// KEY -// SCALAR("a simple key",plain) -// VALUE -// SCALAR("a value",plain) -// FLOW-ENTRY -// KEY -// SCALAR("a complex key",plain) -// VALUE -// SCALAR("another value",plain) -// FLOW-ENTRY -// FLOW-MAPPING-END -// STREAM-END -// -// A simple key is a key which is not denoted by the '?' indicator. Note that -// the Scanner still produce the KEY token whenever it encounters a simple key. -// -// For scanning block collections, the following tokens are used (note that we -// repeat KEY and VALUE here): -// -// BLOCK-SEQUENCE-START -// BLOCK-MAPPING-START -// BLOCK-END -// BLOCK-ENTRY -// KEY -// VALUE -// -// The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation -// increase that precedes a block collection (cf. the INDENT token in Python). -// The token BLOCK-END denote indentation decrease that ends a block collection -// (cf. the DEDENT token in Python). However YAML has some syntax pecularities -// that makes detections of these tokens more complex. -// -// The tokens BLOCK-ENTRY, KEY, and VALUE are used to represent the indicators -// '-', '?', and ':' correspondingly. -// -// The following examples show how the tokens BLOCK-SEQUENCE-START, -// BLOCK-MAPPING-START, and BLOCK-END are emitted by the Scanner: -// -// 1. Block sequences: -// -// - item 1 -// - item 2 -// - -// - item 3.1 -// - item 3.2 -// - -// key 1: value 1 -// key 2: value 2 -// -// Tokens: -// -// STREAM-START(utf-8) -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// SCALAR("item 1",plain) -// BLOCK-ENTRY -// SCALAR("item 2",plain) -// BLOCK-ENTRY -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// SCALAR("item 3.1",plain) -// BLOCK-ENTRY -// SCALAR("item 3.2",plain) -// BLOCK-END -// BLOCK-ENTRY -// BLOCK-MAPPING-START -// KEY -// SCALAR("key 1",plain) -// VALUE -// SCALAR("value 1",plain) -// KEY -// SCALAR("key 2",plain) -// VALUE -// SCALAR("value 2",plain) -// BLOCK-END -// BLOCK-END -// STREAM-END -// -// 2. Block mappings: -// -// a simple key: a value # The KEY token is produced here. -// ? a complex key -// : another value -// a mapping: -// key 1: value 1 -// key 2: value 2 -// a sequence: -// - item 1 -// - item 2 -// -// Tokens: -// -// STREAM-START(utf-8) -// BLOCK-MAPPING-START -// KEY -// SCALAR("a simple key",plain) -// VALUE -// SCALAR("a value",plain) -// KEY -// SCALAR("a complex key",plain) -// VALUE -// SCALAR("another value",plain) -// KEY -// SCALAR("a mapping",plain) -// BLOCK-MAPPING-START -// KEY -// SCALAR("key 1",plain) -// VALUE -// SCALAR("value 1",plain) -// KEY -// SCALAR("key 2",plain) -// VALUE -// SCALAR("value 2",plain) -// BLOCK-END -// KEY -// SCALAR("a sequence",plain) -// VALUE -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// SCALAR("item 1",plain) -// BLOCK-ENTRY -// SCALAR("item 2",plain) -// BLOCK-END -// BLOCK-END -// STREAM-END -// -// YAML does not always require to start a new block collection from a new -// line. If the current line contains only '-', '?', and ':' indicators, a new -// block collection may start at the current line. The following examples -// illustrate this case: -// -// 1. Collections in a sequence: -// -// - - item 1 -// - item 2 -// - key 1: value 1 -// key 2: value 2 -// - ? complex key -// : complex value -// -// Tokens: -// -// STREAM-START(utf-8) -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// SCALAR("item 1",plain) -// BLOCK-ENTRY -// SCALAR("item 2",plain) -// BLOCK-END -// BLOCK-ENTRY -// BLOCK-MAPPING-START -// KEY -// SCALAR("key 1",plain) -// VALUE -// SCALAR("value 1",plain) -// KEY -// SCALAR("key 2",plain) -// VALUE -// SCALAR("value 2",plain) -// BLOCK-END -// BLOCK-ENTRY -// BLOCK-MAPPING-START -// KEY -// SCALAR("complex key") -// VALUE -// SCALAR("complex value") -// BLOCK-END -// BLOCK-END -// STREAM-END -// -// 2. Collections in a mapping: -// -// ? a sequence -// : - item 1 -// - item 2 -// ? a mapping -// : key 1: value 1 -// key 2: value 2 -// -// Tokens: -// -// STREAM-START(utf-8) -// BLOCK-MAPPING-START -// KEY -// SCALAR("a sequence",plain) -// VALUE -// BLOCK-SEQUENCE-START -// BLOCK-ENTRY -// SCALAR("item 1",plain) -// BLOCK-ENTRY -// SCALAR("item 2",plain) -// BLOCK-END -// KEY -// SCALAR("a mapping",plain) -// VALUE -// BLOCK-MAPPING-START -// KEY -// SCALAR("key 1",plain) -// VALUE -// SCALAR("value 1",plain) -// KEY -// SCALAR("key 2",plain) -// VALUE -// SCALAR("value 2",plain) -// BLOCK-END -// BLOCK-END -// STREAM-END -// -// YAML also permits non-indented sequences if they are included into a block -// mapping. In this case, the token BLOCK-SEQUENCE-START is not produced: -// -// key: -// - item 1 # BLOCK-SEQUENCE-START is NOT produced here. -// - item 2 -// -// Tokens: -// -// STREAM-START(utf-8) -// BLOCK-MAPPING-START -// KEY -// SCALAR("key",plain) -// VALUE -// BLOCK-ENTRY -// SCALAR("item 1",plain) -// BLOCK-ENTRY -// SCALAR("item 2",plain) -// BLOCK-END -// - -// Ensure that the buffer contains the required number of characters. -// Return true on success, false on failure (reader error or memory error). -func cache(parser *yaml_parser_t, length int) bool { - // [Go] This was inlined: !cache(A, B) -> unread < B && !update(A, B) - return parser.unread >= length || yaml_parser_update_buffer(parser, length) -} - -// Advance the buffer pointer. -func skip(parser *yaml_parser_t) { - parser.mark.index++ - parser.mark.column++ - parser.unread-- - parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) -} - -func skip_line(parser *yaml_parser_t) { - if is_crlf(parser.buffer, parser.buffer_pos) { - parser.mark.index += 2 - parser.mark.column = 0 - parser.mark.line++ - parser.unread -= 2 - parser.buffer_pos += 2 - } else if is_break(parser.buffer, parser.buffer_pos) { - parser.mark.index++ - parser.mark.column = 0 - parser.mark.line++ - parser.unread-- - parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) - } -} - -// Copy a character to a string buffer and advance pointers. -func read(parser *yaml_parser_t, s []byte) []byte { - w := width(parser.buffer[parser.buffer_pos]) - if w == 0 { - panic("invalid character sequence") - } - if len(s) == 0 { - s = make([]byte, 0, 32) - } - if w == 1 && len(s)+w <= cap(s) { - s = s[:len(s)+1] - s[len(s)-1] = parser.buffer[parser.buffer_pos] - parser.buffer_pos++ - } else { - s = append(s, parser.buffer[parser.buffer_pos:parser.buffer_pos+w]...) - parser.buffer_pos += w - } - parser.mark.index++ - parser.mark.column++ - parser.unread-- - return s -} - -// Copy a line break character to a string buffer and advance pointers. -func read_line(parser *yaml_parser_t, s []byte) []byte { - buf := parser.buffer - pos := parser.buffer_pos - switch { - case buf[pos] == '\r' && buf[pos+1] == '\n': - // CR LF . LF - s = append(s, '\n') - parser.buffer_pos += 2 - parser.mark.index++ - parser.unread-- - case buf[pos] == '\r' || buf[pos] == '\n': - // CR|LF . LF - s = append(s, '\n') - parser.buffer_pos += 1 - case buf[pos] == '\xC2' && buf[pos+1] == '\x85': - // NEL . LF - s = append(s, '\n') - parser.buffer_pos += 2 - case buf[pos] == '\xE2' && buf[pos+1] == '\x80' && (buf[pos+2] == '\xA8' || buf[pos+2] == '\xA9'): - // LS|PS . LS|PS - s = append(s, buf[parser.buffer_pos:pos+3]...) - parser.buffer_pos += 3 - default: - return s - } - parser.mark.index++ - parser.mark.column = 0 - parser.mark.line++ - parser.unread-- - return s -} - -// Get the next token. -func yaml_parser_scan(parser *yaml_parser_t, token *yaml_token_t) bool { - // Erase the token object. - *token = yaml_token_t{} // [Go] Is this necessary? - - // No tokens after STREAM-END or error. - if parser.stream_end_produced || parser.error != yaml_NO_ERROR { - return true - } - - // Ensure that the tokens queue contains enough tokens. - if !parser.token_available { - if !yaml_parser_fetch_more_tokens(parser) { - return false - } - } - - // Fetch the next token from the queue. - *token = parser.tokens[parser.tokens_head] - parser.tokens_head++ - parser.tokens_parsed++ - parser.token_available = false - - if token.typ == yaml_STREAM_END_TOKEN { - parser.stream_end_produced = true - } - return true -} - -// Set the scanner error and return false. -func yaml_parser_set_scanner_error(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string) bool { - parser.error = yaml_SCANNER_ERROR - parser.context = context - parser.context_mark = context_mark - parser.problem = problem - parser.problem_mark = parser.mark - return false -} - -func yaml_parser_set_scanner_tag_error(parser *yaml_parser_t, directive bool, context_mark yaml_mark_t, problem string) bool { - context := "while parsing a tag" - if directive { - context = "while parsing a %TAG directive" - } - return yaml_parser_set_scanner_error(parser, context, context_mark, problem) -} - -func trace(args ...interface{}) func() { - pargs := append([]interface{}{"+++"}, args...) - fmt.Println(pargs...) - pargs = append([]interface{}{"---"}, args...) - return func() { fmt.Println(pargs...) } -} - -// Ensure that the tokens queue contains at least one token which can be -// returned to the Parser. -func yaml_parser_fetch_more_tokens(parser *yaml_parser_t) bool { - // While we need more tokens to fetch, do it. - for { - // Check if we really need to fetch more tokens. - need_more_tokens := false - - if parser.tokens_head == len(parser.tokens) { - // Queue is empty. - need_more_tokens = true - } else { - // Check if any potential simple key may occupy the head position. - if !yaml_parser_stale_simple_keys(parser) { - return false - } - - for i := range parser.simple_keys { - simple_key := &parser.simple_keys[i] - if simple_key.possible && simple_key.token_number == parser.tokens_parsed { - need_more_tokens = true - break - } - } - } - - // We are finished. - if !need_more_tokens { - break - } - // Fetch the next token. - if !yaml_parser_fetch_next_token(parser) { - return false - } - } - - parser.token_available = true - return true -} - -// The dispatcher for token fetchers. -func yaml_parser_fetch_next_token(parser *yaml_parser_t) bool { - // Ensure that the buffer is initialized. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - // Check if we just started scanning. Fetch STREAM-START then. - if !parser.stream_start_produced { - return yaml_parser_fetch_stream_start(parser) - } - - // Eat whitespaces and comments until we reach the next token. - if !yaml_parser_scan_to_next_token(parser) { - return false - } - - // Remove obsolete potential simple keys. - if !yaml_parser_stale_simple_keys(parser) { - return false - } - - // Check the indentation level against the current column. - if !yaml_parser_unroll_indent(parser, parser.mark.column) { - return false - } - - // Ensure that the buffer contains at least 4 characters. 4 is the length - // of the longest indicators ('--- ' and '... '). - if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { - return false - } - - // Is it the end of the stream? - if is_z(parser.buffer, parser.buffer_pos) { - return yaml_parser_fetch_stream_end(parser) - } - - // Is it a directive? - if parser.mark.column == 0 && parser.buffer[parser.buffer_pos] == '%' { - return yaml_parser_fetch_directive(parser) - } - - buf := parser.buffer - pos := parser.buffer_pos - - // Is it the document start indicator? - if parser.mark.column == 0 && buf[pos] == '-' && buf[pos+1] == '-' && buf[pos+2] == '-' && is_blankz(buf, pos+3) { - return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_START_TOKEN) - } - - // Is it the document end indicator? - if parser.mark.column == 0 && buf[pos] == '.' && buf[pos+1] == '.' && buf[pos+2] == '.' && is_blankz(buf, pos+3) { - return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_END_TOKEN) - } - - // Is it the flow sequence start indicator? - if buf[pos] == '[' { - return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_SEQUENCE_START_TOKEN) - } - - // Is it the flow mapping start indicator? - if parser.buffer[parser.buffer_pos] == '{' { - return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_MAPPING_START_TOKEN) - } - - // Is it the flow sequence end indicator? - if parser.buffer[parser.buffer_pos] == ']' { - return yaml_parser_fetch_flow_collection_end(parser, - yaml_FLOW_SEQUENCE_END_TOKEN) - } - - // Is it the flow mapping end indicator? - if parser.buffer[parser.buffer_pos] == '}' { - return yaml_parser_fetch_flow_collection_end(parser, - yaml_FLOW_MAPPING_END_TOKEN) - } - - // Is it the flow entry indicator? - if parser.buffer[parser.buffer_pos] == ',' { - return yaml_parser_fetch_flow_entry(parser) - } - - // Is it the block entry indicator? - if parser.buffer[parser.buffer_pos] == '-' && is_blankz(parser.buffer, parser.buffer_pos+1) { - return yaml_parser_fetch_block_entry(parser) - } - - // Is it the key indicator? - if parser.buffer[parser.buffer_pos] == '?' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { - return yaml_parser_fetch_key(parser) - } - - // Is it the value indicator? - if parser.buffer[parser.buffer_pos] == ':' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { - return yaml_parser_fetch_value(parser) - } - - // Is it an alias? - if parser.buffer[parser.buffer_pos] == '*' { - return yaml_parser_fetch_anchor(parser, yaml_ALIAS_TOKEN) - } - - // Is it an anchor? - if parser.buffer[parser.buffer_pos] == '&' { - return yaml_parser_fetch_anchor(parser, yaml_ANCHOR_TOKEN) - } - - // Is it a tag? - if parser.buffer[parser.buffer_pos] == '!' { - return yaml_parser_fetch_tag(parser) - } - - // Is it a literal scalar? - if parser.buffer[parser.buffer_pos] == '|' && parser.flow_level == 0 { - return yaml_parser_fetch_block_scalar(parser, true) - } - - // Is it a folded scalar? - if parser.buffer[parser.buffer_pos] == '>' && parser.flow_level == 0 { - return yaml_parser_fetch_block_scalar(parser, false) - } - - // Is it a single-quoted scalar? - if parser.buffer[parser.buffer_pos] == '\'' { - return yaml_parser_fetch_flow_scalar(parser, true) - } - - // Is it a double-quoted scalar? - if parser.buffer[parser.buffer_pos] == '"' { - return yaml_parser_fetch_flow_scalar(parser, false) - } - - // Is it a plain scalar? - // - // A plain scalar may start with any non-blank characters except - // - // '-', '?', ':', ',', '[', ']', '{', '}', - // '#', '&', '*', '!', '|', '>', '\'', '\"', - // '%', '@', '`'. - // - // In the block context (and, for the '-' indicator, in the flow context - // too), it may also start with the characters - // - // '-', '?', ':' - // - // if it is followed by a non-space character. - // - // The last rule is more restrictive than the specification requires. - // [Go] Make this logic more reasonable. - //switch parser.buffer[parser.buffer_pos] { - //case '-', '?', ':', ',', '?', '-', ',', ':', ']', '[', '}', '{', '&', '#', '!', '*', '>', '|', '"', '\'', '@', '%', '-', '`': - //} - if !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '-' || - parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':' || - parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '[' || - parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || - parser.buffer[parser.buffer_pos] == '}' || parser.buffer[parser.buffer_pos] == '#' || - parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '*' || - parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '|' || - parser.buffer[parser.buffer_pos] == '>' || parser.buffer[parser.buffer_pos] == '\'' || - parser.buffer[parser.buffer_pos] == '"' || parser.buffer[parser.buffer_pos] == '%' || - parser.buffer[parser.buffer_pos] == '@' || parser.buffer[parser.buffer_pos] == '`') || - (parser.buffer[parser.buffer_pos] == '-' && !is_blank(parser.buffer, parser.buffer_pos+1)) || - (parser.flow_level == 0 && - (parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':') && - !is_blankz(parser.buffer, parser.buffer_pos+1)) { - return yaml_parser_fetch_plain_scalar(parser) - } - - // If we don't determine the token type so far, it is an error. - return yaml_parser_set_scanner_error(parser, - "while scanning for the next token", parser.mark, - "found character that cannot start any token") -} - -// Check the list of potential simple keys and remove the positions that -// cannot contain simple keys anymore. -func yaml_parser_stale_simple_keys(parser *yaml_parser_t) bool { - // Check for a potential simple key for each flow level. - for i := range parser.simple_keys { - simple_key := &parser.simple_keys[i] - - // The specification requires that a simple key - // - // - is limited to a single line, - // - is shorter than 1024 characters. - if simple_key.possible && (simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index) { - - // Check if the potential simple key to be removed is required. - if simple_key.required { - return yaml_parser_set_scanner_error(parser, - "while scanning a simple key", simple_key.mark, - "could not find expected ':'") - } - simple_key.possible = false - } - } - return true -} - -// Check if a simple key may start at the current position and add it if -// needed. -func yaml_parser_save_simple_key(parser *yaml_parser_t) bool { - // A simple key is required at the current position if the scanner is in - // the block context and the current column coincides with the indentation - // level. - - required := parser.flow_level == 0 && parser.indent == parser.mark.column - - // A simple key is required only when it is the first token in the current - // line. Therefore it is always allowed. But we add a check anyway. - if required && !parser.simple_key_allowed { - panic("should not happen") - } - - // - // If the current position may start a simple key, save it. - // - if parser.simple_key_allowed { - simple_key := yaml_simple_key_t{ - possible: true, - required: required, - token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), - } - simple_key.mark = parser.mark - - if !yaml_parser_remove_simple_key(parser) { - return false - } - parser.simple_keys[len(parser.simple_keys)-1] = simple_key - } - return true -} - -// Remove a potential simple key at the current flow level. -func yaml_parser_remove_simple_key(parser *yaml_parser_t) bool { - i := len(parser.simple_keys) - 1 - if parser.simple_keys[i].possible { - // If the key is required, it is an error. - if parser.simple_keys[i].required { - return yaml_parser_set_scanner_error(parser, - "while scanning a simple key", parser.simple_keys[i].mark, - "could not find expected ':'") - } - } - // Remove the key from the stack. - parser.simple_keys[i].possible = false - return true -} - -// Increase the flow level and resize the simple key list if needed. -func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool { - // Reset the simple key on the next level. - parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) - - // Increase the flow level. - parser.flow_level++ - return true -} - -// Decrease the flow level. -func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool { - if parser.flow_level > 0 { - parser.flow_level-- - parser.simple_keys = parser.simple_keys[:len(parser.simple_keys)-1] - } - return true -} - -// Push the current indentation level to the stack and set the new level -// the current column is greater than the indentation level. In this case, -// append or insert the specified token into the token queue. -func yaml_parser_roll_indent(parser *yaml_parser_t, column, number int, typ yaml_token_type_t, mark yaml_mark_t) bool { - // In the flow context, do nothing. - if parser.flow_level > 0 { - return true - } - - if parser.indent < column { - // Push the current indentation level to the stack and set the new - // indentation level. - parser.indents = append(parser.indents, parser.indent) - parser.indent = column - - // Create a token and insert it into the queue. - token := yaml_token_t{ - typ: typ, - start_mark: mark, - end_mark: mark, - } - if number > -1 { - number -= parser.tokens_parsed - } - yaml_insert_token(parser, number, &token) - } - return true -} - -// Pop indentation levels from the indents stack until the current level -// becomes less or equal to the column. For each indentation level, append -// the BLOCK-END token. -func yaml_parser_unroll_indent(parser *yaml_parser_t, column int) bool { - // In the flow context, do nothing. - if parser.flow_level > 0 { - return true - } - - // Loop through the indentation levels in the stack. - for parser.indent > column { - // Create a token and append it to the queue. - token := yaml_token_t{ - typ: yaml_BLOCK_END_TOKEN, - start_mark: parser.mark, - end_mark: parser.mark, - } - yaml_insert_token(parser, -1, &token) - - // Pop the indentation level. - parser.indent = parser.indents[len(parser.indents)-1] - parser.indents = parser.indents[:len(parser.indents)-1] - } - return true -} - -// Initialize the scanner and produce the STREAM-START token. -func yaml_parser_fetch_stream_start(parser *yaml_parser_t) bool { - - // Set the initial indentation. - parser.indent = -1 - - // Initialize the simple key stack. - parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) - - // A simple key is allowed at the beginning of the stream. - parser.simple_key_allowed = true - - // We have started. - parser.stream_start_produced = true - - // Create the STREAM-START token and append it to the queue. - token := yaml_token_t{ - typ: yaml_STREAM_START_TOKEN, - start_mark: parser.mark, - end_mark: parser.mark, - encoding: parser.encoding, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the STREAM-END token and shut down the scanner. -func yaml_parser_fetch_stream_end(parser *yaml_parser_t) bool { - - // Force new line. - if parser.mark.column != 0 { - parser.mark.column = 0 - parser.mark.line++ - } - - // Reset the indentation level. - if !yaml_parser_unroll_indent(parser, -1) { - return false - } - - // Reset simple keys. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - parser.simple_key_allowed = false - - // Create the STREAM-END token and append it to the queue. - token := yaml_token_t{ - typ: yaml_STREAM_END_TOKEN, - start_mark: parser.mark, - end_mark: parser.mark, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce a VERSION-DIRECTIVE or TAG-DIRECTIVE token. -func yaml_parser_fetch_directive(parser *yaml_parser_t) bool { - // Reset the indentation level. - if !yaml_parser_unroll_indent(parser, -1) { - return false - } - - // Reset simple keys. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - parser.simple_key_allowed = false - - // Create the YAML-DIRECTIVE or TAG-DIRECTIVE token. - token := yaml_token_t{} - if !yaml_parser_scan_directive(parser, &token) { - return false - } - // Append the token to the queue. - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the DOCUMENT-START or DOCUMENT-END token. -func yaml_parser_fetch_document_indicator(parser *yaml_parser_t, typ yaml_token_type_t) bool { - // Reset the indentation level. - if !yaml_parser_unroll_indent(parser, -1) { - return false - } - - // Reset simple keys. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - parser.simple_key_allowed = false - - // Consume the token. - start_mark := parser.mark - - skip(parser) - skip(parser) - skip(parser) - - end_mark := parser.mark - - // Create the DOCUMENT-START or DOCUMENT-END token. - token := yaml_token_t{ - typ: typ, - start_mark: start_mark, - end_mark: end_mark, - } - // Append the token to the queue. - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the FLOW-SEQUENCE-START or FLOW-MAPPING-START token. -func yaml_parser_fetch_flow_collection_start(parser *yaml_parser_t, typ yaml_token_type_t) bool { - // The indicators '[' and '{' may start a simple key. - if !yaml_parser_save_simple_key(parser) { - return false - } - - // Increase the flow level. - if !yaml_parser_increase_flow_level(parser) { - return false - } - - // A simple key may follow the indicators '[' and '{'. - parser.simple_key_allowed = true - - // Consume the token. - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the FLOW-SEQUENCE-START of FLOW-MAPPING-START token. - token := yaml_token_t{ - typ: typ, - start_mark: start_mark, - end_mark: end_mark, - } - // Append the token to the queue. - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the FLOW-SEQUENCE-END or FLOW-MAPPING-END token. -func yaml_parser_fetch_flow_collection_end(parser *yaml_parser_t, typ yaml_token_type_t) bool { - // Reset any potential simple key on the current flow level. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - // Decrease the flow level. - if !yaml_parser_decrease_flow_level(parser) { - return false - } - - // No simple keys after the indicators ']' and '}'. - parser.simple_key_allowed = false - - // Consume the token. - - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the FLOW-SEQUENCE-END of FLOW-MAPPING-END token. - token := yaml_token_t{ - typ: typ, - start_mark: start_mark, - end_mark: end_mark, - } - // Append the token to the queue. - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the FLOW-ENTRY token. -func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool { - // Reset any potential simple keys on the current flow level. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - // Simple keys are allowed after ','. - parser.simple_key_allowed = true - - // Consume the token. - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the FLOW-ENTRY token and append it to the queue. - token := yaml_token_t{ - typ: yaml_FLOW_ENTRY_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the BLOCK-ENTRY token. -func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool { - // Check if the scanner is in the block context. - if parser.flow_level == 0 { - // Check if we are allowed to start a new entry. - if !parser.simple_key_allowed { - return yaml_parser_set_scanner_error(parser, "", parser.mark, - "block sequence entries are not allowed in this context") - } - // Add the BLOCK-SEQUENCE-START token if needed. - if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_SEQUENCE_START_TOKEN, parser.mark) { - return false - } - } else { - // It is an error for the '-' indicator to occur in the flow context, - // but we let the Parser detect and report about it because the Parser - // is able to point to the context. - } - - // Reset any potential simple keys on the current flow level. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - // Simple keys are allowed after '-'. - parser.simple_key_allowed = true - - // Consume the token. - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the BLOCK-ENTRY token and append it to the queue. - token := yaml_token_t{ - typ: yaml_BLOCK_ENTRY_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the KEY token. -func yaml_parser_fetch_key(parser *yaml_parser_t) bool { - - // In the block context, additional checks are required. - if parser.flow_level == 0 { - // Check if we are allowed to start a new key (not nessesary simple). - if !parser.simple_key_allowed { - return yaml_parser_set_scanner_error(parser, "", parser.mark, - "mapping keys are not allowed in this context") - } - // Add the BLOCK-MAPPING-START token if needed. - if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { - return false - } - } - - // Reset any potential simple keys on the current flow level. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - // Simple keys are allowed after '?' in the block context. - parser.simple_key_allowed = parser.flow_level == 0 - - // Consume the token. - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the KEY token and append it to the queue. - token := yaml_token_t{ - typ: yaml_KEY_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the VALUE token. -func yaml_parser_fetch_value(parser *yaml_parser_t) bool { - - simple_key := &parser.simple_keys[len(parser.simple_keys)-1] - - // Have we found a simple key? - if simple_key.possible { - // Create the KEY token and insert it into the queue. - token := yaml_token_t{ - typ: yaml_KEY_TOKEN, - start_mark: simple_key.mark, - end_mark: simple_key.mark, - } - yaml_insert_token(parser, simple_key.token_number-parser.tokens_parsed, &token) - - // In the block context, we may need to add the BLOCK-MAPPING-START token. - if !yaml_parser_roll_indent(parser, simple_key.mark.column, - simple_key.token_number, - yaml_BLOCK_MAPPING_START_TOKEN, simple_key.mark) { - return false - } - - // Remove the simple key. - simple_key.possible = false - - // A simple key cannot follow another simple key. - parser.simple_key_allowed = false - - } else { - // The ':' indicator follows a complex key. - - // In the block context, extra checks are required. - if parser.flow_level == 0 { - - // Check if we are allowed to start a complex value. - if !parser.simple_key_allowed { - return yaml_parser_set_scanner_error(parser, "", parser.mark, - "mapping values are not allowed in this context") - } - - // Add the BLOCK-MAPPING-START token if needed. - if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { - return false - } - } - - // Simple keys after ':' are allowed in the block context. - parser.simple_key_allowed = parser.flow_level == 0 - } - - // Consume the token. - start_mark := parser.mark - skip(parser) - end_mark := parser.mark - - // Create the VALUE token and append it to the queue. - token := yaml_token_t{ - typ: yaml_VALUE_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the ALIAS or ANCHOR token. -func yaml_parser_fetch_anchor(parser *yaml_parser_t, typ yaml_token_type_t) bool { - // An anchor or an alias could be a simple key. - if !yaml_parser_save_simple_key(parser) { - return false - } - - // A simple key cannot follow an anchor or an alias. - parser.simple_key_allowed = false - - // Create the ALIAS or ANCHOR token and append it to the queue. - var token yaml_token_t - if !yaml_parser_scan_anchor(parser, &token, typ) { - return false - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the TAG token. -func yaml_parser_fetch_tag(parser *yaml_parser_t) bool { - // A tag could be a simple key. - if !yaml_parser_save_simple_key(parser) { - return false - } - - // A simple key cannot follow a tag. - parser.simple_key_allowed = false - - // Create the TAG token and append it to the queue. - var token yaml_token_t - if !yaml_parser_scan_tag(parser, &token) { - return false - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the SCALAR(...,literal) or SCALAR(...,folded) tokens. -func yaml_parser_fetch_block_scalar(parser *yaml_parser_t, literal bool) bool { - // Remove any potential simple keys. - if !yaml_parser_remove_simple_key(parser) { - return false - } - - // A simple key may follow a block scalar. - parser.simple_key_allowed = true - - // Create the SCALAR token and append it to the queue. - var token yaml_token_t - if !yaml_parser_scan_block_scalar(parser, &token, literal) { - return false - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the SCALAR(...,single-quoted) or SCALAR(...,double-quoted) tokens. -func yaml_parser_fetch_flow_scalar(parser *yaml_parser_t, single bool) bool { - // A plain scalar could be a simple key. - if !yaml_parser_save_simple_key(parser) { - return false - } - - // A simple key cannot follow a flow scalar. - parser.simple_key_allowed = false - - // Create the SCALAR token and append it to the queue. - var token yaml_token_t - if !yaml_parser_scan_flow_scalar(parser, &token, single) { - return false - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Produce the SCALAR(...,plain) token. -func yaml_parser_fetch_plain_scalar(parser *yaml_parser_t) bool { - // A plain scalar could be a simple key. - if !yaml_parser_save_simple_key(parser) { - return false - } - - // A simple key cannot follow a flow scalar. - parser.simple_key_allowed = false - - // Create the SCALAR token and append it to the queue. - var token yaml_token_t - if !yaml_parser_scan_plain_scalar(parser, &token) { - return false - } - yaml_insert_token(parser, -1, &token) - return true -} - -// Eat whitespaces and comments until the next token is found. -func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { - - // Until the next token is not found. - for { - // Allow the BOM mark to start a line. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if parser.mark.column == 0 && is_bom(parser.buffer, parser.buffer_pos) { - skip(parser) - } - - // Eat whitespaces. - // Tabs are allowed: - // - in the flow context - // - in the block context, but not at the beginning of the line or - // after '-', '?', or ':' (complex value). - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for parser.buffer[parser.buffer_pos] == ' ' || ((parser.flow_level > 0 || !parser.simple_key_allowed) && parser.buffer[parser.buffer_pos] == '\t') { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Eat a comment until a line break. - if parser.buffer[parser.buffer_pos] == '#' { - for !is_breakz(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - } - - // If it is a line break, eat it. - if is_break(parser.buffer, parser.buffer_pos) { - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - skip_line(parser) - - // In the block context, a new line may start a simple key. - if parser.flow_level == 0 { - parser.simple_key_allowed = true - } - } else { - break // We have found a token. - } - } - - return true -} - -// Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. -// -// Scope: -// %YAML 1.1 # a comment \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { - // Eat '%'. - start_mark := parser.mark - skip(parser) - - // Scan the directive name. - var name []byte - if !yaml_parser_scan_directive_name(parser, start_mark, &name) { - return false - } - - // Is it a YAML directive? - if bytes.Equal(name, []byte("YAML")) { - // Scan the VERSION directive value. - var major, minor int8 - if !yaml_parser_scan_version_directive_value(parser, start_mark, &major, &minor) { - return false - } - end_mark := parser.mark - - // Create a VERSION-DIRECTIVE token. - *token = yaml_token_t{ - typ: yaml_VERSION_DIRECTIVE_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - major: major, - minor: minor, - } - - // Is it a TAG directive? - } else if bytes.Equal(name, []byte("TAG")) { - // Scan the TAG directive value. - var handle, prefix []byte - if !yaml_parser_scan_tag_directive_value(parser, start_mark, &handle, &prefix) { - return false - } - end_mark := parser.mark - - // Create a TAG-DIRECTIVE token. - *token = yaml_token_t{ - typ: yaml_TAG_DIRECTIVE_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - value: handle, - prefix: prefix, - } - - // Unknown directive. - } else { - yaml_parser_set_scanner_error(parser, "while scanning a directive", - start_mark, "found unknown directive name") - return false - } - - // Eat the rest of the line including any comments. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for is_blank(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - if parser.buffer[parser.buffer_pos] == '#' { - for !is_breakz(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - } - - // Check if we are at the end of the line. - if !is_breakz(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a directive", - start_mark, "did not find expected comment or line break") - return false - } - - // Eat a line break. - if is_break(parser.buffer, parser.buffer_pos) { - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - skip_line(parser) - } - - return true -} - -// Scan the directive name. -// -// Scope: -// %YAML 1.1 # a comment \n -// ^^^^ -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^ -// -func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { - // Consume the directive name. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - var s []byte - for is_alpha(parser.buffer, parser.buffer_pos) { - s = read(parser, s) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Check if the name is empty. - if len(s) == 0 { - yaml_parser_set_scanner_error(parser, "while scanning a directive", - start_mark, "could not find expected directive name") - return false - } - - // Check for an blank character after the name. - if !is_blankz(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a directive", - start_mark, "found unexpected non-alphabetical character") - return false - } - *name = s - return true -} - -// Scan the value of VERSION-DIRECTIVE. -// -// Scope: -// %YAML 1.1 # a comment \n -// ^^^^^^ -func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { - // Eat whitespaces. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - for is_blank(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Consume the major version number. - if !yaml_parser_scan_version_directive_number(parser, start_mark, major) { - return false - } - - // Eat '.'. - if parser.buffer[parser.buffer_pos] != '.' { - return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", - start_mark, "did not find expected digit or '.' character") - } - - skip(parser) - - // Consume the minor version number. - if !yaml_parser_scan_version_directive_number(parser, start_mark, minor) { - return false - } - return true -} - -const max_number_length = 2 - -// Scan the version number of VERSION-DIRECTIVE. -// -// Scope: -// %YAML 1.1 # a comment \n -// ^ -// %YAML 1.1 # a comment \n -// ^ -func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark yaml_mark_t, number *int8) bool { - - // Repeat while the next character is digit. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - var value, length int8 - for is_digit(parser.buffer, parser.buffer_pos) { - // Check if the number is too long. - length++ - if length > max_number_length { - return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", - start_mark, "found extremely long version number") - } - value = value*10 + int8(as_digit(parser.buffer, parser.buffer_pos)) - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Check if the number was present. - if length == 0 { - return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", - start_mark, "did not find expected version number") - } - *number = value - return true -} - -// Scan the value of a TAG-DIRECTIVE token. -// -// Scope: -// %TAG !yaml! tag:yaml.org,2002: \n -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { - var handle_value, prefix_value []byte - - // Eat whitespaces. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for is_blank(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Scan a handle. - if !yaml_parser_scan_tag_handle(parser, true, start_mark, &handle_value) { - return false - } - - // Expect a whitespace. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if !is_blank(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", - start_mark, "did not find expected whitespace") - return false - } - - // Eat whitespaces. - for is_blank(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Scan a prefix. - if !yaml_parser_scan_tag_uri(parser, true, nil, start_mark, &prefix_value) { - return false - } - - // Expect a whitespace or line break. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if !is_blankz(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", - start_mark, "did not find expected whitespace or line break") - return false - } - - *handle = handle_value - *prefix = prefix_value - return true -} - -func yaml_parser_scan_anchor(parser *yaml_parser_t, token *yaml_token_t, typ yaml_token_type_t) bool { - var s []byte - - // Eat the indicator character. - start_mark := parser.mark - skip(parser) - - // Consume the value. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for is_alpha(parser.buffer, parser.buffer_pos) { - s = read(parser, s) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - end_mark := parser.mark - - /* - * Check if length of the anchor is greater than 0 and it is followed by - * a whitespace character or one of the indicators: - * - * '?', ':', ',', ']', '}', '%', '@', '`'. - */ - - if len(s) == 0 || - !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '?' || - parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == ',' || - parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '}' || - parser.buffer[parser.buffer_pos] == '%' || parser.buffer[parser.buffer_pos] == '@' || - parser.buffer[parser.buffer_pos] == '`') { - context := "while scanning an alias" - if typ == yaml_ANCHOR_TOKEN { - context = "while scanning an anchor" - } - yaml_parser_set_scanner_error(parser, context, start_mark, - "did not find expected alphabetic or numeric character") - return false - } - - // Create a token. - *token = yaml_token_t{ - typ: typ, - start_mark: start_mark, - end_mark: end_mark, - value: s, - } - - return true -} - -/* - * Scan a TAG token. - */ - -func yaml_parser_scan_tag(parser *yaml_parser_t, token *yaml_token_t) bool { - var handle, suffix []byte - - start_mark := parser.mark - - // Check if the tag is in the canonical form. - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - - if parser.buffer[parser.buffer_pos+1] == '<' { - // Keep the handle as '' - - // Eat '!<' - skip(parser) - skip(parser) - - // Consume the tag value. - if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { - return false - } - - // Check for '>' and eat it. - if parser.buffer[parser.buffer_pos] != '>' { - yaml_parser_set_scanner_error(parser, "while scanning a tag", - start_mark, "did not find the expected '>'") - return false - } - - skip(parser) - } else { - // The tag has either the '!suffix' or the '!handle!suffix' form. - - // First, try to scan a handle. - if !yaml_parser_scan_tag_handle(parser, false, start_mark, &handle) { - return false - } - - // Check if it is, indeed, handle. - if handle[0] == '!' && len(handle) > 1 && handle[len(handle)-1] == '!' { - // Scan the suffix now. - if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { - return false - } - } else { - // It wasn't a handle after all. Scan the rest of the tag. - if !yaml_parser_scan_tag_uri(parser, false, handle, start_mark, &suffix) { - return false - } - - // Set the handle to '!'. - handle = []byte{'!'} - - // A special case: the '!' tag. Set the handle to '' and the - // suffix to '!'. - if len(suffix) == 0 { - handle, suffix = suffix, handle - } - } - } - - // Check the character which ends the tag. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if !is_blankz(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a tag", - start_mark, "did not find expected whitespace or line break") - return false - } - - end_mark := parser.mark - - // Create a token. - *token = yaml_token_t{ - typ: yaml_TAG_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - value: handle, - suffix: suffix, - } - return true -} - -// Scan a tag handle. -func yaml_parser_scan_tag_handle(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, handle *[]byte) bool { - // Check the initial '!' character. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if parser.buffer[parser.buffer_pos] != '!' { - yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "did not find expected '!'") - return false - } - - var s []byte - - // Copy the '!' character. - s = read(parser, s) - - // Copy all subsequent alphabetical and numerical characters. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - for is_alpha(parser.buffer, parser.buffer_pos) { - s = read(parser, s) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Check if the trailing character is '!' and copy it. - if parser.buffer[parser.buffer_pos] == '!' { - s = read(parser, s) - } else { - // It's either the '!' tag or not really a tag handle. If it's a %TAG - // directive, it's an error. If it's a tag token, it must be a part of URI. - if directive && string(s) != "!" { - yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "did not find expected '!'") - return false - } - } - - *handle = s - return true -} - -// Scan a tag. -func yaml_parser_scan_tag_uri(parser *yaml_parser_t, directive bool, head []byte, start_mark yaml_mark_t, uri *[]byte) bool { - //size_t length = head ? strlen((char *)head) : 0 - var s []byte - hasTag := len(head) > 0 - - // Copy the head if needed. - // - // Note that we don't copy the leading '!' character. - if len(head) > 1 { - s = append(s, head[1:]...) - } - - // Scan the tag. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - // The set of characters that may appear in URI is as follows: - // - // '0'-'9', 'A'-'Z', 'a'-'z', '_', '-', ';', '/', '?', ':', '@', '&', - // '=', '+', '$', ',', '.', '!', '~', '*', '\'', '(', ')', '[', ']', - // '%'. - // [Go] Convert this into more reasonable logic. - for is_alpha(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == ';' || - parser.buffer[parser.buffer_pos] == '/' || parser.buffer[parser.buffer_pos] == '?' || - parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == '@' || - parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '=' || - parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '$' || - parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '.' || - parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '~' || - parser.buffer[parser.buffer_pos] == '*' || parser.buffer[parser.buffer_pos] == '\'' || - parser.buffer[parser.buffer_pos] == '(' || parser.buffer[parser.buffer_pos] == ')' || - parser.buffer[parser.buffer_pos] == '[' || parser.buffer[parser.buffer_pos] == ']' || - parser.buffer[parser.buffer_pos] == '%' { - // Check if it is a URI-escape sequence. - if parser.buffer[parser.buffer_pos] == '%' { - if !yaml_parser_scan_uri_escapes(parser, directive, start_mark, &s) { - return false - } - } else { - s = read(parser, s) - } - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - hasTag = true - } - - if !hasTag { - yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "did not find expected tag URI") - return false - } - *uri = s - return true -} - -// Decode an URI-escape sequence corresponding to a single UTF-8 character. -func yaml_parser_scan_uri_escapes(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, s *[]byte) bool { - - // Decode the required number of characters. - w := 1024 - for w > 0 { - // Check for a URI-escaped octet. - if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { - return false - } - - if !(parser.buffer[parser.buffer_pos] == '%' && - is_hex(parser.buffer, parser.buffer_pos+1) && - is_hex(parser.buffer, parser.buffer_pos+2)) { - return yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "did not find URI escaped octet") - } - - // Get the octet. - octet := byte((as_hex(parser.buffer, parser.buffer_pos+1) << 4) + as_hex(parser.buffer, parser.buffer_pos+2)) - - // If it is the leading octet, determine the length of the UTF-8 sequence. - if w == 1024 { - w = width(octet) - if w == 0 { - return yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "found an incorrect leading UTF-8 octet") - } - } else { - // Check if the trailing octet is correct. - if octet&0xC0 != 0x80 { - return yaml_parser_set_scanner_tag_error(parser, directive, - start_mark, "found an incorrect trailing UTF-8 octet") - } - } - - // Copy the octet and move the pointers. - *s = append(*s, octet) - skip(parser) - skip(parser) - skip(parser) - w-- - } - return true -} - -// Scan a block scalar. -func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, literal bool) bool { - // Eat the indicator '|' or '>'. - start_mark := parser.mark - skip(parser) - - // Scan the additional block scalar indicators. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - // Check for a chomping indicator. - var chomping, increment int - if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { - // Set the chomping method and eat the indicator. - if parser.buffer[parser.buffer_pos] == '+' { - chomping = +1 - } else { - chomping = -1 - } - skip(parser) - - // Check for an indentation indicator. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if is_digit(parser.buffer, parser.buffer_pos) { - // Check that the indentation is greater than 0. - if parser.buffer[parser.buffer_pos] == '0' { - yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found an indentation indicator equal to 0") - return false - } - - // Get the indentation level and eat the indicator. - increment = as_digit(parser.buffer, parser.buffer_pos) - skip(parser) - } - - } else if is_digit(parser.buffer, parser.buffer_pos) { - // Do the same as above, but in the opposite order. - - if parser.buffer[parser.buffer_pos] == '0' { - yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found an indentation indicator equal to 0") - return false - } - increment = as_digit(parser.buffer, parser.buffer_pos) - skip(parser) - - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { - if parser.buffer[parser.buffer_pos] == '+' { - chomping = +1 - } else { - chomping = -1 - } - skip(parser) - } - } - - // Eat whitespaces and comments to the end of the line. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - for is_blank(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - if parser.buffer[parser.buffer_pos] == '#' { - for !is_breakz(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - } - - // Check if we are at the end of the line. - if !is_breakz(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "did not find expected comment or line break") - return false - } - - // Eat a line break. - if is_break(parser.buffer, parser.buffer_pos) { - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - skip_line(parser) - } - - end_mark := parser.mark - - // Set the indentation level if it was specified. - var indent int - if increment > 0 { - if parser.indent >= 0 { - indent = parser.indent + increment - } else { - indent = increment - } - } - - // Scan the leading line breaks and determine the indentation level if needed. - var s, leading_break, trailing_breaks []byte - if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { - return false - } - - // Scan the block scalar content. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - var leading_blank, trailing_blank bool - for parser.mark.column == indent && !is_z(parser.buffer, parser.buffer_pos) { - // We are at the beginning of a non-empty line. - - // Is it a trailing whitespace? - trailing_blank = is_blank(parser.buffer, parser.buffer_pos) - - // Check if we need to fold the leading line break. - if !literal && !leading_blank && !trailing_blank && len(leading_break) > 0 && leading_break[0] == '\n' { - // Do we need to join the lines by space? - if len(trailing_breaks) == 0 { - s = append(s, ' ') - } - } else { - s = append(s, leading_break...) - } - leading_break = leading_break[:0] - - // Append the remaining line breaks. - s = append(s, trailing_breaks...) - trailing_breaks = trailing_breaks[:0] - - // Is it a leading whitespace? - leading_blank = is_blank(parser.buffer, parser.buffer_pos) - - // Consume the current line. - for !is_breakz(parser.buffer, parser.buffer_pos) { - s = read(parser, s) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Consume the line break. - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - - leading_break = read_line(parser, leading_break) - - // Eat the following indentation spaces and line breaks. - if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { - return false - } - } - - // Chomp the tail. - if chomping != -1 { - s = append(s, leading_break...) - } - if chomping == 1 { - s = append(s, trailing_breaks...) - } - - // Create a token. - *token = yaml_token_t{ - typ: yaml_SCALAR_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - value: s, - style: yaml_LITERAL_SCALAR_STYLE, - } - if !literal { - token.style = yaml_FOLDED_SCALAR_STYLE - } - return true -} - -// Scan indentation spaces and line breaks for a block scalar. Determine the -// indentation level if needed. -func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, breaks *[]byte, start_mark yaml_mark_t, end_mark *yaml_mark_t) bool { - *end_mark = parser.mark - - // Eat the indentation spaces and line breaks. - max_indent := 0 - for { - // Eat the indentation spaces. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - for (*indent == 0 || parser.mark.column < *indent) && is_space(parser.buffer, parser.buffer_pos) { - skip(parser) - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - if parser.mark.column > max_indent { - max_indent = parser.mark.column - } - - // Check for a tab character messing the indentation. - if (*indent == 0 || parser.mark.column < *indent) && is_tab(parser.buffer, parser.buffer_pos) { - return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", - start_mark, "found a tab character where an indentation space is expected") - } - - // Have we found a non-empty line? - if !is_break(parser.buffer, parser.buffer_pos) { - break - } - - // Consume the line break. - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - // [Go] Should really be returning breaks instead. - *breaks = read_line(parser, *breaks) - *end_mark = parser.mark - } - - // Determine the indentation level if needed. - if *indent == 0 { - *indent = max_indent - if *indent < parser.indent+1 { - *indent = parser.indent + 1 - } - if *indent < 1 { - *indent = 1 - } - } - return true -} - -// Scan a quoted scalar. -func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, single bool) bool { - // Eat the left quote. - start_mark := parser.mark - skip(parser) - - // Consume the content of the quoted scalar. - var s, leading_break, trailing_breaks, whitespaces []byte - for { - // Check that there are no document indicators at the beginning of the line. - if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { - return false - } - - if parser.mark.column == 0 && - ((parser.buffer[parser.buffer_pos+0] == '-' && - parser.buffer[parser.buffer_pos+1] == '-' && - parser.buffer[parser.buffer_pos+2] == '-') || - (parser.buffer[parser.buffer_pos+0] == '.' && - parser.buffer[parser.buffer_pos+1] == '.' && - parser.buffer[parser.buffer_pos+2] == '.')) && - is_blankz(parser.buffer, parser.buffer_pos+3) { - yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", - start_mark, "found unexpected document indicator") - return false - } - - // Check for EOF. - if is_z(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", - start_mark, "found unexpected end of stream") - return false - } - - // Consume non-blank characters. - leading_blanks := false - for !is_blankz(parser.buffer, parser.buffer_pos) { - if single && parser.buffer[parser.buffer_pos] == '\'' && parser.buffer[parser.buffer_pos+1] == '\'' { - // Is is an escaped single quote. - s = append(s, '\'') - skip(parser) - skip(parser) - - } else if single && parser.buffer[parser.buffer_pos] == '\'' { - // It is a right single quote. - break - } else if !single && parser.buffer[parser.buffer_pos] == '"' { - // It is a right double quote. - break - - } else if !single && parser.buffer[parser.buffer_pos] == '\\' && is_break(parser.buffer, parser.buffer_pos+1) { - // It is an escaped line break. - if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { - return false - } - skip(parser) - skip_line(parser) - leading_blanks = true - break - - } else if !single && parser.buffer[parser.buffer_pos] == '\\' { - // It is an escape sequence. - code_length := 0 - - // Check the escape character. - switch parser.buffer[parser.buffer_pos+1] { - case '0': - s = append(s, 0) - case 'a': - s = append(s, '\x07') - case 'b': - s = append(s, '\x08') - case 't', '\t': - s = append(s, '\x09') - case 'n': - s = append(s, '\x0A') - case 'v': - s = append(s, '\x0B') - case 'f': - s = append(s, '\x0C') - case 'r': - s = append(s, '\x0D') - case 'e': - s = append(s, '\x1B') - case ' ': - s = append(s, '\x20') - case '"': - s = append(s, '"') - case '\'': - s = append(s, '\'') - case '\\': - s = append(s, '\\') - case 'N': // NEL (#x85) - s = append(s, '\xC2') - s = append(s, '\x85') - case '_': // #xA0 - s = append(s, '\xC2') - s = append(s, '\xA0') - case 'L': // LS (#x2028) - s = append(s, '\xE2') - s = append(s, '\x80') - s = append(s, '\xA8') - case 'P': // PS (#x2029) - s = append(s, '\xE2') - s = append(s, '\x80') - s = append(s, '\xA9') - case 'x': - code_length = 2 - case 'u': - code_length = 4 - case 'U': - code_length = 8 - default: - yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", - start_mark, "found unknown escape character") - return false - } - - skip(parser) - skip(parser) - - // Consume an arbitrary escape code. - if code_length > 0 { - var value int - - // Scan the character value. - if parser.unread < code_length && !yaml_parser_update_buffer(parser, code_length) { - return false - } - for k := 0; k < code_length; k++ { - if !is_hex(parser.buffer, parser.buffer_pos+k) { - yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", - start_mark, "did not find expected hexdecimal number") - return false - } - value = (value << 4) + as_hex(parser.buffer, parser.buffer_pos+k) - } - - // Check the value and write the character. - if (value >= 0xD800 && value <= 0xDFFF) || value > 0x10FFFF { - yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", - start_mark, "found invalid Unicode character escape code") - return false - } - if value <= 0x7F { - s = append(s, byte(value)) - } else if value <= 0x7FF { - s = append(s, byte(0xC0+(value>>6))) - s = append(s, byte(0x80+(value&0x3F))) - } else if value <= 0xFFFF { - s = append(s, byte(0xE0+(value>>12))) - s = append(s, byte(0x80+((value>>6)&0x3F))) - s = append(s, byte(0x80+(value&0x3F))) - } else { - s = append(s, byte(0xF0+(value>>18))) - s = append(s, byte(0x80+((value>>12)&0x3F))) - s = append(s, byte(0x80+((value>>6)&0x3F))) - s = append(s, byte(0x80+(value&0x3F))) - } - - // Advance the pointer. - for k := 0; k < code_length; k++ { - skip(parser) - } - } - } else { - // It is a non-escaped non-blank character. - s = read(parser, s) - } - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - } - - // Check if we are at the end of the scalar. - if single { - if parser.buffer[parser.buffer_pos] == '\'' { - break - } - } else { - if parser.buffer[parser.buffer_pos] == '"' { - break - } - } - - // Consume blank characters. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { - if is_blank(parser.buffer, parser.buffer_pos) { - // Consume a space or a tab character. - if !leading_blanks { - whitespaces = read(parser, whitespaces) - } else { - skip(parser) - } - } else { - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - - // Check if it is a first line break. - if !leading_blanks { - whitespaces = whitespaces[:0] - leading_break = read_line(parser, leading_break) - leading_blanks = true - } else { - trailing_breaks = read_line(parser, trailing_breaks) - } - } - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Join the whitespaces or fold line breaks. - if leading_blanks { - // Do we need to fold line breaks? - if len(leading_break) > 0 && leading_break[0] == '\n' { - if len(trailing_breaks) == 0 { - s = append(s, ' ') - } else { - s = append(s, trailing_breaks...) - } - } else { - s = append(s, leading_break...) - s = append(s, trailing_breaks...) - } - trailing_breaks = trailing_breaks[:0] - leading_break = leading_break[:0] - } else { - s = append(s, whitespaces...) - whitespaces = whitespaces[:0] - } - } - - // Eat the right quote. - skip(parser) - end_mark := parser.mark - - // Create a token. - *token = yaml_token_t{ - typ: yaml_SCALAR_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - value: s, - style: yaml_SINGLE_QUOTED_SCALAR_STYLE, - } - if !single { - token.style = yaml_DOUBLE_QUOTED_SCALAR_STYLE - } - return true -} - -// Scan a plain scalar. -func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) bool { - - var s, leading_break, trailing_breaks, whitespaces []byte - var leading_blanks bool - var indent = parser.indent + 1 - - start_mark := parser.mark - end_mark := parser.mark - - // Consume the content of the plain scalar. - for { - // Check for a document indicator. - if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { - return false - } - if parser.mark.column == 0 && - ((parser.buffer[parser.buffer_pos+0] == '-' && - parser.buffer[parser.buffer_pos+1] == '-' && - parser.buffer[parser.buffer_pos+2] == '-') || - (parser.buffer[parser.buffer_pos+0] == '.' && - parser.buffer[parser.buffer_pos+1] == '.' && - parser.buffer[parser.buffer_pos+2] == '.')) && - is_blankz(parser.buffer, parser.buffer_pos+3) { - break - } - - // Check for a comment. - if parser.buffer[parser.buffer_pos] == '#' { - break - } - - // Consume non-blank characters. - for !is_blankz(parser.buffer, parser.buffer_pos) { - - // Check for 'x:x' in the flow context. TODO: Fix the test "spec-08-13". - if parser.flow_level > 0 && - parser.buffer[parser.buffer_pos] == ':' && - !is_blankz(parser.buffer, parser.buffer_pos+1) { - yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", - start_mark, "found unexpected ':'") - return false - } - - // Check for indicators that may end a plain scalar. - if (parser.buffer[parser.buffer_pos] == ':' && is_blankz(parser.buffer, parser.buffer_pos+1)) || - (parser.flow_level > 0 && - (parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == ':' || - parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == '[' || - parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || - parser.buffer[parser.buffer_pos] == '}')) { - break - } - - // Check if we need to join whitespaces and breaks. - if leading_blanks || len(whitespaces) > 0 { - if leading_blanks { - // Do we need to fold line breaks? - if leading_break[0] == '\n' { - if len(trailing_breaks) == 0 { - s = append(s, ' ') - } else { - s = append(s, trailing_breaks...) - } - } else { - s = append(s, leading_break...) - s = append(s, trailing_breaks...) - } - trailing_breaks = trailing_breaks[:0] - leading_break = leading_break[:0] - leading_blanks = false - } else { - s = append(s, whitespaces...) - whitespaces = whitespaces[:0] - } - } - - // Copy the character. - s = read(parser, s) - - end_mark = parser.mark - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - } - - // Is it the end? - if !(is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos)) { - break - } - - // Consume blank characters. - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - - for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { - if is_blank(parser.buffer, parser.buffer_pos) { - - // Check for tab character that abuse indentation. - if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) { - yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", - start_mark, "found a tab character that violate indentation") - return false - } - - // Consume a space or a tab character. - if !leading_blanks { - whitespaces = read(parser, whitespaces) - } else { - skip(parser) - } - } else { - if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { - return false - } - - // Check if it is a first line break. - if !leading_blanks { - whitespaces = whitespaces[:0] - leading_break = read_line(parser, leading_break) - leading_blanks = true - } else { - trailing_breaks = read_line(parser, trailing_breaks) - } - } - if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { - return false - } - } - - // Check indentation level. - if parser.flow_level == 0 && parser.mark.column < indent { - break - } - } - - // Create a token. - *token = yaml_token_t{ - typ: yaml_SCALAR_TOKEN, - start_mark: start_mark, - end_mark: end_mark, - value: s, - style: yaml_PLAIN_SCALAR_STYLE, - } - - // Note that we change the 'simple_key_allowed' flag. - if leading_blanks { - parser.simple_key_allowed = true - } - return true -} diff --git a/vendor/gopkg.in/yaml.v2/sorter.go b/vendor/gopkg.in/yaml.v2/sorter.go deleted file mode 100644 index 5958822..0000000 --- a/vendor/gopkg.in/yaml.v2/sorter.go +++ /dev/null @@ -1,104 +0,0 @@ -package yaml - -import ( - "reflect" - "unicode" -) - -type keyList []reflect.Value - -func (l keyList) Len() int { return len(l) } -func (l keyList) Swap(i, j int) { l[i], l[j] = l[j], l[i] } -func (l keyList) Less(i, j int) bool { - a := l[i] - b := l[j] - ak := a.Kind() - bk := b.Kind() - for (ak == reflect.Interface || ak == reflect.Ptr) && !a.IsNil() { - a = a.Elem() - ak = a.Kind() - } - for (bk == reflect.Interface || bk == reflect.Ptr) && !b.IsNil() { - b = b.Elem() - bk = b.Kind() - } - af, aok := keyFloat(a) - bf, bok := keyFloat(b) - if aok && bok { - if af != bf { - return af < bf - } - if ak != bk { - return ak < bk - } - return numLess(a, b) - } - if ak != reflect.String || bk != reflect.String { - return ak < bk - } - ar, br := []rune(a.String()), []rune(b.String()) - for i := 0; i < len(ar) && i < len(br); i++ { - if ar[i] == br[i] { - continue - } - al := unicode.IsLetter(ar[i]) - bl := unicode.IsLetter(br[i]) - if al && bl { - return ar[i] < br[i] - } - if al || bl { - return bl - } - var ai, bi int - var an, bn int64 - for ai = i; ai < len(ar) && unicode.IsDigit(ar[ai]); ai++ { - an = an*10 + int64(ar[ai]-'0') - } - for bi = i; bi < len(br) && unicode.IsDigit(br[bi]); bi++ { - bn = bn*10 + int64(br[bi]-'0') - } - if an != bn { - return an < bn - } - if ai != bi { - return ai < bi - } - return ar[i] < br[i] - } - return len(ar) < len(br) -} - -// keyFloat returns a float value for v if it is a number/bool -// and whether it is a number/bool or not. -func keyFloat(v reflect.Value) (f float64, ok bool) { - switch v.Kind() { - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return float64(v.Int()), true - case reflect.Float32, reflect.Float64: - return v.Float(), true - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return float64(v.Uint()), true - case reflect.Bool: - if v.Bool() { - return 1, true - } - return 0, true - } - return 0, false -} - -// numLess returns whether a < b. -// a and b must necessarily have the same kind. -func numLess(a, b reflect.Value) bool { - switch a.Kind() { - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return a.Int() < b.Int() - case reflect.Float32, reflect.Float64: - return a.Float() < b.Float() - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return a.Uint() < b.Uint() - case reflect.Bool: - return !a.Bool() && b.Bool() - } - panic("not a number") -} diff --git a/vendor/gopkg.in/yaml.v2/writerc.go b/vendor/gopkg.in/yaml.v2/writerc.go deleted file mode 100644 index 190362f..0000000 --- a/vendor/gopkg.in/yaml.v2/writerc.go +++ /dev/null @@ -1,89 +0,0 @@ -package yaml - -// Set the writer error and return false. -func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { - emitter.error = yaml_WRITER_ERROR - emitter.problem = problem - return false -} - -// Flush the output buffer. -func yaml_emitter_flush(emitter *yaml_emitter_t) bool { - if emitter.write_handler == nil { - panic("write handler not set") - } - - // Check if the buffer is empty. - if emitter.buffer_pos == 0 { - return true - } - - // If the output encoding is UTF-8, we don't need to recode the buffer. - if emitter.encoding == yaml_UTF8_ENCODING { - if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { - return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) - } - emitter.buffer_pos = 0 - return true - } - - // Recode the buffer into the raw buffer. - var low, high int - if emitter.encoding == yaml_UTF16LE_ENCODING { - low, high = 0, 1 - } else { - high, low = 1, 0 - } - - pos := 0 - for pos < emitter.buffer_pos { - // See the "reader.c" code for more details on UTF-8 encoding. Note - // that we assume that the buffer contains a valid UTF-8 sequence. - - // Read the next UTF-8 character. - octet := emitter.buffer[pos] - - var w int - var value rune - switch { - case octet&0x80 == 0x00: - w, value = 1, rune(octet&0x7F) - case octet&0xE0 == 0xC0: - w, value = 2, rune(octet&0x1F) - case octet&0xF0 == 0xE0: - w, value = 3, rune(octet&0x0F) - case octet&0xF8 == 0xF0: - w, value = 4, rune(octet&0x07) - } - for k := 1; k < w; k++ { - octet = emitter.buffer[pos+k] - value = (value << 6) + (rune(octet) & 0x3F) - } - pos += w - - // Write the character. - if value < 0x10000 { - var b [2]byte - b[high] = byte(value >> 8) - b[low] = byte(value & 0xFF) - emitter.raw_buffer = append(emitter.raw_buffer, b[0], b[1]) - } else { - // Write the character using a surrogate pair (check "reader.c"). - var b [4]byte - value -= 0x10000 - b[high] = byte(0xD8 + (value >> 18)) - b[low] = byte((value >> 10) & 0xFF) - b[high+2] = byte(0xDC + ((value >> 8) & 0xFF)) - b[low+2] = byte(value & 0xFF) - emitter.raw_buffer = append(emitter.raw_buffer, b[0], b[1], b[2], b[3]) - } - } - - // Write the raw buffer. - if err := emitter.write_handler(emitter, emitter.raw_buffer); err != nil { - return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) - } - emitter.buffer_pos = 0 - emitter.raw_buffer = emitter.raw_buffer[:0] - return true -} diff --git a/vendor/gopkg.in/yaml.v2/yaml.go b/vendor/gopkg.in/yaml.v2/yaml.go deleted file mode 100644 index 5e3c2da..0000000 --- a/vendor/gopkg.in/yaml.v2/yaml.go +++ /dev/null @@ -1,357 +0,0 @@ -// Package yaml implements YAML support for the Go language. -// -// Source code and other details for the project are available at GitHub: -// -// https://github.com/go-yaml/yaml -// -package yaml - -import ( - "errors" - "fmt" - "reflect" - "strings" - "sync" -) - -// MapSlice encodes and decodes as a YAML map. -// The order of keys is preserved when encoding and decoding. -type MapSlice []MapItem - -// MapItem is an item in a MapSlice. -type MapItem struct { - Key, Value interface{} -} - -// The Unmarshaler interface may be implemented by types to customize their -// behavior when being unmarshaled from a YAML document. The UnmarshalYAML -// method receives a function that may be called to unmarshal the original -// YAML value into a field or variable. It is safe to call the unmarshal -// function parameter more than once if necessary. -type Unmarshaler interface { - UnmarshalYAML(unmarshal func(interface{}) error) error -} - -// The Marshaler interface may be implemented by types to customize their -// behavior when being marshaled into a YAML document. The returned value -// is marshaled in place of the original value implementing Marshaler. -// -// If an error is returned by MarshalYAML, the marshaling procedure stops -// and returns with the provided error. -type Marshaler interface { - MarshalYAML() (interface{}, error) -} - -// Unmarshal decodes the first document found within the in byte slice -// and assigns decoded values into the out value. -// -// Maps and pointers (to a struct, string, int, etc) are accepted as out -// values. If an internal pointer within a struct is not initialized, -// the yaml package will initialize it if necessary for unmarshalling -// the provided data. The out parameter must not be nil. -// -// The type of the decoded values should be compatible with the respective -// values in out. If one or more values cannot be decoded due to a type -// mismatches, decoding continues partially until the end of the YAML -// content, and a *yaml.TypeError is returned with details for all -// missed values. -// -// Struct fields are only unmarshalled if they are exported (have an -// upper case first letter), and are unmarshalled using the field name -// lowercased as the default key. Custom keys may be defined via the -// "yaml" name in the field tag: the content preceding the first comma -// is used as the key, and the following comma-separated options are -// used to tweak the marshalling process (see Marshal). -// Conflicting names result in a runtime error. -// -// For example: -// -// type T struct { -// F int `yaml:"a,omitempty"` -// B int -// } -// var t T -// yaml.Unmarshal([]byte("a: 1\nb: 2"), &t) -// -// See the documentation of Marshal for the format of tags and a list of -// supported tag options. -// -func Unmarshal(in []byte, out interface{}) (err error) { - return unmarshal(in, out, false) -} - -// UnmarshalStrict is like Unmarshal except that any fields that are found -// in the data that do not have corresponding struct members will result in -// an error. -func UnmarshalStrict(in []byte, out interface{}) (err error) { - return unmarshal(in, out, true) -} - -func unmarshal(in []byte, out interface{}, strict bool) (err error) { - defer handleErr(&err) - d := newDecoder(strict) - p := newParser(in) - defer p.destroy() - node := p.parse() - if node != nil { - v := reflect.ValueOf(out) - if v.Kind() == reflect.Ptr && !v.IsNil() { - v = v.Elem() - } - d.unmarshal(node, v) - } - if len(d.terrors) > 0 { - return &TypeError{d.terrors} - } - return nil -} - -// Marshal serializes the value provided into a YAML document. The structure -// of the generated document will reflect the structure of the value itself. -// Maps and pointers (to struct, string, int, etc) are accepted as the in value. -// -// Struct fields are only unmarshalled if they are exported (have an upper case -// first letter), and are unmarshalled using the field name lowercased as the -// default key. Custom keys may be defined via the "yaml" name in the field -// tag: the content preceding the first comma is used as the key, and the -// following comma-separated options are used to tweak the marshalling process. -// Conflicting names result in a runtime error. -// -// The field tag format accepted is: -// -// `(...) yaml:"[][,[,]]" (...)` -// -// The following flags are currently supported: -// -// omitempty Only include the field if it's not set to the zero -// value for the type or to empty slices or maps. -// Does not apply to zero valued structs. -// -// flow Marshal using a flow style (useful for structs, -// sequences and maps). -// -// inline Inline the field, which must be a struct or a map, -// causing all of its fields or keys to be processed as if -// they were part of the outer struct. For maps, keys must -// not conflict with the yaml keys of other struct fields. -// -// In addition, if the key is "-", the field is ignored. -// -// For example: -// -// type T struct { -// F int `yaml:"a,omitempty"` -// B int -// } -// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n" -// yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n" -// -func Marshal(in interface{}) (out []byte, err error) { - defer handleErr(&err) - e := newEncoder() - defer e.destroy() - e.marshal("", reflect.ValueOf(in)) - e.finish() - out = e.out - return -} - -func handleErr(err *error) { - if v := recover(); v != nil { - if e, ok := v.(yamlError); ok { - *err = e.err - } else { - panic(v) - } - } -} - -type yamlError struct { - err error -} - -func fail(err error) { - panic(yamlError{err}) -} - -func failf(format string, args ...interface{}) { - panic(yamlError{fmt.Errorf("yaml: "+format, args...)}) -} - -// A TypeError is returned by Unmarshal when one or more fields in -// the YAML document cannot be properly decoded into the requested -// types. When this error is returned, the value is still -// unmarshaled partially. -type TypeError struct { - Errors []string -} - -func (e *TypeError) Error() string { - return fmt.Sprintf("yaml: unmarshal errors:\n %s", strings.Join(e.Errors, "\n ")) -} - -// -------------------------------------------------------------------------- -// Maintain a mapping of keys to structure field indexes - -// The code in this section was copied from mgo/bson. - -// structInfo holds details for the serialization of fields of -// a given struct. -type structInfo struct { - FieldsMap map[string]fieldInfo - FieldsList []fieldInfo - - // InlineMap is the number of the field in the struct that - // contains an ,inline map, or -1 if there's none. - InlineMap int -} - -type fieldInfo struct { - Key string - Num int - OmitEmpty bool - Flow bool - - // Inline holds the field index if the field is part of an inlined struct. - Inline []int -} - -var structMap = make(map[reflect.Type]*structInfo) -var fieldMapMutex sync.RWMutex - -func getStructInfo(st reflect.Type) (*structInfo, error) { - fieldMapMutex.RLock() - sinfo, found := structMap[st] - fieldMapMutex.RUnlock() - if found { - return sinfo, nil - } - - n := st.NumField() - fieldsMap := make(map[string]fieldInfo) - fieldsList := make([]fieldInfo, 0, n) - inlineMap := -1 - for i := 0; i != n; i++ { - field := st.Field(i) - if field.PkgPath != "" && !field.Anonymous { - continue // Private field - } - - info := fieldInfo{Num: i} - - tag := field.Tag.Get("yaml") - if tag == "" && strings.Index(string(field.Tag), ":") < 0 { - tag = string(field.Tag) - } - if tag == "-" { - continue - } - - inline := false - fields := strings.Split(tag, ",") - if len(fields) > 1 { - for _, flag := range fields[1:] { - switch flag { - case "omitempty": - info.OmitEmpty = true - case "flow": - info.Flow = true - case "inline": - inline = true - default: - return nil, errors.New(fmt.Sprintf("Unsupported flag %q in tag %q of type %s", flag, tag, st)) - } - } - tag = fields[0] - } - - if inline { - switch field.Type.Kind() { - case reflect.Map: - if inlineMap >= 0 { - return nil, errors.New("Multiple ,inline maps in struct " + st.String()) - } - if field.Type.Key() != reflect.TypeOf("") { - return nil, errors.New("Option ,inline needs a map with string keys in struct " + st.String()) - } - inlineMap = info.Num - case reflect.Struct: - sinfo, err := getStructInfo(field.Type) - if err != nil { - return nil, err - } - for _, finfo := range sinfo.FieldsList { - if _, found := fieldsMap[finfo.Key]; found { - msg := "Duplicated key '" + finfo.Key + "' in struct " + st.String() - return nil, errors.New(msg) - } - if finfo.Inline == nil { - finfo.Inline = []int{i, finfo.Num} - } else { - finfo.Inline = append([]int{i}, finfo.Inline...) - } - fieldsMap[finfo.Key] = finfo - fieldsList = append(fieldsList, finfo) - } - default: - //return nil, errors.New("Option ,inline needs a struct value or map field") - return nil, errors.New("Option ,inline needs a struct value field") - } - continue - } - - if tag != "" { - info.Key = tag - } else { - info.Key = strings.ToLower(field.Name) - } - - if _, found = fieldsMap[info.Key]; found { - msg := "Duplicated key '" + info.Key + "' in struct " + st.String() - return nil, errors.New(msg) - } - - fieldsList = append(fieldsList, info) - fieldsMap[info.Key] = info - } - - sinfo = &structInfo{fieldsMap, fieldsList, inlineMap} - - fieldMapMutex.Lock() - structMap[st] = sinfo - fieldMapMutex.Unlock() - return sinfo, nil -} - -func isZero(v reflect.Value) bool { - switch v.Kind() { - case reflect.String: - return len(v.String()) == 0 - case reflect.Interface, reflect.Ptr: - return v.IsNil() - case reflect.Slice: - return v.Len() == 0 - case reflect.Map: - return v.Len() == 0 - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Bool: - return !v.Bool() - case reflect.Struct: - vt := v.Type() - for i := v.NumField() - 1; i >= 0; i-- { - if vt.Field(i).PkgPath != "" { - continue // Private field - } - if !isZero(v.Field(i)) { - return false - } - } - return true - } - return false -} diff --git a/vendor/gopkg.in/yaml.v2/yamlh.go b/vendor/gopkg.in/yaml.v2/yamlh.go deleted file mode 100644 index 3caeca0..0000000 --- a/vendor/gopkg.in/yaml.v2/yamlh.go +++ /dev/null @@ -1,716 +0,0 @@ -package yaml - -import ( - "io" -) - -// The version directive data. -type yaml_version_directive_t struct { - major int8 // The major version number. - minor int8 // The minor version number. -} - -// The tag directive data. -type yaml_tag_directive_t struct { - handle []byte // The tag handle. - prefix []byte // The tag prefix. -} - -type yaml_encoding_t int - -// The stream encoding. -const ( - // Let the parser choose the encoding. - yaml_ANY_ENCODING yaml_encoding_t = iota - - yaml_UTF8_ENCODING // The default UTF-8 encoding. - yaml_UTF16LE_ENCODING // The UTF-16-LE encoding with BOM. - yaml_UTF16BE_ENCODING // The UTF-16-BE encoding with BOM. -) - -type yaml_break_t int - -// Line break types. -const ( - // Let the parser choose the break type. - yaml_ANY_BREAK yaml_break_t = iota - - yaml_CR_BREAK // Use CR for line breaks (Mac style). - yaml_LN_BREAK // Use LN for line breaks (Unix style). - yaml_CRLN_BREAK // Use CR LN for line breaks (DOS style). -) - -type yaml_error_type_t int - -// Many bad things could happen with the parser and emitter. -const ( - // No error is produced. - yaml_NO_ERROR yaml_error_type_t = iota - - yaml_MEMORY_ERROR // Cannot allocate or reallocate a block of memory. - yaml_READER_ERROR // Cannot read or decode the input stream. - yaml_SCANNER_ERROR // Cannot scan the input stream. - yaml_PARSER_ERROR // Cannot parse the input stream. - yaml_COMPOSER_ERROR // Cannot compose a YAML document. - yaml_WRITER_ERROR // Cannot write to the output stream. - yaml_EMITTER_ERROR // Cannot emit a YAML stream. -) - -// The pointer position. -type yaml_mark_t struct { - index int // The position index. - line int // The position line. - column int // The position column. -} - -// Node Styles - -type yaml_style_t int8 - -type yaml_scalar_style_t yaml_style_t - -// Scalar styles. -const ( - // Let the emitter choose the style. - yaml_ANY_SCALAR_STYLE yaml_scalar_style_t = iota - - yaml_PLAIN_SCALAR_STYLE // The plain scalar style. - yaml_SINGLE_QUOTED_SCALAR_STYLE // The single-quoted scalar style. - yaml_DOUBLE_QUOTED_SCALAR_STYLE // The double-quoted scalar style. - yaml_LITERAL_SCALAR_STYLE // The literal scalar style. - yaml_FOLDED_SCALAR_STYLE // The folded scalar style. -) - -type yaml_sequence_style_t yaml_style_t - -// Sequence styles. -const ( - // Let the emitter choose the style. - yaml_ANY_SEQUENCE_STYLE yaml_sequence_style_t = iota - - yaml_BLOCK_SEQUENCE_STYLE // The block sequence style. - yaml_FLOW_SEQUENCE_STYLE // The flow sequence style. -) - -type yaml_mapping_style_t yaml_style_t - -// Mapping styles. -const ( - // Let the emitter choose the style. - yaml_ANY_MAPPING_STYLE yaml_mapping_style_t = iota - - yaml_BLOCK_MAPPING_STYLE // The block mapping style. - yaml_FLOW_MAPPING_STYLE // The flow mapping style. -) - -// Tokens - -type yaml_token_type_t int - -// Token types. -const ( - // An empty token. - yaml_NO_TOKEN yaml_token_type_t = iota - - yaml_STREAM_START_TOKEN // A STREAM-START token. - yaml_STREAM_END_TOKEN // A STREAM-END token. - - yaml_VERSION_DIRECTIVE_TOKEN // A VERSION-DIRECTIVE token. - yaml_TAG_DIRECTIVE_TOKEN // A TAG-DIRECTIVE token. - yaml_DOCUMENT_START_TOKEN // A DOCUMENT-START token. - yaml_DOCUMENT_END_TOKEN // A DOCUMENT-END token. - - yaml_BLOCK_SEQUENCE_START_TOKEN // A BLOCK-SEQUENCE-START token. - yaml_BLOCK_MAPPING_START_TOKEN // A BLOCK-SEQUENCE-END token. - yaml_BLOCK_END_TOKEN // A BLOCK-END token. - - yaml_FLOW_SEQUENCE_START_TOKEN // A FLOW-SEQUENCE-START token. - yaml_FLOW_SEQUENCE_END_TOKEN // A FLOW-SEQUENCE-END token. - yaml_FLOW_MAPPING_START_TOKEN // A FLOW-MAPPING-START token. - yaml_FLOW_MAPPING_END_TOKEN // A FLOW-MAPPING-END token. - - yaml_BLOCK_ENTRY_TOKEN // A BLOCK-ENTRY token. - yaml_FLOW_ENTRY_TOKEN // A FLOW-ENTRY token. - yaml_KEY_TOKEN // A KEY token. - yaml_VALUE_TOKEN // A VALUE token. - - yaml_ALIAS_TOKEN // An ALIAS token. - yaml_ANCHOR_TOKEN // An ANCHOR token. - yaml_TAG_TOKEN // A TAG token. - yaml_SCALAR_TOKEN // A SCALAR token. -) - -func (tt yaml_token_type_t) String() string { - switch tt { - case yaml_NO_TOKEN: - return "yaml_NO_TOKEN" - case yaml_STREAM_START_TOKEN: - return "yaml_STREAM_START_TOKEN" - case yaml_STREAM_END_TOKEN: - return "yaml_STREAM_END_TOKEN" - case yaml_VERSION_DIRECTIVE_TOKEN: - return "yaml_VERSION_DIRECTIVE_TOKEN" - case yaml_TAG_DIRECTIVE_TOKEN: - return "yaml_TAG_DIRECTIVE_TOKEN" - case yaml_DOCUMENT_START_TOKEN: - return "yaml_DOCUMENT_START_TOKEN" - case yaml_DOCUMENT_END_TOKEN: - return "yaml_DOCUMENT_END_TOKEN" - case yaml_BLOCK_SEQUENCE_START_TOKEN: - return "yaml_BLOCK_SEQUENCE_START_TOKEN" - case yaml_BLOCK_MAPPING_START_TOKEN: - return "yaml_BLOCK_MAPPING_START_TOKEN" - case yaml_BLOCK_END_TOKEN: - return "yaml_BLOCK_END_TOKEN" - case yaml_FLOW_SEQUENCE_START_TOKEN: - return "yaml_FLOW_SEQUENCE_START_TOKEN" - case yaml_FLOW_SEQUENCE_END_TOKEN: - return "yaml_FLOW_SEQUENCE_END_TOKEN" - case yaml_FLOW_MAPPING_START_TOKEN: - return "yaml_FLOW_MAPPING_START_TOKEN" - case yaml_FLOW_MAPPING_END_TOKEN: - return "yaml_FLOW_MAPPING_END_TOKEN" - case yaml_BLOCK_ENTRY_TOKEN: - return "yaml_BLOCK_ENTRY_TOKEN" - case yaml_FLOW_ENTRY_TOKEN: - return "yaml_FLOW_ENTRY_TOKEN" - case yaml_KEY_TOKEN: - return "yaml_KEY_TOKEN" - case yaml_VALUE_TOKEN: - return "yaml_VALUE_TOKEN" - case yaml_ALIAS_TOKEN: - return "yaml_ALIAS_TOKEN" - case yaml_ANCHOR_TOKEN: - return "yaml_ANCHOR_TOKEN" - case yaml_TAG_TOKEN: - return "yaml_TAG_TOKEN" - case yaml_SCALAR_TOKEN: - return "yaml_SCALAR_TOKEN" - } - return "" -} - -// The token structure. -type yaml_token_t struct { - // The token type. - typ yaml_token_type_t - - // The start/end of the token. - start_mark, end_mark yaml_mark_t - - // The stream encoding (for yaml_STREAM_START_TOKEN). - encoding yaml_encoding_t - - // The alias/anchor/scalar value or tag/tag directive handle - // (for yaml_ALIAS_TOKEN, yaml_ANCHOR_TOKEN, yaml_SCALAR_TOKEN, yaml_TAG_TOKEN, yaml_TAG_DIRECTIVE_TOKEN). - value []byte - - // The tag suffix (for yaml_TAG_TOKEN). - suffix []byte - - // The tag directive prefix (for yaml_TAG_DIRECTIVE_TOKEN). - prefix []byte - - // The scalar style (for yaml_SCALAR_TOKEN). - style yaml_scalar_style_t - - // The version directive major/minor (for yaml_VERSION_DIRECTIVE_TOKEN). - major, minor int8 -} - -// Events - -type yaml_event_type_t int8 - -// Event types. -const ( - // An empty event. - yaml_NO_EVENT yaml_event_type_t = iota - - yaml_STREAM_START_EVENT // A STREAM-START event. - yaml_STREAM_END_EVENT // A STREAM-END event. - yaml_DOCUMENT_START_EVENT // A DOCUMENT-START event. - yaml_DOCUMENT_END_EVENT // A DOCUMENT-END event. - yaml_ALIAS_EVENT // An ALIAS event. - yaml_SCALAR_EVENT // A SCALAR event. - yaml_SEQUENCE_START_EVENT // A SEQUENCE-START event. - yaml_SEQUENCE_END_EVENT // A SEQUENCE-END event. - yaml_MAPPING_START_EVENT // A MAPPING-START event. - yaml_MAPPING_END_EVENT // A MAPPING-END event. -) - -// The event structure. -type yaml_event_t struct { - - // The event type. - typ yaml_event_type_t - - // The start and end of the event. - start_mark, end_mark yaml_mark_t - - // The document encoding (for yaml_STREAM_START_EVENT). - encoding yaml_encoding_t - - // The version directive (for yaml_DOCUMENT_START_EVENT). - version_directive *yaml_version_directive_t - - // The list of tag directives (for yaml_DOCUMENT_START_EVENT). - tag_directives []yaml_tag_directive_t - - // The anchor (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT, yaml_ALIAS_EVENT). - anchor []byte - - // The tag (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT). - tag []byte - - // The scalar value (for yaml_SCALAR_EVENT). - value []byte - - // Is the document start/end indicator implicit, or the tag optional? - // (for yaml_DOCUMENT_START_EVENT, yaml_DOCUMENT_END_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT, yaml_SCALAR_EVENT). - implicit bool - - // Is the tag optional for any non-plain style? (for yaml_SCALAR_EVENT). - quoted_implicit bool - - // The style (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT). - style yaml_style_t -} - -func (e *yaml_event_t) scalar_style() yaml_scalar_style_t { return yaml_scalar_style_t(e.style) } -func (e *yaml_event_t) sequence_style() yaml_sequence_style_t { return yaml_sequence_style_t(e.style) } -func (e *yaml_event_t) mapping_style() yaml_mapping_style_t { return yaml_mapping_style_t(e.style) } - -// Nodes - -const ( - yaml_NULL_TAG = "tag:yaml.org,2002:null" // The tag !!null with the only possible value: null. - yaml_BOOL_TAG = "tag:yaml.org,2002:bool" // The tag !!bool with the values: true and false. - yaml_STR_TAG = "tag:yaml.org,2002:str" // The tag !!str for string values. - yaml_INT_TAG = "tag:yaml.org,2002:int" // The tag !!int for integer values. - yaml_FLOAT_TAG = "tag:yaml.org,2002:float" // The tag !!float for float values. - yaml_TIMESTAMP_TAG = "tag:yaml.org,2002:timestamp" // The tag !!timestamp for date and time values. - - yaml_SEQ_TAG = "tag:yaml.org,2002:seq" // The tag !!seq is used to denote sequences. - yaml_MAP_TAG = "tag:yaml.org,2002:map" // The tag !!map is used to denote mapping. - - // Not in original libyaml. - yaml_BINARY_TAG = "tag:yaml.org,2002:binary" - yaml_MERGE_TAG = "tag:yaml.org,2002:merge" - - yaml_DEFAULT_SCALAR_TAG = yaml_STR_TAG // The default scalar tag is !!str. - yaml_DEFAULT_SEQUENCE_TAG = yaml_SEQ_TAG // The default sequence tag is !!seq. - yaml_DEFAULT_MAPPING_TAG = yaml_MAP_TAG // The default mapping tag is !!map. -) - -type yaml_node_type_t int - -// Node types. -const ( - // An empty node. - yaml_NO_NODE yaml_node_type_t = iota - - yaml_SCALAR_NODE // A scalar node. - yaml_SEQUENCE_NODE // A sequence node. - yaml_MAPPING_NODE // A mapping node. -) - -// An element of a sequence node. -type yaml_node_item_t int - -// An element of a mapping node. -type yaml_node_pair_t struct { - key int // The key of the element. - value int // The value of the element. -} - -// The node structure. -type yaml_node_t struct { - typ yaml_node_type_t // The node type. - tag []byte // The node tag. - - // The node data. - - // The scalar parameters (for yaml_SCALAR_NODE). - scalar struct { - value []byte // The scalar value. - length int // The length of the scalar value. - style yaml_scalar_style_t // The scalar style. - } - - // The sequence parameters (for YAML_SEQUENCE_NODE). - sequence struct { - items_data []yaml_node_item_t // The stack of sequence items. - style yaml_sequence_style_t // The sequence style. - } - - // The mapping parameters (for yaml_MAPPING_NODE). - mapping struct { - pairs_data []yaml_node_pair_t // The stack of mapping pairs (key, value). - pairs_start *yaml_node_pair_t // The beginning of the stack. - pairs_end *yaml_node_pair_t // The end of the stack. - pairs_top *yaml_node_pair_t // The top of the stack. - style yaml_mapping_style_t // The mapping style. - } - - start_mark yaml_mark_t // The beginning of the node. - end_mark yaml_mark_t // The end of the node. - -} - -// The document structure. -type yaml_document_t struct { - - // The document nodes. - nodes []yaml_node_t - - // The version directive. - version_directive *yaml_version_directive_t - - // The list of tag directives. - tag_directives_data []yaml_tag_directive_t - tag_directives_start int // The beginning of the tag directives list. - tag_directives_end int // The end of the tag directives list. - - start_implicit int // Is the document start indicator implicit? - end_implicit int // Is the document end indicator implicit? - - // The start/end of the document. - start_mark, end_mark yaml_mark_t -} - -// The prototype of a read handler. -// -// The read handler is called when the parser needs to read more bytes from the -// source. The handler should write not more than size bytes to the buffer. -// The number of written bytes should be set to the size_read variable. -// -// [in,out] data A pointer to an application data specified by -// yaml_parser_set_input(). -// [out] buffer The buffer to write the data from the source. -// [in] size The size of the buffer. -// [out] size_read The actual number of bytes read from the source. -// -// On success, the handler should return 1. If the handler failed, -// the returned value should be 0. On EOF, the handler should set the -// size_read to 0 and return 1. -type yaml_read_handler_t func(parser *yaml_parser_t, buffer []byte) (n int, err error) - -// This structure holds information about a potential simple key. -type yaml_simple_key_t struct { - possible bool // Is a simple key possible? - required bool // Is a simple key required? - token_number int // The number of the token. - mark yaml_mark_t // The position mark. -} - -// The states of the parser. -type yaml_parser_state_t int - -const ( - yaml_PARSE_STREAM_START_STATE yaml_parser_state_t = iota - - yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE // Expect the beginning of an implicit document. - yaml_PARSE_DOCUMENT_START_STATE // Expect DOCUMENT-START. - yaml_PARSE_DOCUMENT_CONTENT_STATE // Expect the content of a document. - yaml_PARSE_DOCUMENT_END_STATE // Expect DOCUMENT-END. - yaml_PARSE_BLOCK_NODE_STATE // Expect a block node. - yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE // Expect a block node or indentless sequence. - yaml_PARSE_FLOW_NODE_STATE // Expect a flow node. - yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE // Expect the first entry of a block sequence. - yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE // Expect an entry of a block sequence. - yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE // Expect an entry of an indentless sequence. - yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE // Expect the first key of a block mapping. - yaml_PARSE_BLOCK_MAPPING_KEY_STATE // Expect a block mapping key. - yaml_PARSE_BLOCK_MAPPING_VALUE_STATE // Expect a block mapping value. - yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE // Expect the first entry of a flow sequence. - yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE // Expect an entry of a flow sequence. - yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE // Expect a key of an ordered mapping. - yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE // Expect a value of an ordered mapping. - yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE // Expect the and of an ordered mapping entry. - yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE // Expect the first key of a flow mapping. - yaml_PARSE_FLOW_MAPPING_KEY_STATE // Expect a key of a flow mapping. - yaml_PARSE_FLOW_MAPPING_VALUE_STATE // Expect a value of a flow mapping. - yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE // Expect an empty value of a flow mapping. - yaml_PARSE_END_STATE // Expect nothing. -) - -func (ps yaml_parser_state_t) String() string { - switch ps { - case yaml_PARSE_STREAM_START_STATE: - return "yaml_PARSE_STREAM_START_STATE" - case yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE: - return "yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE" - case yaml_PARSE_DOCUMENT_START_STATE: - return "yaml_PARSE_DOCUMENT_START_STATE" - case yaml_PARSE_DOCUMENT_CONTENT_STATE: - return "yaml_PARSE_DOCUMENT_CONTENT_STATE" - case yaml_PARSE_DOCUMENT_END_STATE: - return "yaml_PARSE_DOCUMENT_END_STATE" - case yaml_PARSE_BLOCK_NODE_STATE: - return "yaml_PARSE_BLOCK_NODE_STATE" - case yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE: - return "yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE" - case yaml_PARSE_FLOW_NODE_STATE: - return "yaml_PARSE_FLOW_NODE_STATE" - case yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE: - return "yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE" - case yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE: - return "yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE" - case yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE: - return "yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE" - case yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE: - return "yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE" - case yaml_PARSE_BLOCK_MAPPING_KEY_STATE: - return "yaml_PARSE_BLOCK_MAPPING_KEY_STATE" - case yaml_PARSE_BLOCK_MAPPING_VALUE_STATE: - return "yaml_PARSE_BLOCK_MAPPING_VALUE_STATE" - case yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE: - return "yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE" - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE: - return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE" - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE: - return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE" - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE: - return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE" - case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE: - return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE" - case yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE: - return "yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE" - case yaml_PARSE_FLOW_MAPPING_KEY_STATE: - return "yaml_PARSE_FLOW_MAPPING_KEY_STATE" - case yaml_PARSE_FLOW_MAPPING_VALUE_STATE: - return "yaml_PARSE_FLOW_MAPPING_VALUE_STATE" - case yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE: - return "yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE" - case yaml_PARSE_END_STATE: - return "yaml_PARSE_END_STATE" - } - return "" -} - -// This structure holds aliases data. -type yaml_alias_data_t struct { - anchor []byte // The anchor. - index int // The node id. - mark yaml_mark_t // The anchor mark. -} - -// The parser structure. -// -// All members are internal. Manage the structure using the -// yaml_parser_ family of functions. -type yaml_parser_t struct { - - // Error handling - - error yaml_error_type_t // Error type. - - problem string // Error description. - - // The byte about which the problem occurred. - problem_offset int - problem_value int - problem_mark yaml_mark_t - - // The error context. - context string - context_mark yaml_mark_t - - // Reader stuff - - read_handler yaml_read_handler_t // Read handler. - - input_file io.Reader // File input data. - input []byte // String input data. - input_pos int - - eof bool // EOF flag - - buffer []byte // The working buffer. - buffer_pos int // The current position of the buffer. - - unread int // The number of unread characters in the buffer. - - raw_buffer []byte // The raw buffer. - raw_buffer_pos int // The current position of the buffer. - - encoding yaml_encoding_t // The input encoding. - - offset int // The offset of the current position (in bytes). - mark yaml_mark_t // The mark of the current position. - - // Scanner stuff - - stream_start_produced bool // Have we started to scan the input stream? - stream_end_produced bool // Have we reached the end of the input stream? - - flow_level int // The number of unclosed '[' and '{' indicators. - - tokens []yaml_token_t // The tokens queue. - tokens_head int // The head of the tokens queue. - tokens_parsed int // The number of tokens fetched from the queue. - token_available bool // Does the tokens queue contain a token ready for dequeueing. - - indent int // The current indentation level. - indents []int // The indentation levels stack. - - simple_key_allowed bool // May a simple key occur at the current position? - simple_keys []yaml_simple_key_t // The stack of simple keys. - - // Parser stuff - - state yaml_parser_state_t // The current parser state. - states []yaml_parser_state_t // The parser states stack. - marks []yaml_mark_t // The stack of marks. - tag_directives []yaml_tag_directive_t // The list of TAG directives. - - // Dumper stuff - - aliases []yaml_alias_data_t // The alias data. - - document *yaml_document_t // The currently parsed document. -} - -// Emitter Definitions - -// The prototype of a write handler. -// -// The write handler is called when the emitter needs to flush the accumulated -// characters to the output. The handler should write @a size bytes of the -// @a buffer to the output. -// -// @param[in,out] data A pointer to an application data specified by -// yaml_emitter_set_output(). -// @param[in] buffer The buffer with bytes to be written. -// @param[in] size The size of the buffer. -// -// @returns On success, the handler should return @c 1. If the handler failed, -// the returned value should be @c 0. -// -type yaml_write_handler_t func(emitter *yaml_emitter_t, buffer []byte) error - -type yaml_emitter_state_t int - -// The emitter states. -const ( - // Expect STREAM-START. - yaml_EMIT_STREAM_START_STATE yaml_emitter_state_t = iota - - yaml_EMIT_FIRST_DOCUMENT_START_STATE // Expect the first DOCUMENT-START or STREAM-END. - yaml_EMIT_DOCUMENT_START_STATE // Expect DOCUMENT-START or STREAM-END. - yaml_EMIT_DOCUMENT_CONTENT_STATE // Expect the content of a document. - yaml_EMIT_DOCUMENT_END_STATE // Expect DOCUMENT-END. - yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE // Expect the first item of a flow sequence. - yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE // Expect an item of a flow sequence. - yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE // Expect the first key of a flow mapping. - yaml_EMIT_FLOW_MAPPING_KEY_STATE // Expect a key of a flow mapping. - yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE // Expect a value for a simple key of a flow mapping. - yaml_EMIT_FLOW_MAPPING_VALUE_STATE // Expect a value of a flow mapping. - yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE // Expect the first item of a block sequence. - yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE // Expect an item of a block sequence. - yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE // Expect the first key of a block mapping. - yaml_EMIT_BLOCK_MAPPING_KEY_STATE // Expect the key of a block mapping. - yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE // Expect a value for a simple key of a block mapping. - yaml_EMIT_BLOCK_MAPPING_VALUE_STATE // Expect a value of a block mapping. - yaml_EMIT_END_STATE // Expect nothing. -) - -// The emitter structure. -// -// All members are internal. Manage the structure using the @c yaml_emitter_ -// family of functions. -type yaml_emitter_t struct { - - // Error handling - - error yaml_error_type_t // Error type. - problem string // Error description. - - // Writer stuff - - write_handler yaml_write_handler_t // Write handler. - - output_buffer *[]byte // String output data. - output_file io.Writer // File output data. - - buffer []byte // The working buffer. - buffer_pos int // The current position of the buffer. - - raw_buffer []byte // The raw buffer. - raw_buffer_pos int // The current position of the buffer. - - encoding yaml_encoding_t // The stream encoding. - - // Emitter stuff - - canonical bool // If the output is in the canonical style? - best_indent int // The number of indentation spaces. - best_width int // The preferred width of the output lines. - unicode bool // Allow unescaped non-ASCII characters? - line_break yaml_break_t // The preferred line break. - - state yaml_emitter_state_t // The current emitter state. - states []yaml_emitter_state_t // The stack of states. - - events []yaml_event_t // The event queue. - events_head int // The head of the event queue. - - indents []int // The stack of indentation levels. - - tag_directives []yaml_tag_directive_t // The list of tag directives. - - indent int // The current indentation level. - - flow_level int // The current flow level. - - root_context bool // Is it the document root context? - sequence_context bool // Is it a sequence context? - mapping_context bool // Is it a mapping context? - simple_key_context bool // Is it a simple mapping key context? - - line int // The current line. - column int // The current column. - whitespace bool // If the last character was a whitespace? - indention bool // If the last character was an indentation character (' ', '-', '?', ':')? - open_ended bool // If an explicit document end is required? - - // Anchor analysis. - anchor_data struct { - anchor []byte // The anchor value. - alias bool // Is it an alias? - } - - // Tag analysis. - tag_data struct { - handle []byte // The tag handle. - suffix []byte // The tag suffix. - } - - // Scalar analysis. - scalar_data struct { - value []byte // The scalar value. - multiline bool // Does the scalar contain line breaks? - flow_plain_allowed bool // Can the scalar be expessed in the flow plain style? - block_plain_allowed bool // Can the scalar be expressed in the block plain style? - single_quoted_allowed bool // Can the scalar be expressed in the single quoted style? - block_allowed bool // Can the scalar be expressed in the literal or folded styles? - style yaml_scalar_style_t // The output style. - } - - // Dumper stuff - - opened bool // If the stream was already opened? - closed bool // If the stream was already closed? - - // The information associated with the document nodes. - anchors *struct { - references int // The number of references. - anchor int // The anchor id. - serialized bool // If the node has been emitted? - } - - last_anchor_id int // The last assigned anchor id. - - document *yaml_document_t // The currently emitted document. -} diff --git a/vendor/gopkg.in/yaml.v2/yamlprivateh.go b/vendor/gopkg.in/yaml.v2/yamlprivateh.go deleted file mode 100644 index 8110ce3..0000000 --- a/vendor/gopkg.in/yaml.v2/yamlprivateh.go +++ /dev/null @@ -1,173 +0,0 @@ -package yaml - -const ( - // The size of the input raw buffer. - input_raw_buffer_size = 512 - - // The size of the input buffer. - // It should be possible to decode the whole raw buffer. - input_buffer_size = input_raw_buffer_size * 3 - - // The size of the output buffer. - output_buffer_size = 128 - - // The size of the output raw buffer. - // It should be possible to encode the whole output buffer. - output_raw_buffer_size = (output_buffer_size*2 + 2) - - // The size of other stacks and queues. - initial_stack_size = 16 - initial_queue_size = 16 - initial_string_size = 16 -) - -// Check if the character at the specified position is an alphabetical -// character, a digit, '_', or '-'. -func is_alpha(b []byte, i int) bool { - return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'Z' || b[i] >= 'a' && b[i] <= 'z' || b[i] == '_' || b[i] == '-' -} - -// Check if the character at the specified position is a digit. -func is_digit(b []byte, i int) bool { - return b[i] >= '0' && b[i] <= '9' -} - -// Get the value of a digit. -func as_digit(b []byte, i int) int { - return int(b[i]) - '0' -} - -// Check if the character at the specified position is a hex-digit. -func is_hex(b []byte, i int) bool { - return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'F' || b[i] >= 'a' && b[i] <= 'f' -} - -// Get the value of a hex-digit. -func as_hex(b []byte, i int) int { - bi := b[i] - if bi >= 'A' && bi <= 'F' { - return int(bi) - 'A' + 10 - } - if bi >= 'a' && bi <= 'f' { - return int(bi) - 'a' + 10 - } - return int(bi) - '0' -} - -// Check if the character is ASCII. -func is_ascii(b []byte, i int) bool { - return b[i] <= 0x7F -} - -// Check if the character at the start of the buffer can be printed unescaped. -func is_printable(b []byte, i int) bool { - return ((b[i] == 0x0A) || // . == #x0A - (b[i] >= 0x20 && b[i] <= 0x7E) || // #x20 <= . <= #x7E - (b[i] == 0xC2 && b[i+1] >= 0xA0) || // #0xA0 <= . <= #xD7FF - (b[i] > 0xC2 && b[i] < 0xED) || - (b[i] == 0xED && b[i+1] < 0xA0) || - (b[i] == 0xEE) || - (b[i] == 0xEF && // #xE000 <= . <= #xFFFD - !(b[i+1] == 0xBB && b[i+2] == 0xBF) && // && . != #xFEFF - !(b[i+1] == 0xBF && (b[i+2] == 0xBE || b[i+2] == 0xBF)))) -} - -// Check if the character at the specified position is NUL. -func is_z(b []byte, i int) bool { - return b[i] == 0x00 -} - -// Check if the beginning of the buffer is a BOM. -func is_bom(b []byte, i int) bool { - return b[0] == 0xEF && b[1] == 0xBB && b[2] == 0xBF -} - -// Check if the character at the specified position is space. -func is_space(b []byte, i int) bool { - return b[i] == ' ' -} - -// Check if the character at the specified position is tab. -func is_tab(b []byte, i int) bool { - return b[i] == '\t' -} - -// Check if the character at the specified position is blank (space or tab). -func is_blank(b []byte, i int) bool { - //return is_space(b, i) || is_tab(b, i) - return b[i] == ' ' || b[i] == '\t' -} - -// Check if the character at the specified position is a line break. -func is_break(b []byte, i int) bool { - return (b[i] == '\r' || // CR (#xD) - b[i] == '\n' || // LF (#xA) - b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9) // PS (#x2029) -} - -func is_crlf(b []byte, i int) bool { - return b[i] == '\r' && b[i+1] == '\n' -} - -// Check if the character is a line break or NUL. -func is_breakz(b []byte, i int) bool { - //return is_break(b, i) || is_z(b, i) - return ( // is_break: - b[i] == '\r' || // CR (#xD) - b[i] == '\n' || // LF (#xA) - b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) - // is_z: - b[i] == 0) -} - -// Check if the character is a line break, space, or NUL. -func is_spacez(b []byte, i int) bool { - //return is_space(b, i) || is_breakz(b, i) - return ( // is_space: - b[i] == ' ' || - // is_breakz: - b[i] == '\r' || // CR (#xD) - b[i] == '\n' || // LF (#xA) - b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) - b[i] == 0) -} - -// Check if the character is a line break, space, tab, or NUL. -func is_blankz(b []byte, i int) bool { - //return is_blank(b, i) || is_breakz(b, i) - return ( // is_blank: - b[i] == ' ' || b[i] == '\t' || - // is_breakz: - b[i] == '\r' || // CR (#xD) - b[i] == '\n' || // LF (#xA) - b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) - b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) - b[i] == 0) -} - -// Determine the width of the character. -func width(b byte) int { - // Don't replace these by a switch without first - // confirming that it is being inlined. - if b&0x80 == 0x00 { - return 1 - } - if b&0xE0 == 0xC0 { - return 2 - } - if b&0xF0 == 0xE0 { - return 3 - } - if b&0xF8 == 0xF0 { - return 4 - } - return 0 - -}